//
// sub_1004CD200 from 0x1004cd200 to 0x1004cd280 (128 bytes)
//
// 1 xrefs:
// > sub_1004CC170 @ 0x1004cc9d8
//
// 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:06:26 +0000
//
__int64 __fastcall sub_1004CD200(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
v1 = result;
if ( *(_DWORD *)(result + 1048) > 1u )
{
v2 = *(_QWORD *)(result + 1104);
if ( !v2 )
goto LABEL_7;
result = sub_1002E757C(v2);
if ( (int)result >= 10 )
goto LABEL_7;
}
else if ( *(_DWORD *)(result + 1112) > 10 * *(_DWORD *)(result + 1052) + 10 )
{
LABEL_7:
++*(_DWORD *)(v1 + 1052);
return sub_1004CD5C0(v1, 0, 0);
}
return result;
}