//
// sub_1005BFA98 from 0x1005bfa98 to 0x1005bfadc (68 bytes)
//
// 4 xrefs:
// > sub_1005234DC @ 0x100524210
// > sub_1005C1D9C @ 0x1005c1e84
// > sub_100625C48 @ 0x100625cc8
// > sub_100629118 @ 0x100629280
//
// 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
//
bool __fastcall sub_1005BFA98(__int64 a1, _QWORD *a2)
{
void *v4; // x0
_QWORD *v5; // x0
v4 = *(void **)(a1 + 16);
if ( v4 )
sub_1005B7234(v4);
v5 = sub_1005B8278(a2, *(__int64 **)(a1 + 8));
*(_QWORD *)(a1 + 16) = v5;
return v5 != nullptr;
}