//
// sub_1005B8980 from 0x1005b8980 to 0x1005b89a4 (36 bytes)
//
// 1 xrefs:
// > sub_1005C0F64 @ 0x1005c0fe0
//
// 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_1005B8980(__int64 a1)
{
__int64 (*v1)(void); // x1
if ( !*(_QWORD *)(*(_QWORD *)a1 + 232LL) )
return sub_1005BCF64();
v1 = *(__int64 (**)(void))(*(_QWORD *)a1 + 248LL);
if ( v1 )
return v1();
else
return 0;
}