	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_setup_fdtp                 ## -- Begin function fdt_setup_fdtp
	.p2align	4, 0x90
_fdt_setup_fdtp:                        ## @fdt_setup_fdtp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_debugf
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_file_findfile
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_fdt_load_dtb
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	_fdt_to_load@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_fdt_load_dtb_addr
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fdt_platform_load_dtb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_fdt_find_static_dtb
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %edi
	callq	_fdt_load_dtb
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	leaq	L_.str.5(%rip), %rax
	movq	_command_errmsg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_2:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	movq	(%rbx), %rsi
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	xorl	%eax, %eax
	callq	_fdt_platform_load_overlays
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdt_setup_fdtp()\n"

L_.str.1:                               ## @.str.1
	.asciz	"dtb"

L_.str.2:                               ## @.str.2
	.asciz	"Using DTB from loaded file '%s'.\n"

	.comm	_fdt_to_load,8,3                ## @fdt_to_load
L_.str.3:                               ## @.str.3
	.asciz	"Using DTB from memory address %p.\n"

L_.str.5:                               ## @.str.5
	.asciz	"No device tree blob found!\n"

	.comm	_command_errmsg,8,3             ## @command_errmsg
L_str:                                  ## @str
	.asciz	"Using DTB compiled into kernel."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_setup_fdtp                 ; -- Begin function fdt_setup_fdtp
	.p2align	2
_fdt_setup_fdtp:                        ; @fdt_setup_fdtp
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debugf
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_file_findfile
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_fdt_load_dtb
	cbz	x0, LBB0_8
LBB0_2:
Lloh4:
	adrp	x19, _fdt_to_load@GOTPAGE
Lloh5:
	ldr	x19, [x19, _fdt_to_load@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_fdt_load_dtb_addr
	cbz	x0, LBB0_9
LBB0_4:
	bl	_fdt_platform_load_dtb
	cbz	x0, LBB0_11
; %bb.5:
	bl	_fdt_find_static_dtb
	cbz	w0, LBB0_7
; %bb.6:
	bl	_fdt_load_dtb
	cbz	x0, LBB0_14
LBB0_7:
Lloh6:
	adrp	x8, _command_errmsg@GOTPAGE
Lloh7:
	ldr	x8, [x8, _command_errmsg@GOTPAGEOFF]
Lloh8:
	adrp	x9, l_.str.5@PAGE
Lloh9:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh10:
	str	x9, [x8]
	mov	w0, #1
	b	LBB0_13
LBB0_8:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	bl	_printf
LBB0_11:
	bl	_fdt_platform_load_overlays
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_setup_fdtp()\n"

l_.str.1:                               ; @.str.1
	.asciz	"dtb"

l_.str.2:                               ; @.str.2
	.asciz	"Using DTB from loaded file '%s'.\n"

	.comm	_fdt_to_load,8,3                ; @fdt_to_load
l_.str.3:                               ; @.str.3
	.asciz	"Using DTB from memory address %p.\n"

l_.str.5:                               ; @.str.5
	.asciz	"No device tree blob found!\n"

	.comm	_command_errmsg,8,3             ; @command_errmsg
l_str:                                  ; @str
	.asciz	"Using DTB compiled into kernel."

.subsections_via_symbols
