	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_params
_convert_params:                        ## @convert_params
	.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	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movl	4(%rdi), %r15d
	movl	%r14d, %r13d
	subl	%r15d, %r13d
	movq	%rsi, %rax
	cmpl	$7, %r13d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jb	LBB0_3
## %bb.1:
	leal	(,%r13,4), %edi
	movq	%rcx, %r13
	callq	_heap_alloc
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %r14d
	je	LBB0_12
## %bb.4:
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	negq	%r14
	xorl	%r12d, %r12d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %eax
	addl	(%rbx), %eax
	leal	(%r12,%rax), %edi
	decl	%edi
	movq	%r13, %rsi
	callq	_variant_to_jsval
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	decq	%r12
	addq	$4, %r13
	cmpq	%r12, %r14
	jne	LBB0_5
LBB0_12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	testl	%r12d, %r12d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	negq	%r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx,%r12,4), %edi
	callq	_jsval_release
	decq	%r12
	jne	LBB0_8
LBB0_9:
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_heap_free
	jmp	LBB0_14
LBB0_2:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_convert_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_params
_convert_params:                        ; @convert_params
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldp	w24, w25, [x0]
	sub	w26, w24, w25
	mov	x20, x1
	cmp	w26, #7
	b.lo	LBB0_2
; %bb.1:
	lsl	w0, w26, #2
	bl	_heap_alloc
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_2:
	cmp	w24, w25
	b.eq	LBB0_6
; %bb.3:
	mov	x27, #0
	sub	x28, x27, w26, uxtw
	mov	x25, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #8]
	ldr	w9, [x23]
	add	w8, w8, w9
	add	w8, w27, w8
	sub	w0, w8, #1
	mov	x1, x25
	bl	_variant_to_jsval
	mov	x24, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x27, x27, #1
	add	x25, x25, #4
	cmp	x28, x27
	b.ne	LBB0_4
LBB0_6:
	str	w26, [x22]
	str	x20, [x21]
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	cbz	w27, LBB0_10
; %bb.8:
	neg	x8, x27
	sub	x21, x20, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x22, x8, #1
	ldr	w0, [x21, x8, lsl #2]
	bl	_jsval_release
	mov	x8, x22
	cbnz	x22, LBB0_9
LBB0_10:
	cmp	x20, x19
	b.eq	LBB0_14
; %bb.11:
	mov	x0, x20
	bl	_heap_free
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_13:
	ldr	w24, [x8]
LBB0_14:
	mov	x0, x24
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_convert_params
.subsections_via_symbols
