{"type": "func", "start": 4295331368, "end": 4295331652, "name": "CustomizeObjectLayer::highlightSelected", "pseudocode": "// \n// CustomizeObjectLayer::highlightSelected from 0x100058e28 to 0x100058f44 (284 bytes)\n// \n// 4 xrefs:\n// > CustomizeObjectLayer::onSelectColor @ 0x1000582cc\n// > CustomizeObjectLayer::onNextColorChannel @ 0x1000587b0\n// > CustomizeObjectLayer::updateCurrentSelection @ 0x1000589d4\n// > CustomizeObjectLayer::colorSetupClosed @ 0x100058cf4\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 10:57:47 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::highlightSelected(__int64 a1, __int64 a2)\n{\n  __int64 v4; // x21\n  __int64 v5; // x22\n  const char *v6; // x1\n\n  if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 704)) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_1002E75A0(*(_QWORD *)(a1 + 704), v4);\n      if ( (*(unsigned int (__fastcall **)(__int64))(*(_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      v4 = (unsigned int)(v4 + 1);\n    }\n    while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 704)) );\n  }\n  if ( a2 )\n  {\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n    a2 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1008;\n  }\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 872) + 344LL))(*(_QWORD *)(a1 + 872), a2);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 880) + 344LL))(*(_QWORD *)(a1 + 880), a2);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 816) + 1000LL))(*(_QWORD *)(a1 + 816), a2);\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 816) + 344LL))(*(_QWORD *)(a1 + 816), a2);\n  return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 888) + 344LL))(*(_QWORD *)(a1 + 888), a2);\n}", "assembly": "; \n; CustomizeObjectLayer::highlightSelected from 0x100058e28 to 0x100058f44 (284 bytes)\n; \n; 4 xrefs:\n; > CustomizeObjectLayer::onSelectColor @ 0x1000582cc\n; > CustomizeObjectLayer::onNextColorChannel @ 0x1000587b0\n; > CustomizeObjectLayer::updateCurrentSelection @ 0x1000589d4\n; > CustomizeObjectLayer::colorSetupClosed @ 0x100058cf4\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 10:57:47 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x100058e28\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100058e2c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100058e30\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100058e34\nADD             X29, SP, #0x30                                         ; +0x10, 0x100058e38\nMOV             X20, X1                                                ; +0x14, 0x100058e3c\nMOV             X19, X0                                                ; +0x18, 0x100058e40\nLDR             X0, [X0,#0x2C0]                                        ; +0x1c, 0x100058e44\nBL              sub_1002E757C                                          ; +0x20, 0x100058e48\nCBZ             W0, loc_100058EA4                                      ; +0x24, 0x100058e4c\nMOV             W21, #0                                                ; +0x28, 0x100058e50\nADRL            X23, aGjButton04Png; \"GJ_button_04.png\"                ; +0x2c, 0x100058e54\nADRL            X24, aGjButton05Png; \"GJ_button_05.png\"                ; +0x34, 0x100058e5c\nLDR             X0, [X19,#0x2C0]                                       ; +0x3c, 0x100058e64\nMOV             X1, X21                                                ; +0x40, 0x100058e68\nBL              sub_1002E75A0                                          ; +0x44, 0x100058e6c\nMOV             X22, X0                                                ; +0x48, 0x100058e70\nLDR             X8, [X0]                                               ; +0x4c, 0x100058e74\nLDR             X8, [X8,#0x40]                                         ; +0x50, 0x100058e78\nBLR             X8                                                     ; +0x54, 0x100058e7c\nCMP             W0, #0x3F0                                             ; +0x58, 0x100058e80\nCSEL            X1, X24, X23, EQ                                       ; +0x5c, 0x100058e84\nMOV             X0, X22                                                ; +0x60, 0x100058e88\nBL              ButtonSprite__updateBGImage                            ; +0x64, 0x100058e8c\nADD             W21, W21, #1                                           ; +0x68, 0x100058e90\nLDR             X0, [X19,#0x2C0]                                       ; +0x6c, 0x100058e94\nBL              sub_1002E757C                                          ; +0x70, 0x100058e98\nCMP             W21, W0                                                ; +0x74, 0x100058e9c\nB.CC            loc_100058E64                                          ; +0x78, 0x100058ea0\nCBZ             X20, loc_100058ED0                                     ; +0x7c, 0x100058ea4\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x80, 0x100058ea8\nMOV             X0, X20                                                ; +0x88, 0x100058eb0\nBL              ButtonSprite__updateBGImage                            ; +0x8c, 0x100058eb4\nLDR             X8, [X20]                                              ; +0x90, 0x100058eb8\nLDR             X8, [X8,#0x40]                                         ; +0x94, 0x100058ebc\nMOV             X0, X20                                                ; +0x98, 0x100058ec0\nBLR             X8                                                     ; +0x9c, 0x100058ec4\nCMP             W0, #0x3F0                                             ; +0xa0, 0x100058ec8\nCSET            W20, EQ                                                ; +0xa4, 0x100058ecc\nLDR             X0, [X19,#0x368]                                       ; +0xa8, 0x100058ed0\nLDR             X8, [X0]                                               ; +0xac, 0x100058ed4\nLDR             X8, [X8,#0x158]                                        ; +0xb0, 0x100058ed8\nMOV             X1, X20                                                ; +0xb4, 0x100058edc\nBLR             X8                                                     ; +0xb8, 0x100058ee0\nLDR             X0, [X19,#0x370]                                       ; +0xbc, 0x100058ee4\nLDR             X8, [X0]                                               ; +0xc0, 0x100058ee8\nLDR             X8, [X8,#0x158]                                        ; +0xc4, 0x100058eec\nMOV             X1, X20                                                ; +0xc8, 0x100058ef0\nBLR             X8                                                     ; +0xcc, 0x100058ef4\nLDR             X0, [X19,#0x330]                                       ; +0xd0, 0x100058ef8\nLDR             X8, [X0]                                               ; +0xd4, 0x100058efc\nLDR             X8, [X8,#0x3E8]                                        ; +0xd8, 0x100058f00\nMOV             X1, X20                                                ; +0xdc, 0x100058f04\nBLR             X8                                                     ; +0xe0, 0x100058f08\nLDR             X0, [X19,#0x330]                                       ; +0xe4, 0x100058f0c\nLDR             X8, [X0]                                               ; +0xe8, 0x100058f10\nLDR             X8, [X8,#0x158]                                        ; +0xec, 0x100058f14\nMOV             X1, X20                                                ; +0xf0, 0x100058f18\nBLR             X8                                                     ; +0xf4, 0x100058f1c\nLDR             X0, [X19,#0x378]                                       ; +0xf8, 0x100058f20\nLDR             X8, [X0]                                               ; +0xfc, 0x100058f24\nLDR             X2, [X8,#0x158]                                        ; +0x100, 0x100058f28\nMOV             X1, X20                                                ; +0x104, 0x100058f2c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x108, 0x100058f30\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x10c, 0x100058f34\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x110, 0x100058f38\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x114, 0x100058f3c\nBR              X2                                                     ; +0x118, 0x100058f40", "xrefs": ["CustomizeObjectLayer::onSelectColor @ 0x1000582cc", "CustomizeObjectLayer::onNextColorChannel @ 0x1000587b0", "CustomizeObjectLayer::updateCurrentSelection @ 0x1000589d4", "CustomizeObjectLayer::colorSetupClosed @ 0x100058cf4"], "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"}