//
// sub_10056FDD4 from 0x10056fdd4 to 0x10056fe38 (100 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009d5590
//
// 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:08:17 +0000
//
__int64 __fastcall sub_10056FDD4(_QWORD *a1, int a2, int a3)
{
_DWORD *v3; // x8
int v4; // w9
int v5; // w9
v3 = (_DWORD *)*a1;
if ( a2 == 4 )
{
if ( a3 >= 2 )
v5 = 2;
else
v5 = a3;
if ( v5 <= 0 )
v5 = 0;
v3[170] = v5;
goto LABEL_15;
}
if ( a2 == 1 )
{
if ( a3 >= 4 )
v4 = 4;
else
v4 = a3;
if ( v4 <= 0 )
v4 = 0;
v3[167] = v4;
LABEL_15:
++v3[159];
return 0;
}
return 31;
}