// // GJBaseGameLayer::updateSpecialLabels from 0x5b57f8 to 0x5b5a0c (532 bytes) // // 2 xrefs: // > GJBaseGameLayer::resetLevelVariables @ 0x5b955a // > GJBaseGameLayer::update @ 0x5be1ba // // 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:53:36 +0000 // _DWORD *__fastcall GJBaseGameLayer::updateSpecialLabels(GJBaseGameLayer *this) { _DWORD *v2; // r6 unsigned int v3; // r1 int v4; // r1 _BYTE *v5; // r2 char v6; // r3 int v7; // r0 int v8; // r0 unsigned int v9; // r3 unsigned int v10; // r0 char *v11; // r0 char *v12; // r10 int v13; // r9 int v14; // r2 int v15; // r2 int v16; // r0 int v17; // r1 int v18; // r2 int **v19; // r0 int *v20; // r9 int v21; // r10 int v22; // t1 _DWORD *result; // r0 int **v24; // r0 int *v25; // r5 int *v26; // r8 int v27; // r6 int v28; // t1 int *v29; // [sp+4h] [bp-28h] unsigned int v30; // [sp+8h] [bp-24h] BYREF int v31[3]; // [sp+Ch] [bp-20h] BYREF int v32; // [sp+18h] [bp-14h] BYREF int v33; // [sp+1Ch] [bp-10h] int v34; // [sp+20h] [bp-Ch] v2 = (_DWORD *)((char *)this + 2476); GJBaseGameLayer::updatePlatformerTime(this); v30 = -2; if ( std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v2, &v30) ) { v3 = *((_DWORD *)this + 348); if ( v3 == *((_DWORD *)this + 2819) ) goto LABEL_26; *((_DWORD *)this + 2819) = v3; GameToolbox::pointsToString((GameToolbox *)&v32, v3); v5 = (_BYTE *)(&stru_2C0C + 4); v6 = *((_BYTE *)this + 11280) & 1; if ( v6 ) v5 = *((_BYTE **)this + 2822); else v4 = 11281; if ( (*((_BYTE *)this + 11280) & 1) != 0 ) { *v5 = 0; *((_DWORD *)this + 2821) = 0; } else { *((_BYTE *)this + v4) = v6; v5[(_DWORD)this] = v6; } v7 = *((unsigned __int8 *)this + 11280); if ( (v7 & 1) != 0 ) { v8 = *((_DWORD *)this + 2821); v9 = (*((_DWORD *)this + 2820) & 0xFFFFFFFE) - 1; if ( (unsigned int)v8 <= 0xA ) { if ( (*((_DWORD *)this + 2820) & 0xFFFFFFFE) != 0xB ) goto LABEL_16; goto LABEL_25; } } else { v8 = v7 >> 1; if ( v8 <= 10 ) goto LABEL_25; v9 = 10; } v10 = (v8 + 16) & 0xFFFFFFF0; if ( v10 - 1 != v9 ) { if ( v10 != 11 ) { v11 = (char *)operator new(v10); v13 = *((_BYTE *)this + 11280) & 1; if ( (*((_BYTE *)this + 11280) & 1) != 0 ) v12 = *((char **)this + 2822); else v12 = (char *)this + 11281; goto LABEL_20; } LABEL_16: v11 = (char *)this + 11281; v12 = *((char **)this + 2822); v13 = 1; LABEL_20: v14 = *((unsigned __int8 *)this + 11280); if ( (v14 & 1) != 0 ) v15 = *((_DWORD *)this + 2821); else v15 = v14 >> 1; std::char_traits::copy(v11, v12, v15 + 1); if ( v13 ) operator delete(v12); } LABEL_25: v16 = v32; v17 = v33; v18 = v34; v32 = 0; v33 = 0; v34 = 0; *((_DWORD *)this + 2820) = v16; *((_DWORD *)this + 2821) = v17; *((_DWORD *)this + 2822) = v18; std::string::~string((int)&v32); LABEL_26: std::string::basic_string(v31, (int)this + 11280); v30 = -2; v19 = (int **)std::unordered_map>::operator[]((int)v2, &v30); v20 = *v19; v29 = v19[1]; while ( v20 != v29 ) { v22 = *v20++; v21 = v22; if ( *(_BYTE *)(v22 + 657) ) { std::string::basic_string(&v32, (int)v31); LabelGameObject::updateLabel(v21, (int)&v32); std::string::~string((int)&v32); } } std::string::~string((int)v31); } v30 = -3; result = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( v2, &v30); if ( result ) { GameToolbox::intToString((GameToolbox *)v31, *((_DWORD *)this + 2647)); v30 = -3; v24 = (int **)std::unordered_map>::operator[]((int)v2, &v30); v25 = *v24; v26 = v24[1]; while ( v25 != v26 ) { v28 = *v25++; v27 = v28; if ( *(_BYTE *)(v28 + 657) ) { std::string::basic_string(&v32, (int)v31); LabelGameObject::updateLabel(v27, (int)&v32); std::string::~string((int)&v32); } } return (_DWORD *)std::string::~string((int)v31); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source