	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zend_generator_get_iterator    ## -- Begin function zend_generator_get_iterator
	.p2align	4, 0x90
_zend_generator_get_iterator:           ## @zend_generator_get_iterator
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_Z_OBJ_P
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_UNEXPECTED
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_ZEND_ACC_RETURN_REFERENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_6:
	movl	$16, %edi
	callq	_emalloc
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_zend_iterator_init
	movq	_zend_generator_iterator_functions@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	callq	_Z_ADDREF_P
	movq	%r14, %rdi
	callq	_Z_OBJ_P
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_ZVAL_OBJ
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_zend_throw_exception
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot traverse an already closed generator"

	.comm	_ZEND_ACC_RETURN_REFERENCE,4,2  ## @ZEND_ACC_RETURN_REFERENCE
L_.str.1:                               ## @.str.1
	.asciz	"You can only iterate a generator by-reference if it declared that it yields by-reference"

	.comm	_zend_generator_iterator_functions,4,2 ## @zend_generator_iterator_functions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zend_generator_get_iterator    ; -- Begin function zend_generator_get_iterator
	.p2align	2
_zend_generator_get_iterator:           ; @zend_generator_get_iterator
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x0, x1
	bl	_Z_OBJ_P
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_UNEXPECTED
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ZEND_ACC_RETURN_REFERENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_ACC_RETURN_REFERENCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #16
	bl	_emalloc
	mov	x21, x0
	str	x0, [x20]
	bl	_zend_iterator_init
Lloh3:
	adrp	x8, _zend_generator_iterator_functions@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zend_generator_iterator_functions@GOTPAGEOFF]
	str	x8, [x21, #8]
	mov	x0, x19
	bl	_Z_ADDREF_P
	mov	x0, x19
	bl	_Z_OBJ_P
	mov	x1, x0
	mov	x0, x21
	bl	_ZVAL_OBJ
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, #0
	mov	w2, #0
	bl	_zend_throw_exception
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot traverse an already closed generator"

	.comm	_ZEND_ACC_RETURN_REFERENCE,4,2  ; @ZEND_ACC_RETURN_REFERENCE
l_.str.1:                               ; @.str.1
	.asciz	"You can only iterate a generator by-reference if it declared that it yields by-reference"

	.comm	_zend_generator_iterator_functions,4,2 ; @zend_generator_iterator_functions
.subsections_via_symbols
