	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Array_pop
_Array_pop:                             ## @Array_pop
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	leaq	-40(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_get_length
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_1
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	-28(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.6:
	decl	%esi
	movl	%esi, -28(%rbp)
	movq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rdx
	callq	_jsdisp_get_idx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	-40(%rbp), %rdi
	movl	-28(%rbp), %esi
	callq	_jsdisp_delete_idx
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_2:
	movq	-40(%rbp), %rdi
	xorl	%esi, %esi
	callq	_set_length
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %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), %rbx
	jmp	LBB0_17
LBB0_8:
	movq	_DISP_E_UNKNOWNNAME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_17
## %bb.9:
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, -32(%rbp)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rdi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-40(%rbp), %rdi
	movl	-28(%rbp), %esi
	callq	_set_length
	movq	%rax, %rbx
LBB0_12:
	movq	%rbx, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movl	-32(%rbp), %edi
LBB0_14:
	callq	_jsval_release
	jmp	LBB0_17
LBB0_15:
	movl	-32(%rbp), %edi
	testq	%r14, %r14
	je	LBB0_14
## %bb.16:
	movl	%edi, (%r14)
	jmp	LBB0_17
	.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_pop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Array_pop
_Array_pop:                             ; @Array_pop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	add	x2, sp, #8
	mov	x3, sp
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.3:
	sub	w1, w8, #1
	str	w1, [sp]
	ldr	x0, [sp, #8]
	add	x2, sp, #4
	bl	_jsdisp_get_idx
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	bl	_jsdisp_delete_idx
	mov	x20, x0
	b	LBB0_11
LBB0_5:
	ldr	x0, [sp, #8]
	mov	w1, #0
	bl	_set_length
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_1
; %bb.6:
	cbz	x19, LBB0_8
; %bb.7:
	bl	_jsval_undefined
	str	w0, [x19]
LBB0_8:
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	b	LBB0_1
LBB0_9:
Lloh5:
	adrp	x8, _DISP_E_UNKNOWNNAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DISP_E_UNKNOWNNAME@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_1
; %bb.10:
	bl	_jsval_undefined
	str	w0, [sp, #4]
Lloh8:
	adrp	x8, _S_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
LBB0_11:
	mov	x0, x20
	bl	_SUCCEEDED
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	bl	_set_length
	mov	x20, x0
LBB0_13:
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_16
; %bb.14:
	ldr	w0, [sp, #4]
LBB0_15:
	bl	_jsval_release
	b	LBB0_1
LBB0_16:
	ldr	w0, [sp, #4]
	cbz	x19, LBB0_15
; %bb.17:
	str	w0, [x19]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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_pop
.subsections_via_symbols
