//
// sub_1001B2548 from 0x1001b2548 to 0x1001b25e4 (156 bytes)
//
// 1 xrefs:
// > sub_1001B20F0 @ 0x1001b2170
//
// 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:00:08 +0000
//
__int64 __fastcall sub_1001B2548(__int64 a1, unsigned int *a2)
{
__int64 v4; // x8
__int64 v5; // x8
__int64 v6; // x21
_QWORD *v7; // x0
__int64 v8; // x0
__int64 result; // x0
v4 = *(_QWORD *)(a1 + 760);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
if ( v5 )
{
do
{
v6 = *(_QWORD *)(v5 + 288);
v7 = *(_QWORD **)(v5 + 264);
v7[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v7 + 1160LL))(v7, 0);
v5 = v6;
}
while ( v6 );
}
}
v8 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a2 + 64LL))(a2);
result = sub_1004C4638(a1, *(unsigned int *)(a1 + 1008), v8, a2[124]);
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 1312LL))(result);
return result;
}