	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jsdisp_define_properties
_jsdisp_define_properties:              ## @jsdisp_define_properties
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_DISPID_STARTENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, -44(%rbp)
	leaq	-64(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_to_object
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	-64(%rbp), %rdi
	callq	_to_jsdisp
	testq	%rax, %rax
	je	LBB0_18
## %bb.2:
	movq	%rax, %r12
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_jsdisp_next_prop
	movl	%eax, %ebx
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_14
## %bb.3:
	leaq	-76(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	leaq	-48(%rbp), %rdx
	callq	_jsdisp_propget
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi
	callq	_is_object_instance
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi
	callq	_get_object
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %edi
	callq	_get_object
	movq	%rax, %rdi
	callq	_to_jsdisp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_to_property_descriptor
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_jsdisp_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	leaq	-52(%rbp), %rdx
	callq	_IDispatchEx_GetMemberName
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_jsdisp_define_property
	movl	%eax, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_release_property_descriptor
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %esi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	leaq	-44(%rbp), %rcx
	callq	_jsdisp_next_prop
	movl	%eax, %ebx
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_4
	jmp	LBB0_14
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	-64(%rbp), %rdi
	callq	_IDispatch_Release
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_8:
	movl	-48(%rbp), %edi
	callq	_jsval_release
LBB0_14:
	movq	%r12, %rdi
	callq	_jsdisp_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPID_STARTENUM,4,2           ## @DISPID_STARTENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-JS list obj\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_jsdisp_define_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jsdisp_define_properties
_jsdisp_define_properties:              ; @jsdisp_define_properties
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _DISPID_STARTENUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DISPID_STARTENUM@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x9]
	str	w22, [sp, #28]
	add	x2, sp, #16
	mov	x1, x8
	bl	_to_object
	mov	x21, x0
	bl	_FAILED
	cbnz	x0, LBB0_16
; %bb.1:
	ldr	x0, [sp, #16]
	bl	_to_jsdisp
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x25, _TRUE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	w2, [x25]
	add	x3, sp, #28
	mov	x1, x22
	bl	_jsdisp_next_prop
	mov	x22, x0
Lloh5:
	adrp	x24, _S_OK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _S_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #28]
	add	x2, sp, #12
	mov	x0, x21
	bl	_jsdisp_propget
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_is_object_instance
	cbz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_get_object
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_get_object
	bl	_to_jsdisp
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x23
	bl	_to_property_descriptor
	mov	x22, x0
	mov	x0, x23
	bl	_jsdisp_release
	mov	x0, x22
	bl	_FAILED
	cbnz	x0, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #28]
	add	x2, sp, #8
	mov	x0, x21
	bl	_IDispatchEx_GetMemberName
	mov	x22, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_jsdisp_define_property
	mov	x22, x0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #24
	bl	_release_property_descriptor
	mov	x0, x22
	bl	_FAILED
	cbnz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #28]
	ldr	w2, [x25]
	add	x3, sp, #28
	mov	x0, x21
	bl	_jsdisp_next_prop
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.12:
	mov	x22, x0
	b	LBB0_15
LBB0_13:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	x0, [sp, #16]
	bl	_IDispatch_Release
Lloh9:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_16
LBB0_14:
	ldr	w0, [sp, #12]
	bl	_jsval_release
LBB0_15:
	mov	x0, x21
	bl	_jsdisp_release
	mov	x0, x22
	bl	_FAILED
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w21, w8, w22, eq
LBB0_16:
	mov	x0, x21
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPID_STARTENUM,4,2           ; @DISPID_STARTENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-JS list obj\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_jsdisp_define_properties
.subsections_via_symbols
