//
// sub_64824 from 0x64824 to 0x648a6 (130 bytes)
//
// 1 xrefs:
// > sub_64764 @ 0x6479c
//
// 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:54 +0000
//
int __fastcall sub_64824(int a1)
{
int v1; // r9
_BYTE *v2; // r4
int v3; // r5
int v4; // r6
_DWORD *v5; // r2
int v6; // r0
float v7; // s16
float v8; // s18
v1 = 12;
v2 = (_BYTE *)(a1 + 69232);
while ( v1 )
{
if ( *v2 )
{
v3 = *((_DWORD *)v2 - 7);
v4 = *((_DWORD *)v2 - 6);
v5 = v2 - 20;
*v5 = *((_DWORD *)v2 - 8);
v5[1] = v3;
v5[2] = v4;
*((_DWORD *)v2 - 4) = 0;
v6 = sub_64A8C();
v7 = *((float *)v2 - 3);
v8 = *((float *)v2 - 5);
sub_64ADC(v6);
*((float *)v2 - 2) = v8;
*((float *)v2 - 1) = atan2f(v8, v7) * 57.296;
}
v2 += 48;
--v1;
}
return 0;
}