	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_ffi_cdata_get_iterator
_zend_ffi_cdata_get_iterator:           ## @zend_ffi_cdata_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_Z_OBJ_P
	movl	(%rax), %edi
	callq	_ZEND_FFI_TYPE
	movq	(%rax), %rax
	movq	_ZEND_FFI_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	$40, %edi
	callq	_emalloc
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_zend_iterator_init
	movq	%r12, %rdi
	callq	_Z_ADDREF_P
	leaq	16(%rbx), %r13
	movq	%r12, %rdi
	callq	_Z_OBJ_P
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_ZVAL_OBJ
	movq	_zend_ffi_cdata_it_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	$0, 32(%rbx)
	movl	%r14d, (%rbx)
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_ZVAL_UNDEF
	jmp	LBB0_3
LBB0_1:
	movq	_zend_ffi_exception_ce@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_zend_throw_error
	xorl	%r15d, %r15d
LBB0_3:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZEND_FFI_TYPE_ARRAY,8,3        ## @ZEND_FFI_TYPE_ARRAY
	.comm	_zend_ffi_exception_ce,4,2      ## @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to iterate on non C array"

	.comm	_zend_ffi_cdata_it_funcs,4,2    ## @zend_ffi_cdata_it_funcs
	.no_dead_strip	_zend_ffi_cdata_get_iterator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zend_ffi_cdata_get_iterator
_zend_ffi_cdata_get_iterator:           ; @zend_ffi_cdata_get_iterator
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x0, x1
	bl	_Z_OBJ_P
	ldr	w0, [x0]
	bl	_ZEND_FFI_TYPE
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ZEND_FFI_TYPE_ARRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZEND_FFI_TYPE_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #40
	bl	_emalloc
	mov	x22, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_zend_iterator_init
	mov	x0, x20
	bl	_Z_ADDREF_P
	add	x23, x22, #16
	mov	x0, x20
	bl	_Z_OBJ_P
	mov	x1, x0
	mov	x0, x23
	bl	_ZVAL_OBJ
Lloh3:
	adrp	x8, _zend_ffi_cdata_it_funcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _zend_ffi_cdata_it_funcs@GOTPAGEOFF]
	str	x8, [x22, #8]
	str	xzr, [x22, #32]
	str	w19, [x22]
	add	x0, x22, #24
	bl	_ZVAL_UNDEF
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _zend_ffi_exception_ce@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zend_ffi_exception_ce@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zend_throw_error
	mov	x21, #0
LBB0_3:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ZEND_FFI_TYPE_ARRAY,8,3        ; @ZEND_FFI_TYPE_ARRAY
	.comm	_zend_ffi_exception_ce,4,2      ; @zend_ffi_exception_ce
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to iterate on non C array"

	.comm	_zend_ffi_cdata_it_funcs,4,2    ; @zend_ffi_cdata_it_funcs
	.no_dead_strip	_zend_ffi_cdata_get_iterator
.subsections_via_symbols
