{"type": "func", "start": 4295359168, "end": 4295359296, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x10005fac0 to 0x10005fb40 (128 bytes)\n// \n// 11 xrefs:\n// > RateLevelLayer::selectRating @ 0x10005ea14\n// > RateStarsLayer::selectRating @ 0x1000808fc\n// > NumberInputLayer::updateNumberState @ 0x1000f94a4\n// > GJRateLevelLayer::selectRating @ 0x1001b1734\n// > EditorUI::updateButtons @ 0x1003e5bd8\n// > EditorUI::toggleSpecialEditButtons @ 0x1003e65b4\n// > EditorUI::updateDeleteButtons @ 0x1003e9808\n// > EditorUI::updateDeleteButtons @ 0x1003e985c\n// > EditorUI::updateDeleteButtons @ 0x1003e98c0\n// > EditorUI::updateEditButtonColor @ 0x1003ef0d0\n// > RateDemonLayer::selectRating @ 0x10042680c\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 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  cocos2d::ccColor3B v6; // [xsp+Ch] [xbp-14h] BYREF\n\n  v6 = a2;\n  m_label = a1->m_label;\n  if ( m_label )\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::ccColor3B *))m_label->setColor)(m_label, &v6);\n  m_subSprite = a1->m_subSprite;\n  if ( m_subSprite )\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_subSprite->setColor)(m_subSprite, &v6);\n  m_BGSprite = a1->m_BGSprite;\n  if ( m_BGSprite || (m_BGSprite = a1->m_subBGSprite) != nullptr )\n    (*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)m_BGSprite + 944LL))(m_BGSprite, &v6);\n}", "assembly": "; \n; ButtonSprite::setColor from 0x10005fac0 to 0x10005fb40 (128 bytes)\n; \n; 11 xrefs:\n; > RateLevelLayer::selectRating @ 0x10005ea14\n; > RateStarsLayer::selectRating @ 0x1000808fc\n; > NumberInputLayer::updateNumberState @ 0x1000f94a4\n; > GJRateLevelLayer::selectRating @ 0x1001b1734\n; > EditorUI::updateButtons @ 0x1003e5bd8\n; > EditorUI::toggleSpecialEditButtons @ 0x1003e65b4\n; > EditorUI::updateDeleteButtons @ 0x1003e9808\n; > EditorUI::updateDeleteButtons @ 0x1003e985c\n; > EditorUI::updateDeleteButtons @ 0x1003e98c0\n; > EditorUI::updateEditButtonColor @ 0x1003ef0d0\n; > RateDemonLayer::selectRating @ 0x10042680c\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x10005fac0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10005fac4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10005fac8\nADD             X29, SP, #0x20                                         ; +0xc, 0x10005facc\nMOV             X19, X0                                                ; +0x10, 0x10005fad0\nSTRH            W1, [SP,#0x20+var_14]                                  ; +0x14, 0x10005fad4\nUBFX            X8, X1, #0x10, #0x10                                   ; +0x18, 0x10005fad8\nSTRB            W8, [SP,#0x20+var_12]                                  ; +0x1c, 0x10005fadc\nLDR             X0, [X0,#0x270]                                        ; +0x20, 0x10005fae0\nCBZ             X0, loc_10005FAF8                                      ; +0x24, 0x10005fae4\nLDR             X8, [X0]                                               ; +0x28, 0x10005fae8\nLDR             X8, [X8,#0x420]                                        ; +0x2c, 0x10005faec\nADD             X1, SP, #0x20+var_14                                   ; +0x30, 0x10005faf0\nBLR             X8                                                     ; +0x34, 0x10005faf4\nLDR             X0, [X19,#0x278]                                       ; +0x38, 0x10005faf8\nCBZ             X0, loc_10005FB10                                      ; +0x3c, 0x10005fafc\nLDR             X8, [X0]                                               ; +0x40, 0x10005fb00\nLDR             X8, [X8,#0x3B0]                                        ; +0x44, 0x10005fb04\nADD             X1, SP, #0x20+var_14                                   ; +0x48, 0x10005fb08\nBLR             X8                                                     ; +0x4c, 0x10005fb0c\nLDR             X0, [X19,#0x288]                                       ; +0x50, 0x10005fb10\nCBNZ            X0, loc_10005FB20                                      ; +0x54, 0x10005fb14\nLDR             X0, [X19,#0x280]                                       ; +0x58, 0x10005fb18\nCBZ             X0, loc_10005FB30                                      ; +0x5c, 0x10005fb1c\nLDR             X8, [X0]                                               ; +0x60, 0x10005fb20\nLDR             X8, [X8,#0x3B0]                                        ; +0x64, 0x10005fb24\nADD             X1, SP, #0x20+var_14                                   ; +0x68, 0x10005fb28\nBLR             X8                                                     ; +0x6c, 0x10005fb2c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x10005fb30\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x10005fb34\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x10005fb38\nRET                                                                    ; +0x7c, 0x10005fb3c", "xrefs": ["RateLevelLayer::selectRating @ 0x10005ea14", "RateStarsLayer::selectRating @ 0x1000808fc", "NumberInputLayer::updateNumberState @ 0x1000f94a4", "GJRateLevelLayer::selectRating @ 0x1001b1734", "EditorUI::updateButtons @ 0x1003e5bd8", "EditorUI::toggleSpecialEditButtons @ 0x1003e65b4", "EditorUI::updateDeleteButtons @ 0x1003e9808", "EditorUI::updateDeleteButtons @ 0x1003e985c", "EditorUI::updateDeleteButtons @ 0x1003e98c0", "EditorUI::updateEditButtonColor @ 0x1003ef0d0", "RateDemonLayer::selectRating @ 0x10042680c"], "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"}