//
// sub_100548064 from 0x100548064 to 0x100548180 (284 bytes)
//
// 1 xrefs:
// > sub_10051CF68 @ 0x10051d9c0
//
// 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_100548064(_QWORD *a1, _DWORD *a2)
{
__int64 (__fastcall *v4)(_QWORD *, _DWORD *, _QWORD); // x8
__int64 v5; // x20
__int64 v6; // x0
_BYTE v8[48]; // [xsp+8h] [xbp-58h] BYREF
*a2 = 115;
v4 = (__int64 (__fastcall *)(_QWORD *, _DWORD *, _QWORD))a1[86];
if ( !v4 || (v5 = v4(a1, a2, a1[85]), !(_DWORD)v5) )
{
*a2 = 80;
if ( a1[90] )
{
if ( a1[91] )
{
if ( a1[92] )
{
if ( a1[97] )
{
v5 = 2;
if ( (int)sub_1005E01C8(v8, 48) >= 1 )
{
a1[96] = sub_1005AB1B0(v8, 48, 0);
sub_10058A3A8((int)v8, 0x30u);
v6 = sub_100619054(a1[96], a1[90], a1[91], a1[97]);
a1[93] = v6;
if ( v6 )
return 0;
else
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
else
{
return 2;
}
}
return v5;
}