//
// sub_10059C3C0 from 0x10059c3c0 to 0x10059c461 (161 bytes)
//
// 0 xrefs:
//
// 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:32:31 +0000
//
int __fastcall sub_10059C3C0(char *a1, char *a2)
{
int v2; // r14d
int v3; // ebx
int v4; // r14d
int result; // eax
if ( !byte_100BE5728 )
sub_1009A7160(a1, a2);
v2 = sqlite3_bind_text(pStmt, 1, a1, -1, (void (__cdecl *)(void *))0xFFFFFFFFFFFFFFFFLL);
v3 = v2 | sqlite3_bind_text(pStmt, 2, a2, -1, (void (__cdecl *)(void *))0xFFFFFFFFFFFFFFFFLL);
v4 = v3 | sqlite3_step(pStmt);
result = v4 | sqlite3_reset(pStmt);
if ( result )
{
if ( result != 101 )
return puts("Error in localStorage.setItem()");
}
return result;
}