//
// sub_C48EA from 0xc48ea to 0xc495c (114 bytes)
//
// 6 xrefs:
// > sub_C487C @ 0xc48be
// > sub_C6EA8 @ 0xc6f5c
// > sub_C6FF4 @ 0xc7212
// > sub_C6FF4 @ 0xc73ba
// > sub_C6FF4 @ 0xc7436
// > sub_C6FF4 @ 0xc744e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:51 +0000
//
int __fastcall sub_C48EA(int a1, _DWORD *a2, unsigned int a3)
{
unsigned int v6; // r0
int v7; // r6
int v9; // [sp+4h] [bp-1Ch] BYREF
while ( a3 )
{
if ( !a2[5] )
{
while ( a3 > 3 )
{
v6 = a2[4];
if ( v6 < a2[2] )
{
a2[4] = v6 + 1;
a3 -= 4;
}
else if ( !sub_C4418(a1, (int)a2) )
{
return 0;
}
}
v7 = -1;
while ( a3 != ++v7 )
{
if ( !sub_C460A(a1, (int)a2, &v9, 8u) )
return 0;
}
return 1;
}
if ( !sub_C460A(a1, (int)a2, &v9, 8u) )
return 0;
--a3;
}
return 1;
}