//
// sub_10043EF2C from 0x10043ef2c to 0x10043eff0 (196 bytes)
//
// 1 xrefs:
// > sub_10043FA1C @ 0x10043ff84
//
// 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_10043EF2C(__int64 a1, __int64 a2, _DWORD *a3)
{
__int64 v4; // x0
__int64 v5; // x21
__int64 v6; // x20
char **v7; // x23
int v8; // w8
__int64 v9; // x25
char **v10; // x26
__int64 result; // x0
v4 = sub_1004C70EC(a2, 46);
if ( !v4 )
return 18;
v5 = 0;
v6 = v4 + 1;
v7 = off_100826F58;
while ( 2 )
{
v8 = *((_DWORD *)&unk_100826F50 + 12 * v5 + 1);
if ( v8 <= 1 )
v9 = 1;
else
v9 = (unsigned int)v8;
v10 = v7;
do
{
result = sub_1004C7018(v6, *v10);
if ( !(_DWORD)result )
{
*a3 = *((_DWORD *)&unk_100826F50 + 12 * (unsigned int)v5);
return result;
}
++v10;
--v9;
}
while ( v9 );
++v5;
v7 += 6;
if ( v5 != 18 )
continue;
break;
}
return 0;
}