//
// sub_14038D0E0 from 0x14038d0e0 to 0x14038d15c (124 bytes)
//
// 22 xrefs:
// > GJGameLevel::shippedControls @ 0x1402665ad
// > GJGameLevel::shippedControls @ 0x1402665f8
// > sub_140388420 @ 0x140388462
// > sub_140388420 @ 0x140388491
// > sub_140388520 @ 0x140388533
// > GJKeybindManager::clearMovementOverride @ 0x140389842
// > GJKeybindManager::clearMovementOverride @ 0x1403899ef
// > sub_14038D0E0 @ 0x14038d11a
// > sub_14044A2C0 @ 0x14044a2f5
// > sub_14044A2C0 @ 0x14044a323
// > sub_14044A370 @ 0x14044a394
// > sub_14044A3E0 @ 0x14044a3fd
// > LevelControlConfig::decode @ 0x14044aa80
// > LevelControlConfig::decode @ 0x14044aaa9
// > LevelBindingsLayer::onPaste @ 0x14044cc8a
// > LevelBindingsLayer::onReset @ 0x14044ce5f
// > LevelBindingsLayer::onApplyGlobal @ 0x14044cf77
// > LevelBindingsLayer::onClear @ 0x14044d0bf
// > LevelBindingsLayer::onClose @ 0x14044d1e6
// > ??> @ 0x1408be0d4
// > ??> @ 0x1408be0e4
// > ??> @ 0x140922e38
//
// 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:10 +0000
//
void __fastcall sub_14038D0E0(__int64 a1, __int64 a2, __int64 a3)
{
void **v3; // rbx
void **v6; // rcx
void **v7; // rdi
v3 = (void **)a3;
if ( !*(_BYTE *)(a3 + 25) )
{
do
{
sub_14038D0E0(a1, a2, v3[2]);
v6 = v3;
v7 = v3;
v3 = (void **)*v3;
sub_1400BD560(v6 + 5, (__int64)(v6 + 5));
j_j_free(v7);
}
while ( !*((_BYTE *)v3 + 25) );
}
}