{"type": "func", "start": 5372887808, "end": 5372888214, "name": "LevelEditorLayer::runColorEffect", "pseudocode": "// \n// LevelEditorLayer::runColorEffect from 0x1403fc300 to 0x1403fc496 (406 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::activateTriggerEffect @ 0x1403fb9fe\n// > LevelEditorLayer::activateTriggerEffect @ 0x1403fba41\n// > <???> @ 0x1409256dc\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:52 +0000\n// \n\n__int64 __fastcall LevelEditorLayer::runColorEffect(\n        __int64 *a1,\n        __int64 a2,\n        unsigned int a3,\n        float a4,\n        int a5,\n        char a6)\n{\n  bool v9; // di\n  char *ColorAction; // rax\n  float v11; // xmm2_4\n  __int64 result; // rax\n  __int64 v13; // r10\n  __int64 v14; // rcx\n\n  v9 = *(float *)(a2 + 1468) <= 0.0;\n  ColorAction = GJEffectManager::getColorAction(a1[301], a3);\n  v11 = *((float *)ColorAction + 40);\n  if ( v11 != 0.0 )\n  {\n    if ( !v9 && a6 && (*((float *)ColorAction + 17) == 0.0 || ColorAction[56]) && *((int *)ColorAction + 30) > 0 )\n      return 0;\n    *((_DWORD *)ColorAction + 41) = 0;\n    *((_DWORD *)ColorAction + 17) = 0;\n    ColorAction::step((__int64)ColorAction, a4 - v11);\n    if ( !*(_DWORD *)(v13 + 120) )\n    {\n      v14 = *(_QWORD *)(v13 + 144);\n      *(_WORD *)(v14 + 324) = *(_WORD *)(v13 + 58);\n      *(_BYTE *)(v14 + 326) = *(_BYTE *)(v13 + 60);\n      *(float *)(v14 + 320) = *(float *)(v13 + 64) * 255.0;\n    }\n  }\n  result = (*(__int64 (__fastcall **)(__int64 *, __int64, _QWORD, _QWORD, _BYTE, _DWORD, __int64, _DWORD, _BYTE, __int64, _DWORD, _DWORD))(*a1 + 1112))(\n             a1,\n             a2 + 1465,\n             *(_QWORD *)(*a1 + 1112),\n             a3,\n             *(_BYTE *)(a2 + 1503),\n             *(_DWORD *)(a2 + 1472),\n             a2 + 1628,\n             *(_DWORD *)(a2 + 1644),\n             *(_BYTE *)(a2 + 1648),\n             a2,\n             *(_DWORD *)(a2 + 924),\n             *(_DWORD *)(a2 + 1688));\n  *(float *)(result + 160) = a4;\n  *(_DWORD *)(result + 164) = a5;\n  return result;\n}", "assembly": "; \n; LevelEditorLayer::runColorEffect from 0x1403fc300 to 0x1403fc496 (406 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::activateTriggerEffect @ 0x1403fb9fe\n; > LevelEditorLayer::activateTriggerEffect @ 0x1403fba41\n; > <???> @ 0x1409256dc\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403fc300\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403fc305\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1403fc30a\npush    rdi                                                            ; +0xf, 0x1403fc30f\nsub     rsp, 80h                                                       ; +0x10, 0x1403fc310\nmovaps  [rsp+88h+var_18], xmm6                                         ; +0x17, 0x1403fc317\nmov     rbx, rdx                                                       ; +0x1c, 0x1403fc31c\nxorps   xmm6, xmm6                                                     ; +0x1f, 0x1403fc31f\nmovaps  [rsp+88h+var_28], xmm7                                         ; +0x22, 0x1403fc322\ncomiss  xmm6, dword ptr [rdx+5BCh]                                     ; +0x27, 0x1403fc327\nmov     rsi, rcx                                                       ; +0x2e, 0x1403fc32e\nmov     edx, r8d                                                       ; +0x31, 0x1403fc331\nmov     rcx, [rcx+968h]                                                ; +0x34, 0x1403fc334\nmov     ebp, r8d                                                       ; +0x3b, 0x1403fc33b\nmovaps  xmm7, xmm3                                                     ; +0x3e, 0x1403fc33e\nsetnb   dil                                                            ; +0x41, 0x1403fc341\ncall    GJEffectManager__getColorAction                                ; +0x45, 0x1403fc345\nmov     r10, rax                                                       ; +0x4a, 0x1403fc34a\nmovss   xmm2, dword ptr [rax+0A0h]                                     ; +0x4d, 0x1403fc34d\nucomiss xmm2, xmm6                                                     ; +0x55, 0x1403fc355\njp      short loc_1403FC360                                            ; +0x58, 0x1403fc358\njz      loc_1403FC3E5                                                  ; +0x5a, 0x1403fc35a\ntest    dil, dil                                                       ; +0x60, 0x1403fc360\njnz     short loc_1403FC38E                                            ; +0x63, 0x1403fc363\ncmp     [rsp+88h+arg_28], dil                                          ; +0x65, 0x1403fc365\njz      short loc_1403FC38E                                            ; +0x6d, 0x1403fc36d\nmovss   xmm0, dword ptr [rax+44h]                                      ; +0x6f, 0x1403fc36f\nucomiss xmm0, xmm6                                                     ; +0x74, 0x1403fc374\njp      short loc_1403FC37B                                            ; +0x77, 0x1403fc377\njz      short loc_1403FC381                                            ; +0x79, 0x1403fc379\ncmp     byte ptr [rax+38h], 0                                          ; +0x7b, 0x1403fc37b\njz      short loc_1403FC38E                                            ; +0x7f, 0x1403fc37f\ncmp     dword ptr [rax+78h], 0                                         ; +0x81, 0x1403fc381\njle     short loc_1403FC38E                                            ; +0x85, 0x1403fc385\nxor     eax, eax                                                       ; +0x87, 0x1403fc387\njmp     loc_1403FC473                                                  ; +0x89, 0x1403fc389\nxor     eax, eax                                                       ; +0x8e, 0x1403fc38e\nmovaps  xmm1, xmm7                                                     ; +0x90, 0x1403fc390\nsubss   xmm1, xmm2                                                     ; +0x93, 0x1403fc393\nmov     [r10+0A4h], eax                                                ; +0x97, 0x1403fc397\nmov     rcx, r10                                                       ; +0x9e, 0x1403fc39e\nmov     [r10+44h], eax                                                 ; +0xa1, 0x1403fc3a1\ncall    ColorAction__step                                              ; +0xa5, 0x1403fc3a5\ncmp     dword ptr [r10+78h], 0                                         ; +0xaa, 0x1403fc3aa\njnz     short loc_1403FC3E5                                            ; +0xaf, 0x1403fc3af\nmovzx   eax, word ptr [r10+3Ah]                                        ; +0xb1, 0x1403fc3b1\nmov     rcx, [r10+90h]                                                 ; +0xb6, 0x1403fc3b6\nmov     [rcx+144h], ax                                                 ; +0xbd, 0x1403fc3bd\nmovzx   eax, byte ptr [r10+3Ch]                                        ; +0xc4, 0x1403fc3c4\nmov     [rcx+146h], al                                                 ; +0xc9, 0x1403fc3c9\nmovss   xmm0, dword ptr [r10+40h]                                      ; +0xcf, 0x1403fc3cf\nmulss   xmm0, cs:dword_140835964                                       ; +0xd5, 0x1403fc3d5\nmovss   dword ptr [rcx+140h], xmm0                                     ; +0xdd, 0x1403fc3dd\nmov     rax, [rsi]                                                     ; +0xe5, 0x1403fc3e5\nlea     rcx, [rbx+65Ch]                                                ; +0xe8, 0x1403fc3e8\nmovss   xmm0, dword ptr [rbx+5C0h]                                     ; +0xef, 0x1403fc3ef\nlea     rdx, [rbx+5B9h]                                                ; +0xf7, 0x1403fc3f7\nmovss   xmm2, dword ptr [rbx+5BCh]                                     ; +0xfe, 0x1403fc3fe\nmov     r9d, ebp                                                       ; +0x106, 0x1403fc406\nmov     r8, [rax+458h]                                                 ; +0x109, 0x1403fc409\nmov     eax, [rbx+698h]                                                ; +0x110, 0x1403fc410\nmov     [rsp+88h+var_30], eax                                          ; +0x116, 0x1403fc416\nmov     eax, [rbx+39Ch]                                                ; +0x11a, 0x1403fc41a\nmov     [rsp+88h+var_38], eax                                          ; +0x120, 0x1403fc420\nmovzx   eax, byte ptr [rbx+670h]                                       ; +0x124, 0x1403fc424\nmov     [rsp+88h+var_40], rbx                                          ; +0x12b, 0x1403fc42b\nmov     [rsp+88h+var_48], al                                           ; +0x130, 0x1403fc430\nmov     eax, [rbx+66Ch]                                                ; +0x134, 0x1403fc434\nmov     [rsp+88h+var_50], eax                                          ; +0x13a, 0x1403fc43a\nmovzx   eax, byte ptr [rbx+5DFh]                                       ; +0x13e, 0x1403fc43e\nmov     [rsp+88h+var_58], rcx                                          ; +0x145, 0x1403fc445\nmov     rcx, rsi                                                       ; +0x14a, 0x1403fc44a\nmovss   [rsp+88h+var_60], xmm0                                         ; +0x14d, 0x1403fc44d\nmov     [rsp+88h+var_68], al                                           ; +0x153, 0x1403fc453\ncall    r8                                                             ; +0x157, 0x1403fc457\nmovss   xmm0, [rsp+88h+arg_20]                                         ; +0x15a, 0x1403fc45a\nmovss   dword ptr [rax+0A0h], xmm7                                     ; +0x163, 0x1403fc463\nmovss   dword ptr [rax+0A4h], xmm0                                     ; +0x16b, 0x1403fc46b\nmovaps  xmm6, [rsp+88h+var_18]                                         ; +0x173, 0x1403fc473\nlea     r11, [rsp+88h+var_8]                                           ; +0x178, 0x1403fc478\nmov     rbx, [r11+10h]                                                 ; +0x180, 0x1403fc480\nmov     rbp, [r11+18h]                                                 ; +0x184, 0x1403fc484\nmov     rsi, [r11+20h]                                                 ; +0x188, 0x1403fc488\nmovaps  xmm7, [rsp+88h+var_28]                                         ; +0x18c, 0x1403fc48c\nmov     rsp, r11                                                       ; +0x191, 0x1403fc491\npop     rdi                                                            ; +0x194, 0x1403fc494\nretn                                                                   ; +0x195, 0x1403fc495", "xrefs": ["LevelEditorLayer::activateTriggerEffect @ 0x1403fb9fe", "LevelEditorLayer::activateTriggerEffect @ 0x1403fba41", "<???> @ 0x1409256dc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}