	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_platform_load_dtb          ## -- Begin function fdt_platform_load_dtb
	.p2align	4, 0x90
_fdt_platform_load_dtb:                 ## @fdt_platform_load_dtb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_fdt_platform_load_from_ubenv
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_fdt_platform_load_from_ubenv
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_fdt_platform_load_from_ubenv
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.4(%rip), %rdi
	callq	_ub_env_get
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_ub_env_get
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	$1, %ebx
	cmpb	$0, (%r14)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_fdt_load_dtb_file
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdt_addr_r"

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

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Loaded DTB from file '%s'.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_platform_load_dtb          ; -- Begin function fdt_platform_load_dtb
	.p2align	2
_fdt_platform_load_dtb:                 ; @fdt_platform_load_dtb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	_fdt_platform_load_from_ubenv
	cbz	w0, LBB0_10
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fdt_platform_load_from_ubenv
	cbz	w0, LBB0_10
; %bb.2:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fdt_platform_load_from_ubenv
	cbz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_getenv
	mov	x19, x0
	cbnz	x0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ub_env_get
	mov	x19, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ub_env_get
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_6:
	ldrb	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_fdt_load_dtb_file
	cbz	x0, LBB0_9
LBB0_8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_addr_r"

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

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Loaded DTB from file '%s'.\n"

.subsections_via_symbols
