//
// sub_38BCA4 from 0x38bca4 to 0x38bcf6 (82 bytes)
//
// 2 xrefs:
// > sub_88E344 @ 0x88e528
// > sub_88E530 @ 0x88e896
//
// 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:46:14 +0000
//
int __fastcall sub_38BCA4(int a1, unsigned __int8 *a2)
{
int v2; // r9
int v3; // r8
int v5; // r12
int v6; // r7
_DWORD *v7; // r2
int v8; // r6
int v9; // r5
int v10; // r3
int result; // r0
v2 = a2[7];
v3 = a2[9];
v5 = a2[5];
v6 = a2[11];
v7 = *(_DWORD **)a1;
v8 = a2[8];
v9 = a2[10];
v10 = a2[6];
v7[9] = v6;
v7[7] = v8 + (v2 << 8);
v7[8] = v9 + (v3 << 8);
v7[6] = v10 + (v5 << 8);
*(_DWORD *)(*(_DWORD *)a1 + 20) = 78;
result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 4))(a1, 1);
*(_BYTE *)(a1 + 300) = v6;
*(_DWORD *)(a1 + 296) = 1;
return result;
}