//
// sub_10043DDA0 from 0x10043dda0 to 0x10043de38 (152 bytes)
//
// 2 xrefs:
// > sub_1004A5E18 @ 0x1004a5e54
// > sub_1004D32E0 @ 0x1004d3340
//
// 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_10043DDA0(__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_10045F068(v4, &v9);
if ( v9 == a2 )
(*(void (__fastcall **)(_QWORD *))(*v4 + 8LL))(v4);
v4 = v7;
}
while ( v7 != v2 );
}
return 0;
}