	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_node_for_device
_find_node_for_device:                  ## @find_node_for_device
	.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	%rsi, %r12
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movq	(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	leaq	8(%r12), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_fdt_is_compatible_strict
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jne	LBB0_5
LBB0_6:
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.7:
	addq	$8, %r12
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-8(%r12), %rsi
	movl	%eax, %edi
	movl	$1, %edx
	callq	_fdt_find_compatible
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, (%r12)
	leaq	8(%r12), %r12
	jne	LBB0_9
	jmp	LBB0_12
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/soc"

	.no_dead_strip	_find_node_for_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_node_for_device
_find_node_for_device:                  ; @find_node_for_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	x1, [x20]
	cbz	x1, LBB0_10
; %bb.2:
	mov	x19, x0
	add	x21, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fdt_is_compatible_strict
	cbnz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x21], #8
	cbnz	x1, LBB0_3
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.6:
	add	x21, x20, #8
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x1, [x21, #-8]
	mov	w2, #1
	bl	_fdt_find_compatible
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21], #8
	cbnz	x8, LBB0_7
LBB0_10:
	mov	w19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x19, x0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/soc"

	.no_dead_strip	_find_node_for_device
.subsections_via_symbols
