// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r12
movq 0x48(%rsi), %rax
movq %rax, %rcx
subq 0x28(%rsi), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
movq %rdi, -0x38(%rbp)
shlq $0x4, %rcx
movq 0x20(%rsi), %rax
movq 0x30(%rsi), %rdx
subq 0x38(%rsi), %rdx
sarq $0x5, %rdx
addq %rcx, %rdx
movq %rsi, -0x30(%rbp)
subq 0x10(%rsi), %rax
sarq $0x5, %rax
addq %rdx, %rax
je 0x1a79e
movq -0x30(%rbp), %rdi
callq 0x1a96e
movq -0x38(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x88(%rbp)
movq 0x8(%rax), %rdx
leaq -0x68(%rbp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
testq %rdx, %rdx
sete %al
testq %r12, %r12
sete %cl
xorl %r8d, %r8d
orb %al, %cl
jne 0x1a87e
decq %rdx
xorl %r13d, %r13d
xorl %esi, %esi
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rax
movzbl (%rax,%r13), %eax
cmpq $0x20, %rax
ja 0x1a872
movabsq $0x1f0003e00, %rcx      # imm = 0x1F0003E00
btq %rax, %rcx
jae 0x1a872
testl %r8d, %r8d
je 0x1a85a
movl %esi, %r15d
movslq %esi, %rdx
movq %r8, %rbx
movslq %r8d, %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq 0x12564
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x1ad3a
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a84e
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
decq %r12
movl %r15d, %esi
addl %ebx, %esi
movq -0x80(%rbp), %rdx
incl %esi
xorl %r8d, %r8d
cmpq %r13, %rdx
je 0x1a877
incq %r13
testq %r12, %r12
jne 0x1a7e6
jmp 0x1a877
incl %r8d
jmp 0x1a85f
movslq %esi, %r8
leaq -0x68(%rbp), %rbx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq -0x38(%rbp), %rsi
movq %r8, %rdx
movq $-0x1, %rcx
callq 0x12564
leaq -0x78(%rbp), %rdi
movq %r15, %rsi
callq 0x43a0
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a8bc
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1a9ac
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %r14
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a8f1
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
cmpq $0x0, -0x70(%rbp)
je 0x1a905
leaq -0x78(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x1aa10
movq -0x78(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1a91a
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1a92b
movq %rax, %rbx
jmp 0x1a94c
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a94c
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x1a965
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4510
nop