{"type": "func", "start": 5371226400, "end": 5371227067, "name": "EditorBuildStats::toString", "pseudocode": "// \n// EditorBuildStats::toString from 0x140266920 to 0x140266bbb (667 bytes)\n// \n// 3 xrefs:\n// > GameLevelManager::uploadLevel @ 0x1402299d1\n// > GJGameLevel::encodeWithCoder @ 0x14026a0cd\n// > <???> @ 0x14091c9ac\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:50 +0000\n// \n\n// Hidden C++ exception states: #wind=2\n_QWORD *__fastcall EditorBuildStats::toString(__int64 a1, _QWORD *a2)\n{\n  unsigned __int64 i; // rbx\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  size_t v7; // rbx\n  size_t v8; // r8\n  void *v9; // rcx\n  _BYTE *v10; // rax\n  __int128 v12; // [rsp+30h] [rbp-D0h] BYREF\n  _DWORD v13[22]; // [rsp+40h] [rbp-C0h]\n  _BYTE v14[16]; // [rsp+98h] [rbp-68h] BYREF\n  void *Block[2]; // [rsp+A8h] [rbp-58h] BYREF\n  __int128 v16; // [rsp+B8h] [rbp-48h]\n  _BYTE v17[528]; // [rsp+D0h] [rbp-30h] BYREF\n\n  *(_QWORD *)&v12 = a2;\n  v13[0] = *(_DWORD *)a1;\n  v13[1] = *(_DWORD *)(a1 + 4);\n  v13[2] = *(_DWORD *)(a1 + 8);\n  v13[3] = *(_DWORD *)(a1 + 12);\n  v13[4] = *(_DWORD *)(a1 + 16);\n  v13[5] = *(_DWORD *)(a1 + 20);\n  v13[6] = *(_DWORD *)(a1 + 24);\n  v13[7] = (int)*(float *)(a1 + 28);\n  v13[8] = *(_DWORD *)(a1 + 32);\n  v13[9] = *(_DWORD *)(a1 + 64);\n  v13[10] = *(_DWORD *)(a1 + 68);\n  v13[11] = *(_DWORD *)(a1 + 72);\n  v13[12] = *(_DWORD *)(a1 + 76);\n  v13[13] = *(_DWORD *)(a1 + 80);\n  v13[14] = *(_DWORD *)(a1 + 84);\n  v13[15] = *(_DWORD *)(a1 + 88);\n  v13[16] = *(_DWORD *)(a1 + 92);\n  v13[17] = *(_DWORD *)(a1 + 36);\n  v13[18] = *(_DWORD *)(a1 + 40);\n  fmt::BasicWriter<char>::BasicWriter<char>(v17);\n  fmt::BasicWriter<char>::operator<<(v17, 1);\n  for ( i = 0; i < 0x13; ++i )\n  {\n    *(_QWORD *)&v12 = byte_14070ECF8;\n    *((_QWORD *)&v12 + 1) = 0;\n    fmt::BasicWriter<char>::operator<<(v17, &v12);\n    fmt::BasicWriter<char>::operator<<(v17, (unsigned int)v13[i]);\n  }\n  *(_QWORD *)&v12 = byte_14070ECF8;\n  *((_QWORD *)&v12 + 1) = 0;\n  fmt::BasicWriter<char>::operator<<(v17, &v12);\n  v5 = cocos2d::CCString::createWithFormat(\"%llu\", *(_QWORD *)(a1 + 48));\n  CString = cocos2d::CCString::getCString(v5);\n  *(_OWORD *)Block = 0;\n  v16 = 0;\n  v7 = -1;\n  v8 = -1;\n  do\n    ++v8;\n  while ( CString[v8] );\n  sub_14003D230(Block, CString, v8);\n  v12 = *(_OWORD *)fmt::BasicStringRef<char>::BasicStringRef<char>(v14, Block);\n  fmt::BasicWriter<char>::operator<<(v17, &v12);\n  if ( *((_QWORD *)&v16 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v16 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  *(_QWORD *)&v12 = byte_14070ECF8;\n  *((_QWORD *)&v12 + 1) = 0;\n  fmt::BasicWriter<char>::operator<<(v17, &v12);\n  fmt::BasicWriter<char>::operator<<(v17, *(unsigned int *)(a1 + 56));\n  *(_QWORD *)&v12 = byte_14070ECF8;\n  *((_QWORD *)&v12 + 1) = 0;\n  fmt::BasicWriter<char>::operator<<(v17, &v12);\n  fmt::BasicWriter<char>::operator<<(v17, *(unsigned int *)(a1 + 60));\n  v10 = (_BYTE *)fmt::BasicWriter<char>::c_str(v17);\n  *(_OWORD *)a2 = 0;\n  a2[2] = 0;\n  a2[3] = 0;\n  do\n    ++v7;\n  while ( v10[v7] );\n  sub_14003D230(a2, v10, v7);\n  fmt::BasicWriter<char>::~BasicWriter<char>(v17);\n  return a2;\n}", "assembly": "; \n; EditorBuildStats::toString from 0x140266920 to 0x140266bbb (667 bytes)\n; \n; 3 xrefs:\n; > GameLevelManager::uploadLevel @ 0x1402299d1\n; > GJGameLevel::encodeWithCoder @ 0x14026a0cd\n; > <???> @ 0x14091c9ac\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:50 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x140266920\npush    rbp                                                            ; +0x5, 0x140266925\npush    rsi                                                            ; +0x6, 0x140266926\npush    rdi                                                            ; +0x7, 0x140266927\npush    r14                                                            ; +0x8, 0x140266928\npush    r15                                                            ; +0xa, 0x14026692a\nlea     rbp, [rsp-1F0h]                                                ; +0xc, 0x14026692c\nsub     rsp, 2F0h                                                      ; +0x14, 0x140266934\nmov     rax, cs:__security_cookie                                      ; +0x1b, 0x14026693b\nxor     rax, rsp                                                       ; +0x22, 0x140266942\nmov     [rbp+210h+var_30], rax                                         ; +0x25, 0x140266945\nmov     rsi, rdx                                                       ; +0x2c, 0x14026694c\nmov     rdi, rcx                                                       ; +0x2f, 0x14026694f\nmov     qword ptr [rsp+310h+var_2E0], rdx                              ; +0x32, 0x140266952\nxor     r14d, r14d                                                     ; +0x37, 0x140266957\nmov     eax, [rcx]                                                     ; +0x3a, 0x14026695a\nmov     [rsp+310h+var_2D0], eax                                        ; +0x3c, 0x14026695c\nmov     eax, [rcx+4]                                                   ; +0x40, 0x140266960\nmov     [rsp+310h+var_2CC], eax                                        ; +0x43, 0x140266963\nmov     eax, [rcx+8]                                                   ; +0x47, 0x140266967\nmov     [rsp+310h+var_2C8], eax                                        ; +0x4a, 0x14026696a\nmov     eax, [rcx+0Ch]                                                 ; +0x4e, 0x14026696e\nmov     [rsp+310h+var_2C4], eax                                        ; +0x51, 0x140266971\nmov     eax, [rcx+10h]                                                 ; +0x55, 0x140266975\nmov     [rsp+310h+var_2C0], eax                                        ; +0x58, 0x140266978\nmov     eax, [rcx+14h]                                                 ; +0x5c, 0x14026697c\nmov     [rsp+310h+var_2BC], eax                                        ; +0x5f, 0x14026697f\nmov     eax, [rcx+18h]                                                 ; +0x63, 0x140266983\nmov     [rsp+310h+var_2B8], eax                                        ; +0x66, 0x140266986\ncvttss2si eax, dword ptr [rcx+1Ch]                                     ; +0x6a, 0x14026698a\nmov     [rsp+310h+var_2B4], eax                                        ; +0x6f, 0x14026698f\nmov     eax, [rcx+20h]                                                 ; +0x73, 0x140266993\nmov     [rsp+310h+var_2B0], eax                                        ; +0x76, 0x140266996\nmov     eax, [rcx+40h]                                                 ; +0x7a, 0x14026699a\nmov     [rsp+310h+var_2AC], eax                                        ; +0x7d, 0x14026699d\nmov     eax, [rcx+44h]                                                 ; +0x81, 0x1402669a1\nmov     [rsp+310h+var_2A8], eax                                        ; +0x84, 0x1402669a4\nmov     eax, [rcx+48h]                                                 ; +0x88, 0x1402669a8\nmov     [rsp+310h+var_2A4], eax                                        ; +0x8b, 0x1402669ab\nmov     eax, [rcx+4Ch]                                                 ; +0x8f, 0x1402669af\nmov     [rsp+310h+var_2A0], eax                                        ; +0x92, 0x1402669b2\nmov     eax, [rcx+50h]                                                 ; +0x96, 0x1402669b6\nmov     [rsp+310h+var_29C], eax                                        ; +0x99, 0x1402669b9\nmov     eax, [rcx+54h]                                                 ; +0x9d, 0x1402669bd\nmov     [rsp+310h+var_298], eax                                        ; +0xa0, 0x1402669c0\nmov     eax, [rcx+58h]                                                 ; +0xa4, 0x1402669c4\nmov     [rsp+310h+var_294], eax                                        ; +0xa7, 0x1402669c7\nmov     eax, [rcx+5Ch]                                                 ; +0xab, 0x1402669cb\nmov     [rbp+210h+var_290], eax                                        ; +0xae, 0x1402669ce\nmov     eax, [rcx+24h]                                                 ; +0xb1, 0x1402669d1\nmov     [rbp+210h+var_28C], eax                                        ; +0xb4, 0x1402669d4\nmov     eax, [rcx+28h]                                                 ; +0xb7, 0x1402669d7\nmov     [rbp+210h+var_288], eax                                        ; +0xba, 0x1402669da\nlea     rcx, [rbp+210h+var_240]                                        ; +0xbd, 0x1402669dd\ncall    cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::BasicWriter<char>(void) ; +0xc1, 0x1402669e1\nnop                                                                    ; +0xc7, 0x1402669e7\nmov     edx, 1                                                         ; +0xc8, 0x1402669e8\nlea     rcx, [rbp+210h+var_240]                                        ; +0xcd, 0x1402669ed\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0xd1, 0x1402669f1\nmov     ebx, r14d                                                      ; +0xd7, 0x1402669f7\nlea     r15, byte_14070ECF8                                            ; +0xda, 0x1402669fa\nmov     qword ptr [rsp+310h+var_2E0], r15                              ; +0xe1, 0x140266a01\nmov     qword ptr [rsp+310h+var_2E0+8], r14                            ; +0xe6, 0x140266a06\nlea     rdx, [rsp+310h+var_2E0]                                        ; +0xeb, 0x140266a0b\nlea     rcx, [rbp+210h+var_240]                                        ; +0xf0, 0x140266a10\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0xf4, 0x140266a14\nmov     edx, [rsp+rbx*4+310h+var_2D0]                                  ; +0xfa, 0x140266a1a\nlea     rcx, [rbp+210h+var_240]                                        ; +0xfe, 0x140266a1e\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x102, 0x140266a22\ninc     rbx                                                            ; +0x108, 0x140266a28\ncmp     rbx, 13h                                                       ; +0x10b, 0x140266a2b\njb      short loc_140266A01                                            ; +0x10f, 0x140266a2f\nmov     qword ptr [rsp+310h+var_2E0], r15                              ; +0x111, 0x140266a31\nmov     qword ptr [rsp+310h+var_2E0+8], r14                            ; +0x116, 0x140266a36\nlea     rdx, [rsp+310h+var_2E0]                                        ; +0x11b, 0x140266a3b\nlea     rcx, [rbp+210h+var_240]                                        ; +0x120, 0x140266a40\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x124, 0x140266a44\nmov     rdx, [rdi+30h]                                                 ; +0x12a, 0x140266a4a\nlea     rcx, aLlu; \"%llu\"                                              ; +0x12e, 0x140266a4e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x135, 0x140266a55\nmov     rcx, rax                                                       ; +0x13b, 0x140266a5b\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x13e, 0x140266a5e\nxorps   xmm0, xmm0                                                     ; +0x144, 0x140266a64\nmovups  xmmword ptr [rbp+210h+Block], xmm0                             ; +0x147, 0x140266a67\nxorps   xmm1, xmm1                                                     ; +0x14b, 0x140266a6b\nmovdqu  [rbp+210h+var_258], xmm1                                       ; +0x14e, 0x140266a6e\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x153, 0x140266a73\nmov     r8, rbx                                                        ; +0x15a, 0x140266a7a\nnop     dword ptr [rax]                                                ; +0x15d, 0x140266a7d\ninc     r8                                                             ; +0x160, 0x140266a80\ncmp     byte ptr [rax+r8], 0                                           ; +0x163, 0x140266a83\njnz     short loc_140266A80                                            ; +0x168, 0x140266a88\nmov     rdx, rax                                                       ; +0x16a, 0x140266a8a\nlea     rcx, [rbp+210h+Block]                                          ; +0x16d, 0x140266a8d\ncall    sub_14003D230                                                  ; +0x171, 0x140266a91\nnop                                                                    ; +0x176, 0x140266a96\nlea     rdx, [rbp+210h+Block]                                          ; +0x177, 0x140266a97\nlea     rcx, [rbp+210h+var_278]                                        ; +0x17b, 0x140266a9b\ncall    cs:??0?$BasicStringRef@D@fmt@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; fmt::BasicStringRef<char>::BasicStringRef<char>(std::string const &) ; +0x17f, 0x140266a9f\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x185, 0x140266aa5\nmovaps  [rsp+310h+var_2E0], xmm0                                       ; +0x188, 0x140266aa8\nlea     rdx, [rsp+310h+var_2E0]                                        ; +0x18d, 0x140266aad\nlea     rcx, [rbp+210h+var_240]                                        ; +0x192, 0x140266ab2\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x196, 0x140266ab6\nnop                                                                    ; +0x19c, 0x140266abc\nmov     rdx, qword ptr [rbp+210h+var_258+8]                            ; +0x19d, 0x140266abd\ncmp     rdx, 0Fh                                                       ; +0x1a1, 0x140266ac1\njbe     short loc_140266B0A                                            ; +0x1a5, 0x140266ac5\ninc     rdx                                                            ; +0x1a7, 0x140266ac7\nmov     rcx, [rbp+210h+Block]; Block                                   ; +0x1aa, 0x140266aca\nmov     rax, rcx                                                       ; +0x1ae, 0x140266ace\ncmp     rdx, 1000h                                                     ; +0x1b1, 0x140266ad1\njb      short loc_140266B05                                            ; +0x1b8, 0x140266ad8\nadd     rdx, 27h ; '''                                                 ; +0x1ba, 0x140266ada\nmov     rcx, [rcx-8]                                                   ; +0x1be, 0x140266ade\nsub     rax, rcx                                                       ; +0x1c2, 0x140266ae2\nsub     rax, 8                                                         ; +0x1c5, 0x140266ae5\ncmp     rax, 1Fh                                                       ; +0x1c9, 0x140266ae9\njbe     short loc_140266B05                                            ; +0x1cd, 0x140266aed\nmov     [rsp+310h+Reserved], r14; Reserved                             ; +0x1cf, 0x140266aef\nxor     r9d, r9d; LineNo                                               ; +0x1d4, 0x140266af4\nxor     r8d, r8d; FileName                                             ; +0x1d7, 0x140266af7\nxor     edx, edx; FunctionName                                         ; +0x1da, 0x140266afa\nxor     ecx, ecx; Expression                                           ; +0x1dc, 0x140266afc\ncall    cs:_invoke_watson                                              ; +0x1de, 0x140266afe\ndb 0CCh                                                                ; +0x1e4, 0x140266b04\ncall    j_j_free                                                       ; +0x1e5, 0x140266b05\nmov     qword ptr [rsp+310h+var_2E0], r15                              ; +0x1ea, 0x140266b0a\nmov     qword ptr [rsp+310h+var_2E0+8], r14                            ; +0x1ef, 0x140266b0f\nlea     rdx, [rsp+310h+var_2E0]                                        ; +0x1f4, 0x140266b14\nlea     rcx, [rbp+210h+var_240]                                        ; +0x1f9, 0x140266b19\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x1fd, 0x140266b1d\nmov     edx, [rdi+38h]                                                 ; +0x203, 0x140266b23\nlea     rcx, [rbp+210h+var_240]                                        ; +0x206, 0x140266b26\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x20a, 0x140266b2a\nmov     qword ptr [rsp+310h+var_2E0], r15                              ; +0x210, 0x140266b30\nmov     qword ptr [rsp+310h+var_2E0+8], r14                            ; +0x215, 0x140266b35\nlea     rdx, [rsp+310h+var_2E0]                                        ; +0x21a, 0x140266b3a\nlea     rcx, [rbp+210h+var_240]                                        ; +0x21f, 0x140266b3f\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter<char>::operator<<(fmt::BasicStringRef<char>) ; +0x223, 0x140266b43\nmov     edx, [rdi+3Ch]                                                 ; +0x229, 0x140266b49\nlea     rcx, [rbp+210h+var_240]                                        ; +0x22c, 0x140266b4c\ncall    cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter<char>::operator<<(int) ; +0x230, 0x140266b50\nlea     rcx, [rbp+210h+var_240]                                        ; +0x236, 0x140266b56\ncall    cs:?c_str@?$BasicWriter@D@fmt@@QEBAPEBDXZ; fmt::BasicWriter<char>::c_str(void) ; +0x23a, 0x140266b5a\nxorps   xmm0, xmm0                                                     ; +0x240, 0x140266b60\nmovups  xmmword ptr [rsi], xmm0                                        ; +0x243, 0x140266b63\nmov     [rsi+10h], r14                                                 ; +0x246, 0x140266b66\nmov     [rsi+18h], r14                                                 ; +0x24a, 0x140266b6a\nxchg    ax, ax                                                         ; +0x24e, 0x140266b6e\ninc     rbx                                                            ; +0x250, 0x140266b70\ncmp     byte ptr [rax+rbx], 0                                          ; +0x253, 0x140266b73\njnz     short loc_140266B70                                            ; +0x257, 0x140266b77\nmov     r8, rbx                                                        ; +0x259, 0x140266b79\nmov     rdx, rax                                                       ; +0x25c, 0x140266b7c\nmov     rcx, rsi                                                       ; +0x25f, 0x140266b7f\ncall    sub_14003D230                                                  ; +0x262, 0x140266b82\nnop                                                                    ; +0x267, 0x140266b87\nlea     rcx, [rbp+210h+var_240]                                        ; +0x268, 0x140266b88\ncall    cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter<char>::~BasicWriter<char>(void) ; +0x26c, 0x140266b8c\nmov     rax, rsi                                                       ; +0x272, 0x140266b92\nmov     rcx, [rbp+210h+var_30]                                         ; +0x275, 0x140266b95\nxor     rcx, rsp; StackCookie                                          ; +0x27c, 0x140266b9c\ncall    __security_check_cookie                                        ; +0x27f, 0x140266b9f\nmov     rbx, [rsp+310h+arg_10]                                         ; +0x284, 0x140266ba4\nadd     rsp, 2F0h                                                      ; +0x28c, 0x140266bac\npop     r15                                                            ; +0x293, 0x140266bb3\npop     r14                                                            ; +0x295, 0x140266bb5\npop     rdi                                                            ; +0x297, 0x140266bb7\npop     rsi                                                            ; +0x298, 0x140266bb8\npop     rbp                                                            ; +0x299, 0x140266bb9\nretn                                                                   ; +0x29a, 0x140266bba", "xrefs": ["GameLevelManager::uploadLevel @ 0x1402299d1", "GJGameLevel::encodeWithCoder @ 0x14026a0cd", "<???> @ 0x14091c9ac"], "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"}