// File: /workspace/github_cpp_makefile_star2_O2/afborchert[P]fmt/./printf.hpp
// Function: int fmt::printf<char, std::char_traits<char>, int, unsigned int, double, char, char const (&) [6]>(std::basic_ostream<char, std::char_traits<char>>&, char const*, int&&, unsigned int&&, double&&, char&&, char const (&) [6])
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 $0x338, %rsp            # imm = 0x338
movq %r9, 0x20(%rsp)
movq %r8, %r13
movq %rcx, %r12
movq %rdx, %r15
movq %rsi, %rbp
movq %rdi, %rsi
leaq 0xa0(%rsp), %rbx
movq %rbx, %rdi
callq 0xb210
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rsi
addq $0x170, %rsi            # imm = 0x170
leaq 0x200(%rsp), %rdi
callq 0x6220
callq 0x64a0
leaq 0x200(%rsp), %r14
movq %r14, %rdi
movq %rax, %rsi
callq 0xb300
movl %eax, %ebx
movq %r14, %rdi
callq 0x64f0
testb %bl, %bl
je 0x102b0
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rbx
leaq (%rsp,%rbx), %rsi
addq $0x170, %rsi            # imm = 0x170
leaq 0x30(%rsp), %rdi
callq 0x6220
pushq $0x18
popq %rdi
callq 0x6390
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, %rdi
callq 0xb30a
leaq 0x200(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r14, %rdx
callq 0xb322
leaq (%rsp,%rbx), %rsi
addq $0xa0, %rsi
leaq 0x28(%rsp), %rdi
leaq 0x200(%rsp), %rdx
callq 0x60c0
leaq 0x28(%rsp), %rdi
callq 0x64f0
leaq 0x200(%rsp), %rdi
callq 0x64f0
leaq 0x30(%rsp), %rdi
callq 0x64f0
movq 0x370(%rsp), %rax
leaq 0x310(%rsp), %r14
movq %rax, (%r14)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%r14)
movq %r13, 0x10(%r14)
movq %r12, 0x18(%r14)
movq %r15, 0x20(%r14)
xorl %r15d, %r15d
leaq 0x30(%rsp), %r12
leaq 0x10(%rsp), %rbx
testq %rbp, %rbp
je 0x10596
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xb3ca
cmpb $0x0, 0x30(%rsp)
je 0x105ac
movzwl 0x60(%rsp), %r13d
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
subq %rsi, %rdx
jbe 0x10343
leaq 0xa0(%rsp), %rdi
callq 0x6470
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0xc0(%rsp,%rax)
jne 0x105ac
movq 0x88(%rsp), %rax
testq %rax, %rax
js 0x10589
cmpb $0x6e, 0x90(%rsp)
jne 0x1039b
cmpq $0x4, %rax
ja 0x105ac
movq 0xf0(%rsp), %rcx
movq %rcx, 0x200(%rsp)
movq %r14, %rdi
leaq 0x200(%rsp), %rsi
leaq 0x3e126(%rip), %rcx     # 0x4e4b0
callq *(%rcx,%rax,8)
testq %rax, %rax
jns 0x10589
jmp 0x105ac
movq 0x78(%rsp), %rcx
testq %rcx, %rcx
js 0x103c8
pushq $-0x1
popq %rax
cmpq $0x4, %rcx
ja 0x103c3
movq %r14, %rdi
leaq 0x200(%rsp), %rsi
leaq 0x3e120(%rip), %rax     # 0x4e4e0
callq *(%rax,%rcx,8)
movq %rax, 0x68(%rsp)
movq 0x80(%rsp), %rcx
testq %rcx, %rcx
js 0x103f8
pushq $-0x1
popq %rax
cmpq $0x4, %rcx
ja 0x103f3
movq %r14, %rdi
leaq 0x200(%rsp), %rsi
leaq 0x3e0f0(%rip), %rax     # 0x4e4e0
callq *(%rax,%rcx,8)
movq %rax, 0x70(%rsp)
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rsi
leaq 0xa0(%rsp), %rax
addq %rax, %rsi
leaq 0x200(%rsp), %rdi
callq 0xb846
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rcx
movl 0x50(%rsp), %edx
orl %edx, 0xb8(%rsp,%rcx)
movq 0x58(%rsp), %rdx
pushq $0x40
popq %rcx
cmpq $0x8, %rdx
je 0x10458
cmpq $0xa, %rdx
jne 0x1044c
pushq $0x2
popq %rcx
jmp 0x10458
xorl %ecx, %ecx
cmpq $0x10, %rdx
sete %cl
shll $0x3, %ecx
movq -0x18(%rax), %rdx
movl 0xb8(%rsp,%rdx), %esi
andl $-0x4b, %esi
orl %ecx, %esi
movl %esi, 0xb8(%rsp,%rdx)
movq 0x68(%rsp), %rcx
testq %rcx, %rcx
jle 0x10485
movq -0x18(%rax), %rdx
movq %rcx, 0xb0(%rsp,%rdx)
movzwl 0x54(%rsp), %ecx
movl %ecx, %esi
shrl $0x8, %esi
movq 0x70(%rsp), %rdx
testq %rdx, %rdx
setns %dil
andb %sil, %dil
cmpb $0x1, %dil
jne 0x104b0
movq -0x18(%rax), %rsi
movq %rdx, 0xa8(%rsp,%rsi)
btl $0xd, %ecx
jae 0x10541
movq -0x18(%rax), %rbx
leaq 0x170(%rsp), %rax
leaq (%rax,%rbx), %rsi
leaq 0x8(%rsp), %rdi
callq 0x6220
pushq $0x18
popq %rdi
callq 0x6390
movq %rax, %rbp
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, %rdi
callq 0xb888
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq %rbp, %rdx
callq 0xb8a0
leaq (%rsp,%rbx), %rsi
addq $0xa0, %rsi
leaq 0x98(%rsp), %rbp
movq %rbp, %rdi
leaq 0x10(%rsp), %rbx
movq %rbx, %rdx
callq 0x60c0
movq %rbp, %rdi
callq 0x64f0
movq %rbx, %rdi
callq 0x64f0
leaq 0x8(%rsp), %rdi
callq 0x64f0
movq 0x88(%rsp), %rax
cmpq $0x4, %rax
ja 0x1059f
leaq 0xa0(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq %r12, 0x18(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x3dfa2(%rip), %rcx     # 0x4e510
callq *(%rcx,%rax,8)
movl %eax, %ebx
leaq 0x200(%rsp), %rdi
callq 0xb96a
testb %bl, %bl
leaq 0x10(%rsp), %rbx
je 0x105ac
addq %r13, %r15
movq 0x48(%rsp), %rbp
jmp 0x102e5
movl 0xf0(%rsp), %ebx
jmp 0x105af
leaq 0x200(%rsp), %rdi
callq 0xb96a
pushq $-0x1
popq %rbx
leaq 0xa0(%rsp), %rdi
callq 0xb98e
movl %ebx, %eax
addq $0x338, %rsp            # imm = 0x338
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x200(%rsp), %rdi
callq 0x64f0
jmp 0x105f5
movq %rax, %rbx
pushq $0x18
popq %rsi
movq %r14, %rdi
callq 0x63b0
jmp 0x105f5
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x10607
movq %rax, %rbx
leaq 0x200(%rsp), %rdi
callq 0x64f0
jmp 0x10653
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x64f0
jmp 0x10635
movq %rax, %rbx
pushq $0x18
popq %rsi
movq %rbp, %rdi
callq 0x63b0
jmp 0x10635
movq %rax, %rbx
jmp 0x1063f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x64f0
leaq 0x200(%rsp), %rdi
callq 0xb96a
jmp 0x10653
jmp 0x10650
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0xb98e
movq %rbx, %rdi
callq 0x6630