// File: /workspace/github_cpp_makefile_star2_O1/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 0x17f33
movq %r15, %rdi
callq 0x4160
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4350
jmp 0x17f53
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 0x688c
leaq -0x48(%rbp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x17f9c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
leaq 0xd73b(%rip), %rcx      # 0x256e8
leaq -0xa0(%rbp), %rdx
xorl %r8d, %r8d
callq 0x17b9f
movl %eax, %r14d
testb %al, %al
je 0x181b1
leaq -0xe0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x2, %edx
callq 0x15eae
cmpq $0x0, -0xd8(%rbp)
je 0x17ff7
movq -0xe0(%rbp), %rax
movb (%rax), %al
movb %al, -0x29(%rbp)
jmp 0x17ffb
movb $0x20, -0x29(%rbp)
leaq -0xd0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1801a
movq -0xd0(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0xc0(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x7, %edx
callq 0x15eae
cmpq $0x0, -0xb8(%rbp)
je 0x18092
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 0x18215
movl (%r12), %ecx
testl %ecx, %ecx
je 0x1809c
cmpl $0x22, %ecx
leaq -0x70(%rbp), %r13
jne 0x180a7
leaq 0x4acc(%rip), %rdi      # 0x1cb59
callq 0x4420
movq $0x0, -0x38(%rbp)
jmp 0x180ab
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 0x180ca
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x58(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x3, %edx
callq 0x15eae
leaq 0x4a71(%rip), %rsi      # 0x1cb57
leaq -0x58(%rbp), %rbx
movq %rbx, %rdi
callq 0x40b0
movl %eax, %r12d
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x18109
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
testl %r12d, %r12d
je 0x18165
leaq -0x58(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movl $0x3, %edx
callq 0x15eae
leaq 0x4a6d(%rip), %rsi      # 0x1cb97
movq %rbx, %rdi
callq 0x40b0
movl %eax, %r12d
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x18149
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
testl %r12d, %r12d
je 0x1817c
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x177ae
jmp 0x18191
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x178a8
jmp 0x18191
movsbl -0x29(%rbp), %ecx
leaq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x17aae
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x43a0
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x181b1
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x80(%rbp), %rdi
cmpq %r13, %rdi
je 0x181c6
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x42d0
movq 0xcdbb(%rip), %rsi      # 0x24f88
leaq -0x268(%rbp), %rdi
callq 0x4250
leaq -0x1e8(%rbp), %rdi
callq 0x40f0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x18200
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 0x493d(%rip), %rdi      # 0x1cb59
callq 0x41c0
jmp 0x18261
jmp 0x18261
jmp 0x18261
jmp 0x18261
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1823a
movl -0x38(%rbp), %eax
movl %eax, (%r12)
leaq -0xb0(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18264
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x18264
jmp 0x18261
jmp 0x18261
jmp 0x18261
movq %rax, %rbx
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x1829a
movq -0x70(%rbp), %rsi
jmp 0x1828b
movq %rax, %rbx
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1829a
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
jmp 0x1829a
jmp 0x18297
movq %rax, %rbx
movq 0xcce7(%rip), %rsi      # 0x24f88
leaq -0x268(%rbp), %rdi
callq 0x4250
leaq -0x1e8(%rbp), %rdi
callq 0x40f0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x182d4
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4510
movq %rax, %rbx
jmp 0x182b9
nop