// // GJBaseGameLayer::activateItemEditTrigger from 0x5bd194 to 0x5bd3a6 (530 bytes) // // 1 xrefs: // > ItemTriggerGameObject::triggerObject @ 0x4f598a // // 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::activateItemEditTrigger(GJEffectManager **this, ItemTriggerGameObject *a2) { int v3; // r10 int v4; // r8 int v5; // r3 int v6; // r6 int v7; // r9 int v8; // r7 int v9; // r3 int v10; // r11 _DWORD *v11; // r1 float v12; // s16 _BOOL4 v13; // r5 int v14; // r3 int v15; // r1 __int64 v16; // r8 double v17; // r0 int v18; // r1 double v19; // r6 double v20; // d7 int v21; // r1 int v22; // r1 int v23; // [sp+10h] [bp-2Ch] int v24; // [sp+14h] [bp-28h] int v25; // [sp+18h] [bp-24h] int v26; // [sp+1Ch] [bp-20h] int v27; // [sp+20h] [bp-1Ch] int v28; // [sp+24h] [bp-18h] double v29; // [sp+28h] [bp-14h] int v30; // [sp+30h] [bp-Ch] int v31; // [sp+34h] [bp-8h] v3 = *((_DWORD *)a2 + 414); v4 = *((_DWORD *)a2 + 375); v25 = *((_DWORD *)a2 + 417); v5 = *((_DWORD *)a2 + 418); v6 = *((_DWORD *)a2 + 372); v7 = *((_DWORD *)a2 + 412); v8 = *((_DWORD *)a2 + 413); if ( v5 < 1 ) v5 = 1; v23 = v5; v9 = *((_DWORD *)a2 + 419); v10 = *((_DWORD *)a2 + 321); v11 = (_DWORD *)((char *)a2 + 1660); if ( v9 < 3 ) v9 = 3; v24 = v9; v26 = v11[6]; v27 = v11[7]; v28 = v11[8]; v30 = v11[9]; v12 = COERCE_FLOAT(roundf()) / 1000.0; if ( v3 <= 0 ) { if ( v10 <= 0 ) return; v3 = 1; } else if ( v10 <= 0 && v3 != 3 ) { return; } if ( v7 ) v13 = v4 > 0 || (unsigned int)(v7 - 3) <= 1; else v13 = 0; if ( v8 && (v6 > 0 || (unsigned int)(v8 - 3) <= 1) ) { if ( v13 ) { v14 = 1; } else { v14 = 0; v7 = v8; v4 = v6; v13 = 1; } } else { v14 = 0; } v31 = v14; LODWORD(v16) = GJBaseGameLayer::getItemValue(this, v7, v4); HIDWORD(v16) = v15; LODWORD(v17) = GJBaseGameLayer::getItemValue(this, v8, v6); v29 = v17; LODWORD(v19) = GJBaseGameLayer::getItemValue(this, v3, v10); HIDWORD(v19) = v18; if ( v31 ) v16 = GJBaseGameLayer::performMathOperation((GJBaseGameLayer *)this, *(double *)&v16, v29, v23); v20 = v12; if ( v13 ) v20 = COERCE_DOUBLE(GJBaseGameLayer::performMathOperation((GJBaseGameLayer *)this, *(double *)&v16, v12, v24)); if ( v26 ) { LODWORD(v20) = GJBaseGameLayer::performMathRounding((GJBaseGameLayer *)this, v20, v26); HIDWORD(v20) = v21; } if ( v28 ) v20 = COERCE_DOUBLE(performMathSign(v20, v28)); if ( v25 ) v20 = COERCE_DOUBLE(GJBaseGameLayer::performMathOperation((GJBaseGameLayer *)this, v19, v20, v25)); if ( v27 ) { LODWORD(v20) = GJBaseGameLayer::performMathRounding((GJBaseGameLayer *)this, v20, v27); HIDWORD(v20) = v22; } if ( v30 ) v20 = COERCE_DOUBLE(performMathSign(v20, v30)); switch ( v3 ) { case 2: GJEffectManager::updateTimer(*(this + 381), v10, v20); break; case 3: *((_BYTE *)this + 1396) = 1; *(this + 348) = (GJEffectManager *)(int)v20; break; case 1: GJEffectManager::updateCountForItem(*(this + 381), v10, (int)v20); GJBaseGameLayer::updateCounters((GJBaseGameLayer *)this, v10, (int)v20); break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source