{"type": "func", "start": 5373144992, "end": 5373145529, "name": "SetupPulsePopup::onSelectTargetMode", "pseudocode": "// \n// SetupPulsePopup::onSelectTargetMode from 0x14043afa0 to 0x14043b1b9 (537 bytes)\n// \n// 4 xrefs:\n// > SetupPulsePopup::init @ 0x14043aa78\n// > SetupPulsePopup::init @ 0x140438873\n// > SetupPulsePopup::init @ 0x14043892c\n// > <???> @ 0x1406d9e90\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 SetupPulsePopup::onSelectTargetMode(SetupPulsePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebp\n  const char *v4; // rsi\n  const char *v5; // rdi\n  ButtonSprite *v6; // rax\n  ButtonSprite *v7; // rax\n  const char *v8; // rsi\n  bool v9; // di\n  cocos2d::CCLabelBMFont *m_mainOnlyLabel; // rcx\n  cocos2d::CCLabelBMFont *m_secondaryOnlyLabel; // rcx\n  bool v12; // zf\n  unsigned int v13; // edi\n  EffectGameObject *m_gameObject; // rcx\n  cocos2d::CCArray *m_gameObjects; // rcx\n  struct cocos2d::CCObject *v16; // rax\n\n  v3 = -1;\n  if ( a2 )\n    v3 = a2->getTag(a2);\n  v4 = \"GJ_button_04.png\";\n  v5 = \"GJ_button_04.png\";\n  if ( !v3 )\n    v5 = \"GJ_button_02.png\";\n  v6 = (ButtonSprite *)a1->m_channelButton->getNormalImage(a1->m_channelButton);\n  ButtonSprite::updateBGImage(v6, v5);\n  if ( v3 == 1 )\n    v4 = \"GJ_button_02.png\";\n  v7 = (ButtonSprite *)a1->m_groupButton->getNormalImage(a1->m_groupButton);\n  ButtonSprite::updateBGImage(v7, v4);\n  if ( v3 )\n  {\n    v8 = (const char *)&qword_1405DA090;\n    if ( v3 != 1 )\n      v8 = (const char *)&word_1405E4448;\n  }\n  else\n  {\n    v8 = \"Channel ID\";\n  }\n  a1->m_specialColorButton->setVisible(a1->m_specialColorButton, v3 == 0);\n  a1->m_specialColorButton->setEnabled(a1->m_specialColorButton, v3 == 0);\n  v9 = v3 == 1;\n  a1->m_mainOnlyToggler->setVisible(a1->m_mainOnlyToggler, v3 == 1);\n  a1->m_mainOnlyToggler->setEnabled(a1->m_mainOnlyToggler, v3 == 1);\n  m_mainOnlyLabel = a1->m_mainOnlyLabel;\n  if ( m_mainOnlyLabel )\n    m_mainOnlyLabel->setVisible(m_mainOnlyLabel, v9);\n  a1->m_secondaryOnlyToggler->setVisible(a1->m_secondaryOnlyToggler, v9);\n  a1->m_secondaryOnlyToggler->setEnabled(a1->m_secondaryOnlyToggler, v9);\n  m_secondaryOnlyLabel = a1->m_secondaryOnlyLabel;\n  if ( m_secondaryOnlyLabel )\n    m_secondaryOnlyLabel->setVisible(m_secondaryOnlyLabel, v9);\n  a1->m_idLabel->setString(&a1->m_idLabel->cocos2d::CCLabelProtocol, v8);\n  v12 = !a1->m_modesInitializing;\n  a1->m_pulseTargetType = v3;\n  if ( v12 )\n  {\n    v13 = 0;\n    a1->m_targetGroupID = 0;\n    SetupPulsePopup::updateTargetID(a1);\n    SetupPulsePopup::updateTextInputLabel(a1);\n    m_gameObject = a1->m_gameObject;\n    if ( m_gameObject )\n    {\n      m_gameObject->m_pulseTargetType = a1->m_pulseTargetType;\n    }\n    else\n    {\n      m_gameObjects = a1->m_gameObjects;\n      if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )\n      {\n        do\n        {\n          v16 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v13++);\n          LODWORD(v16[29].__vftable) = a1->m_pulseTargetType;\n        }\n        while ( v13 < cocos2d::CCArray::count(a1->m_gameObjects) );\n      }\n    }\n  }\n}", "assembly": "; \n; SetupPulsePopup::onSelectTargetMode from 0x14043afa0 to 0x14043b1b9 (537 bytes)\n; \n; 4 xrefs:\n; > SetupPulsePopup::init @ 0x14043aa78\n; > SetupPulsePopup::init @ 0x140438873\n; > SetupPulsePopup::init @ 0x14043892c\n; > <???> @ 0x1406d9e90\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, 0x14043afa0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14043afa5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14043afaa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14043afaf\npush    r14                                                            ; +0x14, 0x14043afb4\nsub     rsp, 20h                                                       ; +0x16, 0x14043afb6\nmov     rbx, rcx                                                       ; +0x1a, 0x14043afba\nmov     ebp, 0FFFFFFFFh                                                ; +0x1d, 0x14043afbd\ntest    rdx, rdx                                                       ; +0x22, 0x14043afc2\njz      short loc_14043AFD2                                            ; +0x25, 0x14043afc5\nmov     rax, [rdx]                                                     ; +0x27, 0x14043afc7\nmov     rcx, rdx                                                       ; +0x2a, 0x14043afca\ncall    qword ptr [rax+38h]                                            ; +0x2d, 0x14043afcd\nmov     ebp, eax                                                       ; +0x30, 0x14043afd0\nmov     rcx, [rbx+3F0h]                                                ; +0x32, 0x14043afd2\nlea     rsi, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x39, 0x14043afd9\ntest    ebp, ebp                                                       ; +0x40, 0x14043afe0\nlea     r14, aGjButton02Png; \"GJ_button_02.png\"                        ; +0x42, 0x14043afe2\nmov     rdi, rsi                                                       ; +0x49, 0x14043afe9\ncmovz   rdi, r14                                                       ; +0x4c, 0x14043afec\nmov     r8, [rcx]                                                      ; +0x50, 0x14043aff0\ncall    qword ptr [r8+3A8h]                                            ; +0x53, 0x14043aff3\nmov     rcx, rax                                                       ; +0x5a, 0x14043affa\nmov     rdx, rdi                                                       ; +0x5d, 0x14043affd\ncall    ButtonSprite__updateBGImage                                    ; +0x60, 0x14043b000\nmov     rcx, [rbx+3F8h]                                                ; +0x65, 0x14043b005\ncmp     ebp, 1                                                         ; +0x6c, 0x14043b00c\ncmovz   rsi, r14                                                       ; +0x6f, 0x14043b00f\nmov     rax, [rcx]                                                     ; +0x73, 0x14043b013\ncall    qword ptr [rax+3A8h]                                           ; +0x76, 0x14043b016\nmov     rcx, rax                                                       ; +0x7c, 0x14043b01c\nmov     rdx, rsi                                                       ; +0x7f, 0x14043b01f\ncall    ButtonSprite__updateBGImage                                    ; +0x82, 0x14043b022\nlea     rax, word_1405E4448                                            ; +0x87, 0x14043b027\ntest    ebp, ebp                                                       ; +0x8e, 0x14043b02e\njnz     short loc_14043B03B                                            ; +0x90, 0x14043b030\nlea     rsi, aChannelId; \"Channel ID\"                                  ; +0x92, 0x14043b032\njmp     short loc_14043B049                                            ; +0x99, 0x14043b039\ncmp     ebp, 1                                                         ; +0x9b, 0x14043b03b\nlea     rsi, qword_1405DA090                                           ; +0x9e, 0x14043b03e\ncmovnz  rsi, rax                                                       ; +0xa5, 0x14043b045\nmov     rcx, [rbx+440h]                                                ; +0xa9, 0x14043b049\ntest    ebp, ebp                                                       ; +0xb0, 0x14043b050\nsetz    dil                                                            ; +0xb2, 0x14043b052\nmovzx   edx, dil                                                       ; +0xb6, 0x14043b056\nmov     rax, [rcx]                                                     ; +0xba, 0x14043b05a\ncall    qword ptr [rax+140h]                                           ; +0xbd, 0x14043b05d\nmov     rcx, [rbx+440h]                                                ; +0xc3, 0x14043b063\nmovzx   edx, dil                                                       ; +0xca, 0x14043b06a\nmov     rax, [rcx]                                                     ; +0xce, 0x14043b06e\ncall    qword ptr [rax+398h]                                           ; +0xd1, 0x14043b071\nmov     rcx, [rbx+470h]                                                ; +0xd7, 0x14043b077\ncmp     ebp, 1                                                         ; +0xde, 0x14043b07e\nsetz    dil                                                            ; +0xe1, 0x14043b081\nmovzx   edx, dil                                                       ; +0xe5, 0x14043b085\nmov     rax, [rcx]                                                     ; +0xe9, 0x14043b089\ncall    qword ptr [rax+140h]                                           ; +0xec, 0x14043b08c\nmov     rcx, [rbx+470h]                                                ; +0xf2, 0x14043b092\nmovzx   edx, dil                                                       ; +0xf9, 0x14043b099\nmov     rax, [rcx]                                                     ; +0xfd, 0x14043b09d\ncall    qword ptr [rax+398h]                                           ; +0x100, 0x14043b0a0\nmov     rcx, [rbx+488h]                                                ; +0x106, 0x14043b0a6\ntest    rcx, rcx                                                       ; +0x10d, 0x14043b0ad\njz      short loc_14043B0BF                                            ; +0x110, 0x14043b0b0\nmov     rax, [rcx]                                                     ; +0x112, 0x14043b0b2\nmovzx   edx, dil                                                       ; +0x115, 0x14043b0b5\ncall    qword ptr [rax+140h]                                           ; +0x119, 0x14043b0b9\nmov     rcx, [rbx+478h]                                                ; +0x11f, 0x14043b0bf\nmovzx   edx, dil                                                       ; +0x126, 0x14043b0c6\nmov     rax, [rcx]                                                     ; +0x12a, 0x14043b0ca\ncall    qword ptr [rax+140h]                                           ; +0x12d, 0x14043b0cd\nmov     rcx, [rbx+478h]                                                ; +0x133, 0x14043b0d3\nmovzx   edx, dil                                                       ; +0x13a, 0x14043b0da\nmov     rax, [rcx]                                                     ; +0x13e, 0x14043b0de\ncall    qword ptr [rax+398h]                                           ; +0x141, 0x14043b0e1\nmov     rcx, [rbx+490h]                                                ; +0x147, 0x14043b0e7\ntest    rcx, rcx                                                       ; +0x14e, 0x14043b0ee\njz      short loc_14043B100                                            ; +0x151, 0x14043b0f1\nmov     rax, [rcx]                                                     ; +0x153, 0x14043b0f3\nmovzx   edx, dil                                                       ; +0x156, 0x14043b0f6\ncall    qword ptr [rax+140h]                                           ; +0x15a, 0x14043b0fa\nmov     rcx, [rbx+400h]                                                ; +0x160, 0x14043b100\nmov     rdx, rsi                                                       ; +0x167, 0x14043b107\nadd     rcx, 168h                                                      ; +0x16a, 0x14043b10a\nmov     rax, [rcx]                                                     ; +0x171, 0x14043b111\ncall    qword ptr [rax]                                                ; +0x174, 0x14043b114\ncmp     byte ptr [rbx+4C4h], 0                                         ; +0x176, 0x14043b116\nmov     [rbx+4C0h], ebp                                                ; +0x17d, 0x14043b11d\njnz     short loc_14043B19E                                            ; +0x183, 0x14043b123\nxor     edi, edi                                                       ; +0x185, 0x14043b125\nmov     rcx, rbx                                                       ; +0x187, 0x14043b127\nmov     [rbx+4A4h], edi                                                ; +0x18a, 0x14043b12a\ncall    SetupPulsePopup__updateTargetID                                ; +0x190, 0x14043b130\nmov     rcx, rbx                                                       ; +0x195, 0x14043b135\ncall    SetupPulsePopup__updateTextInputLabel                          ; +0x198, 0x14043b138\nmov     rcx, [rbx+290h]                                                ; +0x19d, 0x14043b13d\ntest    rcx, rcx                                                       ; +0x1a4, 0x14043b144\njz      short loc_14043B157                                            ; +0x1a7, 0x14043b147\nmov     eax, [rbx+4C0h]                                                ; +0x1a9, 0x14043b149\nmov     [rcx+658h], eax                                                ; +0x1af, 0x14043b14f\njmp     short loc_14043B19E                                            ; +0x1b5, 0x14043b155\nmov     rcx, [rbx+298h]                                                ; +0x1b7, 0x14043b157\ntest    rcx, rcx                                                       ; +0x1be, 0x14043b15e\njz      short loc_14043B19E                                            ; +0x1c1, 0x14043b161\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1c3, 0x14043b163\ntest    eax, eax                                                       ; +0x1c9, 0x14043b169\njz      short loc_14043B19E                                            ; +0x1cb, 0x14043b16b\nnop     dword ptr [rax]                                                ; +0x1cd, 0x14043b16d\nmov     rcx, [rbx+298h]                                                ; +0x1d0, 0x14043b170\nmov     edx, edi                                                       ; +0x1d7, 0x14043b177\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1d9, 0x14043b179\nmov     ecx, [rbx+4C0h]                                                ; +0x1df, 0x14043b17f\ninc     edi                                                            ; +0x1e5, 0x14043b185\nmov     [rax+658h], ecx                                                ; +0x1e7, 0x14043b187\nmov     rcx, [rbx+298h]                                                ; +0x1ed, 0x14043b18d\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1f4, 0x14043b194\ncmp     edi, eax                                                       ; +0x1fa, 0x14043b19a\njb      short loc_14043B170                                            ; +0x1fc, 0x14043b19c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1fe, 0x14043b19e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x203, 0x14043b1a3\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x208, 0x14043b1a8\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x20d, 0x14043b1ad\nadd     rsp, 20h                                                       ; +0x212, 0x14043b1b2\npop     r14                                                            ; +0x216, 0x14043b1b6\nretn                                                                   ; +0x218, 0x14043b1b8", "xrefs": ["SetupPulsePopup::init @ 0x14043aa78", "SetupPulsePopup::init @ 0x140438873", "SetupPulsePopup::init @ 0x14043892c", "<???> @ 0x1406d9e90"], "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"}