//
// sub_67370 from 0x67370 to 0x67424 (180 bytes)
//
// 1 xrefs:
// > sub_677A4 @ 0x677a6
//
// 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_67370(_DWORD *a1)
{
_DWORD *v2; // r1
unsigned int *v3; // r0
unsigned int v4; // r2
int v5; // r0
int v6; // r3
int i; // r5
int v8; // r0
int *v9; // r0
int v10; // r1
int result; // r0
v2 = a1 + 2233;
v3 = a1 + 23;
__dmb(0xBu);
do
v4 = __ldrex(v3);
while ( __strex(v4 | 0x10, v3) );
v5 = 0;
__dmb(0xBu);
v2[1] = 0;
*(_BYTE *)v2 = 0;
v6 = 1065353216;
while ( v5 != 32 )
{
a1[v5 + 2235] = 1065353216;
a1[v5 + 153] = 1065353216;
++v5;
}
for ( i = 0; ; ++i )
{
v8 = a1[41];
if ( i >= *(_DWORD *)(v8 + 72) )
break;
v9 = *(int **)(*(_DWORD *)(v8 + 76) + 4 * i);
v10 = *v9;
if ( *v9 == 1 )
{
result = sub_AB28A(a1, i, v9[12], v6);
if ( result )
return result;
v9 = *(int **)(*(_DWORD *)(a1[41] + 76) + 4 * i);
v10 = *v9;
}
if ( !v10 )
{
result = sub_AB218(a1, i, v9[12]);
if ( result )
return result;
}
}
sub_8D324(a1 + 95, a1[32], 1065353216);
a1[34] = sub_8DCB4;
a1[113] |= 0x10u;
return 0;
}