	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zend_ffi_cdata_count_elements
_zend_ffi_cdata_count_elements:         ## @zend_ffi_cdata_count_elements
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_ZEND_FFI_TYPE
	movq	(%rax), %rcx
	movq	_ZEND_FFI_TYPE_ARRAY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movl	8(%rax), %eax
	movl	%eax, (%rbx)
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	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
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	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 count() on non C array"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_zend_ffi_cdata_count_elements
.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_count_elements
_zend_ffi_cdata_count_elements:         ; @zend_ffi_cdata_count_elements
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	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:
	ldr	w8, [x0, #8]
	str	w8, [x19]
Lloh3:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	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
Lloh10:
	adrp	x8, _FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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 count() on non C array"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_zend_ffi_cdata_count_elements
.subsections_via_symbols
