Apparently owning a smart phone does not boost its user's intelligence.

Two men who told police that prostitutes stole their iPhones allegedly started a sex-worker shootout at a California motel on Thursday.

Cesar and Jasiel Salmeron, 28 and 25, were reportedly trying to get their phones back when they approached a Stockton motel room door. One of them allegedly fired a round at the door to get the women to come out, FOX 40 reported.

What they didn't expect was that the prostitutes were also packing heat.

Someone inside the Stockton motel room fired a round back through the door, injuring one of the men.

The Salmerons showed up to a nearby hospital for treatment, and were subsequently arrested The Record reported.

They face charges of assault with a deadly weapon and negligent discharge of a firearm.