//
// sub_1005800B8 from 0x1005800b8 to 0x10058010c (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009ab1c0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:08:29 +0000
//
__int64 __fastcall sub_1005800B8(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x9
__int64 v3; // x10
v1 = a1 + 448;
if ( *(_QWORD *)(a1 + 448) == a1 + 448 && *(_QWORD *)(a1 + 456) == v1 )
{
v2 = *(_QWORD *)(a1 + 8) + 69896LL;
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 69904LL);
*(_QWORD *)(a1 + 448) = v2;
*(_QWORD *)(a1 + 456) = v3;
*(_QWORD *)(v2 + 8) = v1;
**(_QWORD **)(a1 + 456) = v1;
*(_QWORD *)(a1 + 464) = a1;
}
*(_DWORD *)(a1 + 72) |= 0x80u;
return 0;
}