//
// sub_100457E14 from 0x100457e14 to 0x100457e80 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008277f8
//
// 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_100457E14(_QWORD *a1, _DWORD *a2)
{
_QWORD *v2; // x8
__int64 v3; // x9
__int64 result; // x0
if ( !a2 )
return 31;
v2 = (_QWORD *)a1[92];
if ( v2 )
goto LABEL_6;
v2 = (_QWORD *)a1[91];
if ( v2 )
goto LABEL_6;
if ( a1[82] )
{
v2 = a1 + 14;
LABEL_6:
v3 = 600;
if ( *((_DWORD *)v2 + 152) > *((_DWORD *)v2 + 153) )
v3 = 604;
*a2 = *(_DWORD *)((char *)v2 + v3);
return 0;
}
result = sub_100456488((__int64)a1, a2);
if ( !(_DWORD)result )
return 0;
return result;
}