//
// sub_909BE4 from 0x909be4 to 0x909c7a (150 bytes)
//
// 0 xrefs:
//
// 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:21 +0000
//
int __fastcall sub_909BE4(int *a1, _DWORD *a2)
{
int v2; // r5
int v3; // r8
_DWORD *v4; // r7
int v5; // r4
int v6; // r6
int v7; // r9
int v9; // r10
int v10; // r0
int v12; // [sp+10h] [bp-14h]
int v13; // [sp+14h] [bp-10h]
int v14; // [sp+18h] [bp-Ch]
int v15; // [sp+1Ch] [bp-8h]
v2 = a1[26];
if ( v2 )
{
v3 = *a2;
v4 = a2 + 69;
v5 = a1[4];
v6 = *a1;
v7 = a2[4];
v12 = *(_DWORD *)(*a2 + 16);
v13 = *(_DWORD *)(*a2 + 32);
v14 = *(_DWORD *)(*a2 + 28);
v15 = *(_DWORD *)(*a2 + 44);
if ( v5 > 0 )
{
v9 = 0;
do
{
v10 = sub_94692C(v4, v5, v2, v6);
v5 -= v10;
v2 += v10 * v6;
v9 += sub_9469B8(v4);
}
while ( v5 > 0 );
if ( v9 > 0 )
sub_911220(v12 + v13 * v7, *(_DWORD *)(v3 + 32), v14 + v15 * v7, *(_DWORD *)(v3 + 44), a2[82], v9, 1);
}
}
return 0;
}