//
// localStorageSetItem from 0x180016f60 to 0x180016ff9 (153 bytes)
//
// 3 xrefs:
// > ??> @ 0x180032408
// > ??> @ 0x18004c944
// > ??> @ 0x18004c950
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:42 +0000
//
void __fastcall localStorageSetItem(const char *a1, const char *a2)
{
int v3; // edi
int v4; // edi
int v5; // eax
v3 = sqlite3_bind_text(qword_18004A668, 1, a1, 0xFFFFFFFFLL, -1);
LODWORD(a2) = v3 | sqlite3_bind_text(qword_18004A668, 2, a2, 0xFFFFFFFFLL, -1);
v4 = (unsigned int)a2 | sqlite3_step(qword_18004A668);
v5 = v4 | sqlite3_reset(qword_18004A668);
if ( v5 )
{
if ( v5 != 101 )
sub_180017110("Error in localStorage.setItem()\n");
}
}