// // GJBaseGameLayer::updateCounters from 0x5bcf20 to 0x5bd030 (272 bytes) // // 6 xrefs: // > GJBaseGameLayer::activateProgressTrigger @ 0x5bd0ae // > GJBaseGameLayer::collectedObject @ 0x5bd0ec // > GJBaseGameLayer::addPickupTrigger @ 0x5bd190 // > GJBaseGameLayer::activateItemEditTrigger @ 0x5bd35c // > GJBaseGameLayer::activatePersistentItemTrigger @ 0x5bd4de // > GJBaseGameLayer::activatePersistentItemTrigger @ 0x5bd526 // // 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:43 +0000 // void __fastcall GJBaseGameLayer::updateCounters(GJBaseGameLayer *this, unsigned int a2, int a3) { unsigned int v3; // r5 unsigned int v5; // r6 unsigned int v6; // r11 _DWORD *v7; // r3 _DWORD *i; // r4 unsigned int v9; // r0 int v10; // r1 int v11; // r1 const char *v12; // r8 size_t v13; // r0 unsigned __int8 **v14; // r9 unsigned __int8 **v15; // r8 unsigned __int8 *v16; // t1 int v17[3]; // [sp+4h] [bp-220h] BYREF int v18[3]; // [sp+10h] [bp-214h] BYREF unsigned int v19[3]; // [sp+1Ch] [bp-208h] BYREF char v20; // [sp+28h] [bp-1FCh] BYREF v3 = *((_DWORD *)this + 620); if ( v3 ) { v5 = v3 - 1; v6 = ((v3 - 1) & v3) != 0 ? a2 % v3 : v5 & a2; v7 = *(_DWORD **)(*((_DWORD *)this + 619) + 4 * v6); if ( v7 ) { for ( i = (_DWORD *)*v7; i; i = (_DWORD *)*i ) { v9 = i[1]; v10 = ((v3 - 1) & v3) != 0 ? v9 % v3 : v5 & v9; if ( v10 != v6 ) break; if ( i[2] == a2 ) { v11 = 999999999; v19[0] = 0; v19[1] = 500; if ( a3 <= 999999999 ) v11 = a3; v19[2] = (unsigned int)&v20; fmt::BasicWriter::operator<<(v19, v11); v12 = (const char *)fmt::BasicWriter::c_str((int *)v19); memset(v17, 0, sizeof(v17)); v13 = strlen(v12); std::string::__init(v17, v12, v13); v14 = (unsigned __int8 **)i[4]; v15 = (unsigned __int8 **)i[3]; while ( v15 != v14 ) { v16 = *v15++; std::string::basic_string(v18, (int)v17); LabelGameObject::queueUpdateLabel(v16, (unsigned __int8 *)v18); std::string::~string((int)v18); } std::string::~string((int)v17); fmt::internal::Array::free((int)v19); return; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source