//
// sub_4CA88 from 0x4ca88 to 0x4cb20 (152 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 11:40:41 +0000
//
int __fastcall sub_4CA88(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)
{
_BYTE v11[4096]; // [sp+10h] [bp-1018h] BYREF
memset(v11, 0, sizeof(v11));
*(_DWORD *)(a1 + 120) = a2;
*(_DWORD *)(a1 + 8) = a8;
*(_DWORD *)(a1 + 4) = a6;
*(_BYTE *)(a1 + 12) = a7 == 1 || a5 == 1;
sub_8D324(a1 + 16, a2, 1065353216);
sub_8D574((int)v11, *(unsigned __int8 *)(a1 + 12), *(_DWORD *)(a1 + 8), *(_DWORD *)(a1 + 4), 1.0);
sub_8E2C4(a1 + 16, v11, *(_DWORD *)(a1 + 8), *(_DWORD *)(a1 + 4), 32, 0, 0);
sub_8E690(a1 + 16, 1065353216, 0, 0);
return 0;
}