// File: 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
subq $0x320, %rsp            # imm = 0x320
movq %rdi, -0x308(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2c890
leaq -0x1c0(%rbp), %rdi
callq 0x6360
jmp 0x38375
leaq -0x1b0(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x6480
jmp 0x38387
leaq -0x210(%rbp), %rdi
leaq -0x1c0(%rbp), %rsi
callq 0x6470
jmp 0x3839c
leaq -0x1f0(%rbp), %rdi
leaq -0x210(%rbp), %rsi
callq 0x35050
jmp 0x383b1
leaq -0x210(%rbp), %rdi
callq 0x62d0
movq -0x308(%rbp), %rdi
leaq 0x214bd(%rip), %rdx     # 0x59888
leaq -0x38(%rbp), %rsi
xorl %ecx, %ecx
callq 0x353b0
movb %al, -0x309(%rbp)
jmp 0x383de
movb -0x309(%rbp), %al
andb $0x1, %al
movb %al, -0x211(%rbp)
testb $0x1, -0x211(%rbp)
je 0x3868b
leaq -0x238(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x2, %edx
callq 0x35000
jmp 0x38410
leaq -0x238(%rbp), %rdi
callq 0x35410
movb %al, -0x30a(%rbp)
jmp 0x38424
leaq -0x238(%rbp), %rdi
callq 0x62d0
movb -0x30a(%rbp), %al
movb %al, -0x212(%rbp)
leaq -0x260(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x7, %edx
callq 0x35000
jmp 0x38453
leaq -0x260(%rbp), %rdi
callq 0x35450
movq %rax, -0x318(%rbp)
jmp 0x38468
leaq -0x260(%rbp), %rdi
callq 0x62d0
movq -0x318(%rbp), %rax
movq %rax, -0x240(%rbp)
leaq -0x280(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x3, %edx
callq 0x35000
jmp 0x38499
leaq -0x280(%rbp), %rdi
leaq 0x56dc(%rip), %rsi      # 0x3db83
callq 0x18320
movb %al, -0x319(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x62d0
movb -0x319(%rbp), %al
testb $0x1, %al
jne 0x384cd
jmp 0x385bf
movq -0x240(%rbp), %rdx
movsbl -0x212(%rbp), %ecx
leaq -0x2a0(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x36d70
jmp 0x384f0
movq -0x18(%rbp), %rdi
leaq -0x2a0(%rbp), %rsi
callq 0x65c0
leaq -0x2a0(%rbp), %rdi
callq 0x7db0
jmp 0x38689
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
jmp 0x386e1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
jmp 0x386d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x210(%rbp), %rdi
callq 0x62d0
jmp 0x386d5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
jmp 0x386c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x238(%rbp), %rdi
callq 0x62d0
jmp 0x386c9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x1c8(%rbp)
movl %eax, -0x1cc(%rbp)
leaq -0x260(%rbp), %rdi
callq 0x62d0
jmp 0x386c9
leaq -0x2c0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
movl $0x3, %edx
callq 0x35000
jmp 0x385d6
leaq -0x2c0(%rbp), %rdi
leaq 0x55df(%rip), %rsi      # 0x3dbc3
callq 0x18320
movb %al, -0x31a(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x62d0
movb -0x31a(%rbp), %al
testb $0x1, %al
jne 0x38607
jmp 0x38648
movq -0x240(%rbp), %rdx
movsbl -0x212(%rbp), %ecx
leaq -0x2e0(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x36fe0
jmp 0x3862a
movq -0x18(%rbp), %rdi
leaq -0x2e0(%rbp), %rsi
callq 0x65c0
leaq -0x2e0(%rbp), %rdi
callq 0x7db0
jmp 0x38687
movq -0x240(%rbp), %rdx
movsbl -0x212(%rbp), %ecx
leaq -0x300(%rbp), %rdi
leaq -0x1f0(%rbp), %rsi
callq 0x36c10
jmp 0x3866b
movq -0x18(%rbp), %rdi
leaq -0x300(%rbp), %rsi
callq 0x65c0
leaq -0x300(%rbp), %rdi
callq 0x7db0
jmp 0x38689
jmp 0x3868b
movb -0x211(%rbp), %al
movb %al, -0x31b(%rbp)
leaq -0x1f0(%rbp), %rdi
callq 0x7db0
leaq -0x1c0(%rbp), %rdi
callq 0x63b0
leaq -0x38(%rbp), %rdi
callq 0x2c920
movb -0x31b(%rbp), %al
andb $0x1, %al
addq $0x320, %rsp            # imm = 0x320
popq %rbp
retq
leaq -0x1f0(%rbp), %rdi
callq 0x7db0
leaq -0x1c0(%rbp), %rdi
callq 0x63b0
leaq -0x38(%rbp), %rdi
callq 0x2c920
movq -0x1c8(%rbp), %rdi
callq 0x67e0
nopw %cs:(%rax,%rax)