{"type": "func", "start": 3030102, "end": 3030166, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x2e3c56 to 0x2e3c96 (64 bytes)\n// \n// 11 xrefs:\n// > EditorUI::updateDeleteButtons @ 0x37d562\n// > EditorUI::updateDeleteButtons @ 0x37d5a0\n// > EditorUI::updateDeleteButtons @ 0x37d608\n// > EditorUI::updateEditButtonColor @ 0x37e0a2\n// > EditorUI::toggleSpecialEditButtons @ 0x39ca64\n// > EditorUI::updateButtons @ 0x39cbc4\n// > RateLevelLayer::selectRating @ 0x4080f4\n// > GJRateLevelLayer::selectRating @ 0x453298\n// > NumberInputLayer::updateNumberState @ 0x455144\n// > RateStarsLayer::selectRating @ 0x4557cc\n// > RateDemonLayer::selectRating @ 0x4e611a\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 ButtonSprite::setColor(ButtonSprite *a1, cocos2d::ccColor3B a2)\n{\n  cocos2d::CCLabelBMFont *m_label; // r0\n  cocos2d::CCSprite *m_subSprite; // r0\n  void *m_BGSprite; // r0\n  int v6; // [sp+4h] [bp-4h] BYREF\n\n  v6 = *(_DWORD *)&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 *, int *))(*(_DWORD *)m_BGSprite + 472))(m_BGSprite, &v6);\n}", "assembly": "; \n; ButtonSprite::setColor from 0x2e3c56 to 0x2e3c96 (64 bytes)\n; \n; 11 xrefs:\n; > EditorUI::updateDeleteButtons @ 0x37d562\n; > EditorUI::updateDeleteButtons @ 0x37d5a0\n; > EditorUI::updateDeleteButtons @ 0x37d608\n; > EditorUI::updateEditButtonColor @ 0x37e0a2\n; > EditorUI::toggleSpecialEditButtons @ 0x39ca64\n; > EditorUI::updateButtons @ 0x39cbc4\n; > RateLevelLayer::selectRating @ 0x4080f4\n; > GJRateLevelLayer::selectRating @ 0x453298\n; > NumberInputLayer::updateNumberState @ 0x455144\n; > RateStarsLayer::selectRating @ 0x4557cc\n; > RateDemonLayer::selectRating @ 0x4e611a\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            {R0,R1,R4,LR}                                          ; +0x0, 0x2e3c56\nMOV             R4, R0                                                 ; +0x2, 0x2e3c58\nSTR             R1, [SP,#8+var_4]                                      ; +0x4, 0x2e3c5a\nLDR.W           R0, [R0,#0x214]                                        ; +0x6, 0x2e3c5c\nCBZ             R0, loc_2E3C6C                                         ; +0xa, 0x2e3c60\nLDR             R3, [R0]                                               ; +0xc, 0x2e3c62\nADD             R1, SP, #8+var_4                                       ; +0xe, 0x2e3c64\nLDR.W           R3, [R3,#0x210]                                        ; +0x10, 0x2e3c66\nBLX             R3                                                     ; +0x14, 0x2e3c6a\nLDR.W           R0, [R4,#0x218]                                        ; +0x16, 0x2e3c6c\nCBZ             R0, loc_2E3C7C                                         ; +0x1a, 0x2e3c70\nLDR             R3, [R0]                                               ; +0x1c, 0x2e3c72\nADD             R1, SP, #8+var_4                                       ; +0x1e, 0x2e3c74\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x20, 0x2e3c76\nBLX             R3                                                     ; +0x24, 0x2e3c7a\nLDR.W           R0, [R4,#0x220]                                        ; +0x26, 0x2e3c7c\nCBNZ            R0, loc_2E3C88                                         ; +0x2a, 0x2e3c80\nLDR.W           R0, [R4,#0x21C]                                        ; +0x2c, 0x2e3c82\nCBZ             R0, loc_2E3C92                                         ; +0x30, 0x2e3c86\nLDR             R3, [R0]                                               ; +0x32, 0x2e3c88\nADD             R1, SP, #8+var_4                                       ; +0x34, 0x2e3c8a\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x36, 0x2e3c8c\nBLX             R3                                                     ; +0x3a, 0x2e3c90\nADD             SP, SP, #8                                             ; +0x3c, 0x2e3c92\nPOP             {R4,PC}                                                ; +0x3e, 0x2e3c94", "xrefs": ["EditorUI::updateDeleteButtons @ 0x37d562", "EditorUI::updateDeleteButtons @ 0x37d5a0", "EditorUI::updateDeleteButtons @ 0x37d608", "EditorUI::updateEditButtonColor @ 0x37e0a2", "EditorUI::toggleSpecialEditButtons @ 0x39ca64", "EditorUI::updateButtons @ 0x39cbc4", "RateLevelLayer::selectRating @ 0x4080f4", "GJRateLevelLayer::selectRating @ 0x453298", "NumberInputLayer::updateNumberState @ 0x455144", "RateStarsLayer::selectRating @ 0x4557cc", "RateDemonLayer::selectRating @ 0x4e611a"], "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"}