//
// sub_100510788 from 0x100510788 to 0x1005107f4 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x100858820
//
// 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_100510788(__int64 *a1, int a2, _DWORD *a3, char *a4, int a5, int a6, int a7, int a8)
{
__int64 v8; // x8
_DWORD *v9; // x8
v8 = *a1;
if ( a2 == 1 )
{
*a3 = *(_DWORD *)(v8 + 592);
if ( a4 )
{
v9 = (_DWORD *)(v8 + 592);
goto LABEL_7;
}
}
else if ( !a2 )
{
*a3 = *(_DWORD *)(v8 + 624);
if ( a4 )
{
v9 = (_DWORD *)(v8 + 624);
LABEL_7:
sub_1004C7414(a4, 0x20u, "%d", (int)a4, a5, a6, a7, a8, *v9);
}
}
return 0;
}