{"type": "func", "start": 4295296524, "end": 4295296808, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x10005060c to 0x100050728 (284 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x10004fab0\n// > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff94\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1000501b8\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1000504d8\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 CustomizeObjectLayer::highlightSelected(CustomizeObjectLayer *a1, ButtonSprite *a2)\n{\n  __int64 v4; // x21\n  ButtonSprite *v5; // x22\n  const char *v6; // x1\n\n  if ( (unsigned int)sub_10024A36C(a1->m_colorButtons) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = (ButtonSprite *)sub_10024A388(a1->m_colorButtons, v4);\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v5->getTag)(v5) == 1008 )\n        v6 = \"GJ_button_05.png\";\n      else\n        v6 = \"GJ_button_04.png\";\n      ButtonSprite::updateBGImage(v5, v6);\n      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_colorButtons) );\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    a2 = (ButtonSprite *)(((unsigned int (__fastcall *)(ButtonSprite *))a2->getTag)(a2) == 1008);\n  }\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, ButtonSprite *))a1->m_arrowDown->setVisible)(a1->m_arrowDown, a2);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, ButtonSprite *))a1->m_arrowUp->setVisible)(a1->m_arrowUp, a2);\n  ((void (__fastcall *)(CCTextInputNode *, ButtonSprite *))a1->m_customColorInput->setTouchEnabled)(\n    a1->m_customColorInput,\n    a2);\n  ((void (__fastcall *)(CCTextInputNode *, ButtonSprite *))a1->m_customColorInput->setVisible)(\n    a1->m_customColorInput,\n    a2);\n  ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, ButtonSprite *))a1->m_customColorInputBG->setVisible)(\n    a1->m_customColorInputBG,\n    a2);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x10005060c to 0x100050728 (284 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x10004fab0\n; > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff94\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1000501b8\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1000504d8\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             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10005060c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100050610\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100050614\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100050618\nADD             X29, SP, #0x30                                         ; +0x10, 0x10005061c\nMOV             X20, X1                                                ; +0x14, 0x100050620\nMOV             X19, X0                                                ; +0x18, 0x100050624\nLDR             X0, [X0,#0x2A8]                                        ; +0x1c, 0x100050628\nBL              sub_10024A36C                                          ; +0x20, 0x10005062c\nCBZ             W0, loc_100050688                                      ; +0x24, 0x100050630\nMOV             W21, #0                                                ; +0x28, 0x100050634\nADRL            X23, aGjButton04Png; \"GJ_button_04.png\"                ; +0x2c, 0x100050638\nADRL            X24, aGjButton05Png; \"GJ_button_05.png\"                ; +0x34, 0x100050640\nLDR             X0, [X19,#0x2A8]                                       ; +0x3c, 0x100050648\nMOV             X1, X21                                                ; +0x40, 0x10005064c\nBL              sub_10024A388                                          ; +0x44, 0x100050650\nMOV             X22, X0                                                ; +0x48, 0x100050654\nLDR             X8, [X0]                                               ; +0x4c, 0x100050658\nLDR             X8, [X8,#0x40]                                         ; +0x50, 0x10005065c\nBLR             X8                                                     ; +0x54, 0x100050660\nCMP             W0, #0x3F0                                             ; +0x58, 0x100050664\nCSEL            X1, X24, X23, EQ                                       ; +0x5c, 0x100050668\nMOV             X0, X22                                                ; +0x60, 0x10005066c\nBL              ButtonSprite__updateBGImage                            ; +0x64, 0x100050670\nADD             W21, W21, #1                                           ; +0x68, 0x100050674\nLDR             X0, [X19,#0x2A8]                                       ; +0x6c, 0x100050678\nBL              sub_10024A36C                                          ; +0x70, 0x10005067c\nCMP             W21, W0                                                ; +0x74, 0x100050680\nB.CC            loc_100050648                                          ; +0x78, 0x100050684\nCBZ             X20, loc_1000506B4                                     ; +0x7c, 0x100050688\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x80, 0x10005068c\nMOV             X0, X20                                                ; +0x88, 0x100050694\nBL              ButtonSprite__updateBGImage                            ; +0x8c, 0x100050698\nLDR             X8, [X20]                                              ; +0x90, 0x10005069c\nLDR             X8, [X8,#0x40]                                         ; +0x94, 0x1000506a0\nMOV             X0, X20                                                ; +0x98, 0x1000506a4\nBLR             X8                                                     ; +0x9c, 0x1000506a8\nCMP             W0, #0x3F0                                             ; +0xa0, 0x1000506ac\nCSET            W20, EQ                                                ; +0xa4, 0x1000506b0\nLDR             X0, [X19,#0x350]                                       ; +0xa8, 0x1000506b4\nLDR             X8, [X0]                                               ; +0xac, 0x1000506b8\nLDR             X8, [X8,#0x148]                                        ; +0xb0, 0x1000506bc\nMOV             X1, X20                                                ; +0xb4, 0x1000506c0\nBLR             X8                                                     ; +0xb8, 0x1000506c4\nLDR             X0, [X19,#0x358]                                       ; +0xbc, 0x1000506c8\nLDR             X8, [X0]                                               ; +0xc0, 0x1000506cc\nLDR             X8, [X8,#0x148]                                        ; +0xc4, 0x1000506d0\nMOV             X1, X20                                                ; +0xc8, 0x1000506d4\nBLR             X8                                                     ; +0xcc, 0x1000506d8\nLDR             X0, [X19,#0x318]                                       ; +0xd0, 0x1000506dc\nLDR             X8, [X0]                                               ; +0xd4, 0x1000506e0\nLDR             X8, [X8,#0x3D8]                                        ; +0xd8, 0x1000506e4\nMOV             X1, X20                                                ; +0xdc, 0x1000506e8\nBLR             X8                                                     ; +0xe0, 0x1000506ec\nLDR             X0, [X19,#0x318]                                       ; +0xe4, 0x1000506f0\nLDR             X8, [X0]                                               ; +0xe8, 0x1000506f4\nLDR             X8, [X8,#0x148]                                        ; +0xec, 0x1000506f8\nMOV             X1, X20                                                ; +0xf0, 0x1000506fc\nBLR             X8                                                     ; +0xf4, 0x100050700\nLDR             X0, [X19,#0x360]                                       ; +0xf8, 0x100050704\nLDR             X8, [X0]                                               ; +0xfc, 0x100050708\nLDR             X2, [X8,#0x148]                                        ; +0x100, 0x10005070c\nMOV             X1, X20                                                ; +0x104, 0x100050710\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x108, 0x100050714\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x10c, 0x100050718\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x110, 0x10005071c\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x114, 0x100050720\nBR              X2                                                     ; +0x118, 0x100050724", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x10004fab0", "CustomizeObjectLayer::onNextColorChannel @ 0x10004ff94", "CustomizeObjectLayer::updateCurrentSelection @ 0x1000501b8", "CustomizeObjectLayer::colorSetupClosed @ 0x1000504d8"], "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"}