//
// sub_71CC10 from 0x71cc10 to 0x71cd0e (254 bytes)
//
// 2 xrefs:
// > sub_71CD14 @ 0x71cdb8
// > sub_71CD14 @ 0x71ce6e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_71CC10(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, _DWORD *a9)
{
int v11; // r4
unsigned int v12; // r7
void (__fastcall *v13)(int); // r6
char v15; // r3
char v16; // r3
int result; // r0
int v18; // r0
char v19; // [sp+Fh] [bp-1Dh] BYREF
char v20[4]; // [sp+10h] [bp-1Ch] BYREF
int v21; // [sp+14h] [bp-18h]
int v22; // [sp+18h] [bp-14h]
int v23; // [sp+1Ch] [bp-10h]
v11 = a4;
v12 = a3 * a2;
v13 = (void (__fastcall *)(int))dword_AD4FF8[a5];
if ( v13 )
{
v13(a1);
if ( !v11 )
goto LABEL_3;
}
else
{
a8 = a1;
if ( !a4 )
goto LABEL_3;
}
if ( sub_734334(v20, v12 >> 3) && sub_71CB54(a8, a2, a3, a7, (int)v20, (int)(a9 + 9)) )
{
v18 = sub_7345C0(v20);
if ( v12 >= v23 - v22 + ((v21 + 7) >> 3) )
{
v15 = v11;
v12 = v23 - v22 + ((v21 + 7) >> 3);
a8 = v18;
LABEL_4:
v16 = v15 | (4 * a5);
if ( a6 )
v16 |= 0x10u;
v19 = v16;
sub_7340D8(a9 + 1, v12 + 1);
if ( sub_734284(a9 + 1, &v19, 1) && sub_734284(a9 + 1, a8, v12) )
{
if ( v11 )
sub_7343C8(v20);
if ( !a9[8] )
{
result = 1;
goto LABEL_11;
}
}
else if ( v11 )
{
sub_7343C8(v20);
}
result = 0;
LABEL_11:
*a9 = a9[6];
return result;
}
sub_7343C8(v20);
LABEL_3:
v15 = 0;
v11 = 0;
goto LABEL_4;
}
sub_7343C8(v20);
return 0;
}