{"type": "func", "start": 4295029356, "end": 4295029504, "name": "GJEffectManager::calculateBaseActiveColors", "pseudocode": "// \n// GJEffectManager::calculateBaseActiveColors from 0x10000f26c to 0x10000f300 (148 bytes)\n// \n// 3 xrefs:\n// > GJEffectManager::processColors @ 0x10000f248\n// > GJEffectManager::loadFromState @ 0x1000171ac\n// > PlayLayer::loadDefaultColors @ 0x1001187ec\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 __fastcall GJEffectManager::calculateBaseActiveColors(GJEffectManager *a1)\n{\n  cocos2d::CCDictionary *m_unkDict150; // x8\n  cocos2d::CCDictElement *i; // x19\n  cocos2d::CCObject *m_pObject; // x20\n  cocos2d::CCObject_vtbl *v4; // x8\n  cocos2d::ccColor3B v5; // [xsp+Ch] [xbp-14h] BYREF\n\n  m_unkDict150 = a1->m_unkDict150;\n  if ( m_unkDict150 )\n  {\n    for ( i = m_unkDict150->m_pElements; i; *((cocos2d::ccColor3B *)&m_pObject[5].m_unknown2 + 1) = v5 )\n    {\n      m_pObject = i->m_pObject;\n      i = (cocos2d::CCDictElement *)i->hh.next;\n      v4 = m_pObject[6].__vftable;\n      v5 = *(cocos2d::ccColor3B *)&m_pObject[5].m_unknown2;\n      if ( v4 && SLODWORD(v4[1].update) >= 1 && (BYTE6(v4[1].update) & 1) == 0 )\n        v5 = GameToolbox::transformColor_1(&v5, *(cocos2d::ccHSVValue *)&v4[1].isEqual);\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::calculateBaseActiveColors from 0x10000f26c to 0x10000f300 (148 bytes)\n; \n; 3 xrefs:\n; > GJEffectManager::processColors @ 0x10000f248\n; > GJEffectManager::loadFromState @ 0x1000171ac\n; > PlayLayer::loadDefaultColors @ 0x1001187ec\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\nLDR             X8, [X0,#0x150]                                        ; +0x0, 0x10000f26c\nCBZ             X8, locret_10000F2FC                                   ; +0x4, 0x10000f270\nSUB             SP, SP, #0x30                                          ; +0x8, 0x10000f274\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x10000f278\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x10000f27c\nADD             X29, SP, #0x20                                         ; +0x14, 0x10000f280\nLDR             X19, [X8,#0x38]                                        ; +0x18, 0x10000f284\nCBZ             X19, loc_10000F2F0                                     ; +0x1c, 0x10000f288\nLDR             X20, [X19,#0x108]                                      ; +0x20, 0x10000f28c\nLDR             X19, [X19,#0x120]                                      ; +0x24, 0x10000f290\nLDR             X8, [X20,#0x150]                                       ; +0x28, 0x10000f294\nLDRH            W9, [X20,#0x140]                                       ; +0x2c, 0x10000f298\nSTRH            W9, [SP,#0x20+var_14]                                  ; +0x30, 0x10000f29c\nLDRB            W9, [X20,#0x142]                                       ; +0x34, 0x10000f2a0\nSTRB            W9, [SP,#0x20+var_12]                                  ; +0x38, 0x10000f2a4\nCBZ             X8, loc_10000F2D8                                      ; +0x3c, 0x10000f2a8\nLDR             W9, [X8,#0x78]                                         ; +0x40, 0x10000f2ac\nCMP             W9, #1                                                 ; +0x44, 0x10000f2b0\nB.LT            loc_10000F2D8                                          ; +0x48, 0x10000f2b4\nLDRB            W9, [X8,#0x7E]                                         ; +0x4c, 0x10000f2b8\nTBNZ            W9, #0, loc_10000F2D8                                  ; +0x50, 0x10000f2bc\nLDP             X1, X2, [X8,#0x68]                                     ; +0x54, 0x10000f2c0\nADD             X0, SP, #0x20+var_14                                   ; +0x58, 0x10000f2c4\nBL              GameToolbox__transformColor_1                          ; +0x5c, 0x10000f2c8\nSTRH            W0, [SP,#0x20+var_14]                                  ; +0x60, 0x10000f2cc\nLSR             W8, W0, #0x10                                          ; +0x64, 0x10000f2d0\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x68, 0x10000f2d4\nADD             X8, X20, #0x143                                        ; +0x6c, 0x10000f2d8\nLDRB            W9, [SP,#0x20+var_12]                                  ; +0x70, 0x10000f2dc\nSTRB            W9, [X20,#0x145]                                       ; +0x74, 0x10000f2e0\nLDRH            W9, [SP,#0x20+var_14]                                  ; +0x78, 0x10000f2e4\nSTRH            W9, [X8]                                               ; +0x7c, 0x10000f2e8\nCBNZ            X19, loc_10000F28C                                     ; +0x80, 0x10000f2ec\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x10000f2f0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x10000f2f4\nADD             SP, SP, #0x30 ; '0'                                    ; +0x8c, 0x10000f2f8\nRET                                                                    ; +0x90, 0x10000f2fc", "xrefs": ["GJEffectManager::processColors @ 0x10000f248", "GJEffectManager::loadFromState @ 0x1000171ac", "PlayLayer::loadDefaultColors @ 0x1001187ec"], "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"}