{"type": "func", "start": 5373185056, "end": 5373185183, "name": "SetupSequenceTriggerPopup::onSelect", "pseudocode": "// \n// SetupSequenceTriggerPopup::onSelect from 0x140444c20 to 0x140444c9f (127 bytes)\n// \n// 2 xrefs:\n// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x140444a8c\n// > <???> @ 0x1406da4f0\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 SetupSequenceTriggerPopup::onSelect(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)\n{\n  CCMenuItemSpriteExtra *m_selectedButton; // rcx\n  ButtonSprite *v5; // rax\n  ButtonSprite *v6; // rax\n\n  m_selectedButton = a1->m_selectedButton;\n  if ( m_selectedButton )\n  {\n    v5 = (ButtonSprite *)m_selectedButton->getNormalImage(m_selectedButton);\n    ButtonSprite::updateBGImage(v5, \"GJ_button_04.png\");\n  }\n  if ( a1->m_selectedButton == a2 )\n  {\n    a1->m_selectedButton = nullptr;\n  }\n  else\n  {\n    a1->m_selectedButton = (CCMenuItemSpriteExtra *)a2;\n    v6 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);\n    ButtonSprite::updateBGImage(v6, \"GJ_button_03.png\");\n  }\n}", "assembly": "; \n; SetupSequenceTriggerPopup::onSelect from 0x140444c20 to 0x140444c9f (127 bytes)\n; \n; 2 xrefs:\n; > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x140444a8c\n; > <???> @ 0x1406da4f0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140444c20\npush    rdi                                                            ; +0x5, 0x140444c25\nsub     rsp, 20h                                                       ; +0x6, 0x140444c26\nmov     rbx, rcx                                                       ; +0xa, 0x140444c2a\nmov     rdi, rdx                                                       ; +0xd, 0x140444c2d\nmov     rcx, [rcx+3A8h]                                                ; +0x10, 0x140444c30\ntest    rcx, rcx                                                       ; +0x17, 0x140444c37\njz      short loc_140444C54                                            ; +0x1a, 0x140444c3a\nmov     rax, [rcx]                                                     ; +0x1c, 0x140444c3c\ncall    qword ptr [rax+3A8h]                                           ; +0x1f, 0x140444c3f\nmov     rcx, rax                                                       ; +0x25, 0x140444c45\nlea     rdx, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x28, 0x140444c48\ncall    ButtonSprite__updateBGImage                                    ; +0x2f, 0x140444c4f\ncmp     [rbx+3A8h], rdi                                                ; +0x34, 0x140444c54\njnz     short loc_140444C73                                            ; +0x3b, 0x140444c5b\nmov     qword ptr [rbx+3A8h], 0                                        ; +0x3d, 0x140444c5d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x48, 0x140444c68\nadd     rsp, 20h                                                       ; +0x4d, 0x140444c6d\npop     rdi                                                            ; +0x51, 0x140444c71\nretn                                                                   ; +0x52, 0x140444c72\nmov     [rbx+3A8h], rdi                                                ; +0x53, 0x140444c73\nmov     rcx, rdi                                                       ; +0x5a, 0x140444c7a\nmov     rax, [rdi]                                                     ; +0x5d, 0x140444c7d\ncall    qword ptr [rax+3A8h]                                           ; +0x60, 0x140444c80\nmov     rcx, rax                                                       ; +0x66, 0x140444c86\nlea     rdx, aGjButton03Png; \"GJ_button_03.png\"                        ; +0x69, 0x140444c89\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x70, 0x140444c90\nadd     rsp, 20h                                                       ; +0x75, 0x140444c95\npop     rdi                                                            ; +0x79, 0x140444c99\njmp     ButtonSprite__updateBGImage                                    ; +0x7a, 0x140444c9a", "xrefs": ["SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x140444a8c", "<???> @ 0x1406da4f0"], "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"}