{"type": "func", "start": 5370036336, "end": 5370036637, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x140144070 to 0x14014419d (301 bytes)\n// \n// 8 xrefs:\n// > CustomizeObjectLayer::colorSetupClosed @ 0x1401424bb\n// > CustomizeObjectLayer::onNextColorChannel @ 0x140143096\n// > CustomizeObjectLayer::toggleVisible @ 0x1401434d1\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1401436d1\n// > CustomizeObjectLayer::onSelectColor @ 0x140143e82\n// > <???> @ 0x140899f90\n// > <???> @ 0x140899fc4\n// > <???> @ 0x14091748c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:10 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::highlightSelected(__int64 a1, __int64 a2)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v5; // rbx\n  int v6; // eax\n  const char *v7; // rdx\n  bool v8; // bl\n\n  for ( i = 0; i < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 704)); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 704), i);\n    v6 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v5 + 56LL))(v5);\n    v7 = \"GJ_button_05.png\";\n    if ( v6 != 1008 )\n      v7 = \"GJ_button_04.png\";\n    ButtonSprite::updateBGImage((__int64)v5, v7);\n  }\n  v8 = false;\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) == 1008 )\n      v8 = true;\n  }\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 872) + 336LL))(*(_QWORD *)(a1 + 872), v8);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 880) + 336LL))(*(_QWORD *)(a1 + 880), v8);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 920LL))(*(_QWORD *)(a1 + 816), v8);\n  (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 816) + 336LL))(*(_QWORD *)(a1 + 816), v8);\n  return (*(__int64 (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 888) + 336LL))(*(_QWORD *)(a1 + 888), v8);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x140144070 to 0x14014419d (301 bytes)\n; \n; 8 xrefs:\n; > CustomizeObjectLayer::colorSetupClosed @ 0x1401424bb\n; > CustomizeObjectLayer::onNextColorChannel @ 0x140143096\n; > CustomizeObjectLayer::toggleVisible @ 0x1401434d1\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1401436d1\n; > CustomizeObjectLayer::onSelectColor @ 0x140143e82\n; > <???> @ 0x140899f90\n; > <???> @ 0x140899fc4\n; > <???> @ 0x14091748c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:10 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140144070\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140144075\npush    r14                                                            ; +0xa, 0x14014407a\nsub     rsp, 20h                                                       ; +0xc, 0x14014407c\nmov     rsi, rcx                                                       ; +0x10, 0x140144080\nmov     [rsp+28h+arg_8], rdi                                           ; +0x13, 0x140144083\nmov     rcx, [rcx+2C0h]                                                ; +0x18, 0x140144088\nmov     r14, rdx                                                       ; +0x1f, 0x14014408f\nxor     edi, edi                                                       ; +0x22, 0x140144092\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x24, 0x140144094\ntest    eax, eax                                                       ; +0x2a, 0x14014409a\njz      short loc_1401440FE                                            ; +0x2c, 0x14014409c\nmov     [rsp+28h+arg_0], rbp                                           ; +0x2e, 0x14014409e\nlea     rbp, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x33, 0x1401440a3\nnop     word ptr [rax+rax+00h]                                         ; +0x3a, 0x1401440aa\nmov     rcx, [rsi+2C0h]                                                ; +0x40, 0x1401440b0\nmov     edx, edi                                                       ; +0x47, 0x1401440b7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x49, 0x1401440b9\nmov     rbx, rax                                                       ; +0x4f, 0x1401440bf\nmov     rcx, [rax]                                                     ; +0x52, 0x1401440c2\nmov     rdx, [rcx+38h]                                                 ; +0x55, 0x1401440c5\nmov     rcx, rax                                                       ; +0x59, 0x1401440c9\ncall    rdx                                                            ; +0x5c, 0x1401440cc\ncmp     eax, 3F0h                                                      ; +0x5e, 0x1401440ce\nlea     rdx, aGjButton05Png; \"GJ_button_05.png\"                        ; +0x63, 0x1401440d3\nmov     rcx, rbx                                                       ; +0x6a, 0x1401440da\ncmovnz  rdx, rbp                                                       ; +0x6d, 0x1401440dd\ncall    ButtonSprite__updateBGImage                                    ; +0x71, 0x1401440e1\nmov     rcx, [rsi+2C0h]                                                ; +0x76, 0x1401440e6\ninc     edi                                                            ; +0x7d, 0x1401440ed\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x7f, 0x1401440ef\ncmp     edi, eax                                                       ; +0x85, 0x1401440f5\njb      short loc_1401440B0                                            ; +0x87, 0x1401440f7\nmov     rbp, [rsp+28h+arg_0]                                           ; +0x89, 0x1401440f9\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x8e, 0x1401440fe\ntest    r14, r14                                                       ; +0x93, 0x140144103\njz      short loc_14014412B                                            ; +0x96, 0x140144106\nlea     rdx, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x98, 0x140144108\nmov     rcx, r14                                                       ; +0x9f, 0x14014410f\ncall    ButtonSprite__updateBGImage                                    ; +0xa2, 0x140144112\nmov     rax, [r14]                                                     ; +0xa7, 0x140144117\nmov     rcx, r14                                                       ; +0xaa, 0x14014411a\ncall    qword ptr [rax+38h]                                            ; +0xad, 0x14014411d\ncmp     eax, 3F0h                                                      ; +0xb0, 0x140144120\njnz     short loc_14014412B                                            ; +0xb5, 0x140144125\nmov     bl, 1                                                          ; +0xb7, 0x140144127\njmp     short loc_14014412D                                            ; +0xb9, 0x140144129\nxor     bl, bl                                                         ; +0xbb, 0x14014412b\nmov     rcx, [rsi+368h]                                                ; +0xbd, 0x14014412d\nmovzx   edx, bl                                                        ; +0xc4, 0x140144134\nmov     rax, [rcx]                                                     ; +0xc7, 0x140144137\ncall    qword ptr [rax+150h]                                           ; +0xca, 0x14014413a\nmov     rcx, [rsi+370h]                                                ; +0xd0, 0x140144140\nmovzx   edx, bl                                                        ; +0xd7, 0x140144147\nmov     rax, [rcx]                                                     ; +0xda, 0x14014414a\ncall    qword ptr [rax+150h]                                           ; +0xdd, 0x14014414d\nmov     rcx, [rsi+330h]                                                ; +0xe3, 0x140144153\nmovzx   edx, bl                                                        ; +0xea, 0x14014415a\nmov     rax, [rcx]                                                     ; +0xed, 0x14014415d\ncall    qword ptr [rax+398h]                                           ; +0xf0, 0x140144160\nmov     rcx, [rsi+330h]                                                ; +0xf6, 0x140144166\nmovzx   edx, bl                                                        ; +0xfd, 0x14014416d\nmov     rax, [rcx]                                                     ; +0x100, 0x140144170\ncall    qword ptr [rax+150h]                                           ; +0x103, 0x140144173\nmov     rcx, [rsi+378h]                                                ; +0x109, 0x140144179\nmovzx   edx, bl                                                        ; +0x110, 0x140144180\nmov     rax, [rcx]                                                     ; +0x113, 0x140144183\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x116, 0x140144186\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x11b, 0x14014418b\nadd     rsp, 20h                                                       ; +0x120, 0x140144190\npop     r14                                                            ; +0x124, 0x140144194\njmp     qword ptr [rax+150h]                                           ; +0x126, 0x140144196", "xrefs": ["CustomizeObjectLayer::colorSetupClosed @ 0x1401424bb", "CustomizeObjectLayer::onNextColorChannel @ 0x140143096", "CustomizeObjectLayer::toggleVisible @ 0x1401434d1", "CustomizeObjectLayer::updateCurrentSelection @ 0x1401436d1", "CustomizeObjectLayer::onSelectColor @ 0x140143e82", "<???> @ 0x140899f90", "<???> @ 0x140899fc4", "<???> @ 0x14091748c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}