// // GJBaseGameLayer::updateSpecialLabels from 0x9dd0d0 to 0x9dd454 (900 bytes) // // 3 xrefs: // > GJBaseGameLayer::resetLevelVariables @ 0x9e7288 // > GJBaseGameLayer::update @ 0x9ee544 // > @ 0xb14a8 // // 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:58:51 +0000 // __int64 __fastcall GJBaseGameLayer::updateSpecialLabels(GJBaseGameLayer *this) { _QWORD *v1; // x27 GameToolbox *v3; // x0 char *v4; // x21 char *v5; // x0 int v6; // w20 __int64 v7; // x2 size_t v8; // x2 size_t v9; // x3 char v10; // w0 size_t v11; // x3 void *v12; // x0 __int64 **v13; // x0 __int64 *v14; // x24 __int64 *i; // x19 __int64 v16; // x22 __int64 **v17; // x0 __int64 *v18; // x24 __int64 *j; // x19 __int64 v20; // x22 unsigned __int64 v22; // x0 unsigned __int64 v23; // x0 unsigned __int8 v24; // w2 int v25; // [xsp+64h] [xbp+64h] BYREF __int64 v26; // [xsp+68h] [xbp+68h] BYREF size_t v27; // [xsp+70h] [xbp+70h] void *v28; // [xsp+78h] [xbp+78h] __int64 v29; // [xsp+80h] [xbp+80h] BYREF size_t v30; // [xsp+88h] [xbp+88h] void *v31; // [xsp+90h] [xbp+90h] v1 = (_QWORD *)((char *)this + 4000); GJBaseGameLayer::updatePlatformerTime(this); v25 = -2; if ( !std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v1, &v25) ) goto LABEL_25; v3 = (GameToolbox *)*((unsigned int *)this + 479); if ( (_DWORD)v3 != *((_DWORD *)this + 3335) ) { *((_DWORD *)this + 3335) = (_DWORD)v3; GameToolbox::pointsToString(v3, (unsigned __int64 *)&v29); if ( (*((_BYTE *)this + 13344) & 1) == 0 ) goto LABEL_11; **((_BYTE **)this + 1670) = 0; *((_QWORD *)this + 1669) = 0; if ( (*((_BYTE *)this + 13344) & 1) != 0 ) { v4 = *((char **)this + 1670); v5 = (char *)this + 13345; v6 = 1; LABEL_6: v7 = *((_QWORD *)this + 1669); LABEL_7: v8 = v7 + 1; if ( v8 ) memcpy(v5, v4, v8); if ( v6 ) operator delete(v4); goto LABEL_11; } v22 = *((_BYTE *)this + 13344) >> 1; if ( v22 <= 0x16 || (v23 = (v22 + 16) & 0xFFFFFFFFFFFFFFF0LL, v23 == 23) ) { LABEL_11: *((_QWORD *)this + 1670) = v31; v9 = v30; *((_QWORD *)this + 1668) = v29; *((_QWORD *)this + 1669) = v9; goto LABEL_12; } if ( v23 - 1 > 0x16 ) { v5 = (char *)operator new(v23); v24 = *((_BYTE *)this + 13344); v6 = v24 & 1; if ( (v24 & 1) == 0 ) { LABEL_46: v4 = (char *)this + 13345; v7 = v24 >> 1; goto LABEL_7; } } else { v5 = (char *)operator new(v23); v24 = *((_BYTE *)this + 13344); v6 = v24 & 1; if ( (v24 & 1) == 0 ) goto LABEL_46; } v4 = *((char **)this + 1670); goto LABEL_6; } LABEL_12: v10 = *((_BYTE *)this + 13344); v26 = 0; v27 = 0; v28 = nullptr; if ( (v10 & 1) != 0 ) { std::string::__init(&v26, *((void **)this + 1670), *((_QWORD *)this + 1669)); } else { v11 = *((_QWORD *)this + 1669); v12 = *((void **)this + 1670); v26 = *((_QWORD *)this + 1668); v27 = v11; v28 = v12; } v25 = -2; v13 = (__int64 **)std::unordered_map>::operator[]((unsigned __int64)v1, &v25); v14 = v13[1]; for ( i = *v13; v14 != i; ++i ) { while ( 1 ) { v16 = *i; if ( *(_BYTE *)(*i + 773) ) { v29 = 0; v30 = 0; v31 = nullptr; if ( (v26 & 1) != 0 ) { std::string::__init(&v29, v28, v27); } else { v31 = v28; v29 = v26; v30 = v27; } LabelGameObject::updateLabel(v16, (char *)&v29); if ( (v29 & 1) != 0 ) break; } if ( v14 == ++i ) goto LABEL_23; } operator delete(v31); } LABEL_23: if ( (v26 & 1) != 0 ) operator delete(v28); LABEL_25: v25 = -3; if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v1, &v25) ) { GameToolbox::intToString((unsigned __int64 *)&v26, (GameToolbox *)*((unsigned int *)this + 3053)); v25 = -3; v17 = (__int64 **)std::unordered_map>::operator[]((unsigned __int64)v1, &v25); v18 = v17[1]; for ( j = *v17; v18 != j; ++j ) { while ( 1 ) { v20 = *j; if ( *(_BYTE *)(*j + 773) ) { v29 = 0; v30 = 0; v31 = nullptr; if ( (v26 & 1) != 0 ) { std::string::__init(&v29, v28, v27); } else { v31 = v28; v29 = v26; v30 = v27; } LabelGameObject::updateLabel(v20, (char *)&v29); if ( (v29 & 1) != 0 ) break; } if ( v18 == ++j ) goto LABEL_35; } operator delete(v31); } LABEL_35: if ( (v26 & 1) != 0 ) operator delete(v28); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source