{"type": "func", "start": 6442726000, "end": 6442726114, "name": "fmt::internal::PrintfParser<wchar_t>::HandleArgIndex", "pseudocode": "// \n// fmt::internal::PrintfParser<wchar_t>::HandleArgIndex from 0x180043270 to 0x1800432e2 (114 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x18014cf68\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:39 +0000\n// \n\n// Alternative name is '?HandleArgIndex@?$PrintfParser@D@internal@fmt@@AEAAAEBUArg@23@IAEAPEBD@Z'\nvoid *__fastcall fmt::internal::PrintfParser<wchar_t>::HandleArgIndex(__int64 a1, unsigned int a2, const char **a3)\n{\n  int v3; // eax\n  const char *v4; // rax\n\n  v3 = *(_DWORD *)(a1 + 16);\n  if ( a2 == -1 )\n  {\n    if ( v3 >= 0 )\n    {\n      a2 = *(_DWORD *)(a1 + 16);\n      *(_DWORD *)(a1 + 16) = v3 + 1;\n      goto LABEL_11;\n    }\n    if ( !*a3 )\n    {\n      v4 = \"cannot switch from manual to automatic argument indexing\";\n      goto LABEL_10;\n    }\n  }\n  else\n  {\n    if ( v3 <= 0 )\n    {\n      *(_DWORD *)(a1 + 16) = -1;\n      --a2;\n      goto LABEL_11;\n    }\n    if ( !*a3 )\n    {\n      v4 = \"cannot switch from automatic to manual argument indexing\";\nLABEL_10:\n      *a3 = v4;\n    }\n  }\nLABEL_11:\n  if ( (unsigned __int64)a2 < *(_QWORD *)(a1 + 8) )\n    return (void *)(*(_QWORD *)a1 + 24LL * a2);\n  if ( !*a3 )\n    *a3 = \"argument index is out of range in format\";\n  return &unk_1800F0B80;\n}", "assembly": "; \n; fmt::internal::PrintfParser<wchar_t>::HandleArgIndex from 0x180043270 to 0x1800432e2 (114 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x18014cf68\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:39 +0000\n; \nmov     eax, [rcx+10h]                                                 ; +0x0, 0x180043270\nmov     r9, rcx                                                        ; +0x3, 0x180043273\ncmp     edx, 0FFFFFFFFh                                                ; +0x6, 0x180043276\njz      short loc_180043299                                            ; +0x9, 0x180043279\ntest    eax, eax                                                       ; +0xb, 0x18004327b\njg      short loc_18004328A                                            ; +0xd, 0x18004327d\nmov     dword ptr [rcx+10h], 0FFFFFFFFh                                ; +0xf, 0x18004327f\ndec     edx                                                            ; +0x16, 0x180043286\njmp     short loc_1800432B6                                            ; +0x18, 0x180043288\ncmp     qword ptr [r8], 0                                              ; +0x1a, 0x18004328a\njnz     short loc_1800432B6                                            ; +0x1e, 0x18004328e\nlea     rax, aCannotSwitchFr; \"cannot switch from automatic to manual \"... ; +0x20, 0x180043290\njmp     short loc_1800432B3                                            ; +0x27, 0x180043297\ntest    eax, eax                                                       ; +0x29, 0x180043299\njs      short loc_1800432A6                                            ; +0x2b, 0x18004329b\nmov     edx, eax                                                       ; +0x2d, 0x18004329d\ninc     eax                                                            ; +0x2f, 0x18004329f\nmov     [rcx+10h], eax                                                 ; +0x31, 0x1800432a1\njmp     short loc_1800432B6                                            ; +0x34, 0x1800432a4\ncmp     qword ptr [r8], 0                                              ; +0x36, 0x1800432a6\njnz     short loc_1800432B6                                            ; +0x3a, 0x1800432aa\nlea     rax, aCannotSwitchFr_0; \"cannot switch from manual to automatic \"... ; +0x3c, 0x1800432ac\nmov     [r8], rax                                                      ; +0x43, 0x1800432b3\nmov     eax, edx                                                       ; +0x46, 0x1800432b6\ncmp     rax, [rcx+8]                                                   ; +0x48, 0x1800432b8\njnb     short loc_1800432CA                                            ; +0x4c, 0x1800432bc\nlea     rcx, [rax+rax*2]                                               ; +0x4e, 0x1800432be\nmov     rax, [r9]                                                      ; +0x52, 0x1800432c2\nlea     rax, [rax+rcx*8]                                               ; +0x55, 0x1800432c5\nretn                                                                   ; +0x59, 0x1800432c9\ncmp     qword ptr [r8], 0                                              ; +0x5a, 0x1800432ca\njnz     short loc_1800432DA                                            ; +0x5e, 0x1800432ce\nlea     rax, aArgumentIndexI; \"argument index is out of range in forma\"... ; +0x60, 0x1800432d0\nmov     [r8], rax                                                      ; +0x67, 0x1800432d7\nlea     rax, unk_1800F0B80                                             ; +0x6a, 0x1800432da\nretn                                                                   ; +0x71, 0x1800432e1", "xrefs": ["<???> @ 0x18014cf68"], "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"}