//
// GJGameLevel::dtExpandOrder from 0x4b29d8 to 0x4b2aa4 (204 bytes)
//
// 21 xrefs:
// > GJGameLevel::getSessionBest @ 0x4b2ac6
// > GJGameLevel::rollSession @ 0x4d731e
// > DeathTrackerPopup::parseGlobal @ 0x7719c6
// > DeathTrackerPopup::countsForScope @ 0x771aac
// > DeathTrackerPopup::countsForScope @ 0x771b1c
// > DeathTrackerPopup::countsForScope @ 0x771b9a
// > DeathTrackerPopup::countsForScope @ 0x771bdc
// > DeathTrackerPopup::buildAttemptLine @ 0x7725ea
// > DeathTrackerPopup::buildAttemptLine @ 0x77277a
// > DeathTrackerPopup::buildHistory @ 0x7732ac
// > DeathTrackerPopup::buildHistory @ 0x7732c2
// > DeathTrackerPopup::buildList @ 0x773bfa
// > DeathTrackerPopup::buildList @ 0x773c56
// > DeathTrackerPopup::buildList @ 0x7745e2
// > DeathTrackerPopup::buildList @ 0x77461a
// > DeathTrackerPopup::refreshView @ 0x7747da
// > DeathTrackerPopup::refreshView @ 0x774818
// > DeathTrackerPopup::refreshView @ 0x774870
// > DeathTrackerPopup::refreshView @ 0x774898
// > DeathTrackerPopup::parseSessions @ 0x7759b4
// > DeathTrackerPopup::init @ 0x775aa6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:04 +0000
//
void __fastcall GJGameLevel::dtExpandOrder(unsigned __int8 *a1, int a2)
{
int v2; // r8
unsigned int v5; // r8
unsigned int i; // r5
int v7; // r0
unsigned int v8; // r10
int v9; // r6
unsigned __int8 *v10; // r0
const char *v11; // r3
unsigned __int8 *v12; // r0
int v13; // r6
int j; // r5
int *v15; // r3
const char *v16; // [sp+4h] [bp-4h]
int v17; // [sp+8h] [bp+0h] BYREF
v2 = *a1;
if ( (v2 & 1) != 0 )
v5 = *((_DWORD *)a1 + 1);
else
v5 = v2 >> 1;
for ( i = 0; i < v5; i = v8 + 1 )
{
v7 = std::string::find(a1, 44, i);
if ( v7 == -1 )
v8 = v5;
else
v8 = v7;
v9 = *a1 & 1;
if ( (*a1 & 1) != 0 )
v10 = *((unsigned __int8 **)a1 + 2);
else
v10 = a1 + 1;
v11 = (const char *)memchr(&v10[i], 120, v8 - i);
if ( v9 )
v12 = *((unsigned __int8 **)a1 + 2);
else
v12 = a1 + 1;
v16 = v11;
v17 = atoi((const char *)&v12[i]);
if ( v16 )
v13 = atoi(v16 + 1);
else
v13 = 1;
for ( j = 0; j < v13; ++j )
{
v15 = *(int **)(a2 + 4);
if ( v15 == *(int **)(a2 + 8) )
{
std::vector::__push_back_slow_path(a2, &v17);
}
else
{
if ( v15 )
*v15 = v17;
*(_DWORD *)(a2 + 4) += 4;
}
}
}
}