{"type": "func", "start": 5369165568, "end": 5369166134, "name": "GameToolbox::hsvFromString", "pseudocode": "// \n// GameToolbox::hsvFromString from 0x14006f700 to 0x14006f936 (566 bytes)\n// \n// 5 xrefs:\n// > ColorAction::setupFromMap @ 0x1403645e7\n// > EnterEffectObject::customObjectSetup @ 0x14063ad7f\n// > EffectGameObject::customObjectSetup @ 0x14064afba\n// > EffectGameObject::customObjectSetup @ 0x14064b99c\n// > <???> @ 0x140911798\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:25:49 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int128 *__fastcall GameToolbox::hsvFromString(__int128 *a1, __int64 *a2)\n{\n  char *v3; // rdi\n  char *v4; // rbx\n  float v5; // xmm8_4\n  const char *v6; // rcx\n  float v7; // xmm7_4\n  const char *v8; // rcx\n  double v9; // xmm0_8\n  const char *v10; // rcx\n  int v11; // eax\n  const char *v12; // rcx\n  char *v13; // rbx\n  char *v14; // rdi\n  char *v15; // rax\n  __int128 v16; // xmm0\n  char *v17; // rax\n  __int128 v19; // [rsp+30h] [rbp-78h]\n  int v20; // [rsp+4Ch] [rbp-5Ch]\n  __int128 String; // [rsp+50h] [rbp-58h] BYREF\n  __int64 v22; // [rsp+60h] [rbp-48h]\n\n  if ( !a2[2] )\n    goto LABEL_29;\n  String = 0;\n  v22 = 0;\n  sub_14006C080(a2, (__int64)a2, (__int64)&String);\n  v3 = *((char **)&String + 1);\n  v4 = (char *)String;\n  if ( (unsigned __int64)((__int64)(*((_QWORD *)&String + 1) - String) >> 5) < 5 )\n  {\n    if ( (_QWORD)String )\n    {\n      if ( (_QWORD)String != *((_QWORD *)&String + 1) )\n      {\n        do\n        {\n          sub_14003D310((__int64)v4);\n          v4 += 32;\n        }\n        while ( v4 != v3 );\n        v4 = (char *)String;\n      }\n      v17 = v4;\n      if ( ((v22 - (_QWORD)v4) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n      {\n        v4 = *((char **)v4 - 1);\n        if ( (unsigned __int64)(v17 - v4 - 8) > 0x1F )\n          goto LABEL_27;\n      }\n      j_j_free(v4);\n    }\nLABEL_29:\n    v16 = xmmword_1408FE360;\n    goto LABEL_30;\n  }\n  if ( *(_QWORD *)(String + 24) > 0xFu )\n    v4 = *(char **)String;\n  v5 = atof(v4);\n  v6 = (const char *)(String + 32);\n  if ( *(_QWORD *)(String + 56) > 0xFu )\n    v6 = *(const char **)v6;\n  v7 = atof(v6);\n  v8 = (const char *)(String + 64);\n  if ( *(_QWORD *)(String + 88) > 0xFu )\n    v8 = *(const char **)v8;\n  v9 = atof(v8);\n  v10 = (const char *)(String + 96);\n  if ( *(_QWORD *)(String + 120) > 0xFu )\n    v10 = *(const char **)v10;\n  v11 = atoi(v10);\n  v12 = (const char *)(String + 128);\n  if ( *(_QWORD *)(String + 152) > 0xFu )\n    v12 = *(const char **)v12;\n  LOBYTE(v20) = v11 != 0;\n  BYTE1(v20) = atoi(v12) != 0;\n  *(_QWORD *)&v19 = __PAIR64__(LODWORD(v7), LODWORD(v5));\n  *((float *)&v19 + 2) = v9;\n  HIDWORD(v19) = v20;\n  v13 = (char *)String;\n  if ( !(_QWORD)String )\n    goto LABEL_20;\n  v14 = *((char **)&String + 1);\n  if ( (_QWORD)String != *((_QWORD *)&String + 1) )\n  {\n    do\n    {\n      sub_14003D310((__int64)v13);\n      v13 += 32;\n    }\n    while ( v13 != v14 );\n    v13 = (char *)String;\n  }\n  v15 = v13;\n  if ( ((v22 - (_QWORD)v13) & 0xFFFFFFFFFFFFFFE0uLL) >= 0x1000 )\n  {\n    v13 = *((char **)v13 - 1);\n    if ( (unsigned __int64)(v15 - v13 - 8) > 0x1F )\nLABEL_27:\n      invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n  }\n  j_j_free(v13);\nLABEL_20:\n  v16 = v19;\nLABEL_30:\n  *a1 = v16;\n  return a1;\n}", "assembly": "; \n; GameToolbox::hsvFromString from 0x14006f700 to 0x14006f936 (566 bytes)\n; \n; 5 xrefs:\n; > ColorAction::setupFromMap @ 0x1403645e7\n; > EnterEffectObject::customObjectSetup @ 0x14063ad7f\n; > EffectGameObject::customObjectSetup @ 0x14064afba\n; > EffectGameObject::customObjectSetup @ 0x14064b99c\n; > <???> @ 0x140911798\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:25:49 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x14006f700\nmov     [rax+8], rbx                                                   ; +0x3, 0x14006f703\nmov     [rax+10h], rsi                                                 ; +0x7, 0x14006f707\npush    rdi                                                            ; +0xb, 0x14006f70b\nsub     rsp, 0A0h                                                      ; +0xc, 0x14006f70c\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x13, 0x14006f713\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x17, 0x14006f717\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x1b, 0x14006f71b\nmov     rsi, rcx                                                       ; +0x20, 0x14006f720\ncmp     qword ptr [rdx+10h], 0                                         ; +0x23, 0x14006f723\njz      loc_14006F905                                                  ; +0x28, 0x14006f728\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x14006f72e\nmovdqu  xmmword ptr [rax-58h], xmm0                                    ; +0x31, 0x14006f731\nmov     qword ptr [rax-48h], 0                                         ; +0x36, 0x14006f736\nlea     r8, [rax-58h]                                                  ; +0x3e, 0x14006f73e\nmov     rcx, rdx                                                       ; +0x42, 0x14006f742\ncall    sub_14006C080                                                  ; +0x45, 0x14006f745\nmov     rdi, [rsp+0A8h+var_50]                                         ; +0x4a, 0x14006f74a\nmov     rax, rdi                                                       ; +0x4f, 0x14006f74f\nmov     rbx, [rsp+0A8h+String]                                         ; +0x52, 0x14006f752\nsub     rax, rbx                                                       ; +0x57, 0x14006f757\nsar     rax, 5                                                         ; +0x5a, 0x14006f75a\ncmp     rax, 5                                                         ; +0x5e, 0x14006f75e\njb      loc_14006F892                                                  ; +0x62, 0x14006f762\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x68, 0x14006f768\njbe     short loc_14006F772                                            ; +0x6d, 0x14006f76d\nmov     rbx, [rbx]                                                     ; +0x6f, 0x14006f76f\nmov     rcx, rbx; String                                               ; +0x72, 0x14006f772\ncall    cs:atof                                                        ; +0x75, 0x14006f775\nxorps   xmm8, xmm8                                                     ; +0x7b, 0x14006f77b\ncvtsd2ss xmm8, xmm0                                                    ; +0x7f, 0x14006f77f\nmov     rcx, [rsp+0A8h+String]                                         ; +0x84, 0x14006f784\nadd     rcx, 20h ; ' '                                                 ; +0x89, 0x14006f789\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x8d, 0x14006f78d\njbe     short loc_14006F797                                            ; +0x92, 0x14006f792\nmov     rcx, [rcx]; String                                             ; +0x94, 0x14006f794\ncall    cs:atof                                                        ; +0x97, 0x14006f797\nxorps   xmm7, xmm7                                                     ; +0x9d, 0x14006f79d\ncvtsd2ss xmm7, xmm0                                                    ; +0xa0, 0x14006f7a0\nmov     rcx, [rsp+0A8h+String]                                         ; +0xa4, 0x14006f7a4\nadd     rcx, 40h ; '@'                                                 ; +0xa9, 0x14006f7a9\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xad, 0x14006f7ad\njbe     short loc_14006F7B7                                            ; +0xb2, 0x14006f7b2\nmov     rcx, [rcx]; String                                             ; +0xb4, 0x14006f7b4\ncall    cs:atof                                                        ; +0xb7, 0x14006f7b7\nxorps   xmm6, xmm6                                                     ; +0xbd, 0x14006f7bd\ncvtsd2ss xmm6, xmm0                                                    ; +0xc0, 0x14006f7c0\nmov     rcx, [rsp+0A8h+String]                                         ; +0xc4, 0x14006f7c4\nadd     rcx, 60h ; '`'                                                 ; +0xc9, 0x14006f7c9\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xcd, 0x14006f7cd\njbe     short loc_14006F7D7                                            ; +0xd2, 0x14006f7d2\nmov     rcx, [rcx]; String                                             ; +0xd4, 0x14006f7d4\ncall    cs:atoi                                                        ; +0xd7, 0x14006f7d7\ntest    eax, eax                                                       ; +0xdd, 0x14006f7dd\nsetnz   dl                                                             ; +0xdf, 0x14006f7df\nmov     rcx, [rsp+0A8h+String]                                         ; +0xe2, 0x14006f7e2\nsub     rcx, 0FFFFFFFFFFFFFF80h                                        ; +0xe7, 0x14006f7e7\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0xeb, 0x14006f7eb\njbe     short loc_14006F7F5                                            ; +0xf0, 0x14006f7f0\nmov     rcx, [rcx]; String                                             ; +0xf2, 0x14006f7f2\nmov     byte ptr [rsp+0A8h+var_5C], dl                                 ; +0xf5, 0x14006f7f5\ncall    cs:atoi                                                        ; +0xf9, 0x14006f7f9\ntest    eax, eax                                                       ; +0xff, 0x14006f7ff\nsetnz   byte ptr [rsp+0A8h+var_5C+1]                                   ; +0x101, 0x14006f801\nmovss   dword ptr [rsp+0A8h+var_78], xmm8                              ; +0x106, 0x14006f806\nmovss   dword ptr [rsp+0A8h+var_78+4], xmm7                            ; +0x10d, 0x14006f80d\nmovss   dword ptr [rsp+0A8h+var_78+8], xmm6                            ; +0x113, 0x14006f813\nmovss   xmm0, [rsp+0A8h+var_5C]                                        ; +0x119, 0x14006f819\nmovss   dword ptr [rsp+0A8h+var_78+0Ch], xmm0                          ; +0x11f, 0x14006f81f\nmov     rbx, [rsp+0A8h+String]                                         ; +0x125, 0x14006f825\ntest    rbx, rbx                                                       ; +0x12a, 0x14006f82a\njz      short loc_14006F88B                                            ; +0x12d, 0x14006f82d\nmov     rdi, [rsp+0A8h+var_50]                                         ; +0x12f, 0x14006f82f\ncmp     rbx, rdi                                                       ; +0x134, 0x14006f834\njz      short loc_14006F856                                            ; +0x137, 0x14006f837\nnop     dword ptr [rax+00000000h]                                      ; +0x139, 0x14006f839\nmov     rcx, rbx                                                       ; +0x140, 0x14006f840\ncall    sub_14003D310                                                  ; +0x143, 0x14006f843\nadd     rbx, 20h ; ' '                                                 ; +0x148, 0x14006f848\ncmp     rbx, rdi                                                       ; +0x14c, 0x14006f84c\njnz     short loc_14006F840                                            ; +0x14f, 0x14006f84f\nmov     rbx, [rsp+0A8h+String]                                         ; +0x151, 0x14006f851\nmov     rdx, [rsp+0A8h+var_48]                                         ; +0x156, 0x14006f856\nsub     rdx, rbx                                                       ; +0x15b, 0x14006f85b\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x15e, 0x14006f85e\nmov     rax, rbx                                                       ; +0x162, 0x14006f862\ncmp     rdx, 1000h                                                     ; +0x165, 0x14006f865\njb      short loc_14006F883                                            ; +0x16c, 0x14006f86c\nadd     rdx, 27h ; '''                                                 ; +0x16e, 0x14006f86e\nmov     rbx, [rbx-8]                                                   ; +0x172, 0x14006f872\nsub     rax, rbx                                                       ; +0x176, 0x14006f876\nsub     rax, 8                                                         ; +0x179, 0x14006f879\ncmp     rax, 1Fh                                                       ; +0x17d, 0x14006f87d\nja      short loc_14006F8E3                                            ; +0x181, 0x14006f881\nmov     rcx, rbx; Block                                                ; +0x183, 0x14006f883\ncall    j_j_free                                                       ; +0x186, 0x14006f886\nmovups  xmm0, [rsp+0A8h+var_78]                                        ; +0x18b, 0x14006f88b\njmp     short loc_14006F90C                                            ; +0x190, 0x14006f890\ntest    rbx, rbx                                                       ; +0x192, 0x14006f892\njz      short loc_14006F905                                            ; +0x195, 0x14006f895\ncmp     rbx, rdi                                                       ; +0x197, 0x14006f897\njz      short loc_14006F8B6                                            ; +0x19a, 0x14006f89a\nnop     dword ptr [rax+00h]                                            ; +0x19c, 0x14006f89c\nmov     rcx, rbx                                                       ; +0x1a0, 0x14006f8a0\ncall    sub_14003D310                                                  ; +0x1a3, 0x14006f8a3\nadd     rbx, 20h ; ' '                                                 ; +0x1a8, 0x14006f8a8\ncmp     rbx, rdi                                                       ; +0x1ac, 0x14006f8ac\njnz     short loc_14006F8A0                                            ; +0x1af, 0x14006f8af\nmov     rbx, [rsp+0A8h+String]                                         ; +0x1b1, 0x14006f8b1\nmov     rdx, [rsp+0A8h+var_48]                                         ; +0x1b6, 0x14006f8b6\nsub     rdx, rbx                                                       ; +0x1bb, 0x14006f8bb\nand     rdx, 0FFFFFFFFFFFFFFE0h                                        ; +0x1be, 0x14006f8be\nmov     rax, rbx                                                       ; +0x1c2, 0x14006f8c2\ncmp     rdx, 1000h                                                     ; +0x1c5, 0x14006f8c5\njb      short loc_14006F8FD                                            ; +0x1cc, 0x14006f8cc\nadd     rdx, 27h ; '''                                                 ; +0x1ce, 0x14006f8ce\nmov     rbx, [rbx-8]                                                   ; +0x1d2, 0x14006f8d2\nsub     rax, rbx                                                       ; +0x1d6, 0x14006f8d6\nsub     rax, 8                                                         ; +0x1d9, 0x14006f8d9\ncmp     rax, 1Fh                                                       ; +0x1dd, 0x14006f8dd\njbe     short loc_14006F8FD                                            ; +0x1e1, 0x14006f8e1\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0x1e3, 0x14006f8e3\nxor     r9d, r9d; LineNo                                               ; +0x1ec, 0x14006f8ec\nxor     r8d, r8d; FileName                                             ; +0x1ef, 0x14006f8ef\nxor     edx, edx; FunctionName                                         ; +0x1f2, 0x14006f8f2\nxor     ecx, ecx; Expression                                           ; +0x1f4, 0x14006f8f4\ncall    cs:_invoke_watson                                              ; +0x1f6, 0x14006f8f6\ndb 0CCh                                                                ; +0x1fc, 0x14006f8fc\nmov     rcx, rbx; Block                                                ; +0x1fd, 0x14006f8fd\ncall    j_j_free                                                       ; +0x200, 0x14006f900\nmovups  xmm0, cs:xmmword_1408FE360                                     ; +0x205, 0x14006f905\nmov     rax, rsi                                                       ; +0x20c, 0x14006f90c\nmovups  xmmword ptr [rsi], xmm0                                        ; +0x20f, 0x14006f90f\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x212, 0x14006f912\nmov     rbx, [r11+10h]                                                 ; +0x21a, 0x14006f91a\nmov     rsi, [r11+18h]                                                 ; +0x21e, 0x14006f91e\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x222, 0x14006f922\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x227, 0x14006f927\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x22c, 0x14006f92c\nmov     rsp, r11                                                       ; +0x231, 0x14006f931\npop     rdi                                                            ; +0x234, 0x14006f934\nretn                                                                   ; +0x235, 0x14006f935", "xrefs": ["ColorAction::setupFromMap @ 0x1403645e7", "EnterEffectObject::customObjectSetup @ 0x14063ad7f", "EffectGameObject::customObjectSetup @ 0x14064afba", "EffectGameObject::customObjectSetup @ 0x14064b99c", "<???> @ 0x140911798"], "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"}