	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_devmatch_next              ## -- Begin function fdt_devmatch_next
	.p2align	4, 0x90
_fdt_devmatch_next:                     ## @fdt_devmatch_next
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$-1, -44(%rbp)
	movq	_fdtp@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_fdt_setup_fdtp
	xorl	%eax, %eax
	callq	_fdt_apply_overlays
LBB0_2:
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	jns	LBB0_7
	jmp	LBB0_19
LBB0_5:
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movl	%eax, %ebx
	movl	$0, _fdt_devmatch_next.depth(%rip)
LBB0_7:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r14
	leaq	_fdt_devmatch_next.depth(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movl	%ebx, %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rcx
	callq	_fdt_get_property
	testq	%rax, %rax
	jne	LBB0_16
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_fdt_next_node
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, _fdt_devmatch_next.depth(%rip)
	js	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movl	%ebx, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rcx
	callq	_fdt_get_property
	cmpl	$0, -44(%rbp)
	jle	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_fdt_next_node
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_19
LBB0_16:
	movq	%rax, %r15
	movq	(%r13), %rdi
	leaq	_fdt_devmatch_next.depth(%rip), %rdx
	movl	%ebx, %esi
	callq	_fdt_next_node
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	jmp	LBB0_20
LBB0_18:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_fdt_devmatch_next.depth,4,2 ## @fdt_devmatch_next.depth
	.comm	_fdtp,8,3                       ## @fdtp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.2:                               ## @.str.2
	.asciz	"status"

L_.str.3:                               ## @.str.3
	.asciz	"disabled"

L_.str.4:                               ## @.str.4
	.asciz	"compatible"

L_str:                                  ## @str
	.asciz	"Can't find dtb"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_devmatch_next              ; -- Begin function fdt_devmatch_next
	.p2align	2
_fdt_devmatch_next:                     ; @fdt_devmatch_next
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x27, _fdtp@GOTPAGE
Lloh1:
	ldr	x27, [x27, _fdtp@GOTPAGEOFF]
	ldr	x8, [x27]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w21, [x20]
	cbz	w21, LBB0_4
LBB0_2:
	tbz	w21, #31, LBB0_6
	b	LBB0_16
LBB0_3:
	bl	_fdt_setup_fdtp
	bl	_fdt_apply_overlays
	ldr	w21, [x20]
	cbnz	w21, LBB0_2
LBB0_4:
	ldr	x0, [x27]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_15
; %bb.5:
	mov	x21, x0
	adrp	x8, _fdt_devmatch_next.depth@PAGE
	str	wzr, [x8, _fdt_devmatch_next.depth@PAGEOFF]
LBB0_6:
	adrp	x28, _fdt_devmatch_next.depth@PAGE
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x23, l_.str.3@PAGE
Lloh7:
	add	x23, x23, l_.str.3@PAGEOFF
Lloh8:
	adrp	x24, _fdt_devmatch_next.depth@PAGE
Lloh9:
	add	x24, x24, _fdt_devmatch_next.depth@PAGEOFF
Lloh10:
	adrp	x25, l_.str.4@PAGE
Lloh11:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x27]
	add	x3, sp, #12
	mov	x1, x21
	mov	x2, x25
	bl	_fdt_get_property
	cbnz	x0, LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x27]
	mov	x1, x21
	mov	x2, x24
	bl	_fdt_next_node
	mov	x21, x0
	tbnz	w0, #31, LBB0_16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28, _fdt_devmatch_next.depth@PAGEOFF]
	tbnz	w8, #31, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x27]
	add	x3, sp, #12
	mov	x1, x21
	mov	x2, x22
	bl	_fdt_get_property
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x0]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x27]
	mov	x1, x21
	mov	x2, x24
	bl	_fdt_next_node
	mov	x21, x0
	tbz	w0, #31, LBB0_9
	b	LBB0_16
LBB0_13:
	mov	x26, x0
	ldr	x0, [x27]
Lloh12:
	adrp	x2, _fdt_devmatch_next.depth@PAGE
Lloh13:
	add	x2, x2, _fdt_devmatch_next.depth@PAGEOFF
	mov	x1, x21
	bl	_fdt_next_node
	str	w0, [x20]
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_16
; %bb.14:
	str	w8, [x19]
	ldr	x0, [x26]
	b	LBB0_17
LBB0_15:
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_16:
	mov	x0, #0
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_fdt_devmatch_next.depth,4,2 ; @fdt_devmatch_next.depth
	.comm	_fdtp,8,3                       ; @fdtp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.2:                               ; @.str.2
	.asciz	"status"

l_.str.3:                               ; @.str.3
	.asciz	"disabled"

l_.str.4:                               ; @.str.4
	.asciz	"compatible"

l_str:                                  ; @str
	.asciz	"Can't find dtb"

.subsections_via_symbols
