// // SequenceTriggerGameObject::triggerObject from 0x4f7024 to 0x4f724c (552 bytes) // // 0 xrefs: // // 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:51:17 +0000 // char **__fastcall SequenceTriggerGameObject::triggerObject(int a1, int a2, int a3, int a4) { int v7; // r3 unsigned int v8; // r4 unsigned int v9; // r11 unsigned int v10; // r10 _DWORD *v11; // r1 _DWORD *i; // r8 unsigned int v13; // r0 int v14; // r1 float v15; // s16 char **result; // r0 float v17; // s14 float v18; // s15 int v19; // r4 float v20; // s15 float v21; // s15 float v22; // s14 int v23; // r4 int v24; // r3 int v25; // r1 int *v26; // r3 int *v27; // lr int v28; // r2 int v29; // r7 unsigned int v30; // [sp+1Ch] [bp-18h] BYREF char *v31[3]; // [sp+20h] [bp-14h] BYREF v30 = 0; if ( *(_BYTE *)(a1 + 1720) ) { if ( a4 ) { v7 = *(_DWORD *)(a4 + 4); if ( *(_DWORD *)a4 != v7 ) v30 = -*(_DWORD *)(v7 - 4); } } v8 = *(_DWORD *)(a1 + 1664); if ( v8 ) { v9 = v8 - 1; v10 = ((v8 - 1) & v8) != 0 ? v30 % v8 : v9 & v30; v11 = *(_DWORD **)(*(_DWORD *)(a1 + 1660) + 4 * v10); if ( v11 ) { for ( i = (_DWORD *)*v11; i; i = (_DWORD *)*i ) { v13 = i[1]; v14 = ((v8 - 1) & v8) != 0 ? v13 % v8 : v9 & v13; if ( v14 != v10 ) break; if ( i[2] == v30 ) { v15 = *(float *)std::unordered_map::operator[](a1 + 1660, &v30); goto LABEL_17; } } } } v15 = -1.0; LABEL_17: result = (char **)std::unordered_map::operator[](a1 + 1680, &v30); v17 = *(double *)(a2 + 800) - v15; v18 = *(float *)(a1 + 1700); v19 = (int)*result; if ( v18 <= 0.0 || v15 < 0.0 || v17 >= v18 ) { if ( v19 > 0 ) { v20 = *(float *)(a1 + 1712); if ( v20 > 0.0 && v15 >= 0.0 && v17 > v20 ) { if ( *(_DWORD *)(a1 + 1708) ) { v21 = (float)v19 - floorf(v17 / v20); if ( v21 <= 0.0 ) v19 = 0; else v19 = (int)v21; } else { v19 = 0; } } } result = (char **)std::unordered_map::operator[](a1 + 1660, &v30); v22 = *(double *)(a2 + 800); *(float *)result = v22; if ( *(_DWORD *)(a1 + 1716) == -1 ) result = (char **)SequenceTriggerGameObject::updateSequenceTotalCount((_DWORD *)a1); v23 = v19 + 1; if ( v23 > *(_DWORD *)(a1 + 1716) ) { v24 = *(_DWORD *)(a1 + 1704); switch ( v24 ) { case 0: return result; case 1: v23 = 1; break; case 2: v23 = *(_DWORD *)(a1 + 1716); break; } } v25 = 0; v26 = *(int **)(a1 + 1648); while ( 1 ) { v27 = v26; if ( v26 == *(int **)(a1 + 1652) ) break; v28 = v26[2]; v26 += 4; v25 += v28; if ( v25 >= v23 ) { v29 = *v27; goto LABEL_43; } } v29 = 0; LABEL_43: *std::unordered_map::operator[](a1 + 1680, &v30) = v23; if ( a4 ) std::vector::vector((int)v31, (const void **)a4); else memset(v31, 0, sizeof(v31)); GJBaseGameLayer::spawnGroupTriggered(a2, v29, 0, 0, v31, *(_DWORD *)(a1 + 780), *(_DWORD *)(a1 + 1492)); return std::__vector_base::~__vector_base(v31); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source