	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_enumerator
_create_enumerator:                     ## @create_enumerator
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	callq	_get_object
	movq	%rax, %rbx
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_VariantInit
	movq	_DISPID_NEWENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LOCALE_NEUTRAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DISPATCH_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movq	%r12, (%rsp)
	movq	_IID_NULL@GOTPCREL(%rip), %rdx
	leaq	-80(%rbp), %r9
	movq	%rbx, %rdi
	callq	_IDispatch_Invoke
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_V_VT
	movq	_VT_DISPATCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rdi
	callq	_V_VT
	movq	_VT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_7:
	leaq	-40(%rbp), %rdi
	callq	_V_UNKNOWN
	movq	_IID_IEnumVARIANT@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movl	%eax, %edi
	callq	_IUnknown_QueryInterface
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	leaq	-40(%rbp), %rdi
	callq	_V_VT
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	leaq	-40(%rbp), %rdi
	callq	_VariantClear
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
LBB0_10:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_alloc_enumerator
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	movq	-48(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.12:
	callq	_IEnumVARIANT_Release
	jmp	LBB0_17
LBB0_13:
	movq	-40(%rbp), %rax
	movq	%rdi, 8(%rax)
	xorl	%ecx, %ecx
	testq	%rdi, %rdi
	sete	%cl
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_enumvar_get_next_item
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	movq	-40(%rbp), %rdi
	addq	$4, %rdi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	callq	_jsdisp_release
	jmp	LBB0_17
LBB0_15:
	movq	%rdi, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I don't know how to handle this type!\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_DISPID_NEWENUM,4,2             ## @DISPID_NEWENUM
	.comm	_IID_NULL,4,2                   ## @IID_NULL
	.comm	_LOCALE_NEUTRAL,4,2             ## @LOCALE_NEUTRAL
	.comm	_DISPATCH_METHOD,4,2            ## @DISPATCH_METHOD
L_.str.1:                               ## @.str.1
	.asciz	"Enumerator: no DISPID_NEWENUM.\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
	.comm	_VT_DISPATCH,8,3                ## @VT_DISPATCH
	.comm	_VT_UNKNOWN,8,3                 ## @VT_UNKNOWN
	.comm	_IID_IEnumVARIANT,4,2           ## @IID_IEnumVARIANT
L_.str.2:                               ## @.str.2
	.asciz	"Enumerator: NewEnum unexpected type of varresult (%d).\n"

	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_create_enumerator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_enumerator
_create_enumerator:                     ; @create_enumerator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	str	xzr, [sp, #8]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x1
	ldr	w0, [x1]
	bl	_is_object_instance
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x21]
	bl	_get_object
	mov	x21, x0
	add	x0, sp, #40
	bl	_VariantInit
Lloh0:
	adrp	x8, _DISPID_NEWENUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPID_NEWENUM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _LOCALE_NEUTRAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCALE_NEUTRAL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _DISPATCH_METHOD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISPATCH_METHOD@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	str	xzr, [sp]
Lloh9:
	adrp	x2, _IID_NULL@GOTPAGE
Lloh10:
	ldr	x2, [x2, _IID_NULL@GOTPAGEOFF]
	add	x5, sp, #16
	add	x6, sp, #40
	mov	x0, x21
	mov	x7, #0
	bl	_IDispatch_Invoke
	bl	_FAILED
	cbz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh13:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh17:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	add	x0, sp, #40
	bl	_V_VT
Lloh19:
	adrp	x8, _VT_DISPATCH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VT_DISPATCH@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	add	x0, sp, #40
	bl	_V_VT
Lloh22:
	adrp	x8, _VT_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VT_UNKNOWN@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
	add	x0, sp, #40
	bl	_V_UNKNOWN
Lloh25:
	adrp	x1, _IID_IEnumVARIANT@GOTPAGE
Lloh26:
	ldr	x1, [x1, _IID_IEnumVARIANT@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_IUnknown_QueryInterface
	mov	x21, x0
	b	LBB0_9
LBB0_8:
	add	x0, sp, #40
	bl	_V_VT
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
Lloh29:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
LBB0_9:
	add	x0, sp, #40
	bl	_VariantClear
	mov	x0, x21
	bl	_FAILED
	cbnz	x0, LBB0_17
LBB0_10:
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, #0
	bl	_alloc_enumerator
	mov	x21, x0
	bl	_FAILED
	mov	x8, x0
	ldr	x0, [sp, #8]
	cbz	x8, LBB0_13
; %bb.11:
	cbz	x0, LBB0_17
; %bb.12:
	bl	_IEnumVARIANT_Release
	b	LBB0_17
LBB0_13:
	ldr	x8, [sp, #40]
	str	x0, [x8, #8]
	cmp	x0, #0
	cset	w9, eq
	str	w9, [x8]
	mov	x0, x8
	bl	_enumvar_get_next_item
	mov	x21, x0
	bl	_FAILED
	mov	x8, x0
	ldr	x9, [sp, #40]
	add	x0, x9, #4
	cbz	x8, LBB0_15
; %bb.14:
	bl	_jsdisp_release
	b	LBB0_17
LBB0_15:
	str	x0, [x19]
Lloh32:
	adrp	x8, _S_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
LBB0_17:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I don't know how to handle this type!\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_DISPID_NEWENUM,4,2             ; @DISPID_NEWENUM
	.comm	_IID_NULL,4,2                   ; @IID_NULL
	.comm	_LOCALE_NEUTRAL,4,2             ; @LOCALE_NEUTRAL
	.comm	_DISPATCH_METHOD,4,2            ; @DISPATCH_METHOD
l_.str.1:                               ; @.str.1
	.asciz	"Enumerator: no DISPID_NEWENUM.\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
	.comm	_VT_DISPATCH,8,3                ; @VT_DISPATCH
	.comm	_VT_UNKNOWN,8,3                 ; @VT_UNKNOWN
	.comm	_IID_IEnumVARIANT,4,2           ; @IID_IEnumVARIANT
l_.str.2:                               ; @.str.2
	.asciz	"Enumerator: NewEnum unexpected type of varresult (%d).\n"

	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_create_enumerator
.subsections_via_symbols
