// // GJBaseGameLayer::stopCustomEnterEffect from 0x14020e760 to 0x14020e95d (509 bytes) // // 5 xrefs: // > EffectGameObject::triggerObject @ 0x1404a780e // > EffectGameObject::triggerObject @ 0x1404a7830 // > @ 0x14067edbc // > @ 0x14067edcc // > @ 0x1406cce4c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJBaseGameLayer::stopCustomEnterEffect(GJBaseGameLayer *a1, EnterEffectObject *a2, bool a3) { int v3; // ebx std::unordered_map> *p_m_enterEffectInstanceVectors; // rcx char *v8; // rdx __int64 v9; // rax __int64 v10; // r15 __int64 v11; // r9 unsigned __int64 v12; // rdx __int64 m_effectID; // r8 int v14; // eax __int64 v15; // rcx std::_Vector_val>::pointer Myfirst; // rax __int64 v17; // rcx __int64 v18; // r14 __int64 v19; // rdi __int64 i; // rbx __int64 v21; // rbx char v22; // [rsp+20h] [rbp-48h] BYREF char v23; // [rsp+30h] [rbp-38h] BYREF int v24; // [rsp+78h] [rbp+10h] BYREF int m_enterChannel; // [rsp+80h] [rbp+18h] BYREF v3 = 0; m_enterChannel = a2->m_enterChannel; if ( (unsigned int)m_enterChannel > 0x64 ) m_enterChannel = 0; if ( a3 ) { p_m_enterEffectInstanceVectors = &a1->m_gameState.m_enterEffectInstanceVectors; v8 = &v22; } else { p_m_enterEffectInstanceVectors = &a1->m_gameState.m_exitEffectInstanceVectors; v8 = &v23; } v9 = sub_1402502E0(p_m_enterEffectInstanceVectors, v8, &m_enterChannel); v10 = *(_QWORD *)v9; v11 = *(_QWORD *)(*(_QWORD *)v9 + 24LL); v12 = (*(_QWORD *)(*(_QWORD *)v9 + 32LL) - v11) / 232; if ( v12 ) { m_effectID = (unsigned int)a2->m_effectID; if ( !(_DWORD)m_effectID ) { v14 = m_enterChannel; v24 = m_enterChannel; if ( (unsigned int)m_enterChannel <= 0x64 ) { if ( a3 ) { sub_14024A470(&a1->m_gameState.m_enterEffectInstanceVectors, &v24); v15 = m_enterChannel; Myfirst = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst; LABEL_26: Myfirst[v15] = -2; return; } sub_14024A470(&a1->m_gameState.m_exitEffectInstanceVectors, &v24); v14 = m_enterChannel; goto LABEL_12; } if ( !a3 ) { LABEL_12: v15 = v14; LABEL_25: Myfirst = a1->m_gameState.m_exitChannelMap._Mypair._Myval2._Myfirst; goto LABEL_26; } v15 = m_enterChannel; LABEL_15: Myfirst = a1->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst; goto LABEL_26; } v17 = v11 + 160; while ( *(_DWORD *)(*(_QWORD *)v17 + 2008LL) != (_DWORD)m_effectID ) { ++v3; v17 += 232; if ( v3 >= v12 ) goto LABEL_23; } v18 = *(_QWORD *)(v10 + 32); v19 = v11 + 232LL * v3; for ( i = v19 + 232; i != v18; i += 232 ) { sub_140250C90(v19, i, m_effectID, v11); v19 += 232; } v21 = *(_QWORD *)(v10 + 32); sub_14005E430(v21 - 32); sub_1402508A0(v21 - 232, v21 - 232); *(_QWORD *)(v10 + 32) -= 232LL; LABEL_23: if ( !((*(_QWORD *)(v10 + 32) - *(_QWORD *)(v10 + 24)) / 232LL) ) { v15 = m_enterChannel; if ( !a3 ) goto LABEL_25; goto LABEL_15; } } }