{"type": "func", "start": 4295570368, "end": 4295570482, "name": "ButtonSprite::setColor", "pseudocode": "// \n// ButtonSprite::setColor from 0x1000933c0 to 0x100093432 (114 bytes)\n// \n// 17 xrefs:\n// > EditorUI::updateButtons @ 0x10002c987\n// > EditorUI::toggleSpecialEditButtons @ 0x10002d5d7\n// > EditorUI::toggleSpecialEditButtons @ 0x10002d6c8\n// > EditorUI::toggleSpecialEditButtons @ 0x10002d7b5\n// > EditorUI::toggleSpecialEditButtons @ 0x10002d89a\n// > EditorUI::updateDeleteButtons @ 0x1000324e2\n// > EditorUI::updateDeleteButtons @ 0x100032544\n// > EditorUI::updateDeleteButtons @ 0x1000325a4\n// > EditorUI::updateEditButtonColor @ 0x10003eb19\n// > RateDemonLayer::selectRating @ 0x100284273\n// > RateStarsLayer::selectRating @ 0x10028c500\n// > NumberInputLayer::init @ 0x100492de8\n// > NumberInputLayer::updateNumberState @ 0x100492f4f\n// > NumberInputLayer::deleteLast @ 0x100493110\n// > NumberInputLayer::inputNumber @ 0x100493275\n// > GJRateLevelLayer::selectRating @ 0x100506630\n// > RateLevelLayer::selectRating @ 0x10056842e\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  __int64 v2; // rax\n  cocos2d::CCLabelBMFont *m_label; // rdi\n  cocos2d::CCSprite *m_subSprite; // rdi\n  void *m_BGSprite; // rdi\n  cocos2d::ccColor3B v7; // [rsp+0h] [rbp-Ch] BYREF\n  char v8; // [rsp+3h] [rbp-9h]\n\n  v8 = HIBYTE(v2);\n  v7 = a2;\n  m_label = a1->m_label;\n  if ( m_label )\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::ccColor3B *))m_label->setColor)(m_label, &v7);\n  m_subSprite = a1->m_subSprite;\n  if ( m_subSprite )\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_subSprite->setColor)(m_subSprite, &v7);\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, &v7);\n}", "assembly": "; \n; ButtonSprite::setColor from 0x1000933c0 to 0x100093432 (114 bytes)\n; \n; 17 xrefs:\n; > EditorUI::updateButtons @ 0x10002c987\n; > EditorUI::toggleSpecialEditButtons @ 0x10002d5d7\n; > EditorUI::toggleSpecialEditButtons @ 0x10002d6c8\n; > EditorUI::toggleSpecialEditButtons @ 0x10002d7b5\n; > EditorUI::toggleSpecialEditButtons @ 0x10002d89a\n; > EditorUI::updateDeleteButtons @ 0x1000324e2\n; > EditorUI::updateDeleteButtons @ 0x100032544\n; > EditorUI::updateDeleteButtons @ 0x1000325a4\n; > EditorUI::updateEditButtonColor @ 0x10003eb19\n; > RateDemonLayer::selectRating @ 0x100284273\n; > RateStarsLayer::selectRating @ 0x10028c500\n; > NumberInputLayer::init @ 0x100492de8\n; > NumberInputLayer::updateNumberState @ 0x100492f4f\n; > NumberInputLayer::deleteLast @ 0x100493110\n; > NumberInputLayer::inputNumber @ 0x100493275\n; > GJRateLevelLayer::selectRating @ 0x100506630\n; > RateLevelLayer::selectRating @ 0x10056842e\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    rbp                                                            ; +0x0, 0x1000933c0\nmov     rbp, rsp                                                       ; +0x1, 0x1000933c1\npush    rbx                                                            ; +0x4, 0x1000933c4\npush    rax                                                            ; +0x5, 0x1000933c5\nmov     rbx, rdi                                                       ; +0x6, 0x1000933c6\nmov     [rbp+var_C], si                                                ; +0x9, 0x1000933c9\nshr     esi, 10h                                                       ; +0xd, 0x1000933cd\nmov     [rbp+var_A], sil                                               ; +0x10, 0x1000933d0\nmov     rdi, [rdi+270h]                                                ; +0x14, 0x1000933d4\ntest    rdi, rdi                                                       ; +0x1b, 0x1000933db\njz      short loc_1000933ED                                            ; +0x1e, 0x1000933de\nmov     rax, [rdi]                                                     ; +0x20, 0x1000933e0\nlea     rsi, [rbp+var_C]                                               ; +0x23, 0x1000933e3\ncall    qword ptr [rax+420h]                                           ; +0x27, 0x1000933e7\nmov     rdi, [rbx+278h]                                                ; +0x2d, 0x1000933ed\ntest    rdi, rdi                                                       ; +0x34, 0x1000933f4\njz      short loc_100093406                                            ; +0x37, 0x1000933f7\nmov     rax, [rdi]                                                     ; +0x39, 0x1000933f9\nlea     rsi, [rbp+var_C]                                               ; +0x3c, 0x1000933fc\ncall    qword ptr [rax+3B0h]                                           ; +0x40, 0x100093400\nmov     rdi, [rbx+288h]                                                ; +0x46, 0x100093406\ntest    rdi, rdi                                                       ; +0x4d, 0x10009340d\njnz     short loc_10009341E                                            ; +0x50, 0x100093410\nmov     rdi, [rbx+280h]                                                ; +0x52, 0x100093412\ntest    rdi, rdi                                                       ; +0x59, 0x100093419\njz      short loc_10009342B                                            ; +0x5c, 0x10009341c\nmov     rax, [rdi]                                                     ; +0x5e, 0x10009341e\nlea     rsi, [rbp+var_C]                                               ; +0x61, 0x100093421\ncall    qword ptr [rax+3B0h]                                           ; +0x65, 0x100093425\nadd     rsp, 8                                                         ; +0x6b, 0x10009342b\npop     rbx                                                            ; +0x6f, 0x10009342f\npop     rbp                                                            ; +0x70, 0x100093430\nretn                                                                   ; +0x71, 0x100093431", "xrefs": ["EditorUI::updateButtons @ 0x10002c987", "EditorUI::toggleSpecialEditButtons @ 0x10002d5d7", "EditorUI::toggleSpecialEditButtons @ 0x10002d6c8", "EditorUI::toggleSpecialEditButtons @ 0x10002d7b5", "EditorUI::toggleSpecialEditButtons @ 0x10002d89a", "EditorUI::updateDeleteButtons @ 0x1000324e2", "EditorUI::updateDeleteButtons @ 0x100032544", "EditorUI::updateDeleteButtons @ 0x1000325a4", "EditorUI::updateEditButtonColor @ 0x10003eb19", "RateDemonLayer::selectRating @ 0x100284273", "RateStarsLayer::selectRating @ 0x10028c500", "NumberInputLayer::init @ 0x100492de8", "NumberInputLayer::updateNumberState @ 0x100492f4f", "NumberInputLayer::deleteLast @ 0x100493110", "NumberInputLayer::inputNumber @ 0x100493275", "GJRateLevelLayer::selectRating @ 0x100506630", "RateLevelLayer::selectRating @ 0x10056842e"], "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"}