// File: /workspace/github_c_makefile_star2_O3/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
movl 0x144(%rdi), %eax
cmpl $-0x1, %eax
jl 0x18ceb
incl %eax
cmpl 0x140(%rbx), %eax
jge 0x18ceb
movq 0x148(%rbx), %rcx
movl %eax, %eax
movq %rax, %rdx
shlq $0x4, %rdx
cmpb $0x1, 0xf(%rcx,%rdx)
je 0x18cf4
shlq $0x4, %rax
addq 0x148(%rbx), %rax
jmp 0x18d5f
cmpb $0x1, 0x27715(%rip)     # 0x40407
jne 0x18d58
movq %rbx, %rdi
callq 0x1318e
movslq 0x144(%rbx), %rax
leaq 0x276ee(%rip), %rsi     # 0x403f8
testq %rax, %rax
js 0x18d25
cmpl 0x140(%rbx), %eax
jge 0x18d25
shlq $0x4, %rax
addq 0x148(%rbx), %rax
movq %rax, %rsi
movq %rbx, %rdi
callq 0x14e64
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13215
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x134ed
leaq 0x27699(%rip), %rax     # 0x403f8
cmpb $0x7, 0xf(%rax)
jne 0x18dd8
movq (%rax), %rax
cmpl $0x9, (%rax)
jne 0x18dd8
movq %rbx, %rdi
callq 0x28e6e
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1524a
movq %rax, 0x8(%rsp)
movl 0x144(%rbx), %ecx
leaq 0x27661(%rip), %rax     # 0x403f8
cmpl $-0x2, %ecx
jl 0x18db4
addl $0x2, %ecx
cmpl 0x140(%rbx), %ecx
jge 0x18db4
movl %ecx, %eax
shlq $0x4, %rax
addq 0x148(%rbx), %rax
movq %r14, 0x10(%rsp)
cmpb $0x1, 0xf(%rax)
jne 0x18f60
movq %rbx, %rdi
callq 0x1318e
movl $0x40000000, 0x4(%rsp)  # imm = 0x40000000
jmp 0x18f83
movq %rbx, %rdi
callq 0x28e6e
movq %rax, %r14
movl 0x144(%rbx), %eax
leaq 0x27608(%rip), %r12     # 0x403f8
movq %r12, %rsi
cmpl $-0x1, %eax
jl 0x18e12
incl %eax
movq %r12, %rsi
cmpl 0x140(%rbx), %eax
jge 0x18e12
movl %eax, %esi
shlq $0x4, %rsi
addq 0x148(%rbx), %rsi
movq %rbx, %rdi
callq 0x14e64
movq %rax, 0x8(%rsp)
movl 0x144(%rbx), %eax
cmpl $-0x2, %eax
jl 0x18e43
addl $0x2, %eax
cmpl 0x140(%rbx), %eax
jge 0x18e43
movl %eax, %r12d
shlq $0x4, %r12
addq 0x148(%rbx), %r12
cmpb $0x1, 0xf(%r12)
jne 0x18e5a
movq %rbx, %rdi
callq 0x1318e
movl $0x40000000, %ebp       # imm = 0x40000000
jmp 0x18e79
movq %rbx, %rdi
movl $0x2, %esi
callq 0x403b
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1318e
testl %ebp, %ebp
je 0x1914d
movq 0x8(%rsp), %rdi
callq 0x3200
testl %eax, %eax
je 0x18ef0
testq %r14, %r14
setne %cl
testl %ebp, %ebp
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1914d
movslq %eax, %r15
xorl %r12d, %r12d
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x3260
testq %rax, %rax
je 0x190c2
movq %rax, %r13
movl %r13d, %edx
subl %r14d, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x133b3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
callq 0x134ed
addq %r15, %r13
incl %r12d
movq %r13, %r14
cmpl %r12d, %ebp
jne 0x18ea3
jmp 0x1914d
cmpb $0x0, (%r14)
setne %al
testl %ebp, %ebp
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1914d
movl $0x1, %r15d
leal -0x1(%r15), %r12d
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x18239
movl %eax, %r13d
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x133b3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
callq 0x134ed
movl %r13d, %eax
cmpb $0x0, (%r14,%rax)
je 0x1914d
addq %rax, %r14
leal 0x1(%r15), %eax
cmpl %ebp, %r15d
movl %eax, %r15d
jl 0x18f0d
jmp 0x1914d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x403b
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1318e
movl %ebp, 0x4(%rsp)
testl %ebp, %ebp
je 0x1914d
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x3200
testq %rax, %rax
je 0x190dd
jle 0x1912d
movq %rax, %r13
addq %r14, %r13
movl 0x4(%rsp), %eax
negl %eax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
movq %r14, %r12
movl %ebp, (%rsp)
movq %r12, %r15
movq %r12, %rbp
movq 0x8(%rsp), %rax
movq (%rax), %rsi
xorl %r8d, %r8d
cmpq %r14, %rbp
seta %r8b
shll $0x2, %r8d
movq %rbx, %rdi
movq %rbp, %rdx
leaq 0x30(%rsp), %rcx
callq 0x28ed6
testl %eax, %eax
jne 0x19117
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %r12
cmpq %r12, %rdx
jne 0x1900d
cmpq %r15, %rdx
jne 0x1900d
incq %rbp
cmpq %r13, %rbp
jb 0x18fbe
jmp 0x19117
movl (%rsp), %eax
cmpl 0x4(%rsp), %eax
je 0x1914d
subl %r15d, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x133b3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl (%rsp), %ebp
movl %ebp, %edx
callq 0x134ed
cmpl $0x2, 0x30(%rsp)
jl 0x190b0
movl %ebp, %ecx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rsp)
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movl $0x1, %ebp
leaq 0x50(%rsp), %r14
movq 0x28(%rsp), %rax
addl %ebp, %eax
je 0x1914d
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %r15
movq -0x8(%r14), %rsi
movl (%r14), %edx
subl %esi, %edx
movq %rbx, %rdi
callq 0x133b3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r15d, %edx
callq 0x134ed
incq %rbp
movslq 0x30(%rsp), %rax
addq $0x10, %r14
cmpq %rax, %rbp
jl 0x1905f
movl (%rsp), %eax
addl %ebp, %eax
movl %eax, %ebp
jmp 0x190b2
incl %ebp
cmpq %r13, %r12
movq 0x10(%rsp), %r14
jb 0x18fb5
jmp 0x1911d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13215
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
jmp 0x18d42
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
movq %r14, %rdx
xorl %r8d, %r8d
callq 0x28ed6
testl %eax, %eax
je 0x1914d
leaq 0x1b2b3(%rip), %rsi     # 0x343b6
movq %rbx, %rdi
callq 0x670c
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
jmp 0x19148
movq %r15, %r12
movl (%rsp), %ebp
movq %r12, 0x10(%rsp)
movl %ebp, %r14d
cmpl 0x4(%rsp), %ebp
jne 0x19130
jmp 0x1914d
xorl %r14d, %r14d
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x13215
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r14d, %edx
callq 0x134ed
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq