//
// sub_1005F8DB0 from 0x1005f8db0 to 0x1005f8dc8 (24 bytes)
//
// 12 xrefs:
// > sub_1005F5624 @ 0x1005f570c
// > sub_1005F5BBC @ 0x1005f5cb0
// > sub_1005F5BBC @ 0x1005f5e4c
// > sub_1005F623C @ 0x1005f631c
// > sub_1005F623C @ 0x1005f6460
// > sub_1005F623C @ 0x1005f6570
// > sub_1005F6E94 @ 0x1005f7010
// > sub_1005F6E94 @ 0x1005f7250
// > sub_1005F6E94 @ 0x1005f7284
// > sub_1005F6E94 @ 0x1005f740c
// > sub_1005F6E94 @ 0x1005f745c
// > sub_1005F6E94 @ 0x1005f773c
//
// 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
//
_QWORD *__fastcall sub_1005F8DB0(_QWORD *result, __int64 a2)
{
if ( (*(_BYTE *)(a2 + 1) & 4) == 0 )
return (_QWORD *)(*result + *(_QWORD *)(a2 + 16));
return result;
}