//
// sub_1000A5B04 from 0x1000a5b04 to 0x1000a5bd4 (208 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x1000949e8
// > GameLevelManager::handleIt @ 0x100094f5c
//
// This function is hookable on this platform (idp: arm, 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 10:58:33 +0000
//
void *__fastcall sub_1000A5B04(__int64 a1, __int64 *a2, __int64 *a3)
{
void *result; // x0
__int64 v6; // x22
__int64 *v7; // x23
__int64 v8; // x24
__int64 v9; // x0
__int64 v10; // x0
if ( *((char *)a3 + 23) < 0 )
a3 = (__int64 *)*a3;
result = (void *)sub_1000ADC9C(a1, a3);
v6 = *((char *)a2 + 23);
if ( v6 < 0 )
{
v6 = a2[1];
if ( !v6 )
return result;
v7 = (__int64 *)*a2;
}
else
{
if ( !*((_BYTE *)a2 + 23) )
return result;
v7 = a2;
}
v8 = 0;
while ( 1 )
{
result = memchr("0123456789,", *((char *)v7 + v8), 0xBu);
if ( !result )
break;
if ( v6 == ++v8 )
goto LABEL_14;
}
if ( v8 != -1 )
return result;
LABEL_14:
v9 = sub_1000C7D60(a1, a2);
v10 = GameManager::sharedState(v9);
return (void *)GameManager::setGameVariable(v10, "0241", 1);
}