//
// sub_18006A020 from 0x18006a020 to 0x18006a086 (102 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801acc08
// > ??> @ 0x1801f95dc
//
// 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_18006A020(__int64 *a1, int a2, _DWORD *a3, __int64 a4)
{
__int64 v5; // r9
int v7; // r9d
v5 = *a1;
if ( a2 )
{
if ( a2 != 1 )
return 31;
*a3 = *(_DWORD *)(v5 + 34008);
if ( a4 )
{
v7 = *(_DWORD *)(v5 + 34008);
LABEL_8:
sub_1800B7CA0(a4, 32, "%d", v7);
}
}
else
{
*a3 = *(_DWORD *)(v5 + 34004);
if ( a4 )
{
v7 = *(_DWORD *)(v5 + 34004);
goto LABEL_8;
}
}
return 0;
}