//
// sub_67B9E4 from 0x67b9e4 to 0x67ba46 (98 bytes)
//
// 0 xrefs:
//
// 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_67B9E4(_DWORD *a1, int a2, int a3, int a4)
{
int v5; // r4
int v9; // r6
int result; // r0
int v11; // r1
unsigned int v12; // r6
v5 = a1[112];
v9 = v5 + 8;
if ( !*(_DWORD *)(v5 + 48) )
{
v9 = v5 + 8;
result = (*(int (**)(void))(a1[113] + 12))();
if ( !result )
return result;
*(_DWORD *)(v5 + 48) = 1;
}
v11 = v9;
v12 = a1[82];
result = (*(int (__fastcall **)(_DWORD *, int, int, unsigned int, int, int, int))(a1[114] + 4))(
a1,
v11,
v5 + 52,
v12,
a2,
a3,
a4);
if ( v12 <= *(_DWORD *)(v5 + 52) )
{
*(_DWORD *)(v5 + 48) = 0;
*(_DWORD *)(v5 + 52) = 0;
}
return result;
}