//
// sub_100437E74 from 0x100437e74 to 0x100437f80 (268 bytes)
//
// 1 xrefs:
// > ??> @ 0x10084ccf8
//
// 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_100437E74(__int64 a1, int a2, __int64 a3)
{
__int64 v3; // x21
__int64 v4; // x22
__int64 v5; // x19
__int64 v6; // x20
uint8x8_t v7; // d0
unsigned int v9; // [xsp+Ch] [xbp-34h] BYREF
if ( !a2 )
{
v3 = a3;
v4 = *(_QWORD *)(a1 + 8);
v5 = *((_QWORD *)off_1008524C8 + *(int *)(a1 + 48) + 46);
sub_100442DB4(v5);
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v4 + 24LL))(v4) )
v6 = v4;
else
v6 = 0;
sub_100438614(v4);
if ( v3 )
{
sub_1004CF868(v5, &v9, 0);
v7 = (uint8x8_t)vcnt_s8((int8x8_t)v9);
v7.i16[0] = vaddlv_u8(v7);
if ( v7.i32[0] != 1 )
{
v3 = 0;
if ( !v6 )
goto LABEL_11;
goto LABEL_10;
}
v3 = sub_1004381E8(v4, v3 + 2, 2);
}
if ( !v6 )
{
LABEL_11:
sub_100442DF0(v5);
return v3;
}
LABEL_10:
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 32LL))(v6);
goto LABEL_11;
}
return 31;
}