	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function VBArray_toArray
_VBArray_toArray:                       ## @VBArray_toArray
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_vbarray_this
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_SafeArrayGetDim
	testl	%eax, %eax
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-68(%rbp), %r12
	leaq	-72(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_SafeArrayGetLBound
	movl	(%r14), %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_SafeArrayGetUBound
	movl	-72(%rbp), %eax
	subl	-68(%rbp), %eax
	incl	%eax
	imull	%eax, %r15d
	movl	(%r14), %edi
	callq	_SafeArrayGetDim
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_4:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_SafeArrayAccessData
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.5:
	leaq	-64(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_create_array
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movl	(%r14), %edi
	callq	_SafeArrayUnaccessData
	jmp	LBB0_17
LBB0_19:
	movq	_JS_E_VBARRAY_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.7:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rsi
	callq	_variant_to_jsval
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rdi
	movl	-44(%rbp), %edx
	movl	%ebx, %esi
	callq	_jsdisp_propput_idx
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_jsval_release
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rdi
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_8
LBB0_13:
	movl	(%r14), %edi
	callq	_SafeArrayUnaccessData
	movq	-64(%rbp), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	callq	_jsval_obj
	movl	%eax, (%rbx)
	jmp	LBB0_16
LBB0_11:
	movl	(%r14), %edi
	callq	_SafeArrayUnaccessData
	movq	-64(%rbp), %rdi
	callq	_jsdisp_release
	jmp	LBB0_17
LBB0_15:
	callq	_jsdisp_release
LBB0_16:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$56, %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	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_VBArray_toArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function VBArray_toArray
_VBArray_toArray:                       ; @VBArray_toArray
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_vbarray_this
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_SafeArrayGetDim
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, #0
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w22, #1
	ldr	w0, [x20]
	mov	x2, sp
	mov	x1, x22
	bl	_SafeArrayGetLBound
	ldr	w0, [x20]
	add	x2, sp, #4
	mov	x1, x22
	bl	_SafeArrayGetUBound
	ldp	w9, w8, [sp]
	sub	w8, w8, w9
	madd	w23, w23, w8, w23
	ldr	w0, [x20]
	bl	_SafeArrayGetDim
	cmp	w22, w0
	b.lt	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _JS_E_VBARRAY_EXPECTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JS_E_VBARRAY_EXPECTED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	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
	add	sp, sp, #96
	b	_throw_type_error
LBB0_5:
	mov	w23, #1
LBB0_6:
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_SafeArrayAccessData
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_20
; %bb.7:
	add	x2, sp, #24
	mov	x0, x21
	mov	w1, #0
	bl	_create_array
	mov	x22, x0
	bl	_FAILED
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x20]
	bl	_SafeArrayUnaccessData
	b	LBB0_20
LBB0_9:
	cmp	w23, #1
	b.lt	LBB0_15
; %bb.10:
	mov	w21, #0
	ldr	x0, [sp, #8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #20
	bl	_variant_to_jsval
	mov	x22, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [sp, #24]
	ldr	w2, [sp, #20]
	mov	x1, x21
	bl	_jsdisp_propput_idx
	mov	x22, x0
	ldr	w0, [sp, #20]
	bl	_jsval_release
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_FAILED
	cbnz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	str	x0, [sp, #8]
	add	w21, w21, #1
	cmp	w23, w21
	b.ne	LBB0_11
LBB0_15:
	ldr	w0, [x20]
	bl	_SafeArrayUnaccessData
	ldr	x0, [sp, #24]
	cbz	x19, LBB0_18
; %bb.16:
	bl	_jsval_obj
	str	w0, [x19]
	b	LBB0_19
LBB0_17:
	ldr	w0, [x20]
	bl	_SafeArrayUnaccessData
	ldr	x0, [sp, #24]
	bl	_jsdisp_release
	b	LBB0_20
LBB0_18:
	bl	_jsdisp_release
LBB0_19:
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
LBB0_20:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_VBArray_toArray
.subsections_via_symbols
