{"type": "func", "start": 6442551328, "end": 6442551497, "name": "fmt::FormatInt::FormatDecimal", "pseudocode": "// \n// fmt::FormatInt::FormatDecimal from 0x180018820 to 0x1800188c9 (169 bytes)\n// \n// 10 xrefs:\n// > fmt::FormatInt::FormatInt @ 0x18001737a\n// > fmt::FormatInt::FormatInt @ 0x180017392\n// > fmt::FormatInt::FormatInt @ 0x1800173bb\n// > fmt::FormatInt::FormatInt @ 0x1800173f0\n// > fmt::FormatInt::FormatInt @ 0x180017429\n// > fmt::FormatInt::FormatSigned @ 0x1800188f0\n// > <???> @ 0x1801339a8\n// > <???> @ 0x1801339b8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae860\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\nchar *__fastcall fmt::FormatInt::FormatDecimal(fmt::FormatInt *this, unsigned __int64 a2)\n{\n  _BYTE *v2; // r10\n  unsigned __int64 i; // r8\n  __int64 v4; // rcx\n  char *result; // rax\n  __int64 v6; // r8\n\n  v2 = (char *)this + 21;\n  for ( i = a2; i >= 0x64; *v2 = a00010203040506[v4] )\n  {\n    v4 = 2 * (unsigned int)(i % 0x64);\n    i /= 0x64u;\n    *(v2 - 1) = a00010203040506[(unsigned int)(v4 + 1)];\n    v2 -= 2;\n  }\n  result = v2 - 1;\n  if ( i >= 0xA )\n  {\n    v6 = (unsigned int)(2 * i);\n    *result = a00010203040506[(unsigned int)(v6 + 1)];\n    *(v2 - 2) = a00010203040506[v6];\n    return v2 - 2;\n  }\n  else\n  {\n    *result = i + 48;\n  }\n  return result;\n}", "assembly": "; \n; fmt::FormatInt::FormatDecimal from 0x180018820 to 0x1800188c9 (169 bytes)\n; \n; 10 xrefs:\n; > fmt::FormatInt::FormatInt @ 0x18001737a\n; > fmt::FormatInt::FormatInt @ 0x180017392\n; > fmt::FormatInt::FormatInt @ 0x1800173bb\n; > fmt::FormatInt::FormatInt @ 0x1800173f0\n; > fmt::FormatInt::FormatInt @ 0x180017429\n; > fmt::FormatInt::FormatSigned @ 0x1800188f0\n; > <???> @ 0x1801339a8\n; > <???> @ 0x1801339b8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae860\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\nsub     rsp, 8                                                         ; +0x0, 0x180018820\nlea     r10, [rcx+15h]                                                 ; +0x4, 0x180018824\nmov     r8, rdx                                                        ; +0x8, 0x180018828\nlea     r11, a00010203040506; \"000102030405060708091011121314151617181\"... ; +0xb, 0x18001882b\ncmp     rdx, 64h ; 'd'                                                 ; +0x12, 0x180018832\njb      short loc_180018896                                            ; +0x16, 0x180018836\nmov     [rsp+8+var_8], rbx                                             ; +0x18, 0x180018838\nmov     rbx, 47AE147AE147AE15h                                         ; +0x1c, 0x18001883c\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x180018846\nmov     r9, r8                                                         ; +0x30, 0x180018850\nmov     rax, rbx                                                       ; +0x33, 0x180018853\nmul     r8                                                             ; +0x36, 0x180018856\nsub     r9, rdx                                                        ; +0x39, 0x180018859\nshr     r9, 1                                                          ; +0x3c, 0x18001885c\nadd     r9, rdx                                                        ; +0x3f, 0x18001885f\nshr     r9, 6                                                          ; +0x42, 0x180018862\nimul    eax, r9d, 64h ; 'd'                                            ; +0x46, 0x180018866\nsub     r8d, eax                                                       ; +0x4a, 0x18001886a\nlea     ecx, [r8+r8]                                                   ; +0x4d, 0x18001886d\nmov     r8, r9                                                         ; +0x51, 0x180018871\nlea     eax, [rcx+1]                                                   ; +0x54, 0x180018874\nmovzx   eax, byte ptr [rax+r11]                                        ; +0x57, 0x180018877\nmov     [r10-1], al                                                    ; +0x5c, 0x18001887c\nsub     r10, 2                                                         ; +0x60, 0x180018880\nmovzx   eax, byte ptr [rcx+r11]                                        ; +0x64, 0x180018884\nmov     [r10], al                                                      ; +0x69, 0x180018889\ncmp     r9, 64h ; 'd'                                                  ; +0x6c, 0x18001888c\njnb     short loc_180018850                                            ; +0x70, 0x180018890\nmov     rbx, [rsp+8+var_8]                                             ; +0x72, 0x180018892\nlea     rax, [r10-1]                                                   ; +0x76, 0x180018896\ncmp     r8, 0Ah                                                        ; +0x7a, 0x18001889a\njnb     short loc_1800188AC                                            ; +0x7e, 0x18001889e\nadd     r8b, 30h ; '0'                                                 ; +0x80, 0x1800188a0\nmov     [rax], r8b                                                     ; +0x84, 0x1800188a4\nadd     rsp, 8                                                         ; +0x87, 0x1800188a7\nretn                                                                   ; +0x8b, 0x1800188ab\nadd     r8d, r8d                                                       ; +0x8c, 0x1800188ac\nlea     ecx, [r8+1]                                                    ; +0x8f, 0x1800188af\nmovzx   ecx, byte ptr [rcx+r11]                                        ; +0x93, 0x1800188b3\nmov     [rax], cl                                                      ; +0x98, 0x1800188b8\ndec     rax                                                            ; +0x9a, 0x1800188ba\nmovzx   ecx, byte ptr [r8+r11]                                         ; +0x9d, 0x1800188bd\nmov     [rax], cl                                                      ; +0xa2, 0x1800188c2\nadd     rsp, 8                                                         ; +0xa4, 0x1800188c4\nretn                                                                   ; +0xa8, 0x1800188c8", "xrefs": ["fmt::FormatInt::FormatInt @ 0x18001737a", "fmt::FormatInt::FormatInt @ 0x180017392", "fmt::FormatInt::FormatInt @ 0x1800173bb", "fmt::FormatInt::FormatInt @ 0x1800173f0", "fmt::FormatInt::FormatInt @ 0x180017429", "fmt::FormatInt::FormatSigned @ 0x1800188f0", "<???> @ 0x1801339a8", "<???> @ 0x1801339b8", "<???> @ 0x1801438a8", "<???> @ 0x1801ae860"], "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"}