{"type": "func", "start": 8656492, "end": 8656800, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x84166c to 0x8417a0 (308 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x8417f4\n// > CustomizeObjectLayer::colorSetupClosed @ 0x841874\n// > CustomizeObjectLayer::onNextColorChannel @ 0x84190c\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x84198c\n// > <???> @ 0x55a88\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 CustomizeObjectLayer::highlightSelected(CustomizeObjectLayer *a1, ButtonSprite *a2)\n{\n  unsigned int v4; // w19\n  ButtonSprite *v5; // x20\n  const char *v6; // x1\n  bool v7; // cf\n  unsigned int v8; // w1\n  _BOOL4 v9; // w19\n\n  v4 = 0;\n  while ( 1 )\n  {\n    v7 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_colorButtons);\n    v8 = v4++;\n    if ( v7 )\n      break;\n    v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, v8);\n    if ( v5->getTag(v5) == 1008 )\n      v6 = \"GJ_button_05.png\";\n    else\n      v6 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v5, v6);\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    v9 = ((__int64 (__fastcall *)(ButtonSprite *))a2->getTag)(a2) == 1008;\n  }\n  else\n  {\n    v9 = 0;\n  }\n  a1->m_arrowDown->setVisible(a1->m_arrowDown, v9);\n  a1->m_arrowUp->setVisible(a1->m_arrowUp, v9);\n  a1->m_customColorInput->setTouchEnabled(a1->m_customColorInput, v9);\n  a1->m_customColorInput->setVisible(a1->m_customColorInput, v9);\n  a1->m_customColorInputBG->setVisible(a1->m_customColorInputBG, v9);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x84166c to 0x8417a0 (308 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x8417f4\n; > CustomizeObjectLayer::colorSetupClosed @ 0x841874\n; > CustomizeObjectLayer::onNextColorChannel @ 0x84190c\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x84198c\n; > <???> @ 0x55a88\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,#-0x40+var_s0]!                          ; +0x0, 0x84166c\nMOV             X29, SP                                                ; +0x4, 0x841670\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x841674\nSTP             X23, X24, [SP,#var_s30]                                ; +0xc, 0x841678\nADRP            X22, #aGjButton05Png@PAGE; \"GJ_button_05.png\"          ; +0x10, 0x84167c\nADRP            X23, #aGjButton04Png@PAGE; \"GJ_button_04.png\"          ; +0x14, 0x841680\nSTP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x841684\nMOV             X21, X0                                                ; +0x1c, 0x841688\nMOV             X24, X1                                                ; +0x20, 0x84168c\nMOV             W19, #0                                                ; +0x24, 0x841690\nADD             X23, X23, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"  ; +0x28, 0x841694\nADD             X22, X22, #aGjButton05Png@PAGEOFF; \"GJ_button_05.png\"  ; +0x2c, 0x841698\nB               loc_8416C8                                             ; +0x30, 0x84169c\nLDR             X0, [X21,#0x2A8]; this                                 ; +0x34, 0x8416a0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x8416a4\nLDR             X1, [X0]                                               ; +0x3c, 0x8416a8\nMOV             X20, X0                                                ; +0x40, 0x8416ac\nLDR             X1, [X1,#0x40]                                         ; +0x44, 0x8416b0\nBLR             X1                                                     ; +0x48, 0x8416b4\nCMP             W0, #0x3F0                                             ; +0x4c, 0x8416b8\nCSEL            X1, X23, X22, NE; char *                               ; +0x50, 0x8416bc\nMOV             X0, X20; this                                          ; +0x54, 0x8416c0\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x58, 0x8416c4\nLDR             X0, [X21,#0x2A8]; this                                 ; +0x5c, 0x8416c8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x8416cc\nCMP             W19, W0                                                ; +0x64, 0x8416d0\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x8416d4\nADD             W19, W19, #1                                           ; +0x6c, 0x8416d8\nB.CC            loc_8416A0                                             ; +0x70, 0x8416dc\nCBZ             X24, loc_841798                                        ; +0x74, 0x8416e0\nADRP            X1, #aGjButton02Png@PAGE; \"GJ_button_02.png\"           ; +0x78, 0x8416e4\nMOV             X0, X24; this                                          ; +0x7c, 0x8416e8\nADD             X1, X1, #aGjButton02Png@PAGEOFF; \"GJ_button_02.png\"    ; +0x80, 0x8416ec\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x84, 0x8416f0\nLDR             X1, [X24]                                              ; +0x88, 0x8416f4\nMOV             X0, X24                                                ; +0x8c, 0x8416f8\nLDR             X1, [X1,#0x40]                                         ; +0x90, 0x8416fc\nBLR             X1                                                     ; +0x94, 0x841700\nCMP             W0, #0x3F0                                             ; +0x98, 0x841704\nCSET            W19, EQ                                                ; +0x9c, 0x841708\nLDR             X2, [X21,#0x350]                                       ; +0xa0, 0x84170c\nMOV             W1, W19                                                ; +0xa4, 0x841710\nMOV             X0, X2                                                 ; +0xa8, 0x841714\nLDR             X2, [X2]                                               ; +0xac, 0x841718\nLDR             X2, [X2,#0x148]                                        ; +0xb0, 0x84171c\nBLR             X2                                                     ; +0xb4, 0x841720\nLDR             X2, [X21,#0x358]                                       ; +0xb8, 0x841724\nMOV             W1, W19                                                ; +0xbc, 0x841728\nMOV             X0, X2                                                 ; +0xc0, 0x84172c\nLDR             X2, [X2]                                               ; +0xc4, 0x841730\nLDR             X2, [X2,#0x148]                                        ; +0xc8, 0x841734\nBLR             X2                                                     ; +0xcc, 0x841738\nLDR             X2, [X21,#0x318]                                       ; +0xd0, 0x84173c\nMOV             W1, W19                                                ; +0xd4, 0x841740\nMOV             X0, X2                                                 ; +0xd8, 0x841744\nLDR             X2, [X2]                                               ; +0xdc, 0x841748\nLDR             X2, [X2,#0x3D8]                                        ; +0xe0, 0x84174c\nBLR             X2                                                     ; +0xe4, 0x841750\nLDR             X2, [X21,#0x318]                                       ; +0xe8, 0x841754\nMOV             W1, W19                                                ; +0xec, 0x841758\nMOV             X0, X2                                                 ; +0xf0, 0x84175c\nLDR             X2, [X2]                                               ; +0xf4, 0x841760\nLDR             X2, [X2,#0x148]                                        ; +0xf8, 0x841764\nBLR             X2                                                     ; +0xfc, 0x841768\nLDR             X2, [X21,#0x360]                                       ; +0x100, 0x84176c\nMOV             W1, W19                                                ; +0x104, 0x841770\nMOV             X0, X2                                                 ; +0x108, 0x841774\nLDR             X2, [X2]                                               ; +0x10c, 0x841778\nLDR             X2, [X2,#0x148]                                        ; +0x110, 0x84177c\nBLR             X2                                                     ; +0x114, 0x841780\nLDP             X19, X20, [SP,#var_s10]                                ; +0x118, 0x841784\nLDP             X21, X22, [SP,#var_s20]                                ; +0x11c, 0x841788\nLDP             X23, X24, [SP,#var_s30]                                ; +0x120, 0x84178c\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x124, 0x841790\nRET                                                                    ; +0x128, 0x841794\nMOV             W19, #0                                                ; +0x12c, 0x841798\nB               loc_84170C                                             ; +0x130, 0x84179c", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x8417f4", "CustomizeObjectLayer::colorSetupClosed @ 0x841874", "CustomizeObjectLayer::onNextColorChannel @ 0x84190c", "CustomizeObjectLayer::updateCurrentSelection @ 0x84198c", "<???> @ 0x55a88"], "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"}