//
// sub_10043EBB4 from 0x10043ebb4 to 0x10043ec48 (148 bytes)
//
// 3 xrefs:
// > sub_100442E2C @ 0x1004430d8
// > sub_1004526E8 @ 0x100452758
// > sub_1004CEE58 @ 0x1004cf414
//
// 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_10043EBB4(__int64 a1)
{
_QWORD **v2; // x21
_QWORD *v3; // x8
_QWORD *v4; // x10
__int64 v5; // x20
__int64 result; // x0
sub_100442B5C(a1, 21);
v2 = (_QWORD **)(a1 + 68040);
while ( 1 )
{
v3 = *v2;
if ( *v2 == v2 )
break;
v4 = (_QWORD *)v3[1];
v5 = v3[2];
*v4 = *v3;
*(_QWORD *)(*v3 + 8LL) = v4;
*v3 = v3;
v3[1] = v3;
sub_100442B7C(a1, 21);
result = sub_1004A5B34(v5, 0);
if ( (_DWORD)result )
return result;
sub_100442B5C(a1, 21);
}
sub_100442B7C(a1, 21);
return 0;
}