// // GameLevelManager::applyLevelControlsSection from 0x4c7544 to 0x4c766a (294 bytes) // // 1 xrefs: // > GameLevelManager::processOnDownloadLevelCompleted @ 0x4da244 // // 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:32 +0000 // unsigned __int8 *__fastcall GameLevelManager::applyLevelControlsSection(int a1, int a2, unsigned __int8 *a3) { int v4; // r6 unsigned __int8 *v6; // r10 int v7; // r3 unsigned __int8 *v8; // r7 size_t v9; // r6 char *v10; // r0 int v11; // r0 int v12; // r1 char *v13; // r2 unsigned __int8 *v15; // [sp+10h] [bp-18h] BYREF int v16; // [sp+18h] [bp-10h] BYREF int v17; // [sp+1Ch] [bp-Ch] char *v18; // [sp+20h] [bp-8h] v4 = *a3; if ( (v4 & 1) != 0 ) v6 = *((unsigned __int8 **)a3 + 2); else v6 = a3 + 1; if ( (v4 & 1) != 0 ) v7 = *((_DWORD *)a3 + 1); else v7 = v4 >> 1; if ( !v7 || (v8 = &v6[v7], std::__search( &v15, v6, &v6[v7], ";", (unsigned __int8 *)"", (int (__fastcall *)(int, _DWORD))std::char_traits::eq), v15 == v8) || (v9 = v15 - v6, v15 - v6 == -1) ) { std::string::basic_string(&v16, (int)a3); v9 = -1; } else { std::string::basic_string(&v16, a3, 0, v9); } if ( (v16 & 1) != 0 ) v10 = v18; else v10 = (char *)&v16 + 1; *(_DWORD *)(a2 + 1340) = atoi(v10); std::string::~string((int)&v16); if ( v9 == -1 ) { v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, &unk_B6B226, 0); } else { std::string::basic_string(&v16, a3, v9 + 1, 0xFFFFFFFF); } if ( (*(_BYTE *)(a2 + 1328) & 1) != 0 ) { **(_BYTE **)(a2 + 1336) = 0; *(_DWORD *)(a2 + 1332) = 0; } else { *(_BYTE *)(a2 + 1329) = 0; *(_BYTE *)(a2 + 1328) = 0; } std::string::reserve((int *)(a2 + 1328), 0); v11 = v16; v12 = v17; v13 = v18; v16 = 0; v17 = 0; v18 = nullptr; *(_DWORD *)(a2 + 1328) = v11; *(_DWORD *)(a2 + 1332) = v12; *(_DWORD *)(a2 + 1336) = v13; std::string::~string((int)&v16); return GJGameLevel::syncUneditedControls((GJGameLevel *)a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source