// File: /workspace/github_c_makefile_star2_O1/ccxvii[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), %ecx
leal 0x1(%rcx), %eax
leaq 0x271db(%rip), %rdx     # 0x403f8
cmpl $-0x1, %ecx
jl 0x19237
cmpl 0x140(%rbx), %eax
jge 0x19237
movl %eax, %edx
shlq $0x4, %rdx
addq 0x148(%rbx), %rdx
cmpb $0x1, 0xf(%rdx)
jne 0x192a1
movq %rbx, %rdi
callq 0x135de
movslq 0x144(%rbx), %rax
leaq 0x271a5(%rip), %rsi     # 0x403f8
testq %rax, %rax
js 0x1926e
cmpl 0x140(%rbx), %eax
jge 0x1926e
shlq $0x4, %rax
addq 0x148(%rbx), %rax
movq %rax, %rsi
movq %rbx, %rdi
callq 0x1533b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13665
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 0x1393c
leaq 0x27150(%rip), %rdx     # 0x403f8
cmpl $-0x1, %ecx
jl 0x192c2
cmpl 0x140(%rbx), %eax
jge 0x192c2
movl %eax, %edx
shlq $0x4, %rdx
addq 0x148(%rbx), %rdx
cmpb $0x7, 0xf(%rdx)
jne 0x1949c
movq (%rdx), %rax
cmpl $0x9, (%rax)
jne 0x1949c
movq %rbx, %rdi
callq 0x2925f
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x15720
movq %rax, 0x8(%rsp)
movl 0x144(%rbx), %ecx
leaq 0x270f6(%rip), %rax     # 0x403f8
cmpl $-0x2, %ecx
jl 0x1931f
addl $0x2, %ecx
cmpl 0x140(%rbx), %ecx
jge 0x1931f
movl %ecx, %eax
shlq $0x4, %rax
addq 0x148(%rbx), %rax
movq %r14, 0x10(%rsp)
movl $0x40000000, %ebp       # imm = 0x40000000
cmpb $0x1, 0xf(%rax)
je 0x1933e
movq %rbx, %rdi
movl $0x2, %esi
callq 0x409b
movl %eax, %ebp
movq %rbx, %rdi
callq 0x135de
movl %ebp, 0x4(%rsp)
testl %ebp, %ebp
je 0x196a1
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x3200
testq %rax, %rax
je 0x1963c
jle 0x19677
movq %rax, %r13
addq %r12, %r13
movl 0x4(%rsp), %eax
negl %eax
movq %rax, 0x18(%rsp)
xorl %r15d, %r15d
movq %r12, %r14
movl %r15d, (%rsp)
movq %r14, %r15
movq %r14, %rbp
movq 0x8(%rsp), %rax
movq (%rax), %rsi
xorl %r8d, %r8d
cmpq %r12, %rbp
seta %r8b
shll $0x2, %r8d
movq %rbx, %rdi
movq %rbp, %rdx
leaq 0x30(%rsp), %rcx
callq 0x292cf
testl %eax, %eax
jne 0x1966e
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %r14
cmpq %r14, %rdx
jne 0x193de
cmpq %r15, %rdx
jne 0x193de
incq %rbp
cmpq %r13, %rbp
jb 0x1938f
jmp 0x1966e
movl (%rsp), %eax
cmpl 0x4(%rsp), %eax
je 0x196a1
subl %r15d, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13802
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl (%rsp), %r15d
movl %r15d, %edx
callq 0x1393c
cmpl $0x2, 0x30(%rsp)
jl 0x19486
movl %r15d, %ecx
movq 0x18(%rsp), %rax
movq %rcx, 0x20(%rsp)
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movl $0x1, %ebp
leaq 0x50(%rsp), %r12
movq 0x28(%rsp), %rax
addl %ebp, %eax
je 0x196a1
movq 0x20(%rsp), %rax
leaq (%rax,%rbp), %r15
movq -0x8(%r12), %rsi
movl (%r12), %edx
subl %esi, %edx
movq %rbx, %rdi
callq 0x13802
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r15d, %edx
callq 0x1393c
incq %rbp
movslq 0x30(%rsp), %rax
addq $0x10, %r12
cmpq %rax, %rbp
jl 0x19433
movl (%rsp), %r15d
addl %ebp, %r15d
jmp 0x19489
incl %r15d
cmpq %r13, %r14
movq 0x10(%rsp), %r12
jb 0x19385
jmp 0x1967d
movq %rbx, %rdi
callq 0x2925f
movq %rax, %r14
movl 0x144(%rbx), %eax
leaq 0x26f44(%rip), %r12     # 0x403f8
movq %r12, %rsi
cmpl $-0x1, %eax
jl 0x194d6
incl %eax
movq %r12, %rsi
cmpl 0x140(%rbx), %eax
jge 0x194d6
movl %eax, %esi
shlq $0x4, %rsi
addq 0x148(%rbx), %rsi
movq %rbx, %rdi
callq 0x1533b
movq %rax, %r15
movl 0x144(%rbx), %eax
cmpl $-0x2, %eax
jl 0x19505
addl $0x2, %eax
cmpl 0x140(%rbx), %eax
jge 0x19505
movl %eax, %r12d
shlq $0x4, %r12
addq 0x148(%rbx), %r12
movl $0x40000000, %ebp       # imm = 0x40000000
cmpb $0x1, 0xf(%r12)
je 0x19521
movq %rbx, %rdi
movl $0x2, %esi
callq 0x409b
movl %eax, %ebp
movq %rbx, %rdi
callq 0x135de
testl %ebp, %ebp
je 0x196a1
movq %r15, %rdi
callq 0x3200
testl %eax, %eax
je 0x195d3
testq %r14, %r14
setne %cl
testl %ebp, %ebp
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x196a1
cltq
movq %rax, 0x8(%rsp)
xorl %r12d, %r12d
movq %r14, %rdi
movq %r15, %rsi
callq 0x3260
testq %rax, %rax
je 0x1959f
movq %rax, %r13
movl %r13d, %edx
subl %r14d, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13802
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
callq 0x1393c
addq 0x8(%rsp), %r13
movq %r13, %r14
jmp 0x195bd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13665
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
callq 0x1393c
xorl %r14d, %r14d
testq %r14, %r14
je 0x196a1
incl %r12d
cmpl %ebp, %r12d
jl 0x19561
jmp 0x196a1
cmpb $0x0, (%r14)
setne %al
testl %ebp, %ebp
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x196a1
movl $0x1, %r15d
leal -0x1(%r15), %r12d
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x18750
movl %eax, %r13d
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x13802
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %r12d, %edx
callq 0x1393c
movl %r13d, %eax
cmpb $0x0, (%r14,%rax)
je 0x196a1
addq %rax, %r14
leal 0x1(%r15), %eax
cmpl %ebp, %r15d
movl %eax, %r15d
jl 0x195f0
jmp 0x196a1
movq 0x8(%rsp), %rax
movq (%rax), %rsi
leaq 0x30(%rsp), %rcx
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r12, %rdx
xorl %r8d, %r8d
callq 0x292cf
testl %eax, %eax
je 0x196a1
leaq 0x1ad22(%rip), %rsi     # 0x34386
movq %rbx, %rdi
callq 0x67c1
jmp 0x19692
movq %r15, %r14
movl (%rsp), %r15d
jmp 0x1967d
xorl %r15d, %r15d
movq %r12, %r14
cmpl 0x4(%rsp), %r15d
je 0x196a1
movl %r15d, %ebp
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13665
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %ebp, %edx
callq 0x1393c
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq