	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spl_array_object_count_elements ## -- Begin function spl_array_object_count_elements
	.p2align	4, 0x90
_spl_array_object_count_elements:       ## @spl_array_object_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spl_array_from_obj
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movl	8(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	-20(%rbp), %r8
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_zend_call_method_with_0_params
	movl	-20(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_UNDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	$0, (%r14)
	movq	_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%rax, %rdi
	callq	_spl_array_object_count_elements_helper
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_2:
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_zval_get_long
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_zval_ptr_dtor
LBB0_5:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"count"

	.comm	_IS_UNDEF,8,3                   ## @IS_UNDEF
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FAILURE,4,2                    ## @FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spl_array_object_count_elements ; -- Begin function spl_array_object_count_elements
	.p2align	2
_spl_array_object_count_elements:       ; @spl_array_object_count_elements
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_spl_array_from_obj
	mov	x2, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x2, #8]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	add	x4, sp, #12
	mov	x0, x20
	bl	_zend_call_method_with_0_params
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh2:
	adrp	x8, _IS_UNDEF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_UNDEF@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	str	wzr, [x19]
Lloh5:
	adrp	x8, _FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	x0, x2
	bl	_spl_array_object_count_elements_helper
	str	w0, [x19]
	b	LBB0_5
LBB0_4:
	add	x0, sp, #12
	bl	_zval_get_long
	str	w0, [x19]
	add	x0, sp, #12
	bl	_zval_ptr_dtor
LBB0_5:
Lloh7:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"count"

	.comm	_IS_UNDEF,8,3                   ; @IS_UNDEF
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FAILURE,4,2                    ; @FAILURE
.subsections_via_symbols
