	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_explicit_phandles
_check_explicit_phandles:               ## @check_explicit_phandles
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_get_property
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%rax), %ecx
	cmpl	$4, %ecx
	jne	LBB0_2
## %bb.4:
	movq	%rax, %rdi
	callq	_propval_cell
	movl	%eax, %r15d
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.5:
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FAIL                           ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_node_by_phandle
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movl	4(%rbx), %edx
	movl	4(%rax), %r8d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FAIL                           ## TAILCALL
LBB0_7:
	movl	%r15d, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linux,phandle"

L_.str.1:                               ## @.str.1
	.asciz	"%s has bad length (%d) linux,phandle property"

L_.str.2:                               ## @.str.2
	.asciz	"%s has invalid linux,phandle value 0x%x"

L_.str.3:                               ## @.str.3
	.asciz	"%s has duplicated phandle 0x%x (seen before at %s)"

	.no_dead_strip	_check_explicit_phandles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_explicit_phandles
_check_explicit_phandles:               ; @check_explicit_phandles
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_get_property
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w3, [x0]
	cmp	w3, #4
	b.ne	LBB0_4
; %bb.2:
	bl	_propval_cell
	mov	x21, x0
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.3:
	ldr	w2, [x20, #4]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	b	LBB0_5
LBB0_4:
	ldr	w2, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
LBB0_5:
	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
	add	sp, sp, #64
	b	_FAIL
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_get_node_by_phandle
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w2, [x20, #4]
	ldr	w8, [x0, #4]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_FAIL
	b	LBB0_9
LBB0_8:
	str	w21, [x20]
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linux,phandle"

l_.str.1:                               ; @.str.1
	.asciz	"%s has bad length (%d) linux,phandle property"

l_.str.2:                               ; @.str.2
	.asciz	"%s has invalid linux,phandle value 0x%x"

l_.str.3:                               ; @.str.3
	.asciz	"%s has duplicated phandle 0x%x (seen before at %s)"

	.no_dead_strip	_check_explicit_phandles
.subsections_via_symbols
