// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
movq %rdi, %rsi
leaq 0x1a8(%rsp), %r15
movq %r15, %rdi
callq 0xd41e
movq (%r15), %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), %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6090
movl %eax, %ebp
movq %rbx, %rdi
callq 0x6460
testb %bpl, %bpl
jne 0x40e12
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %r12
addq %r15, %r12
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %rsi
addq $0x278, %rsi            # imm = 0x278
leaq 0x28(%rsp), %rdi
callq 0x61e0
movl $0x18, %edi
callq 0x6320
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x6530
leaq 0x1238d(%rip), %rax     # 0x53150
movq %rax, (%r13)
leaq 0x98(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r13, %rdx
callq 0xd57c
leaq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rdx
movq %r12, %rsi
callq 0x60a0
leaq 0x20(%rsp), %rdi
callq 0x6460
leaq 0x98(%rsp), %rdi
callq 0x6460
leaq 0x28(%rsp), %rdi
callq 0x6460
leaq 0xa8(%rsp), %rbx
xorl %r12d, %r12d
leaq 0x28(%rsp), %r13
leaq 0x18(%rsp), %rbp
testq %r14, %r14
je 0x4118a
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0xd62d
cmpb $0x0, 0x28(%rsp)
je 0x41175
movzwl 0x58(%rsp), %eax
addq %rax, %r12
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
subq %rsi, %rdx
jbe 0x40e82
movq %r15, %rdi
callq 0x6400
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x1c8(%rsp,%rax)
jne 0x41175
movq 0x80(%rsp), %rax
testq %rax, %rax
js 0x41181
cmpb $0x6e, 0x88(%rsp)
jne 0x40ef0
testq %rax, %rax
jne 0x41175
movq %rbx, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x4128a
movq 0x98(%rsp), %rdi
cmpq %rbx, %rdi
je 0x41175
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
jmp 0x41175
cmpq $0x0, 0x70(%rsp)
js 0x40f44
jne 0x40f3b
movq %rbx, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x4128a
movq 0x98(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40f3b
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
movq $-0x1, 0x60(%rsp)
cmpq $0x0, 0x78(%rsp)
js 0x40f98
jne 0x40f8f
movq %rbx, 0x98(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x98(%rsp), %rdi
callq 0x4128a
movq 0x98(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40f8f
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x6340
movq $-0x1, 0x68(%rsp)
movq 0x1a8(%rsp), %rax
movq -0x18(%rax), %rsi
addq %r15, %rsi
leaq 0x98(%rsp), %rdi
callq 0xdbba
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 0x40fe3
cmpq $0xa, %rdx
jne 0x40fea
movl $0x2, %ecx
jmp 0x40ff6
movl $0x40, %ecx
jmp 0x40ff6
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 0x41023
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 0x4104e
movq -0x18(%rax), %rsi
movq %rdx, 0x1b0(%rsp,%rsi)
btl $0xd, %ecx
jae 0x410fb
movq %rbp, %r13
movq %rbx, %r15
movq -0x18(%rax), %rbp
leaq 0x1a8(%rsp), %rcx
addq %rcx, %rbp
movq -0x18(%rax), %rsi
leaq 0x278(%rsp), %rax
addq %rax, %rsi
leaq 0x10(%rsp), %rdi
callq 0x61e0
movl $0x18, %edi
callq 0x6320
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, %rdi
xorl %esi, %esi
callq 0x6530
leaq 0x120fe(%rip), %rax     # 0x531b0
movq %rax, (%rbx)
movq %r13, %rdi
leaq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0xdbfc
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rbp
movq %r13, %rdx
callq 0x60a0
movq %rbx, %rdi
callq 0x6460
movq %rbp, %rdi
callq 0x6460
leaq 0x10(%rsp), %rdi
callq 0x6460
movq %r15, %rbx
cmpq $0x0, 0x80(%rsp)
je 0x41124
leaq 0x98(%rsp), %rdi
callq 0xdcae
xorl %eax, %eax
leaq 0x1a8(%rsp), %r15
leaq 0x28(%rsp), %r13
jmp 0x41177
movq %rbx, %r15
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), %bl
leaq 0x98(%rsp), %rdi
callq 0xdcae
testb $0x5, %bl
movq %r15, %rbx
leaq 0x1a8(%rsp), %r15
leaq 0x28(%rsp), %r13
je 0x41181
xorl %eax, %eax
testb %al, %al
jne 0x40e27
jmp 0x41193
movb $0x1, %al
movq 0x40(%rsp), %r14
jmp 0x41177
movl 0x1f8(%rsp), %ebx
jmp 0x41198
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
leaq 0x11e69(%rip), %rax     # 0x53008
leaq 0x200(%rsp), %r14
movq %rax, -0x58(%r14)
leaq 0x11e7e(%rip), %rax     # 0x53030
movq %rax, (%r14)
movq 0x12de4(%rip), %rax     # 0x53fa0
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
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x6460
jmp 0x4123a
movq %rax, %r14
movl $0x18, %esi
movq %r13, %rdi
callq 0x6340
jmp 0x4123a
movq %rax, %r14
jmp 0x41260
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x6460
jmp 0x41256
movq %rax, %r14
movl $0x18, %esi
movq %rbx, %rdi
callq 0x6340
jmp 0x41256
movq %rax, %r14
leaq 0x28(%rsp), %rdi
jmp 0x4124c
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x6460
jmp 0x41274
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x6460
leaq 0x98(%rsp), %rdi
callq 0xdcae
jmp 0x41274
jmp 0x41271
movq %rax, %r14
leaq 0x1a8(%rsp), %rdi
callq 0xdcd2
movq %r14, %rdi
callq 0x6580
nop