// File: /workspace/github_cpp_makefile_star2_O3/ChanTsune[P]py_string/./py_string.hpp
// Function: bool py::format_parser::format<char const*, nullptr>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char const*, 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;
    std::stringstream stm;
    stm << target;
    string str = stm.str();
    bool result = std::regex_match(r, sub, format_spce_regex);
    if (result) {
      char fill_char = util::_get_fill_char(sub.str(2));
      size_t pad_size = util::_get_size(sub.str(7));

      if (sub.str(3) == "^") {
        dst = str.center(pad_size, fill_char);
      } else if (sub.str(3) == ">") {
        dst = str.rjust(pad_size, fill_char);
      } else {
        dst = str.ljust(pad_size, fill_char);
      }
    }
    return result;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movaps %xmm0, -0xa0(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x4220
leaq -0x258(%rbp), %r12
testq %r15, %r15
je 0x17f20
movq %r15, %rdi
callq 0x4160
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4350
jmp 0x17f40
movq -0x258(%rbp), %rax
movq -0x18(%rax), %rax
addq %rax, %r12
movl -0x238(%rbp,%rax), %esi
orl $0x1, %esi
movq %r12, %rdi
callq 0x44e0
movq %rbx, -0x60(%rbp)
leaq -0x250(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x4480
leaq -0x70(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x6874
leaq -0x48(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x17f89
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
leaq 0xd74e(%rip), %rcx      # 0x256e8
leaq -0xa0(%rbp), %rdx
xorl %r8d, %r8d
callq 0x17b87
movl %eax, %r14d
testb %al, %al
je 0x1819a
leaq -0xe0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x2, %edx
callq 0x15e86
cmpq $0x0, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
je 0x17fe4
movb (%rdi), %al
movb %al, -0x29(%rbp)
jmp 0x17fe8
movb $0x20, -0x29(%rbp)
leaq -0xd0(%rbp), %rax
cmpq %rax, %rdi
je 0x18003
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0xc0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x7, %edx
callq 0x15e86
cmpq $0x0, -0xb8(%rbp)
je 0x1807b
movq -0xc0(%rbp), %r13
callq 0x4060
movq %rax, %r12
movl (%rax), %eax
movl %eax, -0x38(%rbp)
movl $0x0, (%r12)
leaq -0x58(%rbp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
movl $0xa, %edx
callq 0x40e0
cmpq %r13, (%rbx)
je 0x181fe
movl (%r12), %ecx
testl %ecx, %ecx
je 0x18085
cmpl $0x22, %ecx
leaq -0x70(%rbp), %r13
jne 0x18090
leaq 0x4ae3(%rip), %rdi      # 0x1cb59
callq 0x4420
movq $0x0, -0x38(%rbp)
jmp 0x18094
movl -0x38(%rbp), %ecx
movl %ecx, (%r12)
leaq -0x70(%rbp), %r13
movq %rax, -0x38(%rbp)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x180b3
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x58(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x3, %edx
callq 0x15e86
leaq 0x4a88(%rip), %rsi      # 0x1cb57
leaq -0x58(%rbp), %rbx
movq %rbx, %rdi
callq 0x40b0
movl %eax, %r12d
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x180f2
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
testl %r12d, %r12d
je 0x1814e
leaq -0x58(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x3, %edx
callq 0x15e86
leaq 0x4a84(%rip), %rsi      # 0x1cb97
movq %rbx, %rdi
callq 0x40b0
movl %eax, %r12d
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x18132
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
testl %r12d, %r12d
je 0x18165
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x17796
jmp 0x1817a
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x17890
jmp 0x1817a
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x17a96
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x43a0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x1819a
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x181af
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x42d0
movq 0xcdd2(%rip), %rsi      # 0x24f88
leaq -0x268(%rbp), %rdi
callq 0x4250
leaq -0x1e8(%rbp), %rdi
callq 0x40f0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x181e9
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x42d0
movl %r14d, %eax
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4954(%rip), %rdi      # 0x1cb59
callq 0x41c0
jmp 0x1824a
jmp 0x1824a
jmp 0x1824a
jmp 0x1824a
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x18223
movl -0x38(%rbp), %eax
movl %eax, (%r12)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1824d
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x1824d
jmp 0x1824a
jmp 0x1824a
jmp 0x1824a
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x18283
movq -0x70(%rbp), %rsi
jmp 0x18274
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18283
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x18283
jmp 0x18280
movq %rax, %rbx
movq 0xccfe(%rip), %rsi      # 0x24f88
leaq -0x268(%rbp), %rdi
callq 0x4250
leaq -0x1e8(%rbp), %rdi
callq 0x40f0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x182bd
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4510
nop