//
// sub_1006366F0 from 0x1006366f0 to 0x10063679c (172 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e08d8
//
// 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:30 +0000
//
__int64 __fastcall sub_1006366F0(__int64 *a1)
{
__int64 v1; // x19
__int64 v2; // x8
__int64 v3; // x0
int v4; // w9
int v5; // w10
__int64 result; // x0
int *v7; // x1
int *v8; // [xsp+8h] [xbp-18h] BYREF
v1 = *a1;
v2 = *a1 + 600;
*(_QWORD *)(v1 + 608) = v2;
*(_QWORD *)(v1 + 600) = v2;
*(_QWORD *)(v1 + 616) = 0;
v3 = *(_QWORD *)(v1 + 168);
v4 = *(_DWORD *)(v3 + 73992);
if ( v4 == 0x7FFFFFFF )
v5 = 0;
else
v5 = v4 + 1;
*(_DWORD *)(v3 + 73992) = v5;
*(_DWORD *)(v1 + 624) = v4;
*(_QWORD *)(v1 + 576) = 0;
*(_QWORD *)(v1 + 544) = 0;
*(_QWORD *)(v1 + 560) = 0;
*(_QWORD *)(v1 + 552) = 0;
*(_DWORD *)(v1 + 568) = 0;
*(_DWORD *)(v1 + 628) = 1065353216;
*(_DWORD *)(v1 + 592) = 0;
result = sub_100564878(v3, &v8, 16, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v8 = 8;
v7 = v8;
*((_QWORD *)v8 + 1) = v1;
return sub_10056491C(*(_QWORD *)(v1 + 168), (__int64)v7, 1);
}
return result;
}