// // GJBaseGameLayer::activateItemCompareTrigger from 0x9a7eac to 0x9a8130 (644 bytes) // // 2 xrefs: // > ItemTriggerGameObject::triggerObject @ 0x89953c // > @ 0xcfd78 // // 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:10 +0000 // __int64 __fastcall GJBaseGameLayer::activateItemCompareTrigger(GJEffectManager **this, __int64 a2, __int64 a3) { int v4; // w4 int v6; // w27 float v7; // s8 float v8; // s1 float v9; // s0 int v10; // w0 int v11; // w1 float v12; // s0 int v13; // w23 float v14; // s10 int v15; // w22 float v16; // s0 float v17; // s2 int v18; // w25 int v19; // w26 _BOOL4 v20; // w21 int v21; // w24 float v22; // s10 unsigned int v23; // w20 float v24; // s8 float v25; // s9 double ItemValue; // d0 double v27; // d0 double v28; // d10 double v29; // d0 _BOOL4 v30; // w0 double v32; // d0 int v33; // [xsp+80h] [xbp+80h] int v34; // [xsp+88h] [xbp+88h] int v36; // [xsp+98h] [xbp+98h] unsigned int v37; // [xsp+9Ch] [xbp+9Ch] v4 = *(_DWORD *)(a2 + 1860); v6 = *(_DWORD *)(a2 + 1864); v7 = *(float *)(a2 + 1872); v8 = *(float *)(a2 + 1852); if ( v4 <= 0 ) v4 = 3; v9 = *(float *)(a2 + 1856); v10 = *(_DWORD *)(a2 + 1668); v11 = *(_DWORD *)(a2 + 1840); v12 = v9 * 1000.0; if ( v6 <= 0 ) v6 = 3; v13 = *(_DWORD *)(a2 + 1844); v36 = v10; v14 = roundf(v8 * 1000.0); v15 = *(_DWORD *)(a2 + 1868); v16 = roundf(v12); v17 = roundf(v7 * 1000.0); v18 = *(_DWORD *)(a2 + 1880); if ( v11 <= 0 ) v11 = 1; v19 = *(_DWORD *)(a2 + 1884); v20 = 0; v21 = *(_DWORD *)(a2 + 1888); v37 = *(_DWORD *)(a2 + 1464); v22 = v14 / 1000.0; v23 = *(_DWORD *)(a2 + 1468); v24 = v16 / 1000.0; v25 = v17 / 1000.0; if ( v13 ) { v20 = 1; if ( v10 <= 0 ) v20 = (unsigned int)(v13 - 3) <= 1; } v33 = *(_DWORD *)(a2 + 1876); v34 = v4; ItemValue = GJBaseGameLayer::getItemValue(this, v11, *(_DWORD *)(a2 + 1680)); v27 = GJBaseGameLayer::performMathOperation((GJBaseGameLayer *)this, ItemValue, v22, v34); v28 = v27; if ( v33 ) { v28 = GJBaseGameLayer::performMathRounding((GJBaseGameLayer *)this, v27, v33); if ( !v19 ) { LABEL_12: if ( !v20 ) goto LABEL_13; goto LABEL_23; } } else if ( !v19 ) { goto LABEL_12; } v28 = performMathSign(v28, v19); if ( !v20 ) { LABEL_13: v29 = v24; if ( !v18 ) goto LABEL_14; LABEL_20: v29 = GJBaseGameLayer::performMathRounding((GJBaseGameLayer *)this, v29, v18); if ( !v21 ) goto LABEL_15; goto LABEL_21; } LABEL_23: v32 = GJBaseGameLayer::getItemValue(this, v13, v36); v29 = GJBaseGameLayer::performMathOperation((GJBaseGameLayer *)this, v32, v24, v6); if ( v18 ) goto LABEL_20; LABEL_14: if ( !v21 ) goto LABEL_15; LABEL_21: v29 = performMathSign(v29, v21); LABEL_15: switch ( v15 ) { case 0: v30 = vabdd_f64(v28, v29) <= v25; goto LABEL_17; case 1: v30 = v25 + v28 > v29; goto LABEL_17; case 2: v30 = v25 + v28 >= v29; goto LABEL_17; case 3: v30 = v28 - v25 < v29; goto LABEL_17; case 4: v30 = v28 - v25 <= v29; goto LABEL_17; case 5: v30 = vabdd_f64(v28, v29) > v25; LABEL_17: if ( v30 ) v23 = v37; break; default: return (*((__int64 (__fastcall **)(GJEffectManager **, _QWORD, _QWORD, __int64, _QWORD, _QWORD, double))*this + 157))( this, v23, 0, a3, *(unsigned int *)(a2 + 916), *(unsigned int *)(a2 + 1672), 0.0); } return (*((__int64 (__fastcall **)(GJEffectManager **, _QWORD, _QWORD, __int64, _QWORD, _QWORD, double))*this + 157))( this, v23, 0, a3, *(unsigned int *)(a2 + 916), *(unsigned int *)(a2 + 1672), 0.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source