//
// sub_1004A8E7C from 0x1004a8e7c to 0x1004a8ecc (80 bytes)
//
// 3 xrefs:
// > sub_100437220 @ 0x100437220
// > sub_1004AAC70 @ 0x1004aaca8
// > sub_1004AAC70 @ 0x1004aacc8
//
// 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_1004A8E7C(int a1)
{
_QWORD *v1; // x8
v1 = off_1008524C8;
if ( a1 )
{
sub_1004B5C70(*((_QWORD *)off_1008524C8 + 37));
*((_DWORD *)off_1008524C8 + 5) = 1;
}
else
{
*((_DWORD *)off_1008524C8 + 5) = 0;
sub_1004B5CA0(v1[37]);
}
return 0;
}