{"type": "func", "start": 4297466760, "end": 4297466868, "name": "GameObject::updateSecondaryColor", "pseudocode": "// \n// GameObject::updateSecondaryColor from 0x100262388 to 0x1002623f4 (108 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateVisibility @ 0x10011c880\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 GameObject::updateSecondaryColor(GameObject *a1)\n{\n  int m_activeDetailColorID; // w1\n  const cocos2d::ccColor3B *v3; // x0\n\n  if ( a1->m_colorSprite )\n  {\n    m_activeDetailColorID = a1->m_activeDetailColorID;\n    if ( m_activeDetailColorID || a1->m_groupCount )\n    {\n      v3 = GameObject::colorForMode(a1, m_activeDetailColorID, 0);\n      ((void (__fastcall *)(GameObject *, const cocos2d::ccColor3B *))a1->updateSecondaryColor)(a1, v3);\n      a1->m_detailColor->m_opacity = GameObject::opacityModForMode(a1, a1->m_activeDetailColorID, 0);\n    }\n  }\n}", "assembly": "; \n; GameObject::updateSecondaryColor from 0x100262388 to 0x1002623f4 (108 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateVisibility @ 0x10011c880\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,#0x378]                                        ; +0x0, 0x100262388\nCBZ             X8, locret_1002623F0                                   ; +0x4, 0x10026238c\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x100262390\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x100262394\nADD             X29, SP, #0x10                                         ; +0x10, 0x100262398\nMOV             X19, X0                                                ; +0x14, 0x10026239c\nLDR             W1, [X0,#0x294]                                        ; +0x18, 0x1002623a0\nCBNZ            W1, loc_1002623B0                                      ; +0x1c, 0x1002623a4\nLDRH            W8, [X19,#0x490]                                       ; +0x20, 0x1002623a8\nCBZ             W8, loc_1002623E8                                      ; +0x24, 0x1002623ac\nMOV             X0, X19                                                ; +0x28, 0x1002623b0\nMOV             W2, #0                                                 ; +0x2c, 0x1002623b4\nBL              GameObject__colorForMode                               ; +0x30, 0x1002623b8\nMOV             X1, X0                                                 ; +0x34, 0x1002623bc\nLDR             X8, [X19]                                              ; +0x38, 0x1002623c0\nLDR             X8, [X8,#0x628]                                        ; +0x3c, 0x1002623c4\nMOV             X0, X19                                                ; +0x40, 0x1002623c8\nBLR             X8                                                     ; +0x44, 0x1002623cc\nLDR             W1, [X19,#0x294]                                       ; +0x48, 0x1002623d0\nMOV             X0, X19                                                ; +0x4c, 0x1002623d4\nMOV             W2, #0                                                 ; +0x50, 0x1002623d8\nBL              GameObject__opacityModForMode                          ; +0x54, 0x1002623dc\nLDR             X8, [X19,#0x450]                                       ; +0x58, 0x1002623e0\nSTR             S0, [X8,#8]                                            ; +0x5c, 0x1002623e4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x60, 0x1002623e8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x64, 0x1002623ec\nRET                                                                    ; +0x68, 0x1002623f0", "xrefs": ["PlayLayer::updateVisibility @ 0x10011c880"], "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"}