// File: /workspace/github_cpp_makefile_star2_O1/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 0x1a7c8
movq -0x30(%rbp), %rdi
callq 0x1a998
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 0x1a8a8
decq %rdx
xorl %r13d, %r13d
xorl %esi, %esi
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rax
movzbl (%rax,%r13), %eax
cmpq $0x20, %rax
ja 0x1a89c
movabsq $0x1f0003e00, %rcx      # imm = 0x1F0003E00
btq %rax, %rcx
jae 0x1a89c
testl %r8d, %r8d
je 0x1a884
movl %esi, %r15d
movslq %esi, %rdx
movq %r8, %rbx
movslq %r8d, %rcx
leaq -0x58(%rbp), %r14
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq 0x124f4
movq -0x30(%rbp), %rdi
movq %r14, %rsi
callq 0x1ad66
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a878
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 0x1a8a1
incq %r13
testq %r12, %r12
jne 0x1a810
jmp 0x1a8a1
incl %r8d
jmp 0x1a889
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 0x124f4
leaq -0x78(%rbp), %rdi
movq %r15, %rsi
callq 0x43a0
movq (%r15), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a8e6
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
leaq -0x58(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x1a9d6
leaq -0x78(%rbp), %rdi
leaq -0x58(%rbp), %r14
movq %r14, %rsi
callq 0x43a0
movq (%r14), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a91b
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
cmpq $0x0, -0x70(%rbp)
je 0x1a92f
leaq -0x78(%rbp), %rsi
movq -0x30(%rbp), %rdi
callq 0x1aa3c
movq -0x78(%rbp), %rdi
cmpq %rbx, %rdi
je 0x1a944
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 0x1a955
movq %rax, %rbx
jmp 0x1a976
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x1a976
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0x1a98f
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x4510
nop