// File: /workspace/github_cpp_makefile_star2_O2/ChanTsune[P]py_string/./py_string.hpp
// Function: bool py::format_parser::format<int, nullptr>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
bool format(std::string r, T target, std::string &dst)
  {
    std::smatch sub;
    string str;
    bool result = std::regex_match(r, sub, format_spce_regex);
    if (result) {
      bool negative = target < 0;
      target = negative ? -target : target;
      char fill_char = util::_get_fill_char(sub.str(2));
      size_t pad_size = util::_get_size(sub.str(7));
      if (sub.str(10) == "b") {
        str = util::itobin(target);
        util::sepinsert(str, sub.str(8), 4);
      } else if (sub.str(10) == "c") {
        str = static_cast<char>(target);
      } else if (sub.str(10) == "o") {
        str = util::to_string_oct(target);
        util::sepinsert(str, sub.str(8), 4);
      } else if (sub.str(10) == "x") {
        str = util::to_string_hex(target);
        util::sepinsert(str, sub.str(8), 4);
      } else if (sub.str(10) == "X") {
        str = util::to_string_HEX(target);
        util::sepinsert(str, sub.str(8), 4);
      } else if (!sub.str(10).empty()
                 && std::string("eEfFgGn%").find(sub.str(10))
                      != std::string::npos) {
        return negative ? format(r, static_cast<float>(-target), dst)
                        : format(r, static_cast<float>(target), dst);
      } else // sub.str(10) == "d"
      {
        str = std::to_string(target);
        util::sepinsert(str, sub.str(8), 3);
      }

      if (!sub.str(5).empty()) {
        if (sub.str(10) == "b") {
          str.insert(0, "0b");
        } else if (sub.str(10) == "o") {
          str.insert(0, "0o");
        } else if (sub.str(10) == "x") {
          str.insert(0, "0x");
        } else if (sub.str(10) == "X") {
          str.insert(0, "0X");
        }
      }

      _sign_format(str, sub.str(4), negative);

      if (!sub.str(6).empty()) {
        fill_char = '0';
        util::__format_eq(str, fill_char, pad_size);
        dst = str;
      } else if (sub.str(3) == "=") {
        util::__format_eq(str, fill_char, pad_size);
        dst = str;
      } else if (sub.str(3) == "<") {
        dst = str.ljust(pad_size, fill_char);
      } else if (sub.str(3) == "^") {
        dst = str.center(pad_size, fill_char);
      } else {
        dst = str.rjust(pad_size, fill_char);
      }
    }
    return result;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r13
xorps %xmm0, %xmm0
leaq -0x80(%rbp), %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
leaq -0x90(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10deb(%rip), %rdx     # 0x23718
xorl %ecx, %ecx
callq 0x133b4
testb %al, %al
je 0x12974
movq %rbx, -0xb0(%rbp)
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
leaq -0x170(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x2
popq %rdx
callq 0x13152
cmpq $0x0, -0x168(%rbp)
je 0x1297c
movq -0x170(%rbp), %rax
movb (%rax), %al
movb %al, -0x29(%rbp)
jmp 0x12980
xorl %r14d, %r14d
jmp 0x12d7b
movb $0x20, -0x29(%rbp)
leaq -0x170(%rbp), %rdi
callq 0x4170
leaq -0x150(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x7
popq %rdx
callq 0x13152
leaq -0x150(%rbp), %rdi
callq 0x133d4
movq %rax, -0xa8(%rbp)
leaq -0x150(%rbp), %rdi
callq 0x4170
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x5131(%rip), %rsi      # 0x17b06
leaq -0x50(%rbp), %r14
movq %r14, %rdi
callq 0xa554
movl %eax, %ebx
movq %r14, %rdi
callq 0x4170
testb %bl, %bl
je 0x12a48
leaq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x133f0
leaq -0xa0(%rbp), %rdi
leaq -0x50(%rbp), %rbx
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
leaq -0x230(%rbp), %r12
leaq -0x80(%rbp), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x13152
leaq -0xa0(%rbp), %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x134aa
movq %r12, %rdi
callq 0x4170
jmp 0x12a8f
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4f2d(%rip), %rsi      # 0x1798c
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12b33
movsbl %r12b, %esi
leaq -0xa0(%rbp), %rdi
callq 0x4500
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x5
popq %rdx
callq 0x13152
leaq -0x50(%rbp), %rdi
movq 0x8(%rdi), %rbx
callq 0x4170
testq %rbx, %rbx
je 0x12cbc
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x503a(%rip), %rsi      # 0x17b06
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12af4
leaq 0x5016(%rip), %rdx      # 0x17b05
jmp 0x12cae
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x5013(%rip), %rsi      # 0x17b1e
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12bb6
leaq 0x4fda(%rip), %rdx      # 0x17b08
jmp 0x12cae
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4fd4(%rip), %rsi      # 0x17b1e
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12bf5
leaq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x1358c
leaq -0xa0(%rbp), %rdi
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
leaq -0x210(%rbp), %r12
leaq -0x80(%rbp), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x13152
leaq -0xa0(%rbp), %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x134aa
jmp 0x12a3e
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4f54(%rip), %rsi      # 0x17b21
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12c78
leaq 0x4f1b(%rip), %rdx      # 0x17b0b
jmp 0x12cae
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4f15(%rip), %rsi      # 0x17b21
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12e4e
leaq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x135ab
leaq -0xa0(%rbp), %rdi
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
leaq -0x1f0(%rbp), %r12
leaq -0x80(%rbp), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x13152
leaq -0xa0(%rbp), %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x134aa
jmp 0x12a3e
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4e95(%rip), %rsi      # 0x17b24
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12cbc
leaq 0x4e60(%rip), %rdx      # 0x17b0e
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
callq 0x4090
leaq -0xd0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x4
popq %rdx
callq 0x13152
shrl $0x1f, %r15d
leaq -0xa0(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
movl %r15d, %edx
callq 0x13eb0
leaq -0xd0(%rbp), %rdi
callq 0x4170
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x6
popq %rdx
callq 0x13152
leaq -0x50(%rbp), %rdi
movq 0x8(%rdi), %rbx
callq 0x4170
movb $0x30, %al
testq %rbx, %rbx
jne 0x12d4f
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x3
popq %rdx
callq 0x13152
leaq 0x4481(%rip), %rsi      # 0x171b1
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12da5
movb -0x29(%rbp), %al
movsbl %al, %esi
leaq -0xa0(%rbp), %rdi
movq -0xa8(%rbp), %rdx
callq 0x13f22
movb $0x1, %r14b
leaq -0xa0(%rbp), %rsi
movq -0xb0(%rbp), %rdi
callq 0x41d0
leaq -0xa0(%rbp), %rdi
callq 0x4170
leaq -0x80(%rbp), %rdi
callq 0x10b62
movl %r14d, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x3
popq %rdx
callq 0x13152
movq -0xb0(%rbp), %r15
leaq 0x4d4e(%rip), %rsi      # 0x17b11
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12dfb
movsbl -0x29(%rbp), %ecx
leaq -0x50(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
callq 0x1415c
jmp 0x12eec
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0x3
popq %rdx
callq 0x13152
leaq 0x4d01(%rip), %rsi      # 0x17b13
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12ed1
movsbl -0x29(%rbp), %ecx
leaq -0x50(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
callq 0x14208
jmp 0x12eec
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq 0x4cbf(%rip), %rsi      # 0x17b24
movq %rbx, %rdi
callq 0xa554
movl %eax, %r14d
movq %rbx, %rdi
callq 0x4170
testb %r14b, %r14b
je 0x12f07
leaq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x135ca
leaq -0xa0(%rbp), %rdi
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
leaq -0x1d0(%rbp), %r12
leaq -0x80(%rbp), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x13152
leaq -0xa0(%rbp), %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x134aa
jmp 0x12a3e
movsbl -0x29(%rbp), %ecx
leaq -0x50(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq -0xa8(%rbp), %rdx
callq 0x14334
movq %r15, %rdi
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
movb $0x1, %r14b
jmp 0x12d7b
leaq -0x50(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
cmpq $0x0, -0x48(%rbp)
je 0x12fc9
leaq 0x4bd3(%rip), %rsi      # 0x17afc
leaq -0x130(%rbp), %rdi
leaq -0x51(%rbp), %rdx
callq 0x4120
leaq -0x1b0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x13152
leaq -0x130(%rbp), %rdi
leaq -0x1b0(%rbp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0x45b0
movq %rax, %rbx
movq %r14, %rdi
callq 0x4170
leaq -0x130(%rbp), %rdi
callq 0x4170
leaq -0x50(%rbp), %rdi
callq 0x4170
cmpq $-0x1, %rbx
je 0x12fd2
testl %r15d, %r15d
js 0x13026
leaq -0xf0(%rbp), %rdi
movq %r13, %rsi
callq 0x4440
cvtsi2ss %r12d, %xmm0
leaq -0xf0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x135e9
movl %eax, %r14d
leaq -0xf0(%rbp), %rdi
jmp 0x1305a
leaq -0x50(%rbp), %rdi
callq 0x4170
leaq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x13e50
leaq -0xa0(%rbp), %rdi
leaq -0x50(%rbp), %rbx
movq %rbx, %rsi
callq 0x43e0
movq %rbx, %rdi
callq 0x4170
leaq -0x190(%rbp), %r12
leaq -0x80(%rbp), %rsi
pushq $0x8
popq %rdx
movq %r12, %rdi
callq 0x13152
leaq -0xa0(%rbp), %rdi
pushq $0x3
popq %rdx
movq %r12, %rsi
callq 0x134aa
jmp 0x12a3e
leaq -0x110(%rbp), %rdi
movq %r13, %rsi
callq 0x4440
negl %r12d
cvtsi2ss %r12d, %xmm0
leaq -0x110(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x135e9
movl %eax, %r14d
leaq -0x110(%rbp), %rdi
callq 0x4170
jmp 0x12d7b
movq %rax, %rbx
leaq -0x110(%rbp), %rdi
jmp 0x13127
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
jmp 0x13127
jmp 0x13132
movq %rax, %rbx
leaq -0x190(%rbp), %rdi
jmp 0x13127
jmp 0x13132
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
callq 0x4170
jmp 0x130af
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
jmp 0x13127
movq %rax, %rbx
leaq -0x1d0(%rbp), %rdi
jmp 0x13127
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0x1f0(%rbp), %rdi
jmp 0x13127
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0x210(%rbp), %rdi
jmp 0x13127
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0x230(%rbp), %rdi
jmp 0x13127
jmp 0x13132
jmp 0x13132
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
jmp 0x13127
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x4170
jmp 0x13135
jmp 0x13132
jmp 0x13132
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x4170
leaq -0x80(%rbp), %rdi
callq 0x10b62
movq %rbx, %rdi
callq 0x4540