//
// sub_10056C0CC from 0x10056c0cc to 0x10056c170 (164 bytes)
//
// 7 xrefs:
// > sub_100549748 @ 0x100549814
// > sub_100549E58 @ 0x100549fd8
// > sub_10056CEC4 @ 0x10056d1a8
// > sub_10056CEC4 @ 0x10056d2d4
// > sub_10056EF88 @ 0x10056f008
// > sub_1005811A4 @ 0x100581378
// > sub_1005813F0 @ 0x100581488
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_10056C0CC(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // x22
_QWORD *v7; // x23
v6 = *(_QWORD **)(*(_QWORD *)a1
+ 8 * (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(a1 + 8))(a2, a3, *(int *)(a1 + 32)));
v7 = (_QWORD *)*v6;
if ( !*v6 )
return 1;
while ( !(*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64, __int64))(a1 + 16))(
*(_QWORD *)(*v7 + 8LL),
*(_QWORD *)(*v7 + 16LL),
a2,
a3) )
{
v7 = (_QWORD *)v7[2];
if ( !v7 )
return 1;
}
sub_10056BBA0((__int64)v6, v7, a1);
--*(_QWORD *)(a1 + 40);
return 0;
}