//
// sub_14019F010 from 0x14019f010 to 0x14019f0d8 (200 bytes)
//
// 8 xrefs:
// > EditorSoundsLayer::dEditorSoundsLayer @ 0x14019c9ca
// > sub_14019CA40 @ 0x14019ca5c
// > sub_14019CD00 @ 0x14019cd22
// > GameSettingsLayer::dGameSettingsLayer @ 0x1402c260e
// > KeybindingsLayer::dKeybindingsLayer @ 0x1403d55e1
// > ??> @ 0x1408a0714
// > ??> @ 0x1408a0724
// > ??> @ 0x140919838
//
// 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:27:48 +0000
//
void __fastcall sub_14019F010(__int64 *a1)
{
__int64 v1; // rbx
__int64 i; // rsi
_QWORD *v4; // r8
v1 = *a1;
if ( *a1 )
{
for ( i = a1[1]; v1 != i; v1 += 88 )
{
sub_14003D310(v1 + 32);
sub_14003D310(v1);
}
v4 = (_QWORD *)*a1;
if ( (unsigned __int64)(88 * ((a1[2] - *a1) / 88)) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}