{"type": "func", "start": 5371219840, "end": 5371220298, "name": "GJGameLevel::scoreStringToVector", "pseudocode": "// \n// GJGameLevel::scoreStringToVector from 0x140264f80 to 0x14026514a (458 bytes)\n// \n// 8 xrefs:\n// > GJGameLevel::storeNewLocalScore @ 0x140264d44\n// > GJGameLevel::dtBumpBucket @ 0x1402651af\n// > GJGameLevel::dtBumpRun @ 0x140265463\n// > GJGameLevel::dtParseGlobalBlob @ 0x140265b05\n// > LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5d46\n// > LevelLeaderboard::getLocalScores @ 0x140429b91\n// > PlayLayer::setupHasCompleted @ 0x140504a33\n// > <???> @ 0x14091c8c8\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:28:49 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GJGameLevel::scoreStringToVector(__int64 a1, size_t *a2, __int64 a3)\n{\n  __m128i si128; // xmm6\n  __int64 v5; // rax\n  const char *v6; // rcx\n  int v7; // eax\n  _BYTE *v8; // rdx\n  __int64 v9; // rax\n  char *v10; // rcx\n  _DWORD v11[4]; // [rsp+30h] [rbp-D0h] BYREF\n  _QWORD v12[3]; // [rsp+40h] [rbp-C0h] BYREF\n  void **v13; // [rsp+58h] [rbp-A8h] BYREF\n  _BYTE v14[120]; // [rsp+60h] [rbp-A0h] BYREF\n  _BYTE v15[104]; // [rsp+D8h] [rbp-28h] BYREF\n  char *String[2]; // [rsp+140h] [rbp+40h] BYREF\n  __m128i v17; // [rsp+150h] [rbp+50h]\n\n  if ( a2[2] )\n  {\n    sub_14010F2D0((__int64)v12, a2);\n    *(_OWORD *)String = 0;\n    si128 = _mm_load_si128((const __m128i *)&Size);\n    v17 = si128;\n    LOBYTE(String[0]) = 0;\n    v5 = sub_14010F9D0((__int64)v12, (__int64)String, 0x2Cu);\n    if ( (unsigned __int8)std::ios_base::operator bool(v5 + *(int *)(*(_QWORD *)v5 + 4LL)) )\n    {\n      do\n      {\n        v6 = (const char *)String;\n        if ( v17.m128i_i64[1] > 0xFuLL )\n          v6 = String[0];\n        v7 = atoi(v6);\n        v11[0] = v7;\n        v8 = *(_BYTE **)(a3 + 8);\n        if ( v8 == *(_BYTE **)(a3 + 16) )\n        {\n          sub_140069B30((const void **)a3, v8, v11);\n        }\n        else\n        {\n          *(_DWORD *)v8 = v7;\n          *(_QWORD *)(a3 + 8) += 4LL;\n        }\n        v9 = sub_14010F9D0((__int64)v12, (__int64)String, 0x2Cu);\n      }\n      while ( (unsigned __int8)std::ios_base::operator bool(v9 + *(int *)(*(_QWORD *)v9 + 4LL)) );\n      si128 = _mm_load_si128((const __m128i *)&Size);\n    }\n    if ( v17.m128i_i64[1] > 0xFuLL )\n    {\n      v10 = String[0];\n      if ( (unsigned __int64)(v17.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v10 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v10 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v10);\n      si128 = _mm_load_si128((const __m128i *)&Size);\n    }\n    v17 = si128;\n    LOBYTE(String[0]) = 0;\n    *(_QWORD *)((char *)v12 + *(int *)(v12[0] + 4LL)) = &std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable';\n    *(_DWORD *)((char *)&v11[3] + *(int *)(v12[0] + 4LL)) = *(_DWORD *)(v12[0] + 4LL) - 152;\n    v13 = &std::stringbuf::`vftable';\n    sub_14010FC00((__int64)&v13);\n    std::streambuf::~streambuf<char,std::char_traits<char>>(&v13);\n    std::iostream::~iostream<char,std::char_traits<char>>(v14);\n    std::ios::~ios<char,std::char_traits<char>>(v15);\n  }\n}", "assembly": "; \n; GJGameLevel::scoreStringToVector from 0x140264f80 to 0x14026514a (458 bytes)\n; \n; 8 xrefs:\n; > GJGameLevel::storeNewLocalScore @ 0x140264d44\n; > GJGameLevel::dtBumpBucket @ 0x1402651af\n; > GJGameLevel::dtBumpRun @ 0x140265463\n; > GJGameLevel::dtParseGlobalBlob @ 0x140265b05\n; > LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5d46\n; > LevelLeaderboard::getLocalScores @ 0x140429b91\n; > PlayLayer::setupHasCompleted @ 0x140504a33\n; > <???> @ 0x14091c8c8\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:28:49 +0000\n; \nmov     [rsp-8+arg_0], rbx                                             ; +0x0, 0x140264f80\npush    rbp                                                            ; +0x5, 0x140264f85\nlea     rbp, [rsp-80h]                                                 ; +0x6, 0x140264f86\nsub     rsp, 180h                                                      ; +0xb, 0x140264f8b\nmovaps  [rsp+180h+var_10], xmm6                                        ; +0x12, 0x140264f92\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x140264f9a\nxor     rax, rsp                                                       ; +0x21, 0x140264fa1\nmov     [rbp+80h+var_20], rax                                          ; +0x24, 0x140264fa4\nmov     rbx, r8                                                        ; +0x28, 0x140264fa8\ncmp     qword ptr [rdx+10h], 0                                         ; +0x2b, 0x140264fab\njz      loc_140265125                                                  ; +0x30, 0x140264fb0\nlea     rcx, [rsp+180h+var_140]                                        ; +0x36, 0x140264fb6\ncall    sub_14010F2D0                                                  ; +0x3b, 0x140264fbb\nnop                                                                    ; +0x40, 0x140264fc0\nxorps   xmm0, xmm0                                                     ; +0x41, 0x140264fc1\nmovups  xmmword ptr [rbp+80h+String], xmm0                             ; +0x44, 0x140264fc4\nmovdqa  xmm6, cs:Size                                                  ; +0x48, 0x140264fc8\nmovdqu  [rbp+80h+var_30], xmm6                                         ; +0x50, 0x140264fd0\nmov     byte ptr [rbp+80h+String], 0                                   ; +0x55, 0x140264fd5\nmov     r8b, 2Ch ; ','                                                 ; +0x59, 0x140264fd9\nlea     rdx, [rbp+80h+String]                                          ; +0x5c, 0x140264fdc\nlea     rcx, [rsp+180h+var_140]                                        ; +0x60, 0x140264fe0\ncall    sub_14010F9D0                                                  ; +0x65, 0x140264fe5\nmov     rcx, [rax]                                                     ; +0x6a, 0x140264fea\nmovsxd  rcx, dword ptr [rcx+4]                                         ; +0x6d, 0x140264fed\nadd     rcx, rax                                                       ; +0x71, 0x140264ff1\ncall    cs:??Bios_base@std@@QEBA_NXZ; std::ios_base::operator bool(void) ; +0x74, 0x140264ff4\ntest    al, al                                                         ; +0x7a, 0x140264ffa\njz      short loc_140265065                                            ; +0x7c, 0x140264ffc\nxchg    ax, ax                                                         ; +0x7e, 0x140264ffe\nlea     rcx, [rbp+80h+String]                                          ; +0x80, 0x140265000\ncmp     qword ptr [rbp+80h+var_30+8], 0Fh                              ; +0x84, 0x140265004\ncmova   rcx, [rbp+80h+String]; String                                  ; +0x89, 0x140265009\ncall    cs:atoi                                                        ; +0x8e, 0x14026500e\nmov     [rsp+180h+var_150], eax                                        ; +0x94, 0x140265014\nmov     rdx, [rbx+8]                                                   ; +0x98, 0x140265018\ncmp     rdx, [rbx+10h]                                                 ; +0x9c, 0x14026501c\njz      short loc_14026502B                                            ; +0xa0, 0x140265020\nmov     [rdx], eax                                                     ; +0xa2, 0x140265022\nadd     qword ptr [rbx+8], 4                                           ; +0xa4, 0x140265024\njmp     short loc_140265038                                            ; +0xa9, 0x140265029\nlea     r8, [rsp+180h+var_150]                                         ; +0xab, 0x14026502b\nmov     rcx, rbx                                                       ; +0xb0, 0x140265030\ncall    sub_140069B30                                                  ; +0xb3, 0x140265033\nmov     r8b, 2Ch ; ','                                                 ; +0xb8, 0x140265038\nlea     rdx, [rbp+80h+String]                                          ; +0xbb, 0x14026503b\nlea     rcx, [rsp+180h+var_140]                                        ; +0xbf, 0x14026503f\ncall    sub_14010F9D0                                                  ; +0xc4, 0x140265044\nmov     rcx, [rax]                                                     ; +0xc9, 0x140265049\nmovsxd  rcx, dword ptr [rcx+4]                                         ; +0xcc, 0x14026504c\nadd     rcx, rax                                                       ; +0xd0, 0x140265050\ncall    cs:??Bios_base@std@@QEBA_NXZ; std::ios_base::operator bool(void) ; +0xd3, 0x140265053\ntest    al, al                                                         ; +0xd9, 0x140265059\njnz     short loc_140265000                                            ; +0xdb, 0x14026505b\nmovdqa  xmm6, cs:Size                                                  ; +0xdd, 0x14026505d\nmov     rdx, qword ptr [rbp+80h+var_30+8]                              ; +0xe5, 0x140265065\ncmp     rdx, 0Fh                                                       ; +0xe9, 0x140265069\njbe     short loc_1402650BE                                            ; +0xed, 0x14026506d\ninc     rdx                                                            ; +0xef, 0x14026506f\nmov     rcx, [rbp+80h+String]; Block                                   ; +0xf2, 0x140265072\nmov     rax, rcx                                                       ; +0xf6, 0x140265076\ncmp     rdx, 1000h                                                     ; +0xf9, 0x140265079\njb      short loc_1402650B1                                            ; +0x100, 0x140265080\nadd     rdx, 27h ; '''                                                 ; +0x102, 0x140265082\nmov     rcx, [rcx-8]                                                   ; +0x106, 0x140265086\nsub     rax, rcx                                                       ; +0x10a, 0x14026508a\nsub     rax, 8                                                         ; +0x10d, 0x14026508d\ncmp     rax, 1Fh                                                       ; +0x111, 0x140265091\njbe     short loc_1402650B1                                            ; +0x115, 0x140265095\nmov     [rsp+180h+Reserved], 0; Reserved                               ; +0x117, 0x140265097\nxor     r9d, r9d; LineNo                                               ; +0x120, 0x1402650a0\nxor     r8d, r8d; FileName                                             ; +0x123, 0x1402650a3\nxor     edx, edx; FunctionName                                         ; +0x126, 0x1402650a6\nxor     ecx, ecx; Expression                                           ; +0x128, 0x1402650a8\ncall    cs:_invoke_watson                                              ; +0x12a, 0x1402650aa\ndb 0CCh                                                                ; +0x130, 0x1402650b0\ncall    j_j_free                                                       ; +0x131, 0x1402650b1\nmovdqa  xmm6, cs:Size                                                  ; +0x136, 0x1402650b6\nmovdqu  [rbp+80h+var_30], xmm6                                         ; +0x13e, 0x1402650be\nmov     byte ptr [rbp+80h+String], 0                                   ; +0x143, 0x1402650c3\nmov     rax, [rsp+180h+var_140]                                        ; +0x147, 0x1402650c7\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0x14c, 0x1402650cc\nlea     rax, ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@; const std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable' ; +0x150, 0x1402650d0\nmov     [rsp+rcx+180h+var_140], rax                                    ; +0x157, 0x1402650d7\nmov     rax, [rsp+180h+var_140]                                        ; +0x15c, 0x1402650dc\nmovsxd  rcx, dword ptr [rax+4]                                         ; +0x161, 0x1402650e1\nlea     edx, [rcx-98h]                                                 ; +0x165, 0x1402650e5\nmov     [rsp+rcx+180h+var_144], edx                                    ; +0x16b, 0x1402650eb\nlea     rax, ??_7?$basic_stringbuf@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@; const std::stringbuf::`vftable' ; +0x16f, 0x1402650ef\nmov     [rsp+180h+var_128], rax                                        ; +0x176, 0x1402650f6\nlea     rcx, [rsp+180h+var_128]                                        ; +0x17b, 0x1402650fb\ncall    sub_14010FC00                                                  ; +0x180, 0x140265100\nlea     rcx, [rsp+180h+var_128]                                        ; +0x185, 0x140265105\ncall    cs:__imp_??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::streambuf::~streambuf<char,std::char_traits<char>>(void) ; +0x18a, 0x14026510a\nlea     rcx, [rsp+180h+var_120]                                        ; +0x190, 0x140265110\ncall    cs:??1?$basic_iostream@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::iostream::~iostream<char,std::char_traits<char>>(void) ; +0x195, 0x140265115\nlea     rcx, [rbp+80h+var_A8]                                          ; +0x19b, 0x14026511b\ncall    cs:??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ; std::ios::~ios<char,std::char_traits<char>>(void) ; +0x19f, 0x14026511f\nmov     rcx, [rbp+80h+var_20]                                          ; +0x1a5, 0x140265125\nxor     rcx, rsp; StackCookie                                          ; +0x1a9, 0x140265129\ncall    __security_check_cookie                                        ; +0x1ac, 0x14026512c\nmov     rbx, [rsp+180h+arg_0]                                          ; +0x1b1, 0x140265131\nmovaps  xmm6, [rsp+180h+var_10]                                        ; +0x1b9, 0x140265139\nadd     rsp, 180h                                                      ; +0x1c1, 0x140265141\npop     rbp                                                            ; +0x1c8, 0x140265148\nretn                                                                   ; +0x1c9, 0x140265149", "xrefs": ["GJGameLevel::storeNewLocalScore @ 0x140264d44", "GJGameLevel::dtBumpBucket @ 0x1402651af", "GJGameLevel::dtBumpRun @ 0x140265463", "GJGameLevel::dtParseGlobalBlob @ 0x140265b05", "LevelEditorLayer::rebuildDeathOverlay @ 0x1403f5d46", "LevelLeaderboard::getLocalScores @ 0x140429b91", "PlayLayer::setupHasCompleted @ 0x140504a33", "<???> @ 0x14091c8c8"], "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"}