{"type": "func", "start": 5373152192, "end": 5373152670, "name": "SetupPulsePopup::updateColorLabels", "pseudocode": "// \n// SetupPulsePopup::updateColorLabels from 0x14043cbc0 to 0x14043cd9e (478 bytes)\n// \n// 2 xrefs:\n// > SetupPulsePopup::colorValueChanged @ 0x14043c253\n// > <???> @ 0x1406da100\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::updateColorLabels(SetupPulsePopup *a1)\n{\n  bool m_disableTextDelegate; // si\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n  size_t v5; // rbx\n  size_t v6; // r8\n  cocos2d::CCString *v7; // rax\n  const char *v8; // rax\n  size_t v9; // r8\n  cocos2d::CCString *v10; // rax\n  const char *v11; // rax\n  size_t v12; // r8\n  __int128 *v13; // rax\n  __int16 v14; // [rsp+20h] [rbp-60h] BYREF\n  GLubyte b; // [rsp+22h] [rbp-5Eh]\n  __int128 v16; // [rsp+30h] [rbp-50h] BYREF\n  __int64 v17; // [rsp+40h] [rbp-40h]\n  __int64 v18; // [rsp+48h] [rbp-38h]\n  __int128 Src[2]; // [rsp+58h] [rbp-28h] BYREF\n\n  m_disableTextDelegate = a1->m_disableTextDelegate;\n  a1->m_disableTextDelegate = 1;\n  v3 = cocos2d::CCString::createWithFormat(\"%i\", a1->m_currentColor.r);\n  CString = cocos2d::CCString::getCString(v3);\n  v16 = 0;\n  v17 = 0;\n  v18 = 0;\n  v5 = -1;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003A930(&v16, CString, v6);\n  CCTextInputNode::setString((__int64)a1->m_rInput, &v16);\n  v7 = cocos2d::CCString::createWithFormat(\"%i\", a1->m_currentColor.g);\n  v8 = cocos2d::CCString::getCString(v7);\n  v16 = 0;\n  v17 = 0;\n  v18 = 0;\n  v9 = -1;\n  do\n    ++v9;\n  while ( v8[v9] );\n  sub_14003A930(&v16, v8, v9);\n  CCTextInputNode::setString((__int64)a1->m_gInput, &v16);\n  v10 = cocos2d::CCString::createWithFormat(\"%i\", a1->m_currentColor.b);\n  v11 = cocos2d::CCString::getCString(v10);\n  v16 = 0;\n  v17 = 0;\n  v18 = 0;\n  v12 = -1;\n  do\n    ++v12;\n  while ( v11[v12] );\n  sub_14003A930(&v16, v11, v12);\n  CCTextInputNode::setString((__int64)a1->m_bInput, &v16);\n  v14 = *(_WORD *)&a1->m_currentColor.r;\n  b = a1->m_currentColor.b;\n  v13 = ColorSelectPopup::colorToHex(Src, (unsigned __int8 *)&v14);\n  if ( *((_QWORD *)v13 + 3) > 0xFu )\n    v13 = *(__int128 **)v13;\n  v16 = 0;\n  v17 = 0;\n  v18 = 0;\n  do\n    ++v5;\n  while ( *((_BYTE *)v13 + v5) );\n  sub_14003A930(&v16, v13, v5);\n  CCTextInputNode::setString((__int64)a1->m_hexInput, &v16);\n  sub_14003A830((__int64)Src);\n  a1->m_disableTextDelegate = m_disableTextDelegate;\n}", "assembly": "; \n; SetupPulsePopup::updateColorLabels from 0x14043cbc0 to 0x14043cd9e (478 bytes)\n; \n; 2 xrefs:\n; > SetupPulsePopup::colorValueChanged @ 0x14043c253\n; > <???> @ 0x1406da100\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-18h+arg_8], rbx                                           ; +0x0, 0x14043cbc0\nmov     [rsp-18h+arg_10], rsi                                          ; +0x5, 0x14043cbc5\npush    rbp                                                            ; +0xa, 0x14043cbca\npush    rdi                                                            ; +0xb, 0x14043cbcb\npush    r14                                                            ; +0xc, 0x14043cbcc\nmov     rbp, rsp                                                       ; +0xe, 0x14043cbce\nsub     rsp, 80h                                                       ; +0x11, 0x14043cbd1\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x14043cbd8\nxor     rax, rsp                                                       ; +0x1f, 0x14043cbdf\nmov     [rbp+var_8], rax                                               ; +0x22, 0x14043cbe2\nmov     rdi, rcx                                                       ; +0x26, 0x14043cbe6\nmovzx   esi, byte ptr [rcx+2CCh]                                       ; +0x29, 0x14043cbe9\nmov     byte ptr [rcx+2CCh], 1                                         ; +0x30, 0x14043cbf0\nmovzx   edx, byte ptr [rcx+420h]                                       ; +0x37, 0x14043cbf7\nlea     rcx, aI_11; \"%i\"                                               ; +0x3e, 0x14043cbfe\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x45, 0x14043cc05\nmov     rcx, rax                                                       ; +0x4b, 0x14043cc0b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x4e, 0x14043cc0e\nxorps   xmm0, xmm0                                                     ; +0x54, 0x14043cc14\nmovups  [rbp+var_50], xmm0                                             ; +0x57, 0x14043cc17\nxor     r14d, r14d                                                     ; +0x5b, 0x14043cc1b\nmov     [rbp+var_40], r14                                              ; +0x5e, 0x14043cc1e\nmov     [rbp+var_38], r14                                              ; +0x62, 0x14043cc22\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x66, 0x14043cc26\nmov     r8, rbx                                                        ; +0x6d, 0x14043cc2d\ninc     r8                                                             ; +0x70, 0x14043cc30\ncmp     [rax+r8], r14b                                                 ; +0x73, 0x14043cc33\njnz     short loc_14043CC30                                            ; +0x77, 0x14043cc37\nmov     rdx, rax                                                       ; +0x79, 0x14043cc39\nlea     rcx, [rbp+var_50]                                              ; +0x7c, 0x14043cc3c\ncall    sub_14003A930                                                  ; +0x80, 0x14043cc40\nlea     rdx, [rbp+var_50]                                              ; +0x85, 0x14043cc45\nmov     rcx, [rdi+4D8h]                                                ; +0x89, 0x14043cc49\ncall    CCTextInputNode__setString                                     ; +0x90, 0x14043cc50\nmovzx   edx, byte ptr [rdi+421h]                                       ; +0x95, 0x14043cc55\nlea     rcx, aI_11; \"%i\"                                               ; +0x9c, 0x14043cc5c\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xa3, 0x14043cc63\nmov     rcx, rax                                                       ; +0xa9, 0x14043cc69\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xac, 0x14043cc6c\nxorps   xmm0, xmm0                                                     ; +0xb2, 0x14043cc72\nmovups  [rbp+var_50], xmm0                                             ; +0xb5, 0x14043cc75\nmov     [rbp+var_40], r14                                              ; +0xb9, 0x14043cc79\nmov     [rbp+var_38], r14                                              ; +0xbd, 0x14043cc7d\nmov     r8, rbx                                                        ; +0xc1, 0x14043cc81\ninc     r8                                                             ; +0xc4, 0x14043cc84\ncmp     [rax+r8], r14b                                                 ; +0xc7, 0x14043cc87\njnz     short loc_14043CC84                                            ; +0xcb, 0x14043cc8b\nmov     rdx, rax                                                       ; +0xcd, 0x14043cc8d\nlea     rcx, [rbp+var_50]                                              ; +0xd0, 0x14043cc90\ncall    sub_14003A930                                                  ; +0xd4, 0x14043cc94\nlea     rdx, [rbp+var_50]                                              ; +0xd9, 0x14043cc99\nmov     rcx, [rdi+4E0h]                                                ; +0xdd, 0x14043cc9d\ncall    CCTextInputNode__setString                                     ; +0xe4, 0x14043cca4\nmovzx   edx, byte ptr [rdi+422h]                                       ; +0xe9, 0x14043cca9\nlea     rcx, aI_11; \"%i\"                                               ; +0xf0, 0x14043ccb0\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xf7, 0x14043ccb7\nmov     rcx, rax                                                       ; +0xfd, 0x14043ccbd\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x100, 0x14043ccc0\nxorps   xmm0, xmm0                                                     ; +0x106, 0x14043ccc6\nmovups  [rbp+var_50], xmm0                                             ; +0x109, 0x14043ccc9\nmov     [rbp+var_40], r14                                              ; +0x10d, 0x14043cccd\nmov     [rbp+var_38], r14                                              ; +0x111, 0x14043ccd1\nmov     r8, rbx                                                        ; +0x115, 0x14043ccd5\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x118, 0x14043ccd8\ninc     r8                                                             ; +0x120, 0x14043cce0\ncmp     [rax+r8], r14b                                                 ; +0x123, 0x14043cce3\njnz     short loc_14043CCE0                                            ; +0x127, 0x14043cce7\nmov     rdx, rax                                                       ; +0x129, 0x14043cce9\nlea     rcx, [rbp+var_50]                                              ; +0x12c, 0x14043ccec\ncall    sub_14003A930                                                  ; +0x130, 0x14043ccf0\nlea     rdx, [rbp+var_50]                                              ; +0x135, 0x14043ccf5\nmov     rcx, [rdi+4E8h]                                                ; +0x139, 0x14043ccf9\ncall    CCTextInputNode__setString                                     ; +0x140, 0x14043cd00\nmovzx   eax, word ptr [rdi+420h]                                       ; +0x145, 0x14043cd05\nmov     [rbp+var_60], ax                                               ; +0x14c, 0x14043cd0c\nmovzx   eax, byte ptr [rdi+422h]                                       ; +0x150, 0x14043cd10\nmov     [rbp+var_5E], al                                               ; +0x157, 0x14043cd17\nlea     rdx, [rbp+var_60]                                              ; +0x15a, 0x14043cd1a\nlea     rcx, [rbp+Src]; Src                                            ; +0x15e, 0x14043cd1e\ncall    ColorSelectPopup__colorToHex                                   ; +0x162, 0x14043cd22\nnop                                                                    ; +0x167, 0x14043cd27\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x168, 0x14043cd28\njbe     short loc_14043CD32                                            ; +0x16d, 0x14043cd2d\nmov     rax, [rax]                                                     ; +0x16f, 0x14043cd2f\nxorps   xmm0, xmm0                                                     ; +0x172, 0x14043cd32\nmovups  [rbp+var_50], xmm0                                             ; +0x175, 0x14043cd35\nmov     [rbp+var_40], r14                                              ; +0x179, 0x14043cd39\nmov     [rbp+var_38], r14                                              ; +0x17d, 0x14043cd3d\ninc     rbx                                                            ; +0x181, 0x14043cd41\ncmp     byte ptr [rax+rbx], 0                                          ; +0x184, 0x14043cd44\njnz     short loc_14043CD41                                            ; +0x188, 0x14043cd48\nmov     r8, rbx                                                        ; +0x18a, 0x14043cd4a\nmov     rdx, rax                                                       ; +0x18d, 0x14043cd4d\nlea     rcx, [rbp+var_50]                                              ; +0x190, 0x14043cd50\ncall    sub_14003A930                                                  ; +0x194, 0x14043cd54\nlea     rdx, [rbp+var_50]                                              ; +0x199, 0x14043cd59\nmov     rcx, [rdi+4F0h]                                                ; +0x19d, 0x14043cd5d\ncall    CCTextInputNode__setString                                     ; +0x1a4, 0x14043cd64\nnop                                                                    ; +0x1a9, 0x14043cd69\nlea     rcx, [rbp+Src]                                                 ; +0x1aa, 0x14043cd6a\ncall    sub_14003A830                                                  ; +0x1ae, 0x14043cd6e\nmov     [rdi+2CCh], sil                                                ; +0x1b3, 0x14043cd73\nmov     rcx, [rbp+var_8]                                               ; +0x1ba, 0x14043cd7a\nxor     rcx, rsp; StackCookie                                          ; +0x1be, 0x14043cd7e\ncall    __security_check_cookie                                        ; +0x1c1, 0x14043cd81\nlea     r11, [rsp+80h+var_s0]                                          ; +0x1c6, 0x14043cd86\nmov     rbx, [r11+28h]                                                 ; +0x1ce, 0x14043cd8e\nmov     rsi, [r11+30h]                                                 ; +0x1d2, 0x14043cd92\nmov     rsp, r11                                                       ; +0x1d6, 0x14043cd96\npop     r14                                                            ; +0x1d9, 0x14043cd99\npop     rdi                                                            ; +0x1db, 0x14043cd9b\npop     rbp                                                            ; +0x1dc, 0x14043cd9c\nretn                                                                   ; +0x1dd, 0x14043cd9d", "xrefs": ["SetupPulsePopup::colorValueChanged @ 0x14043c253", "<???> @ 0x1406da100"], "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"}