//
// sub_1005496C0 from 0x1005496c0 to 0x100549748 (136 bytes)
//
// 1 xrefs:
// > sub_10056DB30 @ 0x10056dd28
//
// 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_1005496C0(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v6; // x19
__int64 v7; // x8
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x20
v6 = *a1;
v7 = *(_QWORD *)(*a1 + 112);
v8 = *a1;
if ( v7 )
{
sub_10056FCA8(v6, 3, 2);
v8 = *a1;
}
v9 = sub_100549748(v8, a2, a3);
v10 = v9;
if ( v9 )
++*(_QWORD *)(v9 + 16);
if ( *(_QWORD *)(v6 + 112) )
sub_10056FCF4(v6, 3);
return v10;
}