//
// sub_1006631DC from 0x1006631dc to 0x10066321c (64 bytes)
//
// 2 xrefs:
// > sub_10065DE8C @ 0x10065e85c
// > sub_10065F64C @ 0x10065f67c
//
// 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:59 +0000
//
__int64 __fastcall sub_1006631DC(__int64 a1, __int64 a2, char a3, __int64 a4, __int64 a5, __int64 a6)
{
__int64 v6; // x8
__int16 v7; // w9
__int16 v8; // w9
v6 = *(_QWORD *)(a1 + 136);
if ( !a5 && !*(_DWORD *)(v6 + 640) )
{
v7 = *(_WORD *)(v6 + 562);
*(_WORD *)(v6 + 560) = v7;
*(_WORD *)(v6 + 562) = v7 + 1;
}
v8 = *(_WORD *)(v6 + 560);
*(_BYTE *)(v6 + 656) = a3;
*(_QWORD *)(v6 + 664) = a4;
*(_WORD *)(v6 + 672) = v8;
*(_QWORD *)(v6 + 680) = a5;
*(_QWORD *)(v6 + 688) = a6;
return a2 + 12;
}