// File: /workspace/github_c_makefile_star2_O2/ArtifexSoftware[P]mujs/./jsstring.c
// Function: Sp_split
static void Sp_split(js_State *J)
{
	if (js_isundefined(J, 1)) {
		js_newarray(J);
		js_pushstring(J, js_tostring(J, 0));
		js_setindex(J, -2, 0);
	} else if (js_isregexp(J, 1)) {
		Sp_split_regexp(J);
	} else {
		Sp_split_string(J);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdi, %rbx
pushq $0x1
popq %rsi
callq 0xf8bb
testl %eax, %eax
je 0x12c74
movq %rbx, %rdi
callq 0xe7d1
movq %rbx, %rdi
xorl %esi, %esi
callq 0xf64d
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe7f7
pushq $-0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe9c5
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xf99d
movq %rbx, %rdi
testl %eax, %eax
je 0x12cbc
callq 0x1dda8
movq %rax, %r14
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xfee4
movq %rax, 0x8(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0xf8a8
testl %eax, %eax
je 0x12cf7
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x3f23
movl %eax, %ebp
jmp 0x12cfc
callq 0x1dda8
movq %rax, %r13
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xf64d
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0xf8a8
testl %eax, %eax
je 0x12e9c
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x3f23
movl %eax, %ebp
jmp 0x12ea1
movl $0x40000000, %ebp       # imm = 0x40000000
movq %rbx, %rdi
callq 0xe7d1
movl %ebp, 0x4(%rsp)
testl %ebp, %ebp
je 0x12f7f
movq %r14, %r15
movq %r14, %rdi
callq 0x3200
testq %rax, %rax
je 0x12e50
movq %rax, %r13
addq %r15, %r13
movl 0x4(%rsp), %eax
negl %eax
movq %rax, 0x18(%rsp)
movl $0x0, (%rsp)
movq %r15, %rbp
movq %rbp, %r14
cmpq %r13, %r14
jae 0x12e36
movq 0x8(%rsp), %rax
movq (%rax), %rsi
xorl %r8d, %r8d
cmpq %r15, %r14
seta %r8b
shll $0x2, %r8d
movq %rbx, %rdi
movq %r14, %rdx
leaq 0x30(%rsp), %rcx
callq 0x1ddd3
testl %eax, %eax
jne 0x12e36
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %r12
cmpq %r12, %rdx
jne 0x12d90
incq %r14
cmpq %rbp, %rdx
je 0x12d42
movq %r15, 0x10(%rsp)
movl 0x4(%rsp), %eax
cmpl %eax, (%rsp)
je 0x12f7f
subl %ebp, %edx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe918
movq %rbx, %rdi
pushq $-0x2
popq %rsi
movl (%rsp), %ebp
movl %ebp, %edx
callq 0xe9c5
movl %ebp, %ecx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rsp)
addq %rcx, %rax
movq %rax, 0x28(%rsp)
leaq 0x50(%rsp), %r15
pushq $0x1
popq %rbp
movslq 0x30(%rsp), %rax
cmpq %rax, %rbp
jge 0x12e26
movq 0x28(%rsp), %rax
addq %rbp, %rax
testl %eax, %eax
je 0x12f7f
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %r14
movq -0x8(%r15), %rsi
movl (%r15), %edx
subl %esi, %edx
movq %rbx, %rdi
callq 0xe918
movq %rbx, %rdi
pushq $-0x2
popq %rsi
movl %r14d, %edx
callq 0xe9c5
incq %rbp
addq $0x10, %r15
jmp 0x12ddb
addl %ebp, (%rsp)
movq %r12, %rbp
movq 0x10(%rsp), %r15
jmp 0x12d3f
movl 0x4(%rsp), %eax
cmpl %eax, (%rsp)
je 0x12f7f
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe7f7
jmp 0x12e89
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x30(%rsp), %rcx
movl $0x0, (%rsp)
movq %rbx, %rdi
movq %r15, %rdx
xorl %r8d, %r8d
callq 0x1ddd3
testl %eax, %eax
je 0x12f7f
leaq 0x16510(%rip), %rsi     # 0x29391
movq %rbx, %rdi
callq 0x5a13
pushq $-0x2
popq %rsi
movq %rbx, %rdi
movl (%rsp), %edx
callq 0xe9c5
jmp 0x12f7f
movl $0x40000000, %ebp       # imm = 0x40000000
movq %rbx, %rdi
callq 0xe7d1
testl %ebp, %ebp
je 0x12f7f
movq %r15, %rdi
callq 0x3200
testl %eax, %eax
je 0x12f36
cltq
movq %rax, 0x8(%rsp)
xorl %r12d, %r12d
testq %r13, %r13
je 0x12f7f
cmpl %ebp, %r12d
jge 0x12f7f
movq %r13, %rdi
movq %r15, %rsi
callq 0x3260
testq %rax, %rax
je 0x12f15
movq %rax, %r14
movl %r14d, %edx
subl %r13d, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe918
movq %rbx, %rdi
pushq $-0x2
popq %rsi
movl %r12d, %edx
callq 0xe9c5
addq 0x8(%rsp), %r14
movq %r14, %r13
jmp 0x12f31
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe7f7
movq %rbx, %rdi
pushq $-0x2
popq %rsi
movl %r12d, %edx
callq 0xe9c5
xorl %r13d, %r13d
incl %r12d
jmp 0x12ec7
xorl %r15d, %r15d
pushq $-0x2
popq %r14
cmpb $0x0, (%r13)
je 0x12f7f
cmpl %ebp, %r15d
jge 0x12f7f
leaq 0x30(%rsp), %rdi
movq %r13, %rsi
callq 0x1241b
movl %eax, %r12d
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xe918
movq %rbx, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0xe9c5
movl %r12d, %eax
addq %rax, %r13
incl %r15d
jmp 0x12f3d
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq