	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_copy                       ## -- Begin function fdt_copy
	.p2align	4, 0x90
_fdt_copy:                              ## @fdt_copy
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_debugf
	movq	_fdtp@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fdt_fixup
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	movq	_fdtp_size@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %esi
	callq	_COPYIN
	movl	(%rbx), %ebx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fdt_setup_fdtp
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fdt_copy va 0x%08x\n"

	.comm	_fdtp,8,3                       ## @fdtp
	.comm	_fdtp_size,4,2                  ## @fdtp_size
L_str:                                  ## @str
	.asciz	"No valid device tree blob found!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_copy                       ; -- Begin function fdt_copy
	.p2align	2
_fdt_copy:                              ; @fdt_copy
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debugf
Lloh2:
	adrp	x20, _fdtp@GOTPAGE
Lloh3:
	ldr	x20, [x20, _fdtp@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
LBB0_1:
	bl	_fdt_fixup
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20]
Lloh4:
	adrp	x20, _fdtp_size@GOTPAGE
Lloh5:
	ldr	x20, [x20, _fdtp_size@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x1, x19
	bl	_COPYIN
	ldr	w0, [x20]
	b	LBB0_5
LBB0_3:
	bl	_fdt_setup_fdtp
	cbz	w0, LBB0_1
; %bb.4:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fdt_copy va 0x%08x\n"

	.comm	_fdtp,8,3                       ; @fdtp
	.comm	_fdtp_size,4,2                  ; @fdtp_size
l_str:                                  ; @str
	.asciz	"No valid device tree blob found!"

.subsections_via_symbols
