{"type": "func", "start": 4297034848, "end": 4297035140, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x1001f8c60 to 0x1001f8d84 (292 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x1001f7a4f\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1001f81ce\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1001f84fd\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a5e\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  unsigned int v2; // r15d\n  ButtonSprite *v3; // r12\n  const char *v4; // rsi\n  bool v5; // al\n  _BOOL4 v6; // r14d\n\n  if ( (unsigned int)sub_100720070(a1->m_colorButtons) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = (ButtonSprite *)sub_1007200C0(a1->m_colorButtons, v2);\n      v4 = \"GJ_button_04.png\";\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v3->getTag)(v3) == 1008 )\n        v4 = \"GJ_button_05.png\";\n      ButtonSprite::updateBGImage(v3, v4);\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_colorButtons) );\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    v5 = ((unsigned int (__fastcall *)(ButtonSprite *))a2->getTag)(a2) == 1008;\n  }\n  else\n  {\n    v5 = 0;\n  }\n  v6 = v5;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_arrowDown->setVisible)(a1->m_arrowDown, v5);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _BOOL4))a1->m_arrowUp->setVisible)(a1->m_arrowUp, v6);\n  ((void (__fastcall *)(CCTextInputNode *, _BOOL4))a1->m_customColorInput->setTouchEnabled)(a1->m_customColorInput, v6);\n  ((void (__fastcall *)(CCTextInputNode *, _BOOL4))a1->m_customColorInput->setVisible)(a1->m_customColorInput, v6);\n  ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _BOOL4))a1->m_customColorInputBG->setVisible)(\n    a1->m_customColorInputBG,\n    v6);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x1001f8c60 to 0x1001f8d84 (292 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x1001f7a4f\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1001f81ce\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1001f84fd\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a5e\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, 0x1001f8c60\nmov     rbp, rsp                                                       ; +0x1, 0x1001f8c61\npush    r15                                                            ; +0x4, 0x1001f8c64\npush    r14                                                            ; +0x6, 0x1001f8c66\npush    r13                                                            ; +0x8, 0x1001f8c68\npush    r12                                                            ; +0xa, 0x1001f8c6a\npush    rbx                                                            ; +0xc, 0x1001f8c6c\npush    rax                                                            ; +0xd, 0x1001f8c6d\nmov     [rbp+var_30], rsi                                              ; +0xe, 0x1001f8c6e\nmov     rbx, rdi                                                       ; +0x12, 0x1001f8c72\nmov     rdi, [rdi+2A8h]                                                ; +0x15, 0x1001f8c75\ncall    sub_100720070                                                  ; +0x1c, 0x1001f8c7c\ntest    eax, eax                                                       ; +0x21, 0x1001f8c81\njz      short loc_1001F8CE3                                            ; +0x23, 0x1001f8c83\nxor     r15d, r15d                                                     ; +0x25, 0x1001f8c85\nlea     r13, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x28, 0x1001f8c88\nlea     r14, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x2f, 0x1001f8c8f\nnop     word ptr [rax+rax+00000000h]                                   ; +0x36, 0x1001f8c96\nmov     rdi, [rbx+2A8h]                                                ; +0x40, 0x1001f8ca0\nmov     esi, r15d                                                      ; +0x47, 0x1001f8ca7\ncall    sub_1007200C0                                                  ; +0x4a, 0x1001f8caa\nmov     r12, rax                                                       ; +0x4f, 0x1001f8caf\nmov     rax, [rax]                                                     ; +0x52, 0x1001f8cb2\nmov     rdi, r12                                                       ; +0x55, 0x1001f8cb5\ncall    qword ptr [rax+40h]                                            ; +0x58, 0x1001f8cb8\ncmp     eax, 3F0h                                                      ; +0x5b, 0x1001f8cbb\nmov     rsi, r14                                                       ; +0x60, 0x1001f8cc0\ncmovz   rsi, r13                                                       ; +0x63, 0x1001f8cc3\nmov     rdi, r12                                                       ; +0x67, 0x1001f8cc7\ncall    ButtonSprite__updateBGImage                                    ; +0x6a, 0x1001f8cca\ninc     r15d                                                           ; +0x6f, 0x1001f8ccf\nmov     rdi, [rbx+2A8h]                                                ; +0x72, 0x1001f8cd2\ncall    sub_100720070                                                  ; +0x79, 0x1001f8cd9\ncmp     r15d, eax                                                      ; +0x7e, 0x1001f8cde\njb      short loc_1001F8CA0                                            ; +0x81, 0x1001f8ce1\nmov     r14, [rbp+var_30]                                              ; +0x83, 0x1001f8ce3\ntest    r14, r14                                                       ; +0x87, 0x1001f8ce7\njz      short loc_1001F8D0E                                            ; +0x8a, 0x1001f8cea\nlea     rsi, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x8c, 0x1001f8cec\nmov     rdi, r14                                                       ; +0x93, 0x1001f8cf3\ncall    ButtonSprite__updateBGImage                                    ; +0x96, 0x1001f8cf6\nmov     rax, [r14]                                                     ; +0x9b, 0x1001f8cfb\nmov     rdi, r14                                                       ; +0x9e, 0x1001f8cfe\ncall    qword ptr [rax+40h]                                            ; +0xa1, 0x1001f8d01\ncmp     eax, 3F0h                                                      ; +0xa4, 0x1001f8d04\nsetz    al                                                             ; +0xa9, 0x1001f8d09\njmp     short loc_1001F8D10                                            ; +0xac, 0x1001f8d0c\nxor     eax, eax                                                       ; +0xae, 0x1001f8d0e\nmov     rdi, [rbx+350h]                                                ; +0xb0, 0x1001f8d10\nmov     rcx, [rdi]                                                     ; +0xb7, 0x1001f8d17\nmovzx   r14d, al                                                       ; +0xba, 0x1001f8d1a\nmov     esi, r14d                                                      ; +0xbe, 0x1001f8d1e\ncall    qword ptr [rcx+148h]                                           ; +0xc1, 0x1001f8d21\nmov     rdi, [rbx+358h]                                                ; +0xc7, 0x1001f8d27\nmov     rax, [rdi]                                                     ; +0xce, 0x1001f8d2e\nmov     esi, r14d                                                      ; +0xd1, 0x1001f8d31\ncall    qword ptr [rax+148h]                                           ; +0xd4, 0x1001f8d34\nmov     rdi, [rbx+318h]                                                ; +0xda, 0x1001f8d3a\nmov     rax, [rdi]                                                     ; +0xe1, 0x1001f8d41\nmov     esi, r14d                                                      ; +0xe4, 0x1001f8d44\ncall    qword ptr [rax+3D8h]                                           ; +0xe7, 0x1001f8d47\nmov     rdi, [rbx+318h]                                                ; +0xed, 0x1001f8d4d\nmov     rax, [rdi]                                                     ; +0xf4, 0x1001f8d54\nmov     esi, r14d                                                      ; +0xf7, 0x1001f8d57\ncall    qword ptr [rax+148h]                                           ; +0xfa, 0x1001f8d5a\nmov     rdi, [rbx+360h]                                                ; +0x100, 0x1001f8d60\nmov     rax, [rdi]                                                     ; +0x107, 0x1001f8d67\nmov     rax, [rax+148h]                                                ; +0x10a, 0x1001f8d6a\nmov     esi, r14d                                                      ; +0x111, 0x1001f8d71\nadd     rsp, 8                                                         ; +0x114, 0x1001f8d74\npop     rbx                                                            ; +0x118, 0x1001f8d78\npop     r12                                                            ; +0x119, 0x1001f8d79\npop     r13                                                            ; +0x11b, 0x1001f8d7b\npop     r14                                                            ; +0x11d, 0x1001f8d7d\npop     r15                                                            ; +0x11f, 0x1001f8d7f\npop     rbp                                                            ; +0x121, 0x1001f8d81\njmp     rax                                                            ; +0x122, 0x1001f8d82", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x1001f7a4f", "CustomizeObjectLayer::onNextColorChannel @ 0x1001f81ce", "CustomizeObjectLayer::updateCurrentSelection @ 0x1001f84fd", "CustomizeObjectLayer::colorSetupClosed @ 0x1001f8a5e"], "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"}