//
// sub_9306EC from 0x9306ec to 0x9307c0 (212 bytes)
//
// 1 xrefs:
// > sub_93C93C @ 0x93ca36
//
// 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 12:04:53 +0000
//
int __fastcall sub_9306EC(_DWORD *a1, int a2)
{
int v4; // r6
int v5; // r7
int v6; // r2
int v7; // r3
int v8; // r6
_BOOL4 *v9; // r7
_BOOL4 *v10; // r4
int v11; // r10
int v12; // r0
int v13; // r11
int v14; // r0
_BOOL4 v15; // r3
int v17; // [sp+8h] [bp-3Ch]
_BOOL4 *v18; // [sp+10h] [bp-34h]
int v19; // [sp+14h] [bp-30h]
_BOOL4 *v20; // [sp+1Ch] [bp-28h]
_DWORD v21[7]; // [sp+24h] [bp-20h] BYREF
v4 = a1[8];
sub_93667C();
v5 = v4 + 6528;
v6 = v4 + 22016;
v19 = a2 + 584;
v7 = v4 + 3900;
v8 = 0;
v21[6] = v6 + 76;
v21[4] = v7;
v21[5] = v5 + 12;
v20 = a1 + 44;
v18 = a1 + 40;
v21[0] = 0;
v21[3] = 2;
do
{
v9 = v18 - 2;
v17 = v19;
do
{
v10 = v18 - 11;
v11 = v17;
do
{
v12 = v11;
v11 += 32;
v13 = *v9 + *v10;
off_D36380(v12, v21);
v14 = off_D36300(v13, v21);
v15 = v21[1] >= 0;
*v9 = v15;
*v10++ = v15;
v8 += v14;
}
while ( v10 != v18 - 9 );
++v9;
v17 += 64;
}
while ( v9 != v18 );
v18 = v9 + 2;
v19 += 128;
}
while ( v9 + 2 != v20 );
return v8;
}