//
// sub_1004C20B0 from 0x1004c20b0 to 0x1004c2104 (84 bytes)
//
// 1 xrefs:
// > sub_1004C207C @ 0x1004c2090
//
// 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:20 +0000
//
void __fastcall sub_1004C20B0(__int64 a1, __int64 a2)
{
__int64 v2; // x8
__int64 v5; // x9
v2 = *(_QWORD *)(a1 + 16);
if ( v2 != a2 )
{
do
{
v5 = v2 - 48;
*(_QWORD *)(a1 + 16) = v2 - 48;
if ( *(char *)(v2 - 1) < 0 )
{
operator delete(*(void **)(v2 - 24));
v5 = *(_QWORD *)(a1 + 16);
}
v2 = v5;
}
while ( v5 != a2 );
}
}