//
// sub_1005BFB2C from 0x1005bfb2c to 0x1005bfb6c (64 bytes)
//
// 3 xrefs:
// > sub_10051FFFC @ 0x1005203e8
// > sub_100625DAC @ 0x100625e0c
// > sub_1006281FC @ 0x100628350
//
// 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_1005BFB2C(__int64 a1, __int64 a2)
{
__int64 v4; // x0
_BYTE *v5; // x0
v4 = *(_QWORD *)(a1 + 24);
if ( v4 )
sub_1005AAC5C(v4);
v5 = sub_1005AAEE0(a2);
*(_QWORD *)(a1 + 24) = v5;
return v5 != nullptr;
}