	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Array_shift
_Array_shift:                           ## @Array_shift
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_length
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_1
LBB0_25:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, -44(%rbp)
	movq	-56(%rbp), %rdi
	je	LBB0_2
## %bb.6:
	leaq	-60(%rbp), %rdx
	xorl	%esi, %esi
	callq	_jsdisp_get_idx
	movq	%rax, %r13
	movq	_DISP_E_UNKNOWNNAME@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, -60(%rbp)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_8:
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:
	cmpl	$2, -44(%rbp)
	jl	LBB0_18
## %bb.10:
	movl	$2, %ebx
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %esi
	movq	-56(%rbp), %rdi
	movq	%r15, %rdx
	callq	_jsdisp_get_idx
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdi
	leal	-2(%rbx), %esi
	callq	_jsdisp_delete_idx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rdi
	leal	-2(%rbx), %esi
	movl	-64(%rbp), %edx
	callq	_jsdisp_propput_idx
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r13
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	1(%rbx), %eax
	cmpl	-44(%rbp), %ebx
	movl	%eax, %ebx
	jl	LBB0_11
LBB0_18:
	movq	%r13, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	decl	%esi
	callq	_jsdisp_delete_idx
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	decl	%esi
	callq	_set_length
	movq	%rax, %r13
LBB0_21:
	movq	%r13, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
## %bb.22:
	movl	-60(%rbp), %edi
	testq	%r14, %r14
	je	LBB0_24
## %bb.23:
	movl	%edi, (%r14)
	jmp	LBB0_25
LBB0_2:
	xorl	%esi, %esi
	callq	_set_length
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_25
## %bb.3:
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, (%r14)
LBB0_5:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_25
LBB0_24:
	callq	_jsval_release
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_S_OK,8,3                       ## @S_OK
	.comm	_DISP_E_UNKNOWNNAME,8,3         ## @DISP_E_UNKNOWNNAME
	.no_dead_strip	_Array_shift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Array_shift
_Array_shift:                           ; @Array_shift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x20, x1
	mov	x21, x0
	str	wzr, [sp, #20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x21
	mov	x1, x20
	bl	_get_length
	mov	x20, x0
	bl	_FAILED
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w8, [sp, #20]
	ldr	x0, [sp, #24]
	cbz	w8, LBB0_20
; %bb.3:
	add	x2, sp, #12
	mov	w1, #0
	bl	_jsdisp_get_idx
	mov	x20, x0
Lloh2:
	adrp	x21, _DISP_E_UNKNOWNNAME@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DISP_E_UNKNOWNNAME@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	bl	_jsval_undefined
	str	w0, [sp, #12]
Lloh4:
	adrp	x8, _S_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
LBB0_5:
	mov	x0, x20
	bl	_SUCCEEDED
	cbz	x0, LBB0_14
; %bb.6:
	ldr	w8, [sp, #20]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.7:
	mov	w22, #2
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #24]
	sub	w1, w22, #2
	bl	_jsdisp_delete_idx
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x20, x0
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_SUCCEEDED
	ldr	w8, [sp, #20]
	cmp	x0, #0
	ccmp	w22, w8, #0, ne
	add	w22, w22, #1
	b.ge	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w22, #1
	ldr	x0, [sp, #24]
	add	x2, sp, #16
	bl	_jsdisp_get_idx
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #24]
	sub	w1, w22, #2
	ldr	w2, [sp, #16]
	bl	_jsdisp_propput_idx
	b	LBB0_9
LBB0_14:
	mov	x0, x20
	bl	_SUCCEEDED
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x0, [sp, #24]
	ldr	w8, [sp, #20]
	sub	w1, w8, #1
	bl	_jsdisp_delete_idx
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x0, [sp, #24]
	ldr	w8, [sp, #20]
	sub	w1, w8, #1
	bl	_set_length
	mov	x20, x0
LBB0_17:
	mov	x0, x20
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.18:
	ldr	w0, [sp, #12]
	cbz	x19, LBB0_24
; %bb.19:
	str	w0, [x19]
	b	LBB0_1
LBB0_20:
	mov	w1, #0
	bl	_set_length
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.21:
	cbz	x19, LBB0_23
; %bb.22:
	bl	_jsval_undefined
	str	w0, [x19]
LBB0_23:
Lloh7:
	adrp	x8, _S_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh9:
	ldr	x20, [x8]
	b	LBB0_1
LBB0_24:
	bl	_jsval_release
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_S_OK,8,3                       ; @S_OK
	.comm	_DISP_E_UNKNOWNNAME,8,3         ; @DISP_E_UNKNOWNNAME
	.no_dead_strip	_Array_shift
.subsections_via_symbols
