	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, (%rdx)
	sete	%dil
	callq	_assert
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_check_phandle_prop
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_check_phandle_prop
	movq	%rax, %r12
	movq	%rbx, %rax
	orq	%r12, %rax
	je	LBB0_8
## %bb.1:
	testq	%r12, %r12
	je	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.3:
	cmpq	%r12, %rbx
	je	LBB0_5
## %bb.4:
	movl	8(%r13), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_FAIL
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%r12, %r14
	cmovneq	%rbx, %r14
	testq	%r12, %r12
	cmoveq	%rbx, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_get_node_by_phandle
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	%r13, %rax
	je	LBB0_7
## %bb.9:
	movl	8(%r13), %ecx
	movl	8(%rax), %r9d
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %r8
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FAIL                           ## TAILCALL
LBB0_7:
	movq	%r14, (%r13)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phandle"

L_.str.1:                               ## @.str.1
	.asciz	"linux,phandle"

L_.str.2:                               ## @.str.2
	.asciz	"%s has mismatching 'phandle' and 'linux,phandle' properties"

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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1]
	ldr	x8, [x2]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_check_phandle_prop
	mov	x23, x0
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_check_phandle_prop
	orr	x8, x23, x0
	cbz	x8, LBB0_8
; %bb.1:
	mov	x24, x0
	cbz	x0, LBB0_5
; %bb.2:
	cbz	x23, LBB0_5
; %bb.3:
	cmp	x23, x24
	b.eq	LBB0_5
; %bb.4:
	ldr	w3, [x21, #8]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_FAIL
LBB0_5:
	cmp	x23, #0
	ccmp	x24, #0, #4, eq
	csel	x23, x23, x24, eq
	mov	x0, x22
	mov	x1, x23
	bl	_get_node_by_phandle
	cmp	x0, #0
	ccmp	x0, x21, #4, ne
	b.ne	LBB0_7
; %bb.6:
	str	x23, [x21]
	b	LBB0_8
LBB0_7:
	ldr	w3, [x21, #8]
	ldr	w8, [x0, #8]
	stp	x23, x8, [sp]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_FAIL
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phandle"

l_.str.1:                               ; @.str.1
	.asciz	"linux,phandle"

l_.str.2:                               ; @.str.2
	.asciz	"%s has mismatching 'phandle' and 'linux,phandle' properties"

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
