{"type": "func", "start": 4296734148, "end": 4296734328, "name": "GJSpecialColorSelect::highlightSelected", "pseudocode": "// \n// GJSpecialColorSelect::highlightSelected from 0x1001af5c4 to 0x1001af678 (180 bytes)\n// \n// 1 xrefs:\n// > GJSpecialColorSelect::onSelectColor @ 0x1001af5c0\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 GJSpecialColorSelect::highlightSelected(GJSpecialColorSelect *a1, ButtonSprite *a2)\n{\n  __int64 v4; // x21\n  ButtonSprite *v5; // x22\n  const char *v6; // x1\n\n  if ( (unsigned int)sub_10024A36C(a1->m_buttonSprites) )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = (ButtonSprite *)sub_10024A388(a1->m_buttonSprites, v4);\n      if ( ((unsigned int (__fastcall *)(ButtonSprite *))v5->getTag)(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_10024A36C(a1->m_buttonSprites) );\n  }\n  if ( a2 )\n    ButtonSprite::updateBGImage(a2, \"GJ_button_02.png\");\n}", "assembly": "; \n; GJSpecialColorSelect::highlightSelected from 0x1001af5c4 to 0x1001af678 (180 bytes)\n; \n; 1 xrefs:\n; > GJSpecialColorSelect::onSelectColor @ 0x1001af5c0\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\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x1001af5c4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x1001af5c8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1001af5cc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1001af5d0\nADD             X29, SP, #0x30                                         ; +0x10, 0x1001af5d4\nMOV             X19, X1                                                ; +0x14, 0x1001af5d8\nMOV             X20, X0                                                ; +0x18, 0x1001af5dc\nLDR             X0, [X0,#0x288]                                        ; +0x1c, 0x1001af5e0\nBL              sub_10024A36C                                          ; +0x20, 0x1001af5e4\nCBZ             W0, loc_1001AF640                                      ; +0x24, 0x1001af5e8\nMOV             W21, #0                                                ; +0x28, 0x1001af5ec\nADRL            X23, aGjButton04Png; \"GJ_button_04.png\"                ; +0x2c, 0x1001af5f0\nADRL            X24, aGjButton05Png; \"GJ_button_05.png\"                ; +0x34, 0x1001af5f8\nLDR             X0, [X20,#0x288]                                       ; +0x3c, 0x1001af600\nMOV             X1, X21                                                ; +0x40, 0x1001af604\nBL              sub_10024A388                                          ; +0x44, 0x1001af608\nMOV             X22, X0                                                ; +0x48, 0x1001af60c\nLDR             X8, [X0]                                               ; +0x4c, 0x1001af610\nLDR             X8, [X8,#0x40]                                         ; +0x50, 0x1001af614\nBLR             X8                                                     ; +0x54, 0x1001af618\nCMP             W0, #0x3F0                                             ; +0x58, 0x1001af61c\nCSEL            X1, X24, X23, EQ                                       ; +0x5c, 0x1001af620\nMOV             X0, X22                                                ; +0x60, 0x1001af624\nBL              ButtonSprite__updateBGImage                            ; +0x64, 0x1001af628\nADD             W21, W21, #1                                           ; +0x68, 0x1001af62c\nLDR             X0, [X20,#0x288]                                       ; +0x6c, 0x1001af630\nBL              sub_10024A36C                                          ; +0x70, 0x1001af634\nCMP             W21, W0                                                ; +0x74, 0x1001af638\nB.CC            loc_1001AF600                                          ; +0x78, 0x1001af63c\nCBZ             X19, loc_1001AF664                                     ; +0x7c, 0x1001af640\nADRL            X1, aGjButton02Png; \"GJ_button_02.png\"                 ; +0x80, 0x1001af644\nMOV             X0, X19                                                ; +0x88, 0x1001af64c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x1001af650\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x1001af654\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x94, 0x1001af658\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x98, 0x1001af65c\nB               ButtonSprite__updateBGImage                            ; +0x9c, 0x1001af660\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x1001af664\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x1001af668\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0xa8, 0x1001af66c\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0xac, 0x1001af670\nRET                                                                    ; +0xb0, 0x1001af674", "xrefs": ["GJSpecialColorSelect::onSelectColor @ 0x1001af5c0"], "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"}