{"type": "func", "start": 5373153008, "end": 5373153281, "name": "SetupPulsePopup::updateTextInputLabel", "pseudocode": "// \n// SetupPulsePopup::updateTextInputLabel from 0x14043cef0 to 0x14043d001 (273 bytes)\n// \n// 4 xrefs:\n// > SetupPulsePopup::init @ 0x14043aa80\n// > SetupPulsePopup::onSelectTargetMode @ 0x14043b138\n// > SetupPulsePopup::onUpdateCustomColor @ 0x14043c3ab\n// > <???> @ 0x1406da154\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::updateTextInputLabel(SetupPulsePopup *a1)\n{\n  int m_targetGroupID; // edx\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  const char *v5; // rcx\n  size_t v6; // rbx\n  size_t v7; // r8\n  int v8; // ecx\n  const char *v9; // rax\n  __int128 v10; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v11; // [rsp+30h] [rbp-18h]\n  __int64 v12; // [rsp+38h] [rbp-10h]\n\n  m_targetGroupID = a1->m_targetGroupID;\n  a1->m_disableTextDelegate = 1;\n  v3 = cocos2d::CCString::createWithFormat(\"%i\", m_targetGroupID);\n  CString = cocos2d::CCString::getCString(v3);\n  if ( a1->m_targetGroupID >= 1000 )\n  {\n    v5 = \"0\";\n    if ( a1->m_pulseTargetType == 1 )\n      v5 = CString;\n    CString = v5;\n  }\n  v6 = -1;\n  v11 = 0;\n  v10 = 0;\n  v12 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( CString[v7] );\n  sub_14003A930(&v10, CString, v7);\n  CCTextInputNode::setString((__int64)a1->m_idInput, &v10);\n  v8 = a1->m_targetGroupID;\n  if ( v8 >= 1000 && a1->m_pulseTargetType != 1 )\n  {\n    v9 = GJSpecialColorSelect::textForColorIdx(v8);\n    v11 = 0;\n    v10 = 0;\n    v12 = 0;\n    do\n      ++v6;\n    while ( v9[v6] );\n    sub_14003A930(&v10, v9, v6);\n    CCTextInputNode::updateLabel(a1->m_idInput, (__int64)&v10);\n  }\n  a1->m_disableTextDelegate = 0;\n}", "assembly": "; \n; SetupPulsePopup::updateTextInputLabel from 0x14043cef0 to 0x14043d001 (273 bytes)\n; \n; 4 xrefs:\n; > SetupPulsePopup::init @ 0x14043aa80\n; > SetupPulsePopup::onSelectTargetMode @ 0x14043b138\n; > SetupPulsePopup::onUpdateCustomColor @ 0x14043c3ab\n; > <???> @ 0x1406da154\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_8], rbx                                               ; +0x0, 0x14043cef0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14043cef5\npush    rdi                                                            ; +0xa, 0x14043cefa\nsub     rsp, 40h                                                       ; +0xb, 0x14043cefb\nmov     edx, [rcx+4A4h]                                                ; +0xf, 0x14043ceff\nmov     rdi, rcx                                                       ; +0x15, 0x14043cf05\nmov     byte ptr [rcx+2CCh], 1                                         ; +0x18, 0x14043cf08\nlea     rcx, aI_11; \"%i\"                                               ; +0x1f, 0x14043cf0f\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x26, 0x14043cf16\nmov     rcx, rax                                                       ; +0x2c, 0x14043cf1c\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x2f, 0x14043cf1f\ncmp     dword ptr [rdi+4A4h], 3E8h                                     ; +0x35, 0x14043cf25\njl      short loc_14043CF46                                            ; +0x3f, 0x14043cf2f\ncmp     dword ptr [rdi+4C0h], 1                                        ; +0x41, 0x14043cf31\nlea     rcx, a0; \"0\"                                                   ; +0x48, 0x14043cf38\ncmovz   rcx, rax                                                       ; +0x4f, 0x14043cf3f\nmov     rax, rcx                                                       ; +0x53, 0x14043cf43\nxor     esi, esi                                                       ; +0x56, 0x14043cf46\nxorps   xmm0, xmm0                                                     ; +0x58, 0x14043cf48\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x5b, 0x14043cf4b\nmov     [rsp+48h+var_18], rsi                                          ; +0x62, 0x14043cf52\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x67, 0x14043cf57\nmov     [rsp+48h+var_10], rsi                                          ; +0x6c, 0x14043cf5c\nmov     r8, rbx                                                        ; +0x71, 0x14043cf61\ninc     r8                                                             ; +0x74, 0x14043cf64\ncmp     [rax+r8], sil                                                  ; +0x77, 0x14043cf67\njnz     short loc_14043CF64                                            ; +0x7b, 0x14043cf6b\nmov     rdx, rax                                                       ; +0x7d, 0x14043cf6d\nlea     rcx, [rsp+48h+var_28]                                          ; +0x80, 0x14043cf70\ncall    sub_14003A930                                                  ; +0x85, 0x14043cf75\nmov     rcx, [rdi+460h]                                                ; +0x8a, 0x14043cf7a\nlea     rdx, [rsp+48h+var_28]                                          ; +0x91, 0x14043cf81\ncall    CCTextInputNode__setString                                     ; +0x96, 0x14043cf86\nmov     ecx, [rdi+4A4h]                                                ; +0x9b, 0x14043cf8b\ncmp     ecx, 3E8h                                                      ; +0xa1, 0x14043cf91\njl      short loc_14043CFEA                                            ; +0xa7, 0x14043cf97\ncmp     dword ptr [rdi+4C0h], 1                                        ; +0xa9, 0x14043cf99\njz      short loc_14043CFEA                                            ; +0xb0, 0x14043cfa0\ncall    GJSpecialColorSelect__textForColorIdx                          ; +0xb2, 0x14043cfa2\nxorps   xmm0, xmm0                                                     ; +0xb7, 0x14043cfa7\nmov     [rsp+48h+var_18], rsi                                          ; +0xba, 0x14043cfaa\nmovups  [rsp+48h+var_28], xmm0                                         ; +0xbf, 0x14043cfaf\nmov     [rsp+48h+var_10], rsi                                          ; +0xc4, 0x14043cfb4\nnop     dword ptr [rax+00000000h]                                      ; +0xc9, 0x14043cfb9\ninc     rbx                                                            ; +0xd0, 0x14043cfc0\ncmp     [rax+rbx], sil                                                 ; +0xd3, 0x14043cfc3\njnz     short loc_14043CFC0                                            ; +0xd7, 0x14043cfc7\nmov     r8, rbx                                                        ; +0xd9, 0x14043cfc9\nlea     rcx, [rsp+48h+var_28]                                          ; +0xdc, 0x14043cfcc\nmov     rdx, rax                                                       ; +0xe1, 0x14043cfd1\ncall    sub_14003A930                                                  ; +0xe4, 0x14043cfd4\nmov     rcx, [rdi+460h]                                                ; +0xe9, 0x14043cfd9\nlea     rdx, [rsp+48h+var_28]                                          ; +0xf0, 0x14043cfe0\ncall    CCTextInputNode__updateLabel                                   ; +0xf5, 0x14043cfe5\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xfa, 0x14043cfea\nmov     [rdi+2CCh], sil                                                ; +0xff, 0x14043cfef\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x106, 0x14043cff6\nadd     rsp, 40h                                                       ; +0x10b, 0x14043cffb\npop     rdi                                                            ; +0x10f, 0x14043cfff\nretn                                                                   ; +0x110, 0x14043d000", "xrefs": ["SetupPulsePopup::init @ 0x14043aa80", "SetupPulsePopup::onSelectTargetMode @ 0x14043b138", "SetupPulsePopup::onUpdateCustomColor @ 0x14043c3ab", "<???> @ 0x1406da154"], "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"}