// // LevelControlConfig::decode from 0x799b54 to 0x79a080 (1324 bytes) // // 1 xrefs: // > LevelControlConfig::createFromB64 @ 0x79a0ae // // 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:59:48 +0000 // int __fastcall LevelControlConfig::decode(int *a1, unsigned __int8 *a2) { int v4; // r2 int v5; // r3 unsigned __int8 *v6; // r5 size_t v7; // r8 char *v8; // r0 int v9; // r6 char *v10; // r0 unsigned __int8 *v11; // r6 unsigned int v12; // r7 const char *v13; // r0 int v14; // r9 int *v15; // r0 const char *v16; // r0 GJKeybindManager *v17; // r11 int v18; // r1 _BOOL4 isControllerChord; // r0 _DWORD *v20; // r3 int *v21; // r0 _DWORD *v22; // r1 unsigned int i; // r7 int v24; // r3 int v25; // r3 int v26; // r3 int v27; // r3 int v28; // r3 int v29; // r3 float v30; // s0 int v31; // r3 int v32; // s0 float v33; // s0 int v34; // r3 int v35; // r3 int v36; // r3 int v37; // r3 int v38; // r0 int v39; // r3 int v40; // r0 unsigned int v41; // r1 unsigned int v42; // r2 char *v43; // r0 _DWORD *v45; // [sp+8h] [bp-BCh] unsigned __int8 *v46; // [sp+10h] [bp-B4h] char *v47; // [sp+14h] [bp-B0h] unsigned __int8 *v48; // [sp+3Ch] [bp-88h] BYREF unsigned __int8 *v49; // [sp+40h] [bp-84h] int v50; // [sp+44h] [bp-80h] int v51[2]; // [sp+48h] [bp-7Ch] BYREF char *v52; // [sp+50h] [bp-74h] int v53; // [sp+54h] [bp-70h] BYREF int v54; // [sp+58h] [bp-6Ch] int v55; // [sp+5Ch] [bp-68h] int *v56[3]; // [sp+60h] [bp-64h] BYREF int v57; // [sp+6Ch] [bp-58h] BYREF char *v58; // [sp+70h] [bp-54h] int v59; // [sp+74h] [bp-50h] int *v60; // [sp+80h] [bp-44h] BYREF _DWORD *v61; // [sp+84h] [bp-40h] int v62; // [sp+88h] [bp-3Ch] float v63; // [sp+8Ch] [bp-38h] int v64; // [sp+90h] [bp-34h] float v65; // [sp+94h] [bp-30h] bool v66; // [sp+98h] [bp-2Ch] bool v67; // [sp+99h] [bp-2Bh] _BYTE v68[12]; // [sp+9Ch] [bp-28h] BYREF _BYTE v69[8]; // [sp+A8h] [bp-1Ch] BYREF int v70; // [sp+B0h] [bp-14h] int v71; // [sp+B4h] [bp-10h] bool v72; // [sp+B8h] [bp-Ch] bool v73; // [sp+B9h] [bp-Bh] a1[13] = 0; a1[14] = 0; a1[15] = 0; v45 = a1 + 17; KeybindSet::clear((KeybindSet *)(a1 + 17)); KeybindSet::clear((KeybindSet *)(a1 + 22)); v4 = a1[27]; while ( 1 ) { v5 = a1[28]; if ( v4 == v5 ) break; a1[28] = v5 - 60; } a1[16] = 0; v48 = nullptr; v49 = nullptr; v50 = 0; sub_798A40(a2, "|", (int *)&v48); v6 = v48; v46 = v49; while ( v6 != v46 ) { v7 = std::string::find(v6, 58, 0); if ( v7 == -1 ) goto LABEL_59; std::string::basic_string(v51, v6, 0, v7); if ( (v51[0] & 1) != 0 ) v8 = v52; else v8 = (char *)v51 + 1; v9 = atoi(v8); std::string::~string((int)v51); std::string::basic_string(v51, v6, v7 + 1, 0xFFFFFFFF); if ( v9 == 1 ) { if ( (v51[0] & 1) != 0 ) v10 = v52; else v10 = (char *)v51 + 1; a1[13] = atoi(v10); } else { if ( v9 == 2 || v9 == 5 ) { v57 = 0; v58 = nullptr; v59 = 0; sub_798A40((unsigned __int8 *)v51, ";", &v57); v11 = (unsigned __int8 *)v57; v47 = v58; while ( v11 != (unsigned __int8 *)v47 ) { v60 = nullptr; v61 = nullptr; v62 = 0; sub_798A40(v11, ",", (int *)&v60); if ( (unsigned int)(-1431655765 * (v61 - v60)) > 1 ) { v12 = 1; if ( (*(_BYTE *)v60 & 1) != 0 ) v13 = (const char *)v60[2]; else v13 = (char *)v60 + 1; v14 = atoi(v13); while ( v12 < -1431655765 * (v61 - v60) ) { v15 = &v60[3 * v12]; if ( (*(_BYTE *)v15 & 1) != 0 ) v16 = (const char *)v15[2]; else v16 = (char *)v15 + 1; v17 = (GJKeybindManager *)atoi(v16); isControllerChord = GJKeybindManager::isControllerChord(v17, v18); v20 = a1 + 22; if ( !isControllerChord ) v20 = v45; (*(void (__fastcall **)(_DWORD *, GJKeybindManager *, int))(*v20 + 16))(v20, v17, v14); ++v12; } } std::__vector_base::~__vector_base((int)&v60); v11 += 12; } v21 = &v57; } else { if ( v9 != 3 ) { if ( v9 == 4 ) { if ( (v51[0] & 1) != 0 ) v43 = v52; else v43 = (char *)v51 + 1; a1[16] = atoi(v43); } goto LABEL_58; } v53 = 0; v54 = 0; v55 = 0; sub_798A40((unsigned __int8 *)v51, ";", &v53); if ( v53 != v54 ) { sub_798FF8(&v60, (unsigned __int8 *)v53); sub_798C4C((int)&v60, "cw"); a1[14] = 0; sub_798C4C((int)&v60, "ch"); v22 = v61; a1[15] = 0; std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)&v60, v22); } for ( i = 1; i < -1431655765 * ((v54 - v53) >> 2); ++i ) { sub_798FF8(v56, (unsigned __int8 *)(v53 + 12 * i)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68); UIButtonConfig::reset((UIButtonConfig *)&v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, (const cocos2d::CCPoint *)&unk_D2E5B0); v70 = 0; v71 = 0; v72 = 0; v73 = 0; v70 = sub_798CCC((int)v56, "ax", 0, v24); v71 = sub_798CCC((int)v56, "ay", 0, v25); v72 = sub_798CCC((int)v56, "rx", 0, v26) != 0; v73 = sub_798CCC((int)v56, "ry", 0, v27) != 0; sub_798C4C((int)v56, "ox"); sub_798C4C((int)v56, "oy"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v57, 0.0, 0.0); cocos2d::CCPoint::operator=(v69, &v57); UIButtonConfig::reset((UIButtonConfig *)&v60); v60 = (int *)sub_798CCC((int)v56, "w", (int)v60, v28); v61 = (_DWORD *)sub_798CCC((int)v56, "h", (int)v61, v29); v30 = v63; sub_798C4C((int)v56, (char *)&a1i2r3e45s789g[8]); v63 = v30; v64 = sub_798CCC((int)v56, "o", v64, v31); v32 = v62; sub_798C4C((int)v56, "dz"); v62 = v32; v33 = v65; sub_798C4C((int)v56, "rd"); v65 = v33; v66 = sub_798CCC((int)v56, "mb", 0, v34) != 0; v67 = sub_798CCC((int)v56, "sr", 0, v35) != 0; v68[10] = sub_798CCC((int)v56, "ns", 0, v36) != 0; v38 = sub_798CCC((int)v56, "ob", 0, v37); v39 = a1[29]; v68[8] = v38 != 0; v40 = a1[28]; if ( v40 == v39 ) { v41 = 71582788; v42 = -286331153 * ((v40 - a1[27]) >> 2); if ( v42 + 1 > 0x4444444 ) sub_38B4A0(); if ( v42 <= 0x2222221 ) { v41 = -572662306 * ((v40 - a1[27]) >> 2); if ( 2 * v42 < v42 + 1 ) v41 = v42 + 1; } std::__split_buffer::__split_buffer(&v57, v41, v42, (int)(a1 + 29)); if ( v59 ) LevelTouchSlot::LevelTouchSlot(v59, (int)&v60); v59 += 60; std::vector::__swap_out_circular_buffer(a1 + 27, &v57); std::__split_buffer::~__split_buffer((int)&v57); } else { if ( v40 ) LevelTouchSlot::LevelTouchSlot(v40, (int)&v60); a1[28] += 60; } std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::destroy( (int)v56, v56[1]); } v21 = &v53; } std::__vector_base::~__vector_base((int)v21); } LABEL_58: std::string::~string((int)v51); LABEL_59: v6 += 12; } std::__vector_base::~__vector_base((int)&v48); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source