	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_platform_load_from_ubenv
_fdt_platform_load_from_ubenv:          ## @fdt_platform_load_from_ubenv
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_ub_env_get
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpb	$0, (%rax)
	je	LBB0_5
## %bb.2:
	leaq	-24(%rbp), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_strtoul
	movq	%rax, %r14
	movq	-24(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_fdt_load_dtb_addr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using DTB provided by U-Boot at address %p.\n"

	.no_dead_strip	_fdt_platform_load_from_ubenv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_platform_load_from_ubenv
_fdt_platform_load_from_ubenv:          ; @fdt_platform_load_from_ubenv
	.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
	bl	_ub_env_get
	cbz	x0, LBB0_4
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	w2, #16
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x19, x0
	bl	_fdt_load_dtb_addr
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using DTB provided by U-Boot at address %p.\n"

	.no_dead_strip	_fdt_platform_load_from_ubenv
.subsections_via_symbols
