//
// sub_915E2 from 0x915e2 to 0x9167e (156 bytes)
//
// 1 xrefs:
// > sub_91940 @ 0x91aba
//
// 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 11:41:26 +0000
//
int __fastcall sub_915E2(int a1)
{
int *v2; // r1
int *v3; // lr
unsigned __int64 v4; // r2
int v5; // r0
int v6; // r12
int i; // r3
__int64 v8; // kr00_8
int v9; // r0
_DWORD v11[2]; // [sp+4h] [bp-1Ch] BYREF
char v12; // [sp+Ch] [bp-14h]
v11[0] = *(_DWORD *)(a1 + 128);
v11[1] = 5;
v12 = 0;
sub_44998((int)v11);
v2 = *(int **)(a1 + 400);
v3 = (int *)(a1 + 400);
v4 = *(_QWORD *)(a1 + 472);
v5 = *(_DWORD *)(a1 + 480);
*(_QWORD *)(a1 + 424) = v4;
*(_DWORD *)(a1 + 432) = v5;
while ( v3 != v2 && v4 >= *((_QWORD *)v2 + 2) )
v2 = (int *)*v2;
v6 = 1;
for ( i = 0; i != 48; i += 16 )
{
if ( v2 == v3 )
{
v2 = (int *)(a1 + 400);
*(_DWORD *)(a1 + i + 448) = 0;
v8 = 0;
}
else
{
v8 = *((_QWORD *)v2 + 2);
++v6;
*(_DWORD *)(a1 + i + 448) = v2[2];
v2 = (int *)*v2;
}
v9 = a1 + i;
*(_QWORD *)(v9 + 440) = v8;
}
*(_DWORD *)(a1 + 488) = 1;
*(_DWORD *)(a1 + 492) = v6;
sub_448CC((int)v11);
return 0;
}