{"type": "func", "start": 5369956320, "end": 5369957086, "name": "ConfigureHSVWidget::textChanged", "pseudocode": "// \n// ConfigureHSVWidget::textChanged from 0x1401307e0 to 0x140130ade (766 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407354a8\n// > <???> @ 0x140916e50\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:03 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall ConfigureHSVWidget::textChanged(__int64 a1, _QWORD *a2)\n{\n  int v4; // eax\n  int v5; // eax\n  _BYTE *v6; // rax\n  size_t v7; // r8\n  const char *v8; // rcx\n  double v9; // xmm0_8\n  cocos2d::CCString *v10; // rax\n  float v11; // xmm0_4\n  char *v12; // rcx\n  _BYTE *v13; // rax\n  size_t v14; // r8\n  const char *v15; // rcx\n  double v16; // xmm0_8\n  cocos2d::CCString *v17; // rax\n  float v18; // xmm0_4\n  char *v19; // rcx\n  _BYTE *v20; // rax\n  size_t v21; // r8\n  const char *v22; // rcx\n  int v23; // ebx\n  char *v24; // r8\n  int v25; // eax\n  char *String[2]; // [rsp+38h] [rbp-38h] BYREF\n  __int128 v27; // [rsp+48h] [rbp-28h]\n\n  if ( !*(_BYTE *)(a1 + 89) )\n  {\n    v4 = (*(__int64 (__fastcall **)(_QWORD *))(*a2 + 56LL))(a2) - 1;\n    if ( v4 )\n    {\n      v5 = v4 - 1;\n      if ( v5 )\n      {\n        if ( v5 == 1 )\n        {\n          v6 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n          *(_OWORD *)String = 0;\n          v27 = 0;\n          v7 = -1;\n          do\n            ++v7;\n          while ( v6[v7] );\n          sub_14003D230(String, v6, v7);\n          v8 = (const char *)String;\n          if ( *((_QWORD *)&v27 + 1) > 0xFu )\n            v8 = String[0];\n          v9 = atof(v8);\n          v10 = cocos2d::CCString::createWithFormat(\"%.2f\", v9);\n          v11 = cocos2d::CCString::floatValue(v10);\n          if ( *((_QWORD *)&v27 + 1) > 0xFu )\n          {\n            v12 = String[0];\n            if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )\n            {\n              v12 = *((char **)String[0] - 1);\n              if ( (unsigned __int64)(String[0] - v12 - 8) > 0x1F )\n                invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n            }\n            j_j_free(v12);\n          }\n          *(float *)(a1 + 64) = v11;\n        }\n      }\n      else\n      {\n        v13 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n        *(_OWORD *)String = 0;\n        v27 = 0;\n        v14 = -1;\n        do\n          ++v14;\n        while ( v13[v14] );\n        sub_14003D230(String, v13, v14);\n        v15 = (const char *)String;\n        if ( *((_QWORD *)&v27 + 1) > 0xFu )\n          v15 = String[0];\n        v16 = atof(v15);\n        v17 = cocos2d::CCString::createWithFormat(\"%.2f\", v16);\n        v18 = cocos2d::CCString::floatValue(v17);\n        if ( *((_QWORD *)&v27 + 1) > 0xFu )\n        {\n          v19 = String[0];\n          if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )\n          {\n            v19 = *((char **)String[0] - 1);\n            if ( (unsigned __int64)(String[0] - v19 - 8) > 0x1F )\n              invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n          }\n          j_j_free(v19);\n        }\n        *(float *)(a1 + 60) = v18;\n      }\n    }\n    else\n    {\n      v20 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a2[74] + 600LL) + 8LL))(a2[74] + 600LL);\n      *(_OWORD *)String = 0;\n      v27 = 0;\n      v21 = -1;\n      do\n        ++v21;\n      while ( v20[v21] );\n      sub_14003D230(String, v20, v21);\n      v22 = (const char *)String;\n      if ( *((_QWORD *)&v27 + 1) > 0xFu )\n        v22 = String[0];\n      v23 = atoi(v22);\n      if ( *((_QWORD *)&v27 + 1) > 0xFu )\n      {\n        v24 = String[0];\n        if ( (unsigned __int64)(*((_QWORD *)&v27 + 1) + 1LL) >= 0x1000 )\n        {\n          v24 = *((char **)String[0] - 1);\n          if ( (unsigned __int64)(String[0] - v24 - 8) > 0x1F )\n            invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n        }\n        j_j_free(v24);\n      }\n      v25 = 360;\n      if ( v23 <= 360 )\n      {\n        v25 = v23;\n        if ( v23 < -360 )\n          v25 = -360;\n      }\n      *(float *)(a1 + 56) = (float)v25;\n    }\n    ConfigureHSVWidget::updateSliders(a1 - 320);\n  }\n}", "assembly": "; \n; ConfigureHSVWidget::textChanged from 0x1401307e0 to 0x140130ade (766 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407354a8\n; > <???> @ 0x140916e50\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:03 +0000\n; \nmov     [rsp-18h+arg_10], rbx                                          ; +0x0, 0x1401307e0\nmov     [rsp-18h+arg_18], rsi                                          ; +0x5, 0x1401307e5\npush    rbp                                                            ; +0xa, 0x1401307ea\npush    rdi                                                            ; +0xb, 0x1401307eb\npush    r14                                                            ; +0xc, 0x1401307ec\nmov     rbp, rsp                                                       ; +0xe, 0x1401307ee\nsub     rsp, 70h                                                       ; +0x11, 0x1401307f1\nmovaps  [rsp+70h+var_10], xmm6                                         ; +0x15, 0x1401307f5\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x1401307fa\nxor     rax, rsp                                                       ; +0x21, 0x140130801\nmov     [rbp+var_18], rax                                              ; +0x24, 0x140130804\nmov     rbx, rdx                                                       ; +0x28, 0x140130808\nmov     rdi, rcx                                                       ; +0x2b, 0x14013080b\nxor     r14d, r14d                                                     ; +0x2e, 0x14013080e\ncmp     [rcx+59h], r14b                                                ; +0x31, 0x140130811\njnz     loc_140130AB8                                                  ; +0x35, 0x140130815\nmov     rax, [rdx]                                                     ; +0x3b, 0x14013081b\nmov     rcx, rdx                                                       ; +0x3e, 0x14013081e\ncall    qword ptr [rax+38h]                                            ; +0x41, 0x140130821\nsub     eax, 1                                                         ; +0x44, 0x140130824\njz      loc_1401309E2                                                  ; +0x47, 0x140130827\nsub     eax, 1                                                         ; +0x4d, 0x14013082d\njz      loc_140130912                                                  ; +0x50, 0x140130830\ncmp     eax, 1                                                         ; +0x56, 0x140130836\njnz     loc_140130AAC                                                  ; +0x59, 0x140130839\nmov     rcx, [rbx+250h]                                                ; +0x5f, 0x14013083f\nadd     rcx, 258h                                                      ; +0x66, 0x140130846\nmov     rax, [rcx]                                                     ; +0x6d, 0x14013084d\ncall    qword ptr [rax+8]                                              ; +0x70, 0x140130850\nxorps   xmm0, xmm0                                                     ; +0x73, 0x140130853\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x76, 0x140130856\nxorps   xmm1, xmm1                                                     ; +0x7a, 0x14013085a\nmovdqu  [rbp+var_28], xmm1                                             ; +0x7d, 0x14013085d\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x82, 0x140130862\nnop     dword ptr [rax+00000000h]                                      ; +0x89, 0x140130869\ninc     r8                                                             ; +0x90, 0x140130870\ncmp     [rax+r8], r14b                                                 ; +0x93, 0x140130873\njnz     short loc_140130870                                            ; +0x97, 0x140130877\nmov     rdx, rax                                                       ; +0x99, 0x140130879\nlea     rcx, [rbp+String]                                              ; +0x9c, 0x14013087c\ncall    sub_14003D230                                                  ; +0xa0, 0x140130880\nnop                                                                    ; +0xa5, 0x140130885\nlea     rcx, [rbp+String]                                              ; +0xa6, 0x140130886\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0xaa, 0x14013088a\ncmova   rcx, [rbp+String]; String                                      ; +0xaf, 0x14013088f\ncall    cs:atof                                                        ; +0xb4, 0x140130894\nmovaps  xmm1, xmm0                                                     ; +0xba, 0x14013089a\nmovq    rdx, xmm0                                                      ; +0xbd, 0x14013089d\nlea     rcx, a2f; \"%.2f\"                                               ; +0xc2, 0x1401308a2\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xc9, 0x1401308a9\nmov     rcx, rax                                                       ; +0xcf, 0x1401308af\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0xd2, 0x1401308b2\nmovaps  xmm6, xmm0                                                     ; +0xd8, 0x1401308b8\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0xdb, 0x1401308bb\ncmp     rdx, 0Fh                                                       ; +0xdf, 0x1401308bf\njbe     short loc_140130908                                            ; +0xe3, 0x1401308c3\ninc     rdx                                                            ; +0xe5, 0x1401308c5\nmov     rcx, [rbp+String]; Block                                       ; +0xe8, 0x1401308c8\nmov     rax, rcx                                                       ; +0xec, 0x1401308cc\ncmp     rdx, 1000h                                                     ; +0xef, 0x1401308cf\njb      short loc_140130903                                            ; +0xf6, 0x1401308d6\nadd     rdx, 27h ; '''                                                 ; +0xf8, 0x1401308d8\nmov     rcx, [rcx-8]                                                   ; +0xfc, 0x1401308dc\nsub     rax, rcx                                                       ; +0x100, 0x1401308e0\nsub     rax, 8                                                         ; +0x103, 0x1401308e3\ncmp     rax, 1Fh                                                       ; +0x107, 0x1401308e7\njbe     short loc_140130903                                            ; +0x10b, 0x1401308eb\nmov     [rsp+70h+Reserved], r14; Reserved                              ; +0x10d, 0x1401308ed\nxor     r9d, r9d; LineNo                                               ; +0x112, 0x1401308f2\nxor     r8d, r8d; FileName                                             ; +0x115, 0x1401308f5\nxor     edx, edx; FunctionName                                         ; +0x118, 0x1401308f8\nxor     ecx, ecx; Expression                                           ; +0x11a, 0x1401308fa\ncall    cs:_invoke_watson                                              ; +0x11c, 0x1401308fc\ndb 0CCh                                                                ; +0x122, 0x140130902\ncall    j_j_free                                                       ; +0x123, 0x140130903\nmovss   dword ptr [rdi+40h], xmm6                                      ; +0x128, 0x140130908\njmp     loc_140130AAC                                                  ; +0x12d, 0x14013090d\nmov     rcx, [rbx+250h]                                                ; +0x132, 0x140130912\nadd     rcx, 258h                                                      ; +0x139, 0x140130919\nmov     rax, [rcx]                                                     ; +0x140, 0x140130920\ncall    qword ptr [rax+8]                                              ; +0x143, 0x140130923\nxorps   xmm0, xmm0                                                     ; +0x146, 0x140130926\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x149, 0x140130929\nxorps   xmm1, xmm1                                                     ; +0x14d, 0x14013092d\nmovdqu  [rbp+var_28], xmm1                                             ; +0x150, 0x140130930\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x155, 0x140130935\nnop     dword ptr [rax+00h]                                            ; +0x15c, 0x14013093c\ninc     r8                                                             ; +0x160, 0x140130940\ncmp     [rax+r8], r14b                                                 ; +0x163, 0x140130943\njnz     short loc_140130940                                            ; +0x167, 0x140130947\nmov     rdx, rax                                                       ; +0x169, 0x140130949\nlea     rcx, [rbp+String]                                              ; +0x16c, 0x14013094c\ncall    sub_14003D230                                                  ; +0x170, 0x140130950\nnop                                                                    ; +0x175, 0x140130955\nlea     rcx, [rbp+String]                                              ; +0x176, 0x140130956\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0x17a, 0x14013095a\ncmova   rcx, [rbp+String]; String                                      ; +0x17f, 0x14013095f\ncall    cs:atof                                                        ; +0x184, 0x140130964\nmovaps  xmm1, xmm0                                                     ; +0x18a, 0x14013096a\nmovq    rdx, xmm0                                                      ; +0x18d, 0x14013096d\nlea     rcx, a2f; \"%.2f\"                                               ; +0x192, 0x140130972\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x199, 0x140130979\nmov     rcx, rax                                                       ; +0x19f, 0x14013097f\ncall    cs:?floatValue@CCString@cocos2d@@QEBAMXZ; cocos2d::CCString::floatValue(void) ; +0x1a2, 0x140130982\nmovaps  xmm6, xmm0                                                     ; +0x1a8, 0x140130988\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0x1ab, 0x14013098b\ncmp     rdx, 0Fh                                                       ; +0x1af, 0x14013098f\njbe     short loc_1401309D8                                            ; +0x1b3, 0x140130993\ninc     rdx                                                            ; +0x1b5, 0x140130995\nmov     rcx, [rbp+String]; Block                                       ; +0x1b8, 0x140130998\nmov     rax, rcx                                                       ; +0x1bc, 0x14013099c\ncmp     rdx, 1000h                                                     ; +0x1bf, 0x14013099f\njb      short loc_1401309D3                                            ; +0x1c6, 0x1401309a6\nadd     rdx, 27h ; '''                                                 ; +0x1c8, 0x1401309a8\nmov     rcx, [rcx-8]                                                   ; +0x1cc, 0x1401309ac\nsub     rax, rcx                                                       ; +0x1d0, 0x1401309b0\nsub     rax, 8                                                         ; +0x1d3, 0x1401309b3\ncmp     rax, 1Fh                                                       ; +0x1d7, 0x1401309b7\njbe     short loc_1401309D3                                            ; +0x1db, 0x1401309bb\nmov     [rsp+70h+Reserved], r14; Reserved                              ; +0x1dd, 0x1401309bd\nxor     r9d, r9d; LineNo                                               ; +0x1e2, 0x1401309c2\nxor     r8d, r8d; FileName                                             ; +0x1e5, 0x1401309c5\nxor     edx, edx; FunctionName                                         ; +0x1e8, 0x1401309c8\nxor     ecx, ecx; Expression                                           ; +0x1ea, 0x1401309ca\ncall    cs:_invoke_watson                                              ; +0x1ec, 0x1401309cc\ndb 0CCh                                                                ; +0x1f2, 0x1401309d2\ncall    j_j_free                                                       ; +0x1f3, 0x1401309d3\nmovss   dword ptr [rdi+3Ch], xmm6                                      ; +0x1f8, 0x1401309d8\njmp     loc_140130AAC                                                  ; +0x1fd, 0x1401309dd\nmov     rcx, [rbx+250h]                                                ; +0x202, 0x1401309e2\nadd     rcx, 258h                                                      ; +0x209, 0x1401309e9\nmov     rax, [rcx]                                                     ; +0x210, 0x1401309f0\ncall    qword ptr [rax+8]                                              ; +0x213, 0x1401309f3\nxorps   xmm0, xmm0                                                     ; +0x216, 0x1401309f6\nmovups  xmmword ptr [rbp+String], xmm0                                 ; +0x219, 0x1401309f9\nxorps   xmm1, xmm1                                                     ; +0x21d, 0x1401309fd\nmovdqu  [rbp+var_28], xmm1                                             ; +0x220, 0x140130a00\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x225, 0x140130a05\nnop     dword ptr [rax+00h]                                            ; +0x22c, 0x140130a0c\ninc     r8                                                             ; +0x230, 0x140130a10\ncmp     [rax+r8], r14b                                                 ; +0x233, 0x140130a13\njnz     short loc_140130A10                                            ; +0x237, 0x140130a17\nmov     rdx, rax                                                       ; +0x239, 0x140130a19\nlea     rcx, [rbp+String]                                              ; +0x23c, 0x140130a1c\ncall    sub_14003D230                                                  ; +0x240, 0x140130a20\nlea     rcx, [rbp+String]                                              ; +0x245, 0x140130a25\ncmp     qword ptr [rbp+var_28+8], 0Fh                                  ; +0x249, 0x140130a29\ncmova   rcx, [rbp+String]; String                                      ; +0x24e, 0x140130a2e\ncall    cs:atoi                                                        ; +0x253, 0x140130a33\nmov     ebx, eax                                                       ; +0x259, 0x140130a39\nmov     rdx, qword ptr [rbp+var_28+8]                                  ; +0x25b, 0x140130a3b\ncmp     rdx, 0Fh                                                       ; +0x25f, 0x140130a3f\njbe     short loc_140130A8B                                            ; +0x263, 0x140130a43\ninc     rdx                                                            ; +0x265, 0x140130a45\nmov     r8, [rbp+String]                                               ; +0x268, 0x140130a48\nmov     rcx, r8                                                        ; +0x26c, 0x140130a4c\ncmp     rdx, 1000h                                                     ; +0x26f, 0x140130a4f\njb      short loc_140130A83                                            ; +0x276, 0x140130a56\nadd     rdx, 27h ; '''                                                 ; +0x278, 0x140130a58\nmov     r8, [r8-8]                                                     ; +0x27c, 0x140130a5c\nsub     rcx, r8                                                        ; +0x280, 0x140130a60\nsub     rcx, 8                                                         ; +0x283, 0x140130a63\ncmp     rcx, 1Fh                                                       ; +0x287, 0x140130a67\njbe     short loc_140130A83                                            ; +0x28b, 0x140130a6b\nmov     [rsp+70h+Reserved], r14; Reserved                              ; +0x28d, 0x140130a6d\nxor     r9d, r9d; LineNo                                               ; +0x292, 0x140130a72\nxor     r8d, r8d; FileName                                             ; +0x295, 0x140130a75\nxor     edx, edx; FunctionName                                         ; +0x298, 0x140130a78\nxor     ecx, ecx; Expression                                           ; +0x29a, 0x140130a7a\ncall    cs:_invoke_watson                                              ; +0x29c, 0x140130a7c\ndb 0CCh                                                                ; +0x2a2, 0x140130a82\nmov     rcx, r8; Block                                                 ; +0x2a3, 0x140130a83\ncall    j_j_free                                                       ; +0x2a6, 0x140130a86\nmov     eax, 168h                                                      ; +0x2ab, 0x140130a8b\ncmp     ebx, eax                                                       ; +0x2b0, 0x140130a90\njg      short loc_140130AA0                                            ; +0x2b2, 0x140130a92\nmov     eax, ebx                                                       ; +0x2b4, 0x140130a94\nmov     ecx, 0FFFFFE98h                                                ; +0x2b6, 0x140130a96\ncmp     ebx, ecx                                                       ; +0x2bb, 0x140130a9b\ncmovl   eax, ecx                                                       ; +0x2bd, 0x140130a9d\nmovd    xmm0, eax                                                      ; +0x2c0, 0x140130aa0\ncvtdq2ps xmm0, xmm0                                                    ; +0x2c4, 0x140130aa4\nmovss   dword ptr [rdi+38h], xmm0                                      ; +0x2c7, 0x140130aa7\nlea     rcx, [rdi-140h]                                                ; +0x2cc, 0x140130aac\ncall    ConfigureHSVWidget__updateSliders                              ; +0x2d3, 0x140130ab3\nmov     rcx, [rbp+var_18]                                              ; +0x2d8, 0x140130ab8\nxor     rcx, rsp; StackCookie                                          ; +0x2dc, 0x140130abc\ncall    __security_check_cookie                                        ; +0x2df, 0x140130abf\nlea     r11, [rsp+70h+var_s0]                                          ; +0x2e4, 0x140130ac4\nmov     rbx, [r11+30h]                                                 ; +0x2e9, 0x140130ac9\nmov     rsi, [r11+38h]                                                 ; +0x2ed, 0x140130acd\nmovaps  xmm6, [rsp+70h+var_10]                                         ; +0x2f1, 0x140130ad1\nmov     rsp, r11                                                       ; +0x2f6, 0x140130ad6\npop     r14                                                            ; +0x2f9, 0x140130ad9\npop     rdi                                                            ; +0x2fb, 0x140130adb\npop     rbp                                                            ; +0x2fc, 0x140130adc\nretn                                                                   ; +0x2fd, 0x140130add", "xrefs": ["<???> @ 0x1407354a8", "<???> @ 0x140916e50"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}