//
// sub_100457B78 from 0x100457b78 to 0x100457c64 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008277d8
//
// 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_100457B78(__int64 a1, __int64 a2)
{
__int64 v4; // x20
__int64 result; // x0
__int64 v6; // x9
int v7; // w9
__int64 v8; // x0
__int64 v9; // x1
__int64 v10; // x2
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 24) + 96LL);
result = sub_10045641C(a1, a2);
if ( !(_DWORD)result )
{
v6 = *(_QWORD *)(a1 + 40);
if ( v6 )
{
v7 = (*(_BYTE *)(a1 + 56) & 1) != 0 || !*(_DWORD *)(a1 + 84)
? *(_DWORD *)(v6 + 68)
: *(_DWORD *)(a1 + 92) + *(_DWORD *)(a1 + 88);
if ( (unsigned int)(v7 - 1) < HIDWORD(a2) )
return 32;
}
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 24) + 74LL) & 4) != 0 && a2 )
*(_DWORD *)(a1 + 60) |= 0x20000u;
v8 = *(_QWORD *)(a1 + 736);
if ( v8 )
goto LABEL_13;
v8 = *(_QWORD *)(a1 + 48);
if ( !v8 )
{
if ( *(_QWORD *)(a1 + 656) )
{
v8 = a1 + 112;
LABEL_13:
v9 = a2;
v10 = 0;
return sub_1004A3E48(v8, v9, v10, 1);
}
v8 = *(_QWORD *)(a1 + 728);
if ( !v8 )
v8 = v4;
}
v9 = a2;
v10 = 1;
return sub_1004A3E48(v8, v9, v10, 1);
}
return result;
}