// // SequenceTriggerGameObject::triggerObject from 0x89c8c0 to 0x89cc34 (884 bytes) // // 2 xrefs: // > @ 0xbfbf0 // > @ 0x144da50 // // 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:56:13 +0000 // __int64 __fastcall SequenceTriggerGameObject::triggerObject(__int64 a1, __int64 a2, __int64 a3, __int64 a4) { _BOOL4 v7; // w23 __int64 v8; // x0 int v9; // w4 unsigned __int64 v10; // x5 unsigned __int64 v11; // x3 unsigned __int64 v12; // x7 unsigned __int64 v13; // x5 __int64 *v14; // x0 unsigned __int64 v15; // x1 unsigned __int64 v16; // x1 __int64 v17; // x25 unsigned __int64 v18; // x28 __int64 v19; // x27 int v20; // w0 int v21; // w26 float *v22; // x0 float v23; // s0 int v24; // w0 int v25; // w1 float v27; // s8 int *v28; // x0 float v29; // s2 float v30; // s0 float v31; // s2 float v32; // s0 unsigned int *v33; // x3 unsigned int *v34; // x4 int v35; // w1 unsigned int *v36; // x0 unsigned int v37; // w2 unsigned int v38; // w27 int v39; // [xsp+8Ch] [xbp+8Ch] BYREF void *v40; // [xsp+90h] [xbp+90h] BYREF char *v41; // [xsp+98h] [xbp+98h] __int64 v42; // [xsp+A0h] [xbp+A0h] v39 = 0; v7 = a4 != 0; if ( a4 && *(_BYTE *)(a1 + 1964) && (v8 = *(_QWORD *)(a4 + 8), *(_QWORD *)a4 != v8) ) { v9 = -*(_DWORD *)(v8 - 4); v39 = v9; v10 = v9; } else { v10 = 0; v9 = 0; } v11 = *(_QWORD *)(a1 + 1872); if ( v11 ) { v12 = v11 - 1; v13 = ((v11 - 1) & v11) != 0 ? v10 % v11 : v10 & v12; v14 = *(__int64 **)(*(_QWORD *)(a1 + 1864) + 8 * v13); if ( v14 ) { while ( 1 ) { v14 = (__int64 *)*v14; if ( !v14 ) break; v15 = v14[1]; v16 = ((v11 - 1) & v11) != 0 ? v15 % v11 : v12 & v15; if ( v13 != v16 ) break; if ( *((_DWORD *)v14 + 4) == v9 ) { v18 = a1 + 1864; v17 = a1 + 1904; v19 = a2 + 424; v27 = *(float *)std::unordered_map::operator[](a1 + 1864, &v39); v28 = (int *)std::unordered_map::operator[](a1 + 1904, &v39); v29 = *(float *)(a1 + 1944); v20 = *v28; v30 = *(double *)(a2 + 936) - v27; if ( v27 >= 0.0 && v29 > 0.0 && v30 < v29 ) return _stack_chk_guard; if ( v20 <= 0 ) goto LABEL_16; v31 = *(float *)(a1 + 1956); if ( v27 < 0.0 || v31 <= 0.0 || v30 <= v31 ) goto LABEL_16; v21 = 1; if ( *(_DWORD *)(a1 + 1952) ) { v32 = (float)v20 - floorf(v30 / v31); if ( v32 > 0.0 ) v21 = (int)v32 + 1; } goto LABEL_17; } } } } v17 = a1 + 1904; v18 = a1 + 1864; v19 = a2 + 424; v20 = *(_DWORD *)std::unordered_map::operator[](a1 + 1904, &v39); LABEL_16: v21 = v20 + 1; LABEL_17: v22 = (float *)std::unordered_map::operator[](v18, &v39); v23 = *(double *)(v19 + 512); *v22 = v23; v24 = *(_DWORD *)(a1 + 1960); if ( v24 == -1 ) { SequenceTriggerGameObject::updateSequenceTotalCount(a1); v24 = *(_DWORD *)(a1 + 1960); } if ( v21 > v24 ) { v25 = *(_DWORD *)(a1 + 1948); switch ( v25 ) { case 0: return _stack_chk_guard; case 1: v21 = 1; break; case 2: v21 = v24; break; } } v33 = *(unsigned int **)(a1 + 1840); v34 = *(unsigned int **)(a1 + 1848); if ( v33 != v34 ) { v35 = v33[2]; v36 = v33 + 4; if ( v21 <= v35 ) { LABEL_47: v38 = *v33; *(_DWORD *)std::unordered_map::operator[](v17, &v39) = v21; if ( !v7 ) goto LABEL_48; LABEL_42: std::vector::vector((__int64 *)&v40, (const void **)a4); goto LABEL_43; } while ( 1 ) { v33 = v36; if ( v34 == v36 ) break; v37 = v36[2]; v36 += 4; v35 += v37; if ( v21 <= v35 ) goto LABEL_47; } } v38 = 0; *(_DWORD *)std::unordered_map::operator[](v17, &v39) = v21; if ( v7 ) goto LABEL_42; LABEL_48: v40 = nullptr; v41 = nullptr; v42 = 0; LABEL_43: GJBaseGameLayer::spawnGroupTriggered(a2, v38, 0, &v40, *(unsigned int *)(a1 + 916), *(unsigned int *)(a1 + 1672), 0.0); if ( v40 ) { if ( v40 != v41 ) v41 += 4 * ~((unsigned __int64)(v41 - 4 - (_BYTE *)v40) >> 2); operator delete(v40); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source