//
// sub_14038CE70 from 0x14038ce70 to 0x14038cee0 (112 bytes)
//
// 11 xrefs:
// > sub_140388420 @ 0x1403884ba
// > sub_140388420 @ 0x1403884cc
// > sub_140388500 @ 0x14038851b
// > GJKeybindManager::buildBindsBlob @ 0x14038b802
// > GJKeybindManager::applyNewDefaults @ 0x14038bf70
// > GJKeybindManager::applyNewDefaults @ 0x14038bf83
// > int `std::_Locinfo::_Locinfo @ 0x1406ad12b
// > int `std::_Locinfo::_Locinfo @ 0x1406ad14b
// > ??> @ 0x1408be000
// > ??> @ 0x1408be010
// > ??> @ 0x140922db4
//
// 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 11:31:09 +0000
//
void __fastcall sub_14038CE70(void **a1)
{
void **v1; // rbx
void **v3; // rbx
void **v4; // rdi
v1 = (void **)*a1;
**((_QWORD **)*a1 + 1) = 0;
v3 = (void **)*v1;
if ( v3 )
{
do
{
v4 = (void **)*v3;
sub_1400BD560(v3 + 3, (__int64)(v3 + 3));
j_j_free(v3);
v3 = v4;
}
while ( v4 );
}
j_j_free(*a1);
}