{"type": "func", "start": 5369405152, "end": 5369405450, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x1400a9ee0 to 0x1400aa00a (298 bytes)\n// \n// 8 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1400a840b\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f83\n// > CustomizeObjectLayer::toggleVisible @ 0x1400a93ae\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1400a95a1\n// > CustomizeObjectLayer::onSelectColor @ 0x1400a9cf2\n// > <???> @ 0x14066ac14\n// > <???> @ 0x14066ac48\n// > <???> @ 0x1406c78cc\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 i; // edi\n  ButtonSprite *v5; // rbx\n  int v6; // eax\n  const char *v7; // rdx\n  bool v8; // bl\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_colorButtons); ++i )\n  {\n    v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_colorButtons, i);\n    v6 = v5->getTag(v5);\n    v7 = \"GJ_button_05.png\";\n    if ( v6 != 1008 )\n      v7 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage(v5, v7);\n  }\n  v8 = false;\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    if ( a2->getTag(a2) == 1008 )\n      v8 = true;\n  }\n  a1->m_arrowDown->setVisible(a1->m_arrowDown, v8);\n  a1->m_arrowUp->setVisible(a1->m_arrowUp, v8);\n  a1->m_customColorInput->setTouchEnabled(a1->m_customColorInput, v8);\n  a1->m_customColorInput->setVisible(a1->m_customColorInput, v8);\n  a1->m_customColorInputBG->setVisible(a1->m_customColorInputBG, v8);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x1400a9ee0 to 0x1400aa00a (298 bytes)\n; \n; 8 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1400a840b\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f83\n; > CustomizeObjectLayer::toggleVisible @ 0x1400a93ae\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1400a95a1\n; > CustomizeObjectLayer::onSelectColor @ 0x1400a9cf2\n; > <???> @ 0x14066ac14\n; > <???> @ 0x14066ac48\n; > <???> @ 0x1406c78cc\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400a9ee0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x1400a9ee5\npush    r14                                                            ; +0xa, 0x1400a9eea\nsub     rsp, 20h                                                       ; +0xc, 0x1400a9eec\nmov     rsi, rcx                                                       ; +0x10, 0x1400a9ef0\nmov     [rsp+28h+arg_8], rdi                                           ; +0x13, 0x1400a9ef3\nmov     rcx, [rcx+2A8h]                                                ; +0x18, 0x1400a9ef8\nmov     r14, rdx                                                       ; +0x1f, 0x1400a9eff\nxor     edi, edi                                                       ; +0x22, 0x1400a9f02\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x24, 0x1400a9f04\ntest    eax, eax                                                       ; +0x2a, 0x1400a9f0a\njz      short loc_1400A9F6B                                            ; +0x2c, 0x1400a9f0c\nmov     [rsp+28h+arg_0], rbp                                           ; +0x2e, 0x1400a9f0e\nlea     rbp, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x33, 0x1400a9f13\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x1400a9f1a\nmov     rcx, [rsi+2A8h]                                                ; +0x40, 0x1400a9f20\nmov     edx, edi                                                       ; +0x47, 0x1400a9f27\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x1400a9f29\nmov     rcx, rax                                                       ; +0x4f, 0x1400a9f2f\nmov     rbx, rax                                                       ; +0x52, 0x1400a9f32\nmov     rdx, [rax]                                                     ; +0x55, 0x1400a9f35\ncall    qword ptr [rdx+38h]                                            ; +0x58, 0x1400a9f38\nlea     rdx, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x5b, 0x1400a9f3b\nmov     rcx, rbx                                                       ; +0x62, 0x1400a9f42\ncmp     eax, 3F0h                                                      ; +0x65, 0x1400a9f45\ncmovnz  rdx, rbp                                                       ; +0x6a, 0x1400a9f4a\ncall    ButtonSprite__updateBGImage                                    ; +0x6e, 0x1400a9f4e\nmov     rcx, [rsi+2A8h]                                                ; +0x73, 0x1400a9f53\ninc     edi                                                            ; +0x7a, 0x1400a9f5a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7c, 0x1400a9f5c\ncmp     edi, eax                                                       ; +0x82, 0x1400a9f62\njb      short loc_1400A9F20                                            ; +0x84, 0x1400a9f64\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x86, 0x1400a9f66\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x8b, 0x1400a9f6b\ntest    r14, r14                                                       ; +0x90, 0x1400a9f70\njz      short loc_1400A9F98                                            ; +0x93, 0x1400a9f73\nlea     rdx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x95, 0x1400a9f75\nmov     rcx, r14                                                       ; +0x9c, 0x1400a9f7c\ncall    ButtonSprite__updateBGImage                                    ; +0x9f, 0x1400a9f7f\nmov     rax, [r14]                                                     ; +0xa4, 0x1400a9f84\nmov     rcx, r14                                                       ; +0xa7, 0x1400a9f87\ncall    qword ptr [rax+38h]                                            ; +0xaa, 0x1400a9f8a\ncmp     eax, 3F0h                                                      ; +0xad, 0x1400a9f8d\njnz     short loc_1400A9F98                                            ; +0xb2, 0x1400a9f92\nmov     bl, 1                                                          ; +0xb4, 0x1400a9f94\njmp     short loc_1400A9F9A                                            ; +0xb6, 0x1400a9f96\nxor     bl, bl                                                         ; +0xb8, 0x1400a9f98\nmov     rcx, [rsi+350h]                                                ; +0xba, 0x1400a9f9a\nmovzx   edx, bl                                                        ; +0xc1, 0x1400a9fa1\nmov     rax, [rcx]                                                     ; +0xc4, 0x1400a9fa4\ncall    qword ptr [rax+140h]                                           ; +0xc7, 0x1400a9fa7\nmov     rcx, [rsi+358h]                                                ; +0xcd, 0x1400a9fad\nmovzx   edx, bl                                                        ; +0xd4, 0x1400a9fb4\nmov     rax, [rcx]                                                     ; +0xd7, 0x1400a9fb7\ncall    qword ptr [rax+140h]                                           ; +0xda, 0x1400a9fba\nmov     rcx, [rsi+318h]                                                ; +0xe0, 0x1400a9fc0\nmovzx   edx, bl                                                        ; +0xe7, 0x1400a9fc7\nmov     rax, [rcx]                                                     ; +0xea, 0x1400a9fca\ncall    qword ptr [rax+388h]                                           ; +0xed, 0x1400a9fcd\nmov     rcx, [rsi+318h]                                                ; +0xf3, 0x1400a9fd3\nmovzx   edx, bl                                                        ; +0xfa, 0x1400a9fda\nmov     rax, [rcx]                                                     ; +0xfd, 0x1400a9fdd\ncall    qword ptr [rax+140h]                                           ; +0x100, 0x1400a9fe0\nmov     rcx, [rsi+360h]                                                ; +0x106, 0x1400a9fe6\nmovzx   edx, bl                                                        ; +0x10d, 0x1400a9fed\nmov     rax, [rcx]                                                     ; +0x110, 0x1400a9ff0\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x113, 0x1400a9ff3\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x118, 0x1400a9ff8\nadd     rsp, 20h                                                       ; +0x11d, 0x1400a9ffd\npop     r14                                                            ; +0x121, 0x1400aa001\njmp     qword ptr [rax+140h]                                           ; +0x123, 0x1400aa003", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x1400a840b", "CustomizeObjectLayer::onNextColorChannel @ 0x1400a8f83", "CustomizeObjectLayer::toggleVisible @ 0x1400a93ae", "CustomizeObjectLayer::updateCurrentSelection @ 0x1400a95a1", "CustomizeObjectLayer::onSelectColor @ 0x1400a9cf2", "<???> @ 0x14066ac14", "<???> @ 0x14066ac48", "<???> @ 0x1406c78cc"], "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"}