{"type": "func", "start": 5372273024, "end": 5372273408, "name": "GJEffectManager::updateEffects", "pseudocode": "// \n// GJEffectManager::updateEffects from 0x140366180 to 0x140366300 (384 bytes)\n// \n// 12 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x14033e848\n// > GJBaseGameLayer::update @ 0x140341c06\n// > GJBaseGameLayer::update @ 0x140341ecc\n// > GJEffectManager::loadFromState @ 0x14036f179\n// > LevelEditorLayer::updateGameObjects @ 0x1403fb10c\n// > LevelEditorLayer::updateGameObjects @ 0x1403fb5ba\n// > LevelEditorLayer::onPlaytest @ 0x1403fea46\n// > PlayLayer::setupHasCompleted @ 0x140505ade\n// > PlayLayer::loadDefaultColors @ 0x1405109cc\n// > <???> @ 0x1408babdc\n// > <???> @ 0x1408babec\n// > <???> @ 0x1409216e0\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:30:54 +0000\n// \n\n_QWORD *__fastcall GJEffectManager::updateEffects(_QWORD *a1, float a2)\n{\n  __int64 v2; // r10\n  __int64 v4; // r10\n  __int64 v5; // r10\n  __int64 v6; // r11\n  __int64 v7; // rcx\n  _QWORD **v8; // rcx\n  _QWORD *result; // rax\n  float v10; // xmm4_4\n  float v11; // xmm2_4\n  float v12; // xmm2_4\n  float v13; // xmm3_4\n  float *v14; // rdx\n  float v15; // xmm0_4\n  __int64 v16; // [rsp+60h] [rbp+8h] BYREF\n\n  v2 = a1[41];\n  if ( v2 )\n  {\n    v4 = *(_QWORD *)(v2 + 56);\n    if ( v4 )\n    {\n      do\n      {\n        ColorAction::step(*(_QWORD *)(v4 + 264), a2);\n        if ( !*(_DWORD *)(v5 + 120) )\n        {\n          v7 = *(_QWORD *)(v5 + 144);\n          *(_WORD *)(v7 + 324) = *(_WORD *)(v5 + 58);\n          *(_BYTE *)(v7 + 326) = *(_BYTE *)(v5 + 60);\n          *(float *)(v7 + 320) = *(float *)(v5 + 64) * 255.0;\n        }\n        v4 = v6;\n      }\n      while ( v6 );\n    }\n  }\n  GJEffectManager::updatePulseEffects(a1);\n  v8 = (_QWORD **)a1[55];\n  result = *v8;\n  if ( *v8 != v8 )\n  {\n    do\n    {\n      if ( *((_BYTE *)result + 32) )\n      {\n        v14 = (float *)result + 11;\n      }\n      else\n      {\n        if ( *((_BYTE *)result + 33) )\n          goto LABEL_19;\n        v10 = *((float *)result + 5);\n        v11 = a2 + *((float *)result + 9);\n        *((float *)result + 9) = v11;\n        v12 = v11 + *((float *)result + 14);\n        if ( v12 < v10 )\n          v13 = v12 <= 0.0 ? 0.0 : v12 / v10;\n        else\n          v13 = 1.0;\n        v14 = (float *)result + 11;\n        v15 = (float)(*((float *)result + 7) - *((float *)result + 6)) * v13;\n        *((_BYTE *)result + 32) = v12 >= v10;\n        *((float *)result + 11) = v15 + *((float *)result + 6);\n        if ( v12 < v10 )\n          goto LABEL_19;\n      }\n      if ( *v14 >= 1.0 )\n        result = sub_1403535F0(a1 + 54, &v16, (void **)result);\nLABEL_19:\n      result = (_QWORD *)*result;\n    }\n    while ( result != (_QWORD *)a1[55] );\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::updateEffects from 0x140366180 to 0x140366300 (384 bytes)\n; \n; 12 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x14033e848\n; > GJBaseGameLayer::update @ 0x140341c06\n; > GJBaseGameLayer::update @ 0x140341ecc\n; > GJEffectManager::loadFromState @ 0x14036f179\n; > LevelEditorLayer::updateGameObjects @ 0x1403fb10c\n; > LevelEditorLayer::updateGameObjects @ 0x1403fb5ba\n; > LevelEditorLayer::onPlaytest @ 0x1403fea46\n; > PlayLayer::setupHasCompleted @ 0x140505ade\n; > PlayLayer::loadDefaultColors @ 0x1405109cc\n; > <???> @ 0x1408babdc\n; > <???> @ 0x1408babec\n; > <???> @ 0x1409216e0\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:30:54 +0000\n; \npush    rbx                                                            ; +0x0, 0x140366180\nsub     rsp, 50h                                                       ; +0x2, 0x140366182\nmov     r10, [rcx+148h]                                                ; +0x6, 0x140366186\nmov     rbx, rcx                                                       ; +0xd, 0x14036618d\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x10, 0x140366190\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x15, 0x140366195\nmovaps  xmm8, xmm1                                                     ; +0x1b, 0x14036619b\ntest    r10, r10                                                       ; +0x1f, 0x14036619f\njz      short loc_14036621B                                            ; +0x22, 0x1403661a2\nmov     r10, [r10+38h]                                                 ; +0x24, 0x1403661a4\ntest    r10, r10                                                       ; +0x28, 0x1403661a8\njz      short loc_14036621B                                            ; +0x2b, 0x1403661ab\nmov     r11, [r10+120h]                                                ; +0x2d, 0x1403661ad\nmovss   xmm6, cs:dword_140835964                                       ; +0x34, 0x1403661b4\nnop     dword ptr [rax+00h]                                            ; +0x3c, 0x1403661bc\nmov     r10, [r10+108h]                                                ; +0x40, 0x1403661c0\nmovaps  xmm1, xmm8                                                     ; +0x47, 0x1403661c7\nmov     rcx, r10                                                       ; +0x4b, 0x1403661cb\ncall    ColorAction__step                                              ; +0x4e, 0x1403661ce\ncmp     dword ptr [r10+78h], 0                                         ; +0x53, 0x1403661d3\njnz     short loc_14036620A                                            ; +0x58, 0x1403661d8\nmovzx   eax, word ptr [r10+3Ah]                                        ; +0x5a, 0x1403661da\nmov     rcx, [r10+90h]                                                 ; +0x5f, 0x1403661df\nmov     [rcx+144h], ax                                                 ; +0x66, 0x1403661e6\nmovzx   eax, byte ptr [r10+3Ch]                                        ; +0x6d, 0x1403661ed\nmov     [rcx+146h], al                                                 ; +0x72, 0x1403661f2\nmovss   xmm0, dword ptr [r10+40h]                                      ; +0x78, 0x1403661f8\nmulss   xmm0, xmm6                                                     ; +0x7e, 0x1403661fe\nmovss   dword ptr [rcx+140h], xmm0                                     ; +0x82, 0x140366202\nmov     r10, r11                                                       ; +0x8a, 0x14036620a\ntest    r11, r11                                                       ; +0x8d, 0x14036620d\njz      short loc_14036621B                                            ; +0x90, 0x140366210\nmov     r11, [r11+120h]                                                ; +0x92, 0x140366212\njmp     short loc_1403661C0                                            ; +0x99, 0x140366219\nmovaps  xmm1, xmm8                                                     ; +0x9b, 0x14036621b\nmov     rcx, rbx                                                       ; +0x9f, 0x14036621f\ncall    GJEffectManager__updatePulseEffects                            ; +0xa2, 0x140366222\nmov     rcx, [rbx+1B8h]                                                ; +0xa7, 0x140366227\nmov     rax, [rcx]                                                     ; +0xae, 0x14036622e\ncmp     rax, rcx                                                       ; +0xb1, 0x140366231\njz      loc_1403662EF                                                  ; +0xb4, 0x140366234\nmovss   xmm6, cs:flt_140835080                                         ; +0xba, 0x14036623a\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0xc2, 0x140366242\nxorps   xmm7, xmm7                                                     ; +0xc7, 0x140366247\nnop     word ptr [rax+rax+00h]                                         ; +0xca, 0x14036624a\ncmp     byte ptr [rax+20h], 0                                          ; +0xd0, 0x140366250\njnz     short loc_1403662B9                                            ; +0xd4, 0x140366254\ncmp     byte ptr [rax+21h], 0                                          ; +0xd6, 0x140366256\njnz     short loc_1403662DA                                            ; +0xda, 0x14036625a\nmovss   xmm4, dword ptr [rax+14h]                                      ; +0xdc, 0x14036625c\nmovaps  xmm2, xmm8                                                     ; +0xe1, 0x140366261\naddss   xmm2, dword ptr [rax+24h]                                      ; +0xe5, 0x140366265\nmovss   dword ptr [rax+24h], xmm2                                      ; +0xea, 0x14036626a\naddss   xmm2, dword ptr [rax+38h]                                      ; +0xef, 0x14036626f\ncomiss  xmm2, xmm4                                                     ; +0xf4, 0x140366274\njb      short loc_14036627E                                            ; +0xf7, 0x140366277\nmovaps  xmm3, xmm6                                                     ; +0xf9, 0x140366279\njmp     short loc_14036628F                                            ; +0xfc, 0x14036627c\ncomiss  xmm2, xmm7                                                     ; +0xfe, 0x14036627e\njbe     short loc_14036628C                                            ; +0x101, 0x140366281\nmovaps  xmm3, xmm2                                                     ; +0x103, 0x140366283\ndivss   xmm3, xmm4                                                     ; +0x106, 0x140366286\njmp     short loc_14036628F                                            ; +0x10a, 0x14036628a\nmovaps  xmm3, xmm7                                                     ; +0x10c, 0x14036628c\nmovss   xmm0, dword ptr [rax+1Ch]                                      ; +0x10f, 0x14036628f\nlea     rdx, [rax+2Ch]                                                 ; +0x114, 0x140366294\nsubss   xmm0, dword ptr [rax+18h]                                      ; +0x118, 0x140366298\ncomiss  xmm2, xmm4                                                     ; +0x11d, 0x14036629d\nmulss   xmm0, xmm3                                                     ; +0x120, 0x1403662a0\nsetnb   cl                                                             ; +0x124, 0x1403662a4\nmov     [rax+20h], cl                                                  ; +0x127, 0x1403662a7\naddss   xmm0, dword ptr [rax+18h]                                      ; +0x12a, 0x1403662aa\nmovss   dword ptr [rdx], xmm0                                          ; +0x12f, 0x1403662af\ntest    cl, cl                                                         ; +0x133, 0x1403662b3\njz      short loc_1403662DA                                            ; +0x135, 0x1403662b5\njmp     short loc_1403662BD                                            ; +0x137, 0x1403662b7\nlea     rdx, [rax+2Ch]                                                 ; +0x139, 0x1403662b9\nmovss   xmm0, dword ptr [rdx]                                          ; +0x13d, 0x1403662bd\ncomiss  xmm0, xmm6                                                     ; +0x141, 0x1403662c1\njb      short loc_1403662DA                                            ; +0x144, 0x1403662c4\nlea     rcx, [rbx+1B0h]                                                ; +0x146, 0x1403662c6\nmov     r8, rax                                                        ; +0x14d, 0x1403662cd\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x150, 0x1403662d0\ncall    sub_1403535F0                                                  ; +0x155, 0x1403662d5\nmov     rax, [rax]                                                     ; +0x15a, 0x1403662da\ncmp     rax, [rbx+1B8h]                                                ; +0x15d, 0x1403662dd\njnz     loc_140366250                                                  ; +0x164, 0x1403662e4\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x16a, 0x1403662ea\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x16f, 0x1403662ef\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x174, 0x1403662f4\nadd     rsp, 50h                                                       ; +0x17a, 0x1403662fa\npop     rbx                                                            ; +0x17e, 0x1403662fe\nretn                                                                   ; +0x17f, 0x1403662ff", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x14033e848", "GJBaseGameLayer::update @ 0x140341c06", "GJBaseGameLayer::update @ 0x140341ecc", "GJEffectManager::loadFromState @ 0x14036f179", "LevelEditorLayer::updateGameObjects @ 0x1403fb10c", "LevelEditorLayer::updateGameObjects @ 0x1403fb5ba", "LevelEditorLayer::onPlaytest @ 0x1403fea46", "PlayLayer::setupHasCompleted @ 0x140505ade", "PlayLayer::loadDefaultColors @ 0x1405109cc", "<???> @ 0x1408babdc", "<???> @ 0x1408babec", "<???> @ 0x1409216e0"], "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"}