// File: /workspace/github_cpp_makefile_star2_O3/afborchert[P]fmt/./printf.hpp
// Function: int fmt::printf<char, std::char_traits<char>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&>(std::basic_ostream<char, std::char_traits<char>>&, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
inline int printf(std::basic_ostream<CharT, Traits>& out,
      const CharT* format, Values&&... values) {
   impl::counting_ostream<CharT, Traits> cout(out);
   if (cout.getloc() != std::locale::classic()) {
      cout.imbue(std::locale(cout.getloc(), new impl::suppress_grouping()));
   }
   std::tuple<Values&...> tuple(values...);
   impl::integer nof_args = 0;
   while (format) {
      auto fseg = impl::parse_format_segment(format, nof_args);
      if (!fseg.valid) return -1;
      nof_args += fseg.nof_args;
      if (fseg.endp > fseg.beginp) {
	 cout.write(fseg.beginp, fseg.endp - fseg.beginp);
	 if (!cout) return -1;
      }
      if (fseg.value_index >= 0) {
	 if (fseg.conversion == 'n') {
	    if (impl::set_value(tuple, fseg.value_index,
		  cout.get_count()) < 0) {
	       return -1;
	    }
	 } else {
	    if (fseg.width_index >= 0) {
	       fseg.width = impl::get_value(tuple, fseg.width_index);
	    }
	    if (fseg.precision_index >= 0) {
	       fseg.precision = impl::get_value(tuple, fseg.precision_index);
	    }
	    impl::format_saver<CharT, Traits> fsaver(cout);
	    cout.setf(fseg.fmtflags);
	    cout.setf(fseg.base == 8? std::ios_base::oct  :
		      fseg.base == 10? std::ios_base::dec :
		      fseg.base == 16? std::ios_base::hex :
		      std::ios_base::fmtflags(0), std::ios_base::basefield);
	    if (fseg.width > 0) {
	       cout.width(fseg.width);
	    }
	    if ((fseg.flags & impl::precision) && fseg.precision >= 0) {
	       cout.precision(fseg.precision);
	    }
	    if (fseg.flags & impl::grouping_flag) {
	       cout.imbue(std::locale(cout.getloc(),
		  new impl::thousands_grouping()));
	    }
	    if (!process_value(tuple, fseg.value_index, cout, fseg)) {
	       return -1;
	    }
	 }
      }
      format = fseg.nextp;
   }
   return cout.get_count();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x308, %rsp            # imm = 0x308
movq %rdx, 0x8(%rsp)
movq %rsi, %rbp
movq %rdi, %rsi
leaq 0x1a8(%rsp), %r14
movq %r14, %rdi
callq 0xd3ac
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rsi
addq $0x278, %rsi            # imm = 0x278
leaq 0x98(%rsp), %rdi
callq 0x61e0
callq 0x6430
leaq 0x98(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x6090
movl %eax, %r12d
movq %r15, %rdi
callq 0x6460
testb %r12b, %r12b
jne 0x41e07
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %r12
leaq (%rsp,%r12), %rsi
addq $0x278, %rsi            # imm = 0x278
leaq 0x28(%rsp), %rdi
callq 0x61e0
movl $0x18, %edi
callq 0x6320
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x6530
leaq 0x1339f(%rip), %rax     # 0x55150
movq %rax, (%r15)
leaq 0x98(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r15, %rdx
callq 0xd50a
leaq (%rsp,%r12), %rsi
addq $0x1a8, %rsi            # imm = 0x1A8
leaq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x60a0
leaq 0x20(%rsp), %rdi
callq 0x6460
leaq 0x98(%rsp), %rdi
callq 0x6460
leaq 0x28(%rsp), %rdi
callq 0x6460
testq %rbp, %rbp
je 0x42116
xorl %r15d, %r15d
leaq 0x18(%rsp), %r13
leaq 0x90(%rsp), %rbx
leaq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xd5bb
cmpb $0x0, 0x28(%rsp)
je 0x42177
movzwl 0x58(%rsp), %r12d
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
subq %rsi, %rdx
jbe 0x41e77
leaq 0x1a8(%rsp), %rdi
callq 0x6400
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x1c8(%rsp,%rax)
jne 0x42177
movq 0x80(%rsp), %rax
testq %rax, %rax
js 0x42105
cmpb $0x6e, 0x88(%rsp)
je 0x4211f
cmpq $0x0, 0x70(%rsp)
js 0x41efa
jne 0x41ef1
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x42272
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x41ef1
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
movq $-0x1, 0x60(%rsp)
cmpq $0x0, 0x78(%rsp)
js 0x41f5e
jne 0x41f55
leaq 0xa8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x42272
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x41f55
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
movq $-0x1, 0x68(%rsp)
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rsi
leaq 0x1a8(%rsp), %rax
addq %rax, %rsi
leaq 0x98(%rsp), %rdi
callq 0xdab4
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rcx
movl 0x48(%rsp), %edx
orl %edx, 0x1c0(%rsp,%rcx)
movq 0x50(%rsp), %rdx
cmpq $0x8, %rdx
je 0x41fb1
cmpq $0xa, %rdx
jne 0x41fb8
movl $0x2, %ecx
jmp 0x41fc4
movl $0x40, %ecx
jmp 0x41fc4
xorl %ecx, %ecx
cmpq $0x10, %rdx
sete %cl
shll $0x3, %ecx
movq -0x18(%rax), %rdx
movl 0x1c0(%rsp,%rdx), %esi
andl $-0x4b, %esi
orl %ecx, %esi
movl %esi, 0x1c0(%rsp,%rdx)
movq 0x60(%rsp), %rcx
testq %rcx, %rcx
jle 0x41ff1
movq -0x18(%rax), %rdx
movq %rcx, 0x1b8(%rsp,%rdx)
movzwl 0x4c(%rsp), %ecx
movl %ecx, %esi
shrl $0x8, %esi
movq 0x68(%rsp), %rdx
testq %rdx, %rdx
setns %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x4201c
movq -0x18(%rax), %rsi
movq %rdx, 0x1b0(%rsp,%rsi)
btl $0xd, %ecx
jae 0x420b6
movq %r13, %r14
movq -0x18(%rax), %r13
leaq 0x278(%rsp), %rax
leaq (%rax,%r13), %rsi
leaq 0x10(%rsp), %rdi
callq 0x61e0
movl $0x18, %edi
callq 0x6320
movq %rax, %rbp
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x6530
leaq 0x13141(%rip), %rax     # 0x551b0
movq %rax, (%rbp)
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
movq %rbp, %rdx
callq 0xdaf6
leaq (%rsp,%r13), %rsi
addq $0x1a8, %rsi            # imm = 0x1A8
movq %rbx, %rdi
movq %r14, %r13
movq %r14, %rdx
callq 0x60a0
movq %rbx, %rdi
callq 0x6460
movq %r13, %rdi
callq 0x6460
leaq 0x10(%rsp), %rdi
callq 0x6460
cmpq $0x0, 0x80(%rsp)
jne 0x4216a
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
leaq 0x1a8(%rsp), %rdi
callq 0x63a0
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rax
movb 0x1c8(%rsp,%rax), %bpl
leaq 0x98(%rsp), %rdi
callq 0xdba8
testb $0x5, %bpl
jne 0x42177
addq %r12, %r15
movq 0x40(%rsp), %rbp
testq %rbp, %rbp
jne 0x41e20
movl 0x1f8(%rsp), %ebx
jmp 0x4217c
testq %rax, %rax
jne 0x42177
leaq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %r14
movq %r14, (%rdi)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x42272
movq 0x98(%rsp), %rdi
cmpq %r14, %rdi
je 0x42177
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x42177
leaq 0x98(%rsp), %rdi
callq 0xdba8
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x12e85(%rip), %rax     # 0x55008
leaq 0x200(%rsp), %r14
movq %rax, -0x58(%r14)
leaq 0x12e9a(%rip), %rax     # 0x55030
movq %rax, (%r14)
movq 0x13e00(%rip), %rax     # 0x55fa0
addq $0x10, %rax
movq %rax, -0x50(%r14)
leaq 0x1e8(%rsp), %rdi
callq 0x6460
movq %r14, %rdi
callq 0x6100
movl %ebx, %eax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4225a
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x6460
jmp 0x421fd
movq %rax, %rbx
movl $0x18, %esi
movq %r15, %rdi
callq 0x6340
jmp 0x421fd
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x4220f
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x6460
jmp 0x4225d
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6460
jmp 0x4223f
movq %rax, %rbx
movl $0x18, %esi
movq %rbp, %rdi
callq 0x6340
jmp 0x4223f
movq %rax, %rbx
jmp 0x42249
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6460
leaq 0x98(%rsp), %rdi
callq 0xdba8
jmp 0x4225d
jmp 0x4225a
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
callq 0xdbcc
movq %rbx, %rdi
callq 0x6580