//
// sub_1005595AC from 0x1005595ac to 0x100559614 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d4bf0
//
// 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 11:07:59 +0000
//
__int64 __fastcall sub_1005595AC(__int64 *a1, int a2, int a3)
{
__int64 v4; // x8
if ( a2 )
return 31;
v4 = *a1;
if ( a3 == -1 )
{
*(_WORD *)(v4 + 3545) = 257;
return 0;
}
else if ( a3 == -2 )
{
*(_BYTE *)(v4 + 3546) = 1;
return 0;
}
else
{
if ( a3 == -3 )
*(_BYTE *)(v4 + 3545) = 1;
else
*(_DWORD *)(v4 + 3676) = a3;
return 0;
}
}