{"type": "func", "start": 5371182752, "end": 5371183129, "name": "GJEffectManager::updateEffects", "pseudocode": "// \n// GJEffectManager::updateEffects from 0x14025bea0 to 0x14025c019 (377 bytes)\n// \n// 12 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x140235ac8\n// > GJBaseGameLayer::update @ 0x140238fad\n// > GJBaseGameLayer::update @ 0x140239275\n// > GJEffectManager::loadFromState @ 0x140264b5c\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc865\n// > LevelEditorLayer::updateGameObjects @ 0x1402dcd02\n// > LevelEditorLayer::onPlaytest @ 0x1402dfe88\n// > PlayLayer::setupHasCompleted @ 0x1403a7762\n// > PlayLayer::loadDefaultColors @ 0x1403b1f38\n// > <???> @ 0x140684ad0\n// > <???> @ 0x140684ae0\n// > <???> @ 0x1406cfd68\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJEffectManager::updateEffects(GJEffectManager *a1, float a2)\n{\n  cocos2d::CCDictionary *m_unkObject148; // r10\n  cocos2d::CCDictElement *m_pElements; // r10\n  __int64 v6; // r10\n  cocos2d::CCDictElement *v7; // r11\n  __int64 v8; // rcx\n  std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr Myhead; // rcx\n  _QWORD *v10; // rax\n  float v11; // xmm4_4\n  float v12; // xmm2_4\n  float v13; // xmm2_4\n  float v14; // xmm3_4\n  float v15; // xmm1_4\n  __int64 v16; // [rsp+60h] [rbp+8h] BYREF\n\n  m_unkObject148 = a1->m_unkObject148;\n  if ( m_unkObject148 )\n  {\n    m_pElements = m_unkObject148->m_pElements;\n    if ( m_pElements )\n    {\n      do\n      {\n        ColorAction::step((ColorAction *)m_pElements->m_pObject, a2);\n        if ( !*(_DWORD *)(v6 + 120) )\n        {\n          v8 = *(_QWORD *)(v6 + 144);\n          *(_WORD *)(v8 + 324) = *(_WORD *)(v6 + 58);\n          *(_BYTE *)(v8 + 326) = *(_BYTE *)(v6 + 60);\n          *(float *)(v8 + 320) = *(float *)(v6 + 64) * 255.0;\n        }\n        m_pElements = v7;\n      }\n      while ( v7 );\n    }\n  }\n  GJEffectManager::updatePulseEffects(a1, a2);\n  Myhead = a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead;\n  v10 = *(_QWORD **)Myhead;\n  if ( *(std::_List_val<std::_List_simple_types<std::pair<const int, OpacityEffectAction>>>::_Nodeptr *)Myhead != Myhead )\n  {\n    do\n    {\n      if ( *((_BYTE *)v10 + 32) )\n        goto LABEL_15;\n      if ( !*((_BYTE *)v10 + 33) )\n      {\n        v11 = *((float *)v10 + 5);\n        v12 = a2 + *((float *)v10 + 9);\n        *((float *)v10 + 9) = v12;\n        v13 = v12 + *((float *)v10 + 14);\n        if ( v13 < v11 )\n          v14 = v13 <= 0.0 ? 0.0 : v13 / v11;\n        else\n          v14 = 1.0;\n        v15 = (float)(*((float *)v10 + 7) - *((float *)v10 + 6)) * v14;\n        *((_BYTE *)v10 + 32) = v13 >= v11;\n        *((float *)v10 + 11) = v15 + *((float *)v10 + 6);\n        if ( v13 >= v11 )\n        {\nLABEL_15:\n          if ( *((float *)v10 + 11) >= 1.0 )\n            v10 = sub_14024D170(&a1->m_opacityEffectMap._Traitsobj._Mypair._Myval2._Myval2, &v16, (void **)v10);\n        }\n      }\n      v10 = (_QWORD *)*v10;\n    }\n    while ( v10 != (_QWORD *)a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead );\n  }\n}", "assembly": "; \n; GJEffectManager::updateEffects from 0x14025bea0 to 0x14025c019 (377 bytes)\n; \n; 12 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x140235ac8\n; > GJBaseGameLayer::update @ 0x140238fad\n; > GJBaseGameLayer::update @ 0x140239275\n; > GJEffectManager::loadFromState @ 0x140264b5c\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc865\n; > LevelEditorLayer::updateGameObjects @ 0x1402dcd02\n; > LevelEditorLayer::onPlaytest @ 0x1402dfe88\n; > PlayLayer::setupHasCompleted @ 0x1403a7762\n; > PlayLayer::loadDefaultColors @ 0x1403b1f38\n; > <???> @ 0x140684ad0\n; > <???> @ 0x140684ae0\n; > <???> @ 0x1406cfd68\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14025bea0\nsub     rsp, 50h                                                       ; +0x2, 0x14025bea2\nmov     r10, [rcx+148h]                                                ; +0x6, 0x14025bea6\nmov     rbx, rcx                                                       ; +0xd, 0x14025bead\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x10, 0x14025beb0\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x15, 0x14025beb5\nmovaps  xmm8, xmm1                                                     ; +0x1b, 0x14025bebb\ntest    r10, r10                                                       ; +0x1f, 0x14025bebf\njz      short loc_14025BF3B                                            ; +0x22, 0x14025bec2\nmov     r10, [r10+38h]                                                 ; +0x24, 0x14025bec4\ntest    r10, r10                                                       ; +0x28, 0x14025bec8\njz      short loc_14025BF3B                                            ; +0x2b, 0x14025becb\nmov     r11, [r10+120h]                                                ; +0x2d, 0x14025becd\nmovss   xmm6, cs:dword_140623418                                       ; +0x34, 0x14025bed4\nnop     dword ptr [rax+00h]                                            ; +0x3c, 0x14025bedc\nmov     r10, [r10+108h]                                                ; +0x40, 0x14025bee0\nmovaps  xmm1, xmm8                                                     ; +0x47, 0x14025bee7\nmov     rcx, r10                                                       ; +0x4b, 0x14025beeb\ncall    ColorAction__step                                              ; +0x4e, 0x14025beee\ncmp     dword ptr [r10+78h], 0                                         ; +0x53, 0x14025bef3\njnz     short loc_14025BF2A                                            ; +0x58, 0x14025bef8\nmovzx   eax, word ptr [r10+3Ah]                                        ; +0x5a, 0x14025befa\nmov     rcx, [r10+90h]                                                 ; +0x5f, 0x14025beff\nmov     [rcx+144h], ax                                                 ; +0x66, 0x14025bf06\nmovzx   eax, byte ptr [r10+3Ch]                                        ; +0x6d, 0x14025bf0d\nmov     [rcx+146h], al                                                 ; +0x72, 0x14025bf12\nmovss   xmm0, dword ptr [r10+40h]                                      ; +0x78, 0x14025bf18\nmulss   xmm0, xmm6                                                     ; +0x7e, 0x14025bf1e\nmovss   dword ptr [rcx+140h], xmm0                                     ; +0x82, 0x14025bf22\nmov     r10, r11                                                       ; +0x8a, 0x14025bf2a\ntest    r11, r11                                                       ; +0x8d, 0x14025bf2d\njz      short loc_14025BF3B                                            ; +0x90, 0x14025bf30\nmov     r11, [r11+120h]                                                ; +0x92, 0x14025bf32\njmp     short loc_14025BEE0                                            ; +0x99, 0x14025bf39\nmovaps  xmm1, xmm8                                                     ; +0x9b, 0x14025bf3b\nmov     rcx, rbx                                                       ; +0x9f, 0x14025bf3f\ncall    GJEffectManager__updatePulseEffects                            ; +0xa2, 0x14025bf42\nmov     rcx, [rbx+1B8h]                                                ; +0xa7, 0x14025bf47\nmov     rax, [rcx]                                                     ; +0xae, 0x14025bf4e\ncmp     rax, rcx                                                       ; +0xb1, 0x14025bf51\njz      loc_14025C008                                                  ; +0xb4, 0x14025bf54\nmovss   xmm6, cs:flt_140622C24                                         ; +0xba, 0x14025bf5a\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0xc2, 0x14025bf62\nxorps   xmm7, xmm7                                                     ; +0xc7, 0x14025bf67\nnop     word ptr [rax+rax+00h]                                         ; +0xca, 0x14025bf6a\nmovzx   ecx, byte ptr [rax+20h]                                        ; +0xd0, 0x14025bf70\ntest    cl, cl                                                         ; +0xd4, 0x14025bf74\njnz     short loc_14025BFD5                                            ; +0xd6, 0x14025bf76\ncmp     [rax+21h], cl                                                  ; +0xd8, 0x14025bf78\njnz     short loc_14025BFF3                                            ; +0xdb, 0x14025bf7b\nmovss   xmm4, dword ptr [rax+14h]                                      ; +0xdd, 0x14025bf7d\nmovaps  xmm2, xmm8                                                     ; +0xe2, 0x14025bf82\naddss   xmm2, dword ptr [rax+24h]                                      ; +0xe6, 0x14025bf86\nmovss   dword ptr [rax+24h], xmm2                                      ; +0xeb, 0x14025bf8b\naddss   xmm2, dword ptr [rax+38h]                                      ; +0xf0, 0x14025bf90\ncomiss  xmm2, xmm4                                                     ; +0xf5, 0x14025bf95\njb      short loc_14025BF9F                                            ; +0xf8, 0x14025bf98\nmovaps  xmm3, xmm6                                                     ; +0xfa, 0x14025bf9a\njmp     short loc_14025BFB0                                            ; +0xfd, 0x14025bf9d\ncomiss  xmm2, xmm7                                                     ; +0xff, 0x14025bf9f\njbe     short loc_14025BFAD                                            ; +0x102, 0x14025bfa2\nmovaps  xmm3, xmm2                                                     ; +0x104, 0x14025bfa4\ndivss   xmm3, xmm4                                                     ; +0x107, 0x14025bfa7\njmp     short loc_14025BFB0                                            ; +0x10b, 0x14025bfab\nmovaps  xmm3, xmm7                                                     ; +0x10d, 0x14025bfad\nmovss   xmm1, dword ptr [rax+1Ch]                                      ; +0x110, 0x14025bfb0\nsubss   xmm1, dword ptr [rax+18h]                                      ; +0x115, 0x14025bfb5\ncomiss  xmm2, xmm4                                                     ; +0x11a, 0x14025bfba\nmulss   xmm1, xmm3                                                     ; +0x11d, 0x14025bfbd\nsetnb   cl                                                             ; +0x121, 0x14025bfc1\nmov     [rax+20h], cl                                                  ; +0x124, 0x14025bfc4\naddss   xmm1, dword ptr [rax+18h]                                      ; +0x127, 0x14025bfc7\nmovss   dword ptr [rax+2Ch], xmm1                                      ; +0x12c, 0x14025bfcc\ntest    cl, cl                                                         ; +0x131, 0x14025bfd1\njz      short loc_14025BFF3                                            ; +0x133, 0x14025bfd3\nmovss   xmm0, dword ptr [rax+2Ch]                                      ; +0x135, 0x14025bfd5\ncomiss  xmm0, xmm6                                                     ; +0x13a, 0x14025bfda\njb      short loc_14025BFF3                                            ; +0x13d, 0x14025bfdd\nlea     rcx, [rbx+1B0h]                                                ; +0x13f, 0x14025bfdf\nmov     r8, rax                                                        ; +0x146, 0x14025bfe6\nlea     rdx, [rsp+58h+arg_0]                                           ; +0x149, 0x14025bfe9\ncall    sub_14024D170                                                  ; +0x14e, 0x14025bfee\nmov     rax, [rax]                                                     ; +0x153, 0x14025bff3\ncmp     rax, [rbx+1B8h]                                                ; +0x156, 0x14025bff6\njnz     loc_14025BF70                                                  ; +0x15d, 0x14025bffd\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x163, 0x14025c003\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x168, 0x14025c008\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x16d, 0x14025c00d\nadd     rsp, 50h                                                       ; +0x173, 0x14025c013\npop     rbx                                                            ; +0x177, 0x14025c017\nretn                                                                   ; +0x178, 0x14025c018", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x140235ac8", "GJBaseGameLayer::update @ 0x140238fad", "GJBaseGameLayer::update @ 0x140239275", "GJEffectManager::loadFromState @ 0x140264b5c", "LevelEditorLayer::updateGameObjects @ 0x1402dc865", "LevelEditorLayer::updateGameObjects @ 0x1402dcd02", "LevelEditorLayer::onPlaytest @ 0x1402dfe88", "PlayLayer::setupHasCompleted @ 0x1403a7762", "PlayLayer::loadDefaultColors @ 0x1403b1f38", "<???> @ 0x140684ad0", "<???> @ 0x140684ae0", "<???> @ 0x1406cfd68"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}