//
// sub_100510FAC from 0x100510fac to 0x100511024 (120 bytes)
//
// 0 xrefs:
//
// 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_100510FAC(__int64 a1, int a2, int a3)
{
__int64 result; // x0
int *v6; // x1
int *v7; // [xsp+8h] [xbp-18h] BYREF
if ( a2 )
return 0;
result = sub_10043E710(*(_QWORD *)(a1 + 168), &v7, 24, 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v7 = 9;
v6 = v7;
*((_QWORD *)v7 + 1) = a1;
v6[4] = a3;
result = sub_10043E7B4(*(_QWORD *)(a1 + 168), (__int64)v6, 1);
if ( !(_DWORD)result )
*(_DWORD *)(a1 + 552) = a3;
}
return result;
}