{"type": "func", "start": 6442550528, "end": 6442550701, "name": "fmt::FormatInt::FormatDecimal", "pseudocode": "// \n// fmt::FormatInt::FormatDecimal from 0x180018500 to 0x1800185ad (173 bytes)\n// \n// 10 xrefs:\n// > fmt::FormatInt::FormatInt @ 0x180016eba\n// > fmt::FormatInt::FormatInt @ 0x180016ed2\n// > fmt::FormatInt::FormatInt @ 0x180016efb\n// > fmt::FormatInt::FormatInt @ 0x180016f30\n// > fmt::FormatInt::FormatInt @ 0x180016f69\n// > fmt::FormatInt::FormatSigned @ 0x1800185d0\n// > <???> @ 0x18013c900\n// > <???> @ 0x18013c910\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b88cc\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:21:25 +0000\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  __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  if ( i >= 0xA )\n  {\n    v6 = (unsigned int)(2 * i);\n    *(v2 - 1) = a00010203040506[(unsigned int)(v6 + 1)];\n    *(v2 - 2) = a00010203040506[v6];\n    return v2 - 2;\n  }\n  else\n  {\n    *(v2 - 1) = i + 48;\n    return v2 - 1;\n  }\n}", "assembly": "; \n; fmt::FormatInt::FormatDecimal from 0x180018500 to 0x1800185ad (173 bytes)\n; \n; 10 xrefs:\n; > fmt::FormatInt::FormatInt @ 0x180016eba\n; > fmt::FormatInt::FormatInt @ 0x180016ed2\n; > fmt::FormatInt::FormatInt @ 0x180016efb\n; > fmt::FormatInt::FormatInt @ 0x180016f30\n; > fmt::FormatInt::FormatInt @ 0x180016f69\n; > fmt::FormatInt::FormatSigned @ 0x1800185d0\n; > <???> @ 0x18013c900\n; > <???> @ 0x18013c910\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b88cc\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:21:25 +0000\n; \nsub     rsp, 8                                                         ; +0x0, 0x180018500\nlea     r10, [rcx+15h]                                                 ; +0x4, 0x180018504\nmov     r8, rdx                                                        ; +0x8, 0x180018508\nlea     r11, a00010203040506; \"000102030405060708091011121314151617181\"... ; +0xb, 0x18001850b\ncmp     rdx, 64h ; 'd'                                                 ; +0x12, 0x180018512\njb      short loc_180018576                                            ; +0x16, 0x180018516\nmov     [rsp+8+var_8], rbx                                             ; +0x18, 0x180018518\nmov     rbx, 47AE147AE147AE15h                                         ; +0x1c, 0x18001851c\nnop     word ptr [rax+rax+00000000h]                                   ; +0x26, 0x180018526\nmov     r9, r8                                                         ; +0x30, 0x180018530\nmov     rax, rbx                                                       ; +0x33, 0x180018533\nmul     r8                                                             ; +0x36, 0x180018536\nsub     r9, rdx                                                        ; +0x39, 0x180018539\nshr     r9, 1                                                          ; +0x3c, 0x18001853c\nadd     r9, rdx                                                        ; +0x3f, 0x18001853f\nshr     r9, 6                                                          ; +0x42, 0x180018542\nimul    eax, r9d, 64h ; 'd'                                            ; +0x46, 0x180018546\nsub     r8d, eax                                                       ; +0x4a, 0x18001854a\nlea     ecx, [r8+r8]                                                   ; +0x4d, 0x18001854d\nmov     r8, r9                                                         ; +0x51, 0x180018551\nlea     eax, [rcx+1]                                                   ; +0x54, 0x180018554\nmovzx   eax, byte ptr [rax+r11]                                        ; +0x57, 0x180018557\nmov     [r10-1], al                                                    ; +0x5c, 0x18001855c\nsub     r10, 2                                                         ; +0x60, 0x180018560\nmovzx   eax, byte ptr [rcx+r11]                                        ; +0x64, 0x180018564\nmov     [r10], al                                                      ; +0x69, 0x180018569\ncmp     r9, 64h ; 'd'                                                  ; +0x6c, 0x18001856c\njnb     short loc_180018530                                            ; +0x70, 0x180018570\nmov     rbx, [rsp+8+var_8]                                             ; +0x72, 0x180018572\ncmp     r8, 0Ah                                                        ; +0x76, 0x180018576\njnb     short loc_18001858D                                            ; +0x7a, 0x18001857a\nadd     r8b, 30h ; '0'                                                 ; +0x7c, 0x18001857c\nlea     rax, [r10-1]                                                   ; +0x80, 0x180018580\nmov     [r10-1], r8b                                                   ; +0x84, 0x180018584\nadd     rsp, 8                                                         ; +0x88, 0x180018588\nretn                                                                   ; +0x8c, 0x18001858c\nadd     r8d, r8d                                                       ; +0x8d, 0x18001858d\nlea     eax, [r8+1]                                                    ; +0x90, 0x180018590\nmovzx   eax, byte ptr [rax+r11]                                        ; +0x94, 0x180018594\nmov     [r10-1], al                                                    ; +0x99, 0x180018599\nlea     rax, [r10-2]                                                   ; +0x9d, 0x18001859d\nmovzx   ecx, byte ptr [r8+r11]                                         ; +0xa1, 0x1800185a1\nmov     [rax], cl                                                      ; +0xa6, 0x1800185a6\nadd     rsp, 8                                                         ; +0xa8, 0x1800185a8\nretn                                                                   ; +0xac, 0x1800185ac", "xrefs": ["fmt::FormatInt::FormatInt @ 0x180016eba", "fmt::FormatInt::FormatInt @ 0x180016ed2", "fmt::FormatInt::FormatInt @ 0x180016efb", "fmt::FormatInt::FormatInt @ 0x180016f30", "fmt::FormatInt::FormatInt @ 0x180016f69", "fmt::FormatInt::FormatSigned @ 0x1800185d0", "<???> @ 0x18013c900", "<???> @ 0x18013c910", "<???> @ 0x18014cf68", "<???> @ 0x1801b88cc"], "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"}