//
// sub_140449EC0 from 0x140449ec0 to 0x140449fdc (284 bytes)
//
// 3 xrefs:
// > LevelControlConfig::encode @ 0x14044a4f4
// > LevelControlConfig::encode @ 0x14044a990
// > ??> @ 0x140927398
//
// 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:32:24 +0000
//
// Hidden C++ exception states: #wind=1
void *__fastcall sub_140449EC0(__int64 a1, __int64 a2)
{
__int64 v2; // r12
char v4; // r15
unsigned int *v5; // r14
unsigned int v6; // ebx
unsigned int *v7; // rbx
unsigned int *v8; // rsi
unsigned int v9; // edi
__int64 v10; // rax
void *result; // rax
_QWORD v12[2]; // [rsp+20h] [rbp-68h] BYREF
_QWORD v13[2]; // [rsp+30h] [rbp-58h] BYREF
unsigned int *v14; // [rsp+40h] [rbp-48h] BYREF
unsigned int *v15; // [rsp+48h] [rbp-40h]
v2 = a2;
v4 = 1;
v5 = (unsigned int *)&unk_140703ED0;
do
{
v6 = *v5;
(*(void (__fastcall **)(__int64, unsigned int **, _QWORD))(*(_QWORD *)v2 + 8LL))(v2, &v14, *v5);
if ( v14 != v15 )
{
if ( !v4 )
{
v12[0] = byte_140752308;
v12[1] = 0;
fmt::BasicWriter::operator<<(a1, v12);
}
v4 = 0;
fmt::BasicWriter::operator<<(a1, v6);
v7 = v14;
v8 = v15;
if ( v14 != v15 )
{
do
{
v9 = *v7;
v13[0] = byte_14070ECF8;
v13[1] = 0;
fmt::BasicWriter::operator<<(a1, v13);
fmt::BasicWriter::operator<<(v10, v9);
++v7;
}
while ( v7 != v8 );
v2 = a2;
}
}
sub_140069730((__int64)&v14);
++v5;
result = &unk_140703EE8;
}
while ( v5 != (unsigned int *)&unk_140703EE8 );
return result;
}