//
// sub_67C820 from 0x67c820 to 0x67c8ae (142 bytes)
//
// 1 xrefs:
// > sub_67CED0 @ 0x67d3f0
//
// 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_67C820(_DWORD *a1)
{
unsigned __int8 **v2; // r8
unsigned __int8 *v3; // r2
unsigned __int8 *v4; // r3
int v5; // r1
unsigned __int8 *v6; // r7
int v7; // r6
unsigned __int8 *v8; // r9
int v9; // r3
int v10; // r5
v2 = (unsigned __int8 **)a1[6];
v3 = *v2;
v4 = v2[1];
if ( !v4 )
{
if ( !((int (*)(void))v2[3])() )
return 0;
v3 = *v2;
v4 = v2[1];
}
v5 = *v3;
v6 = v4 - 1;
if ( v4 != (_BYTE *)&dword_0 + 1 )
++v3;
v7 = v5 << 8;
if ( v4 != (_BYTE *)&dword_0 + 1 )
goto LABEL_7;
if ( !((int (__fastcall *)(_DWORD *))v2[3])(a1) )
return 0;
v3 = *v2;
v6 = v2[1];
LABEL_7:
v8 = v3 + 1;
v9 = *v3 + v7;
*(_DWORD *)(*a1 + 20) = 93;
v10 = v9 - 2;
*(_DWORD *)(*a1 + 24) = a1[110];
*(_DWORD *)(*a1 + 28) = v9 - 2;
(*(void (__fastcall **)(_DWORD *, int))(*a1 + 4))(a1, 1);
*v2 = v8;
v2[1] = v6 - 1;
if ( v10 > 0 )
(*(void (__fastcall **)(_DWORD *, int))(a1[6] + 16))(a1, v10);
return 1;
}