	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enumvar_get_next_item
_enumvar_get_next_item:                 ## @enumvar_get_next_item
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_jsval_release
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_VariantInit
	movl	16(%rbx), %edi
	movl	$1, %esi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_IEnumVARIANT_Next
	movq	_S_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	addq	$8, %rbx
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_variant_to_jsval
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_VariantClear
	movq	%r14, %rdi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	xorl	%eax, %eax
	callq	_jsval_undefined
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	callq	_jsval_undefined
	movq	%rax, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_6:
	movq	(%r12), %r14
LBB0_7:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to convert jsval to variant!\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_enumvar_get_next_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enumvar_get_next_item
_enumvar_get_next_item:                 ; @enumvar_get_next_item
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
	mov	x19, x0
	ldr	x0, [x19, #8]!
	bl	_jsval_release
	add	x0, sp, #12
	bl	_VariantInit
	ldr	w0, [x19, #8]
	add	x2, sp, #12
	mov	w1, #1
	mov	x3, #0
	bl	_IEnumVARIANT_Next
Lloh3:
	adrp	x21, _S_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _S_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x0, sp, #12
	mov	x1, x19
	bl	_variant_to_jsval
	mov	x20, x0
	add	x0, sp, #12
	bl	_VariantClear
	mov	x0, x20
	bl	_FAILED
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	bl	_jsval_undefined
	str	x0, [x19]
	b	LBB0_7
LBB0_5:
	bl	_jsval_undefined
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	stp	x8, x0, [x20]
LBB0_6:
	ldr	x20, [x21]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to convert jsval to variant!\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_enumvar_get_next_item
.subsections_via_symbols
