// // GJGameLevel::dtParseGlobalBlob from 0x8511b4 to 0x8513e8 (564 bytes) // // 3 xrefs: // > PlayLayer::setupHasCompleted @ 0x707950 // > LevelEditorLayer::rebuildDeathOverlay @ 0x797d88 // > @ 0x7dc08 // // This function is hookable on this platform (idp: arm, 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 12:55:26 +0000 // bool __fastcall GJGameLevel::dtParseGlobalBlob(__int64 a1, __int64 a2, __int64 *a3) { size_t v6; // x20 int v7; // w5 unsigned __int64 v8; // x0 unsigned __int8 v9; // w4 int v10; // w1 unsigned __int64 v11; // x1 _BYTE *v12; // x2 int v13; // w2 __int64 v14; // x4 __int64 v15; // x3 int v16; // w25 __int64 v17; // x1 _BOOL4 v18; // w19 char v20; // w0 __int64 v21; // x0 unsigned __int64 v22; // x1 __int64 v23; // [xsp+50h] [xbp+50h] BYREF unsigned __int64 v24; // [xsp+58h] [xbp+58h] void *v25; // [xsp+60h] [xbp+60h] v6 = std::string::find(a2, 0x7Cu, 0); if ( v6 == -1 ) { v20 = *(_BYTE *)a2; v23 = 0; v24 = 0; v25 = nullptr; if ( (v20 & 1) != 0 ) { std::string::__init(&v23, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8)); } else { v21 = *(_QWORD *)a2; v22 = *(_QWORD *)(a2 + 8); v25 = *(void **)(a2 + 16); v23 = v21; v24 = v22; } } else { std::string::basic_string(&v23, a2, 0, v6); } v7 = (unsigned __int8)v23; v8 = 0; v9 = v23 & 1; v10 = v23 & 1; if ( (v23 & 1) == 0 ) goto LABEL_8; while ( v8 < v24 ) { v11 = v8 + 1; v12 = (char *)v25 + v8; if ( *((_BYTE *)v25 + v8) != 59 ) { LABEL_6: v8 = v11; goto LABEL_7; } while ( 1 ) { *v12 = 44; v8 = v11; v7 = (unsigned __int8)v23; v9 = v23 & 1; LABEL_7: v10 = v9; if ( v9 ) break; LABEL_8: v13 = v7 >> 1; if ( v8 >= v7 >> 1 ) { v14 = *a3; v15 = a3[1]; if ( *a3 != v15 ) goto LABEL_12; goto LABEL_22; } v11 = v8 + 1; v12 = (char *)&v23 + v8 + 1; if ( *((_BYTE *)&v23 + v8 + 1) != 59 ) goto LABEL_6; } } v14 = *a3; v10 = 1; v15 = a3[1]; if ( *a3 == v15 ) { LABEL_13: v16 = 1; if ( !v24 ) goto LABEL_14; LABEL_23: GJGameLevel::scoreStringToVector(a1, (char *)&v23, (__int64)a3); v16 = v23 & 1; if ( v6 != -1 ) goto LABEL_15; LABEL_24: v18 = 1; goto LABEL_18; } LABEL_12: v13 = v7 >> 1; a3[1] = v15 + 4 * ~((unsigned __int64)(v15 - 4 - v14) >> 2); if ( v10 ) goto LABEL_13; LABEL_22: v16 = 0; if ( v13 ) goto LABEL_23; LABEL_14: if ( v6 == -1 ) goto LABEL_24; LABEL_15: v17 = a2 + 1; if ( (*(_BYTE *)a2 & 1) != 0 ) v17 = *(_QWORD *)(a2 + 16); v18 = atoi((const char *)(v17 + v6 + 1)) > 0; LABEL_18: if ( v16 ) operator delete(v25); return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source