//
// sub_1006509F4 from 0x1006509f4 to 0x100650a44 (80 bytes)
//
// 1 xrefs:
// > sub_100660744 @ 0x1006609a4
//
// 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:49 +0000
//
__int64 __fastcall sub_1006509F4(__int64 a1)
{
__int64 v1; // x19
int v2; // w0
v1 = *(_QWORD *)(a1 + 128);
v2 = sub_10073C528(
*(_QWORD *)(a1 + 224),
*(_QWORD *)(v1 + 320),
0x4000,
*(_QWORD *)(v1 + 304),
*(unsigned int *)(v1 + 292));
if ( v2 < 0 )
return 0;
*(_DWORD *)(v1 + 292) = v2;
*(_QWORD *)(v1 + 304) = *(_QWORD *)(v1 + 320);
return 1;
}