// File: ChanTsune[P]py_string/./py_string.hpp
// Function: void py::basic_string<char>::split<std::deque<py::basic_string<char>, std::allocator<py::basic_string<char>>>>(std::deque<py::basic_string<char>, std::allocator<py::basic_string<char>>>&, unsigned long) const
void basic_string<_Elme>::split(_Iterable &result, size_t maxsplit) const
{
  if (result.size() != 0)
    result.clear();
  auto start = this->begin();
  auto end = this->end();
  int index = 0, len = 0;
  basic_string<_Elme> tmp;
  for (; start != end && maxsplit; ++start) {
    if (util::isspace(*start)) {
      if (len != 0) {
        result.push_back(this->substr(index, len));
        --maxsplit;
        index += len;
      }
      ++index;
      len = 0;
    } else {
      ++len;
    }
  }
  tmp = this->substr(index);
  tmp = tmp.lstrip();
  if (tmp.size() != 0) {
    result.push_back(tmp);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a9b0
cmpq $0x0, %rax
je 0x3a79a
movq -0x10(%rbp), %rdi
callq 0x3a9e0
movq -0xc8(%rbp), %rdi
callq 0x6460
movq -0xc8(%rbp), %rdi
movq %rax, -0x20(%rbp)
callq 0x6830
movq %rax, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x2bf10
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x2d540
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xc9(%rbp)
jne 0x3a7ef
jmp 0x3a7fd
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0xc9(%rbp)
movb -0xc9(%rbp), %al
testb $0x1, %al
jne 0x3a80c
jmp 0x3a8f3
leaq -0x20(%rbp), %rdi
callq 0x318b0
movsbl (%rax), %edi
callq 0x3aa50
movb %al, -0xca(%rbp)
jmp 0x3a825
movb -0xca(%rbp), %al
testb $0x1, %al
jne 0x3a834
jmp 0x3a8da
cmpl $0x0, -0x30(%rbp)
je 0x3a8c8
movq -0xc8(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
movslq -0x2c(%rbp), %rdx
movslq -0x30(%rbp), %rcx
leaq -0x80(%rbp), %rdi
movq %rdi, -0xd8(%rbp)
callq 0x2b2d0
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x3aa20
jmp 0x3a87d
leaq -0x80(%rbp), %rdi
callq 0x7db0
movq -0x18(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x18(%rbp)
movl -0x30(%rbp), %eax
addl -0x2c(%rbp), %eax
movl %eax, -0x2c(%rbp)
jmp 0x3a8c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0x3a99e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x7db0
jmp 0x3a99e
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
jmp 0x3a8e3
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x3a8e5
leaq -0x20(%rbp), %rdi
callq 0x2f3b0
jmp 0x3a7d1
movq -0xc8(%rbp), %rsi
movslq -0x2c(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
movq $-0x1, %rcx
callq 0x2b2d0
movq -0xf0(%rbp), %rsi
leaq -0x50(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x35080
movq -0xf0(%rbp), %rdi
callq 0x7db0
movq -0xe8(%rbp), %rsi
leaq -0xc0(%rbp), %rdi
callq 0x3aab0
jmp 0x3a950
leaq -0x50(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x35080
leaq -0xc0(%rbp), %rdi
callq 0x7db0
leaq -0x50(%rbp), %rdi
callq 0x6350
cmpq $0x0, %rax
je 0x3a98c
movq -0x10(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x3ab60
jmp 0x3a98a
jmp 0x3a98c
leaq -0x50(%rbp), %rdi
callq 0x7db0
addq $0xf0, %rsp
popq %rbp
retq
leaq -0x50(%rbp), %rdi
callq 0x7db0
movq -0x58(%rbp), %rdi
callq 0x67e0