//
// sub_18010A7B0 from 0x18010a7b0 to 0x18010a82b (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801b0908
//
// 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 10:54:33 +0000
//
__int64 __fastcall sub_18010A7B0(_QWORD *a1, int a2, int a3)
{
_DWORD *v3; // rax
v3 = (_DWORD *)*a1;
if ( a2 == 1 )
{
if ( a3 >= 0 )
{
if ( a3 > 4 )
a3 = 4;
++v3[161];
v3[169] = a3;
return 0;
}
else
{
++v3[161];
v3[169] = 0;
return 0;
}
}
else if ( a2 == 4 )
{
if ( a3 >= 0 )
{
if ( a3 > 2 )
a3 = 2;
++v3[161];
v3[172] = a3;
return 0;
}
else
{
++v3[161];
v3[172] = 0;
return 0;
}
}
else
{
return 31;
}
}