//
// sub_100563F08 from 0x100563f08 to 0x100563fa0 (152 bytes)
//
// 2 xrefs:
// > sub_1005CBF80 @ 0x1005cbfbc
// > sub_1005F9448 @ 0x1005f94a8
//
// 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:08:09 +0000
//
__int64 __fastcall sub_100563F08(__int64 a1, __int64 a2)
{
_QWORD *v2; // x21
__int64 v3; // x8
_QWORD *v4; // x20
__int64 v6; // x8
_QWORD *v7; // x22
__int64 v9; // [xsp+8h] [xbp-28h] BYREF
v2 = (_QWORD *)(a1 + 496);
v3 = *(_QWORD *)(a1 + 872);
if ( v3 )
v4 = (_QWORD *)(v3 - 376);
else
v4 = nullptr;
if ( v4 != v2 )
{
do
{
v6 = v4[47];
if ( v6 )
v7 = (_QWORD *)(v6 - 376);
else
v7 = nullptr;
sub_1005851D0(v4, &v9);
if ( v9 == a2 )
(*(void (__fastcall **)(_QWORD *))(*v4 + 8LL))(v4);
v4 = v7;
}
while ( v7 != v2 );
}
return 0;
}