//
// sub_100606F00 from 0x100606f00 to 0x100606f78 (120 bytes)
//
// 5 xrefs:
// > sub_10060A87C @ 0x10060a904
// > sub_10060B570 @ 0x10060b69c
// > ??> @ 0x100840840
// > ??> @ 0x1008408a8
// > ??> @ 0x100840910
//
// 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
//
_BYTE *__fastcall sub_100606F00(__int64 a1, __int64 a2)
{
__int64 v2; // x0
_BYTE *v3; // x19
_BYTE *v4; // x20
if ( !a2 )
return nullptr;
v2 = sub_1005F01D8(a2, 0);
v3 = (_BYTE *)v2;
if ( !v2 || (v4 = sub_1005AD588(v2)) == nullptr )
{
sub_1005E0E48(34, 120, 65, (__int64)"v3_utl.c", 170);
v4 = nullptr;
}
sub_1005AACD0(v3);
return v4;
}