{"type": "func", "start": 5702440, "end": 5702560, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x570328 to 0x5703a0 (120 bytes)\n// \n// 17 xrefs:\n// > EditorUI::updateDeleteButtons @ 0x68896c\n// > EditorUI::updateDeleteButtons @ 0x6889cc\n// > EditorUI::updateDeleteButtons @ 0x688a34\n// > EditorUI::updateEditButtonColor @ 0x689f74\n// > EditorUI::toggleSpecialEditButtons @ 0x6b4eec\n// > EditorUI::updateButtons @ 0x6b50fc\n// > EditorUI::updateButtons @ 0x6b5600\n// > RateLevelLayer::selectRating @ 0x79aad4\n// > RateLevelLayer::selectRating @ 0x79ab30\n// > GJRateLevelLayer::selectRating @ 0x820374\n// > GJRateLevelLayer::selectRating @ 0x82040c\n// > NumberInputLayer::updateNumberState @ 0x8238c4\n// > RateStarsLayer::selectRating @ 0x824480\n// > RateStarsLayer::selectRating @ 0x824518\n// > RateDemonLayer::selectRating @ 0x933c18\n// > RateDemonLayer::selectRating @ 0x933c44\n// > <???> @ 0x66798\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\n// local variable allocation has failed, the output may be wrong!\nvoid ButtonSprite::setColor(ButtonSprite *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCLabelBMFont *m_label; // x0\n  cocos2d::CCSprite *m_subSprite; // x0\n  void *m_BGSprite; // x0\n  __int64 v6; // [xsp+28h] [xbp+28h] BYREF\n\n  v6 = *(_QWORD *)&a2.r;\n  m_label = a1->m_label;\n  if ( m_label )\n    m_label->setColor(m_label, (const cocos2d::ccColor3B *)&v6);\n  m_subSprite = a1->m_subSprite;\n  if ( m_subSprite )\n    m_subSprite->setColor(m_subSprite, (const cocos2d::ccColor3B *)&v6);\n  m_BGSprite = a1->m_BGSprite;\n  if ( m_BGSprite || (m_BGSprite = a1->m_subBGSprite) != nullptr )\n    (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)m_BGSprite + 944LL))(m_BGSprite, &v6);\n}", "assembly": "; \n; ButtonSprite::setColor from 0x570328 to 0x5703a0 (120 bytes)\n; \n; 17 xrefs:\n; > EditorUI::updateDeleteButtons @ 0x68896c\n; > EditorUI::updateDeleteButtons @ 0x6889cc\n; > EditorUI::updateDeleteButtons @ 0x688a34\n; > EditorUI::updateEditButtonColor @ 0x689f74\n; > EditorUI::toggleSpecialEditButtons @ 0x6b4eec\n; > EditorUI::updateButtons @ 0x6b50fc\n; > EditorUI::updateButtons @ 0x6b5600\n; > RateLevelLayer::selectRating @ 0x79aad4\n; > RateLevelLayer::selectRating @ 0x79ab30\n; > GJRateLevelLayer::selectRating @ 0x820374\n; > GJRateLevelLayer::selectRating @ 0x82040c\n; > NumberInputLayer::updateNumberState @ 0x8238c4\n; > RateStarsLayer::selectRating @ 0x824480\n; > RateStarsLayer::selectRating @ 0x824518\n; > RateDemonLayer::selectRating @ 0x933c18\n; > RateDemonLayer::selectRating @ 0x933c44\n; > <???> @ 0x66798\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x570328\nMOV             X29, SP                                                ; +0x4, 0x57032c\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x570330\nMOV             X19, X0                                                ; +0xc, 0x570334\nADD             X20, X29, #0x30+var_8                                  ; +0x10, 0x570338\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x14, 0x57033c\nLDR             X0, [X0,#0x270]                                        ; +0x18, 0x570340\nCBZ             X0, loc_570358                                         ; +0x1c, 0x570344\nLDR             X2, [X0]                                               ; +0x20, 0x570348\nMOV             X1, X20                                                ; +0x24, 0x57034c\nLDR             X2, [X2,#0x420]                                        ; +0x28, 0x570350\nBLR             X2                                                     ; +0x2c, 0x570354\nLDR             X0, [X19,#0x278]                                       ; +0x30, 0x570358\nCBZ             X0, loc_570370                                         ; +0x34, 0x57035c\nLDR             X2, [X0]                                               ; +0x38, 0x570360\nMOV             X1, X20                                                ; +0x3c, 0x570364\nLDR             X2, [X2,#0x3B0]                                        ; +0x40, 0x570368\nBLR             X2                                                     ; +0x44, 0x57036c\nLDR             X0, [X19,#0x288]                                       ; +0x48, 0x570370\nCBZ             X0, loc_570394                                         ; +0x4c, 0x570374\nLDR             X2, [X0]                                               ; +0x50, 0x570378\nMOV             X1, X20                                                ; +0x54, 0x57037c\nLDR             X2, [X2,#0x3B0]                                        ; +0x58, 0x570380\nBLR             X2                                                     ; +0x5c, 0x570384\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x60, 0x570388\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x64, 0x57038c\nRET                                                                    ; +0x68, 0x570390\nLDR             X0, [X19,#0x280]                                       ; +0x6c, 0x570394\nCBNZ            X0, loc_570378                                         ; +0x70, 0x570398\nB               loc_570388                                             ; +0x74, 0x57039c", "xrefs": ["EditorUI::updateDeleteButtons @ 0x68896c", "EditorUI::updateDeleteButtons @ 0x6889cc", "EditorUI::updateDeleteButtons @ 0x688a34", "EditorUI::updateEditButtonColor @ 0x689f74", "EditorUI::toggleSpecialEditButtons @ 0x6b4eec", "EditorUI::updateButtons @ 0x6b50fc", "EditorUI::updateButtons @ 0x6b5600", "RateLevelLayer::selectRating @ 0x79aad4", "RateLevelLayer::selectRating @ 0x79ab30", "GJRateLevelLayer::selectRating @ 0x820374", "GJRateLevelLayer::selectRating @ 0x82040c", "NumberInputLayer::updateNumberState @ 0x8238c4", "RateStarsLayer::selectRating @ 0x824480", "RateStarsLayer::selectRating @ 0x824518", "RateDemonLayer::selectRating @ 0x933c18", "RateDemonLayer::selectRating @ 0x933c44", "<???> @ 0x66798"], "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"}