	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_count_phandle_with_args     ## -- Begin function of_count_phandle_with_args
	.p2align	4, 0x90
_of_count_phandle_with_args:            ## @of_count_phandle_with_args
	.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, %rax
	movq	%rdi, %rsi
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rcx
	leaq	-24(%rbp), %rdi
	movl	$-1, %ebx
	movq	%rax, %rdx
	movl	$-1, %r8d
	callq	_of_phandle_iterator_init
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	-24(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_of_phandle_iterator_next
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovnel	%eax, %ebx
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_1:
	leaq	-28(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_of_get_property
	movq	%rax, %rcx
	movl	-28(%rbp), %edx
	movq	_ENOENT@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	sarl	$2, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_count_phandle_with_args     ; -- Begin function of_count_phandle_with_args
	.p2align	2
_of_count_phandle_with_args:            ; @of_count_phandle_with_args
	.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	x8, x1
	mov	x1, x0
	cbz	x2, LBB0_5
; %bb.1:
	mov	x3, x2
	add	x0, sp, #8
	mov	x2, x8
	mov	w4, #-1
	bl	_of_phandle_iterator_init
	cbnz	w0, LBB0_6
; %bb.2:
	mov	w19, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_of_phandle_iterator_next
	add	w19, w19, #1
	cbz	w0, LBB0_3
; %bb.4:
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, w19, w0, eq
	b	LBB0_6
LBB0_5:
	add	x2, sp, #4
	mov	x0, x1
	mov	x1, x8
	bl	_of_get_property
	ldr	w8, [sp, #4]
	asr	w8, w8, #2
Lloh3:
	adrp	x9, _ENOENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x0, #0
	csneg	w0, w8, w9, ne
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
