	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function array_to_args
_array_to_args:                         ## @array_to_args
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_lengthW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_jsdisp_propget_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movl	-48(%rbp), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_to_uint32
	movq	%rax, %rbx
	movl	-48(%rbp), %edi
	callq	_jsval_release
	movq	%rbx, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movl	-44(%rbp), %edi
	shll	$2, %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_jsval_undefined
	movl	%eax, (%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	-44(%rbp), %rcx
	addq	$4, %r12
	cmpq	%rcx, %r14
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r15
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_jsdisp_get_idx
	movq	%rax, %rbx
	movq	_DISP_E_UNKNOWNNAME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	testl	%r14d, %r14d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r14,%r12), %edi
	callq	_jsval_release
	addq	$-4, %r12
	jne	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_heap_free
	jmp	LBB0_16
LBB0_12:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_14:
	movl	%ecx, (%r12)
	movq	%rax, (%r15)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rbx
LBB0_16:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lengthW,4,2                    ## @lengthW
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_DISP_E_UNKNOWNNAME,8,3         ## @DISP_E_UNKNOWNNAME
	.comm	_S_OK,8,3                       ## @S_OK
	.no_dead_strip	_array_to_args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function array_to_args
_array_to_args:                         ; @array_to_args
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _lengthW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lengthW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_jsdisp_propget_name
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.1:
	ldr	w1, [sp, #12]
	add	x2, sp, #8
	mov	x0, x22
	bl	_to_uint32
	mov	x23, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
	mov	x0, x23
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.2:
	ldr	w8, [sp, #8]
	lsl	w0, w8, #2
	bl	_heap_alloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x26, #0
	mov	x24, #0
Lloh3:
	adrp	x27, _DISP_E_UNKNOWNNAME@GOTPAGE
Lloh4:
	ldr	x27, [x27, _DISP_E_UNKNOWNNAME@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_jsval_undefined
	str	w0, [x25]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #8]
	add	x26, x26, #4
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x22, x26
	mov	x0, x21
	mov	x1, x24
	mov	x2, x25
	bl	_jsdisp_get_idx
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x23, x0
	bl	_FAILED
	cbz	x0, LBB0_6
; %bb.9:
	cbz	w24, LBB0_12
; %bb.10:
	sub	x19, x22, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x26]
	bl	_jsval_release
	subs	x26, x26, #4
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x22
	bl	_heap_free
	b	LBB0_16
LBB0_13:
	str	w8, [x20]
	str	x22, [x19]
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_15:
	ldr	x23, [x8]
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lengthW,4,2                    ; @lengthW
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_DISP_E_UNKNOWNNAME,8,3         ; @DISP_E_UNKNOWNNAME
	.comm	_S_OK,8,3                       ; @S_OK
	.no_dead_strip	_array_to_args
.subsections_via_symbols
