//
// localStorageGetItem from 0x1800170b0 to 0x180017138 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004aa04
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
const char *__fastcall localStorageGetItem(const char *a1)
{
int v2; // edi
int v3; // edi
int v4; // edi
const char *result; // rax
const char *v6; // rbx
v2 = sqlite3_reset(qword_1800486B0);
v3 = sqlite3_bind_text(qword_1800486B0, 1, a1) | v2;
v4 = sqlite3_step(qword_1800486B0) | v3;
result = (const char *)sqlite3_column_text(qword_1800486B0, 0);
v6 = result;
if ( v4 )
{
if ( (unsigned int)(v4 - 100) > 1 )
{
sub_1800171C0("Error in localStorage.getItem()\n");
return v6;
}
}
return result;
}