// // LevelEditorLayer::stopTriggersInGroup from 0x1403fc610 to 0x1403fc9c7 (951 bytes) // // 4 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x1403fbe7b // > @ 0x1408c6490 // > @ 0x1408c64f0 // > @ 0x1409256f4 // // This function is hookable on this platform (idp: pc, 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 11:31:53 +0000 // char *__fastcall LevelEditorLayer::stopTriggersInGroup(_QWORD *a1, int a2, float a3) { __int64 TriggerGroup; // rax unsigned int *v7; // rsi __int64 v8; // rax _DWORD **v9; // rsi _DWORD **i; // r14 __int64 v11; // rbx _QWORD *v12; // rcx char *ColorAction; // rax char *v14; // r9 float v15; // xmm0_4 float v16; // xmm2_4 float v17; // xmm2_4 float v18; // xmm2_4 float v19; // xmm1_4 char v20; // al __int64 v21; // rcx __int16 v22; // ax __int16 v23; // cx float v24; // xmm3_4 __int16 v25; // ax int v26; // ecx int v27; // r8d float v28; // xmm1_4 char *v29; // rbx char *result; // rax char *v31; // rsi __int64 v32; // r9 __int64 v33; // r8 __int16 *v34; // rcx __int64 v35; // rdx _BYTE *v36; // rdx __int64 v37; // [rsp+A0h] [rbp+8h] BYREF TriggerGroup = LevelEditorLayer::getTriggerGroup(); if ( TriggerGroup ) { v7 = *(unsigned int **)(TriggerGroup + 56); v8 = *v7; if ( (_DWORD)v8 ) { v9 = *((_DWORD ***)v7 + 2); for ( i = &v9[v8 - 1]; v9 <= i; ++v9 ) { v11 = (__int64)*v9; if ( !*v9 ) break; if ( *(_BYTE *)(v11 + 1264) ) { v12 = (_QWORD *)a1[301]; if ( *(_BYTE *)(v11 + 1262) ) { ColorAction = GJEffectManager::getColorAction((__int64)v12, *(_DWORD *)(v11 + 1032)); v14 = ColorAction; if ( *((_DWORD *)ColorAction + 32) == *(_DWORD *)(v11 + 924) ) { *((_DWORD *)ColorAction + 41) = 0; *((_DWORD *)ColorAction + 17) = 0; if ( !ColorAction[56] && !ColorAction[57] ) { v15 = *((float *)ColorAction + 20); v16 = (float)(a3 - *((float *)ColorAction + 40)) + 0.0; *((float *)ColorAction + 17) = v16; v17 = v16 + 0.0; if ( v17 >= v15 ) goto LABEL_13; if ( v17 <= 0.0 ) { v18 = 0.0; } else { v18 = v17 / v15; if ( v18 >= 1.0 ) { LABEL_13: v19 = *((float *)ColorAction + 25); *((_WORD *)ColorAction + 29) = *(_WORD *)(ColorAction + 75); v20 = ColorAction[77]; goto LABEL_14; } } if ( v18 > 0.0 ) { v22 = *(_WORD *)(ColorAction + 75); v23 = *((_WORD *)v14 + 36); v24 = fminf(1.0, v18); if ( v24 <= 0.0 ) { v25 = *((_WORD *)v14 + 36); LOWORD(v37) = v25; LOBYTE(v26) = v14[74]; } else if ( v24 == 1.0 ) { v25 = *(_WORD *)(v14 + 75); LOBYTE(v26) = v14[77]; LOWORD(v37) = v25; } else { v27 = (unsigned __int8)v14[74]; LOBYTE(v37) = (int)(float)((float)((float)((unsigned __int8)v22 - (unsigned __int8)v23) * v24) + (float)(unsigned __int8)v23); BYTE1(v37) = (int)(float)((float)((float)(HIBYTE(v22) - HIBYTE(v23)) * v24) + (float)HIBYTE(v23)); v25 = v37; v26 = (int)(float)((float)((float)((unsigned __int8)v14[77] - v27) * v24) + (float)v27); } v28 = *((float *)v14 + 25) - *((float *)v14 + 24); *((_WORD *)v14 + 29) = v25; v14[60] = v26; v19 = (float)(v28 * v18) + *((float *)v14 + 24); } else { v19 = *((float *)ColorAction + 24); *((_WORD *)ColorAction + 29) = *((_WORD *)ColorAction + 36); v20 = ColorAction[74]; LABEL_14: v14[60] = v20; } *((float *)v14 + 16) = v19; } v14[56] = 1; if ( !*((_DWORD *)v14 + 30) ) { v21 = *((_QWORD *)v14 + 18); *(_WORD *)(v21 + 324) = *((_WORD *)v14 + 29); *(_BYTE *)(v21 + 326) = v14[60]; *(float *)(v21 + 320) = *((float *)v14 + 16) * 255.0; } } } else { GJEffectManager::controlActionsForTrigger(v12, *v9, 0); } } } } } v29 = (char *)a1[1944]; result = (char *)a1[1945]; if ( v29 != result ) { v31 = v29 + 8; do { v32 = *(_QWORD *)v29; v37 = v32; v33 = *(__int16 *)(*(_QWORD *)v32 + 1176LL); if ( (__int16)v33 <= 0 ) { LABEL_36: v29 += 8; v31 += 8; } else { v34 = *(__int16 **)(*(_QWORD *)v32 + 1168LL); v35 = 0; while ( *v34 != a2 ) { ++v35; ++v34; if ( v35 >= v33 ) { result = (char *)a1[1945]; goto LABEL_36; } } v36 = (_BYTE *)a1[1948]; if ( v36 == (_BYTE *)a1[1949] ) { sub_1400699B0(a1 + 1947, v36, &v37); } else { *(_QWORD *)v36 = v32; a1[1948] += 8LL; } memmove(v29, v31, a1[1945] - (_QWORD)v31); a1[1945] -= 8LL; result = (char *)a1[1945]; } } while ( v29 != result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source