//
// sub_AAF7C from 0xaaf7c to 0xaaff4 (120 bytes)
//
// 6 xrefs:
// > sub_6AC50 @ 0x6ad30
// > sub_7E378 @ 0x7e394
// > sub_AFD80 @ 0xafda8
// > sub_B8FA8 @ 0xb8fe4
// > sub_B9F00 @ 0xba06c
// > sub_CD6F4 @ 0xcd6fc
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:14:34 +0000
//
__int64 __fastcall sub_AAF7C(__int64 *a1, char a2, char a3)
{
__int64 v4; // x1
__int64 v6; // x0
unsigned int v7; // w8
if ( (a2 & 1) != 0 )
{
v4 = *a1;
*((_DWORD *)a1 + 26) = 1065353216;
*((_DWORD *)a1 + 33) = 0;
v6 = sub_B7B14(a1 + 7, v4);
sub_AC820(v6);
if ( (a3 & 1) != 0 )
sub_AAFF4(a1 + 17, *a1, 1.0);
}
v7 = *((_DWORD *)a1 + 26);
__asm { FMOV V0.2S, #1.0 }
*((_DWORD *)a1 + 27) = 0;
*((_DWORD *)a1 + 28) = 0;
a1[16] = v7;
*((_DWORD *)a1 + 31) = 0;
*(__int64 *)((char *)a1 + 116) = _D0;
sub_AB00C(a1);
return 0;
}