	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function com_iter_move_forwards
_com_iter_move_forwards:                ## @com_iter_move_forwards
	.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
	movl	(%rdi), %edi
	callq	_Z_PTR
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_VariantClear
	leaq	8(%rbx), %r15
	movl	8(%rbx), %edi
	callq	_Z_TYPE
	movq	_IS_UNDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_zval_ptr_dtor
	movq	%r15, %rdi
	callq	_ZVAL_UNDEF
LBB0_2:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	leaq	-40(%rbp), %rcx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_IEnumVARIANT_Next
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	cmpq	$0, -40(%rbp)
	je	LBB0_9
## %bb.5:
	incq	(%rbx)
	jmp	LBB0_6
LBB0_7:
	movq	(%rbx), %rdx
	cmpq	24(%rbx), %rdx
	jge	LBB0_9
## %bb.8:
	incq	%rdx
	movq	%rdx, (%rbx)
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_php_com_safearray_get_elem
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_ZVAL_NULL
	movl	12(%rbx), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_php_com_zval_from_variant
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ZVAL_COPY_VALUE
	jmp	LBB0_10
LBB0_9:
	movq	$-1, (%rbx)
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IS_UNDEF,8,3                   ## @IS_UNDEF
	.no_dead_strip	_com_iter_move_forwards
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function com_iter_move_forwards
_com_iter_move_forwards:                ; @com_iter_move_forwards
	.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	w0, [x0]
	bl	_Z_PTR
	mov	x19, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_VariantClear
	mov	x20, x19
	ldr	w0, [x20, #8]!
	bl	_Z_TYPE
Lloh0:
	adrp	x8, _IS_UNDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_UNDEF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_zval_ptr_dtor
	mov	x0, x20
	bl	_ZVAL_UNDEF
LBB0_2:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.3:
	add	x3, sp, #8
	mov	w1, #1
	mov	x2, x21
	bl	_IEnumVARIANT_Next
	bl	_SUCCEEDED
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.6:
	add	x2, x8, #1
	mov	x0, x19
	str	x2, [x0], #20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_php_com_safearray_get_elem
	cbz	x0, LBB0_8
LBB0_7:
	add	x0, sp, #4
	bl	_ZVAL_NULL
	ldr	w2, [x19, #12]
	add	x0, sp, #4
	mov	x1, x21
	bl	_php_com_zval_from_variant
	add	x1, sp, #4
	mov	x0, x20
	bl	_ZVAL_COPY_VALUE
	b	LBB0_9
LBB0_8:
	mov	x8, #-1
	str	x8, [x19]
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IS_UNDEF,8,3                   ; @IS_UNDEF
	.no_dead_strip	_com_iter_move_forwards
.subsections_via_symbols
