//
// sub_1005F21F0 from 0x1005f21f0 to 0x1005f22a7 (183 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:34:16 +0000
//
_QWORD *__fastcall sub_1005F21F0(_QWORD *a1, __int64 a2)
{
_QWORD v3[2]; // [rsp+0h] [rbp-240h] BYREF
void *v4; // [rsp+10h] [rbp-230h]
_BYTE v5[504]; // [rsp+18h] [rbp-228h] BYREF
__int16 v6; // [rsp+210h] [rbp-30h]
char v7; // [rsp+212h] [rbp-2Eh]
void *__p; // [rsp+220h] [rbp-20h]
v3[0] = 0;
v3[1] = 500;
v4 = v5;
v6 = 11266;
v7 = 0;
sub_1005C37E0((__int64)v3, a2);
sub_1005BED90(a1, (__int64)v3);
if ( (v6 & 1) != 0 )
operator delete(__p);
if ( v4 != v5 && v4 != nullptr )
operator delete[](v4);
return a1;
}