	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Array_slice
_Array_slice:                           ## @Array_slice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-80(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_get_length
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_1
LBB0_30:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.4:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_to_number
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.5:
	movl	-44(%rbp), %edi
	callq	_floor
	movl	%eax, -44(%rbp)
	movl	%eax, %ecx
	negl	%ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, -48(%rbp)
	jl	LBB0_10
## %bb.6:
	movl	%eax, %edi
	callq	_isnan
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movl	-44(%rbp), %eax
	movl	-48(%rbp), %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	jmp	LBB0_10
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_8:
	addl	%eax, %ebx
LBB0_10:
	cmpl	$2, %r12d
	jb	LBB0_3
## %bb.11:
	movl	4(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_to_number
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.12:
	movl	-44(%rbp), %edi
	callq	_floor
	movl	%eax, -44(%rbp)
	movl	%eax, %edx
	negl	%edx
	movl	-48(%rbp), %ecx
	xorl	%r12d, %r12d
	cmpl	%edx, %ecx
	jl	LBB0_17
## %bb.13:
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	jmp	LBB0_16
LBB0_3:
	movl	-48(%rbp), %r12d
LBB0_17:
	xorl	%eax, %eax
	movl	%r12d, %esi
	subl	%ebx, %esi
	cmovlel	%eax, %esi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	callq	_create_array
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.18:
	subl	%ebx, %r12d
	jle	LBB0_26
## %bb.19:
	movq	%rbx, %r15
	xorl	%ebx, %ebx
	movq	_DISP_E_UNKNOWNNAME@GOTPCREL(%rip), %r13
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r14d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	je	LBB0_26
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movq	-80(%rbp), %rdi
	leaq	-52(%rbp), %rdx
	callq	_jsdisp_get_idx
	cmpl	(%r13), %eax
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-64(%rbp), %rdi
	movl	-52(%rbp), %edx
	movl	%ebx, %esi
	callq	_jsdisp_propput_idx
	movl	%eax, %r14d
	movl	-52(%rbp), %edi
	callq	_jsval_release
	jmp	LBB0_23
LBB0_26:
	movq	-64(%rbp), %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:
	callq	_jsval_obj
	movl	%eax, (%rbx)
	jmp	LBB0_29
LBB0_28:
	callq	_jsdisp_release
LBB0_29:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_30
LBB0_24:
	movq	-64(%rbp), %rdi
	callq	_jsdisp_release
	jmp	LBB0_30
LBB0_14:
	addl	%eax, %ecx
LBB0_16:
	movl	%ecx, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_DISP_E_UNKNOWNNAME,4,2         ## @DISP_E_UNKNOWNNAME
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_Array_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Array_slice
_Array_slice:                           ; @Array_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_get_length
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	cbz	w22, LBB0_7
; %bb.3:
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x20
	bl	_to_number
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.4:
	ldr	w0, [sp, #12]
	bl	_floor
	mov	w24, #0
	str	w0, [sp, #12]
	ldr	w8, [sp, #8]
	neg	w9, w0
	cmp	w8, w9
	b.lt	LBB0_11
; %bb.5:
	bl	_isnan
	cbz	x0, LBB0_8
; %bb.6:
	mov	w24, #0
	b	LBB0_11
LBB0_7:
	mov	w24, #0
	b	LBB0_14
LBB0_8:
	ldp	w9, w8, [sp, #8]
	tbnz	w8, #31, LBB0_10
; %bb.9:
	cmp	w8, w9
	csel	w24, w8, w9, lt
	b	LBB0_11
LBB0_10:
	add	w24, w9, w8
LBB0_11:
	cmp	w22, #2
	b.lo	LBB0_14
; %bb.12:
	ldr	w1, [x21, #4]
	add	x2, sp, #12
	mov	x0, x20
	bl	_to_number
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.13:
	ldr	w0, [sp, #12]
	bl	_floor
	str	w0, [sp, #12]
	ldr	w8, [sp, #8]
	cmp	w0, w8
	csel	w9, w0, w8, lt
	add	w10, w8, w0
	tst	w0, #0x80000000
	csel	w9, w9, w10, eq
	neg	w10, w0
	cmp	w8, w10
	csel	w21, wzr, w9, lt
	b	LBB0_15
LBB0_14:
	ldr	w21, [sp, #8]
LBB0_15:
	subs	w8, w21, w24
	csel	w1, w8, wzr, gt
	add	x2, sp, #24
	mov	x0, x20
	bl	_create_array
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.16:
	subs	w21, w21, w24
	b.le	LBB0_23
; %bb.17:
	mov	w20, #0
Lloh2:
	adrp	x22, _DISP_E_UNKNOWNNAME@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DISP_E_UNKNOWNNAME@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x23
	bl	_FAILED
	cbnz	x0, LBB0_27
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.eq	LBB0_23
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	add	w1, w24, w20
	ldr	x0, [sp, #16]
	add	x2, sp, #4
	bl	_jsdisp_get_idx
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x23, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [sp, #24]
	ldr	w2, [sp, #4]
	mov	x1, x20
	bl	_jsdisp_propput_idx
	mov	x23, x0
	ldr	w0, [sp, #4]
	bl	_jsval_release
	b	LBB0_18
LBB0_23:
	ldr	x0, [sp, #24]
	cbz	x19, LBB0_25
; %bb.24:
	bl	_jsval_obj
	str	w0, [x19]
	b	LBB0_26
LBB0_25:
	bl	_jsdisp_release
LBB0_26:
Lloh4:
	adrp	x8, _S_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	b	LBB0_1
LBB0_27:
	ldr	x0, [sp, #24]
	bl	_jsdisp_release
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_DISP_E_UNKNOWNNAME,4,2         ; @DISP_E_UNKNOWNNAME
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_Array_slice
.subsections_via_symbols
