//
// sub_10065FF40 from 0x10065ff40 to 0x10065ff9c (92 bytes)
//
// 8 xrefs:
// > sub_10065DE8C @ 0x10065df3c
// > sub_10065DE8C @ 0x10065e194
// > sub_10065DE8C @ 0x10065e610
// > sub_10065EBB0 @ 0x10065ec48
// > sub_10065EBB0 @ 0x10065eefc
// > sub_10065EBB0 @ 0x10065f170
// > sub_10065EBB0 @ 0x10065f3ec
// > sub_1006632D4 @ 0x100663394
//
// 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 11:10:57 +0000
//
__int64 __fastcall sub_10065FF40(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x8
__int64 v4; // x0
v2 = *(_QWORD *)(a1 + 136);
*(_DWORD *)(v2 + 840) = 0;
*(_QWORD *)(v2 + 832) = 0;
v3 = *(_QWORD *)(a1 + 136);
*(_QWORD *)(v3 + 856) = 0;
*(_QWORD *)(v3 + 848) = 0;
*(_WORD *)(*(_QWORD *)(a1 + 136) + 864LL) = 1;
v4 = sub_1006649A0(a1);
sub_100700CE0(v4, 45, 0, *(_QWORD *)(a1 + 136) + 848LL);
return sub_100663158(a1);
}