// // GJBaseGameLayer::activateEventTrigger from 0x9c2d2c to 0x9c3034 (776 bytes) // // 2 xrefs: // > EventLinkTrigger::triggerObject @ 0x898fe4 // > @ 0x510b8 // // 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:30 +0000 // __int64 __fastcall GJBaseGameLayer::activateEventTrigger(__int64 a1, __int64 a2, const void **a3) { __int64 **v3; // x28 _QWORD *v5; // x19 int EventKey; // w0 _QWORD *v7; // x22 int v8; // w25 int v9; // w2 int v10; // w0 __int64 *v11; // x0 int v12; // w1 int v13; // w1 __int64 v14; // x0 _DWORD *v15; // x21 _DWORD *v16; // x26 __int64 v17; // x19 __int64 v19; // x0 __int64 v20; // x19 unsigned __int64 v21; // x2 int v22; // w0 int v23; // w3 _DWORD *v24; // x27 _DWORD *v25; // x20 int v26; // w5 int v27; // w4 char v28; // w3 char *v29; // x0 char *v30; // x4 __int64 v31; // x4 __int64 v32; // x0 char *v33; // x0 char *v34; // x3 _QWORD *v37; // [xsp+70h] [xbp+70h] int v38[2]; // [xsp+98h] [xbp+98h] BYREF int *v39; // [xsp+A0h] [xbp+A0h] BYREF v3 = (__int64 **)(a1 + 1304); v5 = (_QWORD *)(a2 + 1848); v37 = (_QWORD *)(a2 + 1848); EventKey = getEventKey(*(_DWORD *)(a2 + 1868), *(_DWORD *)(a2 + 1872)); v7 = *(_QWORD **)(a2 + 1840); v8 = EventKey; if ( v5 != v7 ) { do { while ( 1 ) { v9 = *((_DWORD *)v7 + 7); v10 = *(unsigned __int8 *)(a2 + 1864); v38[0] = v9; v38[1] = v8; if ( v10 ) break; v39 = v38; v19 = std::__tree,std::vector>,std::__map_value_compare,std::__value_type,std::vector>,std::less>,true>,std::allocator,std::vector>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>( v3, v38, (__int64)&unk_116CF80, (_QWORD **)&v39); v20 = v19 + 40; v21 = *(_QWORD *)(v19 + 48); if ( v21 >= *(_QWORD *)(v19 + 56) ) { std::vector::__emplace_back_slow_path const&,unsigned int const&,int &>( (void **)v20, (_DWORD *)(a2 + 1464), a3, (_DWORD *)(a2 + 916), (_DWORD *)(a2 + 1672)); v7 = std::__tree_next *>(v7); if ( v37 == v7 ) return _stack_chk_guard; } else { v22 = *(_DWORD *)(a2 + 1464); v23 = *(_DWORD *)(a2 + 1672); if ( v21 ) { *(_DWORD *)(v21 + 4) = *(_DWORD *)(a2 + 916); *(_DWORD *)v21 = v22; *(_DWORD *)(v21 + 8) = v23; *(_BYTE *)(v21 + 12) = 0; std::vector::vector((__int64 *)(v21 + 16), a3); v21 = *(_QWORD *)(v20 + 8); } *(_QWORD *)(v20 + 8) = v21 + 40; v7 = std::__tree_next *>(v7); if ( v37 == v7 ) return _stack_chk_guard; } } v11 = *(__int64 **)(a1 + 1312); while ( v11 ) { v12 = *((_DWORD *)v11 + 8); if ( v9 < v12 ) goto LABEL_15; if ( v9 > v12 ) goto LABEL_16; v13 = *((_DWORD *)v11 + 9); if ( v8 < v13 ) { LABEL_15: v11 = (__int64 *)*v11; } else { if ( v8 <= v13 ) { v39 = v38; v14 = std::__tree,std::vector>,std::__map_value_compare,std::__value_type,std::vector>,std::less>,true>,std::allocator,std::vector>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>( v3, v38, (__int64)&unk_116CF80, (_QWORD **)&v39); v15 = *(_DWORD **)(v14 + 40); v16 = *(_DWORD **)(v14 + 48); v17 = v14; while ( v15 != v16 ) { while ( *v15 != *(_DWORD *)(a2 + 1464) ) { v15 += 10; if ( v15 == v16 ) goto LABEL_13; } if ( v15 + 10 != v16 ) { v24 = v15 + 10; do { v25 = v24; v26 = v24[1]; v27 = v24[2]; v28 = *((_BYTE *)v24 + 12); v29 = *((char **)v24 - 3); *(v24 - 10) = *v24; *(v24 - 9) = v26; *(v24 - 8) = v27; *((_BYTE *)v24 - 28) = v28; if ( v29 ) { v30 = *((char **)v24 - 2); if ( v29 != v30 ) *((_QWORD *)v24 - 2) = &v30[4 * ~((unsigned __int64)(v30 - 4 - v29) >> 2)]; operator delete(v29); } v31 = *((_QWORD *)v24 + 2); v24 += 10; *((_QWORD *)v24 - 8) = v31; *((_QWORD *)v24 - 3) = 0; v32 = *((_QWORD *)v24 - 1); *((_QWORD *)v24 - 7) = *((_QWORD *)v24 - 2); *((_QWORD *)v24 - 6) = v32; *((_QWORD *)v24 - 1) = 0; *((_QWORD *)v24 - 2) = 0; } while ( v16 != v24 ); goto LABEL_29; } v25 = v15; do { *(_QWORD *)(v17 + 48) = v16 - 10; v33 = *((char **)v16 - 3); if ( v33 ) { v34 = *((char **)v16 - 2); if ( v33 != v34 ) *((_QWORD *)v16 - 2) = &v34[4 * ~((unsigned __int64)(v34 - 4 - v33) >> 2)]; operator delete(v33); } LABEL_29: v16 = *(_DWORD **)(v17 + 48); } while ( v16 != v25 ); } break; } LABEL_16: v11 = (__int64 *)v11[1]; } } LABEL_13: v7 = std::__tree_next *>(v7); } while ( v37 != v7 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source