{"type": "func", "start": 9976704, "end": 9977012, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x983b80 to 0x983cb4 (308 bytes)\n// \n// 5 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x983d08\n// > CustomizeObjectLayer::colorSetupClosed @ 0x983d88\n// > CustomizeObjectLayer::onNextColorChannel @ 0x983e20\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x983ea0\n// > <???> @ 0x76768\n// \n// This function is hookable on this platform (idp: arm, 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 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::highlightSelected(cocos2d::CCArray **this, 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(*(this + 88));\n    v8 = v4++;\n    if ( v7 )\n      break;\n    v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(*(this + 88), v8);\n    if ( (*(unsigned int (__fastcall **)(ButtonSprite *))(*(_QWORD *)v5 + 64LL))(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 *))(*(_QWORD *)a2 + 64LL))(a2) == 1008;\n  }\n  else\n  {\n    v9 = 0;\n  }\n  (*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 109) + 344LL))(*(this + 109), v9);\n  (*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 110) + 344LL))(*(this + 110), v9);\n  (*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 102) + 1000LL))(*(this + 102), v9);\n  (*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 102) + 344LL))(*(this + 102), v9);\n  return (*(__int64 (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 111) + 344LL))(*(this + 111), v9);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x983b80 to 0x983cb4 (308 bytes)\n; \n; 5 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x983d08\n; > CustomizeObjectLayer::colorSetupClosed @ 0x983d88\n; > CustomizeObjectLayer::onNextColorChannel @ 0x983e20\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x983ea0\n; > <???> @ 0x76768\n; \n; This function is hookable on this platform (idp: arm, 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 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#-0x40+var_s0]!                          ; +0x0, 0x983b80\nMOV             X29, SP                                                ; +0x4, 0x983b84\nSTP             X21, X22, [SP,#var_s20]                                ; +0x8, 0x983b88\nSTP             X23, X24, [SP,#var_s30]                                ; +0xc, 0x983b8c\nADRP            X22, #aGjButton05Png@PAGE; \"GJ_button_05.png\"          ; +0x10, 0x983b90\nADRP            X23, #aGjButton04Png@PAGE; \"GJ_button_04.png\"          ; +0x14, 0x983b94\nSTP             X19, X20, [SP,#var_s10]                                ; +0x18, 0x983b98\nMOV             X21, X0                                                ; +0x1c, 0x983b9c\nMOV             X24, X1                                                ; +0x20, 0x983ba0\nMOV             W19, #0                                                ; +0x24, 0x983ba4\nADD             X23, X23, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"  ; +0x28, 0x983ba8\nADD             X22, X22, #aGjButton05Png@PAGEOFF; \"GJ_button_05.png\"  ; +0x2c, 0x983bac\nB               loc_983BDC                                             ; +0x30, 0x983bb0\nLDR             X0, [X21,#0x2C0]; this                                 ; +0x34, 0x983bb4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x38, 0x983bb8\nLDR             X1, [X0]                                               ; +0x3c, 0x983bbc\nMOV             X20, X0                                                ; +0x40, 0x983bc0\nLDR             X1, [X1,#0x40]                                         ; +0x44, 0x983bc4\nBLR             X1                                                     ; +0x48, 0x983bc8\nCMP             W0, #0x3F0                                             ; +0x4c, 0x983bcc\nCSEL            X1, X23, X22, NE; char *                               ; +0x50, 0x983bd0\nMOV             X0, X20; this                                          ; +0x54, 0x983bd4\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x58, 0x983bd8\nLDR             X0, [X21,#0x2C0]; this                                 ; +0x5c, 0x983bdc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x60, 0x983be0\nCMP             W19, W0                                                ; +0x64, 0x983be4\nMOV             W1, W19; unsigned int                                  ; +0x68, 0x983be8\nADD             W19, W19, #1                                           ; +0x6c, 0x983bec\nB.CC            loc_983BB4                                             ; +0x70, 0x983bf0\nCBZ             X24, loc_983CAC                                        ; +0x74, 0x983bf4\nADRP            X1, #aGjButton02Png@PAGE; \"GJ_button_02.png\"           ; +0x78, 0x983bf8\nMOV             X0, X24; this                                          ; +0x7c, 0x983bfc\nADD             X1, X1, #aGjButton02Png@PAGEOFF; \"GJ_button_02.png\"    ; +0x80, 0x983c00\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x84, 0x983c04\nLDR             X1, [X24]                                              ; +0x88, 0x983c08\nMOV             X0, X24                                                ; +0x8c, 0x983c0c\nLDR             X1, [X1,#0x40]                                         ; +0x90, 0x983c10\nBLR             X1                                                     ; +0x94, 0x983c14\nCMP             W0, #0x3F0                                             ; +0x98, 0x983c18\nCSET            W19, EQ                                                ; +0x9c, 0x983c1c\nLDR             X2, [X21,#0x368]                                       ; +0xa0, 0x983c20\nMOV             W1, W19                                                ; +0xa4, 0x983c24\nMOV             X0, X2                                                 ; +0xa8, 0x983c28\nLDR             X2, [X2]                                               ; +0xac, 0x983c2c\nLDR             X2, [X2,#0x158]                                        ; +0xb0, 0x983c30\nBLR             X2                                                     ; +0xb4, 0x983c34\nLDR             X2, [X21,#0x370]                                       ; +0xb8, 0x983c38\nMOV             W1, W19                                                ; +0xbc, 0x983c3c\nMOV             X0, X2                                                 ; +0xc0, 0x983c40\nLDR             X2, [X2]                                               ; +0xc4, 0x983c44\nLDR             X2, [X2,#0x158]                                        ; +0xc8, 0x983c48\nBLR             X2                                                     ; +0xcc, 0x983c4c\nLDR             X2, [X21,#0x330]                                       ; +0xd0, 0x983c50\nMOV             W1, W19                                                ; +0xd4, 0x983c54\nMOV             X0, X2                                                 ; +0xd8, 0x983c58\nLDR             X2, [X2]                                               ; +0xdc, 0x983c5c\nLDR             X2, [X2,#0x3E8]                                        ; +0xe0, 0x983c60\nBLR             X2                                                     ; +0xe4, 0x983c64\nLDR             X2, [X21,#0x330]                                       ; +0xe8, 0x983c68\nMOV             W1, W19                                                ; +0xec, 0x983c6c\nMOV             X0, X2                                                 ; +0xf0, 0x983c70\nLDR             X2, [X2]                                               ; +0xf4, 0x983c74\nLDR             X2, [X2,#0x158]                                        ; +0xf8, 0x983c78\nBLR             X2                                                     ; +0xfc, 0x983c7c\nLDR             X2, [X21,#0x378]                                       ; +0x100, 0x983c80\nMOV             W1, W19                                                ; +0x104, 0x983c84\nMOV             X0, X2                                                 ; +0x108, 0x983c88\nLDR             X2, [X2]                                               ; +0x10c, 0x983c8c\nLDR             X2, [X2,#0x158]                                        ; +0x110, 0x983c90\nBLR             X2                                                     ; +0x114, 0x983c94\nLDP             X19, X20, [SP,#var_s10]                                ; +0x118, 0x983c98\nLDP             X21, X22, [SP,#var_s20]                                ; +0x11c, 0x983c9c\nLDP             X23, X24, [SP,#var_s30]                                ; +0x120, 0x983ca0\nLDP             X29, X30, [SP+var_s0],#0x40                            ; +0x124, 0x983ca4\nRET                                                                    ; +0x128, 0x983ca8\nMOV             W19, #0                                                ; +0x12c, 0x983cac\nB               loc_983C20                                             ; +0x130, 0x983cb0", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x983d08", "CustomizeObjectLayer::colorSetupClosed @ 0x983d88", "CustomizeObjectLayer::onNextColorChannel @ 0x983e20", "CustomizeObjectLayer::updateCurrentSelection @ 0x983ea0", "<???> @ 0x76768"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}