	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VBArray_getItem
_VBArray_getItem:                       ## @VBArray_getItem
	.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, %r12
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_vbarray_this
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r13
	movl	(%rax), %edi
	callq	_SafeArrayGetDim
	cmpl	%r15d, %eax
	jbe	LBB0_2
## %bb.16:
	movq	_JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_range_error              ## TAILCALL
LBB0_15:
	movq	_JS_E_VBARRAY_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leal	(,%r15,4), %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.4:
	movl	%r15d, %r15d
	shlq	$2, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12), %esi
	leaq	(%r14,%r12), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_int32
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %r12
	cmpq	%r12, %r15
	jne	LBB0_7
LBB0_9:
	movl	(%r13), %edi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rsi
	callq	_SafeArrayGetElement
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_heap_free
	movq	_DISP_E_BADINDEX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.10:
	movq	_JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_throw_range_error
	movq	%rax, %rbx
	jmp	LBB0_14
LBB0_5:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_14
LBB0_11:
	movq	%rbx, %rdi
	callq	_FAILED
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_variant_to_jsval
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_VariantClear
	jmp	LBB0_14
LBB0_8:
	movq	%r14, %rdi
	callq	_heap_free
LBB0_14:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_JS_E_VBARRAY_EXPECTED,4,2      ## @JS_E_VBARRAY_EXPECTED
	.comm	_JS_E_SUBSCRIPT_OUT_OF_RANGE,4,2 ## @JS_E_SUBSCRIPT_OUT_OF_RANGE
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_DISP_E_BADINDEX,8,3            ## @DISP_E_BADINDEX
	.no_dead_strip	_VBArray_getItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VBArray_getItem
_VBArray_getItem:                       ; @VBArray_getItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	bl	_vbarray_this
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	w0, [x0]
	bl	_SafeArrayGetDim
	cmp	w0, w23
	b.ls	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_throw_range_error
LBB0_3:
Lloh5:
	adrp	x8, _JS_E_VBARRAY_EXPECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JS_E_VBARRAY_EXPECTED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_throw_type_error
LBB0_4:
	lsl	w0, w23, #2
	bl	_heap_alloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x24, x0
	cbz	w23, LBB0_9
; %bb.6:
	mov	x25, #0
	mov	w8, w23
	lsl	x26, x8, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, x25]
	add	x2, x24, x25
	mov	x0, x20
	bl	_to_int32
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #4
	cmp	x26, x25
	b.ne	LBB0_7
LBB0_9:
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	x1, x24
	bl	_SafeArrayGetElement
	mov	x23, x0
	mov	x0, x24
	bl	_heap_free
Lloh8:
	adrp	x8, _DISP_E_BADINDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DISP_E_BADINDEX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_12
; %bb.10:
Lloh11:
	adrp	x8, _JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _JS_E_SUBSCRIPT_OUT_OF_RANGE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_throw_range_error
	mov	x23, x0
	b	LBB0_16
LBB0_11:
Lloh14:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh16:
	ldr	x23, [x8]
	b	LBB0_16
LBB0_12:
	mov	x0, x23
	bl	_FAILED
	cbz	x19, LBB0_16
; %bb.13:
	cbnz	x0, LBB0_16
; %bb.14:
	add	x0, sp, #12
	mov	x1, x19
	bl	_variant_to_jsval
	mov	x23, x0
	add	x0, sp, #12
	bl	_VariantClear
	b	LBB0_16
LBB0_15:
	mov	x0, x24
	bl	_heap_free
LBB0_16:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_JS_E_VBARRAY_EXPECTED,4,2      ; @JS_E_VBARRAY_EXPECTED
	.comm	_JS_E_SUBSCRIPT_OUT_OF_RANGE,4,2 ; @JS_E_SUBSCRIPT_OUT_OF_RANGE
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_DISP_E_BADINDEX,8,3            ; @DISP_E_BADINDEX
	.no_dead_strip	_VBArray_getItem
.subsections_via_symbols
