{"type": "func", "start": 4595460, "end": 4595634, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x461f04 to 0x461fb2 (174 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x461fee\n// > CustomizeObjectLayer::colorSetupClosed @ 0x46204a\n// > CustomizeObjectLayer::onNextColorChannel @ 0x4620b8\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x46210e\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; // r6\n  ButtonSprite *v5; // r0\n  ButtonSprite *v6; // r7\n  const char *v7; // r1\n\n  v4 = 0;\n  while ( v4 < cocos2d::CCArray::count(a1->m_colorButtons) )\n  {\n    v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, v4++);\n    v6 = v5;\n    if ( v5->getTag(v5) == 1008 )\n      v7 = \"GJ_button_05.png\";\n    else\n      v7 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v6, v7);\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    a2 = (ButtonSprite *)(a2->getTag(a2) == 1008);\n  }\n  a1->m_arrowDown->setVisible(a1->m_arrowDown, (bool)a2);\n  a1->m_arrowUp->setVisible(a1->m_arrowUp, (bool)a2);\n  a1->m_customColorInput->setTouchEnabled(a1->m_customColorInput, (bool)a2);\n  a1->m_customColorInput->setVisible(a1->m_customColorInput, (bool)a2);\n  a1->m_customColorInputBG->setVisible(a1->m_customColorInputBG, (bool)a2);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x461f04 to 0x461fb2 (174 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x461fee\n; > CustomizeObjectLayer::colorSetupClosed @ 0x46204a\n; > CustomizeObjectLayer::onNextColorChannel @ 0x4620b8\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x46210e\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.W          {R4-R10,LR}                                            ; +0x0, 0x461f04\nMOV             R5, R0                                                 ; +0x4, 0x461f08\nLDR.W           R8, =(aGjButton04Png - 0x461F1A); \"GJ_button_04.png\"   ; +0x6, 0x461f0a\nMOV             R4, R1                                                 ; +0xa, 0x461f0e\nLDR.W           R9, =(aGjButton05Png - 0x461F1C); \"GJ_button_05.png\"   ; +0xc, 0x461f10\nMOVS            R6, #0                                                 ; +0x10, 0x461f14\nADD             R8, PC; \"GJ_button_04.png\"                             ; +0x12, 0x461f16\nADD             R9, PC; \"GJ_button_05.png\"                             ; +0x14, 0x461f18\nLDR.W           R0, [R5,#0x208]; this                                  ; +0x16, 0x461f1a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x1a, 0x461f1e\nCMP             R6, R0                                                 ; +0x1e, 0x461f22\nBCS             loc_461F4C                                             ; +0x20, 0x461f24\nMOV             R1, R6; unsigned int                                   ; +0x22, 0x461f26\nLDR.W           R0, [R5,#0x208]; this                                  ; +0x24, 0x461f28\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x28, 0x461f2c\nADDS            R6, #1                                                 ; +0x2c, 0x461f30\nLDR             R3, [R0]                                               ; +0x2e, 0x461f32\nMOV             R7, R0                                                 ; +0x30, 0x461f34\nLDR             R3, [R3,#0x20]                                         ; +0x32, 0x461f36\nBLX             R3                                                     ; +0x34, 0x461f38\nCMP.W           R0, #0x3F0                                             ; +0x36, 0x461f3a\nMOV             R0, R7; this                                           ; +0x3a, 0x461f3e\nITE NE                                                                 ; +0x3c, 0x461f40\nMOVNE           R1, R8                                                 ; +0x3e, 0x461f42\nMOVEQ           R1, R9; char *                                         ; +0x40, 0x461f44\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x42, 0x461f46\nB               loc_461F1A                                             ; +0x46, 0x461f4a\nCBZ             R4, loc_461F68                                         ; +0x48, 0x461f4c\nLDR             R1, =(aGjButton02Png - 0x461F56); \"GJ_button_02.png\"   ; +0x4a, 0x461f4e\nMOV             R0, R4; this                                           ; +0x4c, 0x461f50\nADD             R1, PC; \"GJ_button_02.png\"                             ; +0x4e, 0x461f52\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x50, 0x461f54\nLDR             R3, [R4]                                               ; +0x54, 0x461f58\nMOV             R0, R4                                                 ; +0x56, 0x461f5a\nLDR             R3, [R3,#0x20]                                         ; +0x58, 0x461f5c\nBLX             R3                                                     ; +0x5a, 0x461f5e\nSUB.W           R3, R0, #0x3F0                                         ; +0x5c, 0x461f60\nNEGS            R4, R3                                                 ; +0x60, 0x461f64\nADCS            R4, R3                                                 ; +0x62, 0x461f66\nLDR.W           R0, [R5,#0x260]                                        ; +0x64, 0x461f68\nMOV             R1, R4                                                 ; +0x68, 0x461f6c\nLDR             R3, [R0]                                               ; +0x6a, 0x461f6e\nLDR.W           R3, [R3,#0xA4]                                         ; +0x6c, 0x461f70\nBLX             R3                                                     ; +0x70, 0x461f74\nLDR.W           R0, [R5,#0x264]                                        ; +0x72, 0x461f76\nMOV             R1, R4                                                 ; +0x76, 0x461f7a\nLDR             R3, [R0]                                               ; +0x78, 0x461f7c\nLDR.W           R3, [R3,#0xA4]                                         ; +0x7a, 0x461f7e\nBLX             R3                                                     ; +0x7e, 0x461f82\nLDR.W           R0, [R5,#0x244]                                        ; +0x80, 0x461f84\nMOV             R1, R4                                                 ; +0x84, 0x461f88\nLDR             R3, [R0]                                               ; +0x86, 0x461f8a\nLDR.W           R3, [R3,#0x1EC]                                        ; +0x88, 0x461f8c\nBLX             R3                                                     ; +0x8c, 0x461f90\nLDR.W           R0, [R5,#0x244]                                        ; +0x8e, 0x461f92\nMOV             R1, R4                                                 ; +0x92, 0x461f96\nLDR             R3, [R0]                                               ; +0x94, 0x461f98\nLDR.W           R3, [R3,#0xA4]                                         ; +0x96, 0x461f9a\nBLX             R3                                                     ; +0x9a, 0x461f9e\nLDR.W           R0, [R5,#0x268]                                        ; +0x9c, 0x461fa0\nMOV             R1, R4                                                 ; +0xa0, 0x461fa4\nPOP.W           {R4-R10,LR}                                            ; +0xa2, 0x461fa6\nLDR             R3, [R0]                                               ; +0xa6, 0x461faa\nLDR.W           R3, [R3,#0xA4]                                         ; +0xa8, 0x461fac\nBX              R3                                                     ; +0xac, 0x461fb0", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x461fee", "CustomizeObjectLayer::colorSetupClosed @ 0x46204a", "CustomizeObjectLayer::onNextColorChannel @ 0x4620b8", "CustomizeObjectLayer::updateCurrentSelection @ 0x46210e"], "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"}