//
// sub_1005C6D60 from 0x1005c6d60 to 0x1005c6df0 (144 bytes)
//
// 0 xrefs:
//
// 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:09:25 +0000
//
__int64 *__fastcall sub_1005C6D60(__int64 *a1)
{
__int64 v2; // x8
int v3; // w9
__int64 v4; // x1
__int64 v5; // x9
v2 = *a1;
if ( *a1 )
{
v3 = *(_DWORD *)(v2 + 8);
if ( v3 >= 1 )
*(_DWORD *)(v2 + 8) = --v3;
if ( !v3 )
{
v4 = *(_QWORD *)(v2 + 24);
v5 = a1[1];
if ( v4 )
{
sub_1005D7AD8(v5 + 67784, v4, "", 0, 1);
}
else
{
*(_QWORD *)v2 = *(_QWORD *)(v5 + 67496);
*(_QWORD *)(v5 + 67496) = v2;
}
}
*a1 = 0;
*((_OWORD *)a1 + 1) = xmmword_1007718C0;
}
return a1;
}