	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc64_uboot_elf_exec           ## -- Begin function ppc64_uboot_elf_exec
	.p2align	4, 0x90
_ppc64_uboot_elf_exec:                  ## @ppc64_uboot_elf_exec
	.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
	movq	%rdi, %rbx
	movq	_MODINFOMD_ELFHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_file_findmetadata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%rax), %r14
	movq	(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_md_load64
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_dev_cleanup
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	-24(%rbp), %rdi
	callq	*%r14
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
                                        ## implicit-def: $eax
	jmp	LBB0_4
LBB0_1:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ## @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Kernel args: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"exec returned"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ppc64_uboot_elf_exec           ; -- Begin function ppc64_uboot_elf_exec
	.p2align	2
_ppc64_uboot_elf_exec:                  ; @ppc64_uboot_elf_exec
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MODINFOMD_ELFHDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODINFOMD_ELFHDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_file_findmetadata
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [x0, #8]
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	x2, sp
	bl	_md_load64
	cbnz	w0, LBB0_4
; %bb.2:
	bl	_dev_cleanup
	ldr	x1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x0, [sp, #8]
	blr	x20
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
                                        ; implicit-def: $w0
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MODINFOMD_ELFHDR,4,2           ; @MODINFOMD_ELFHDR
	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Kernel args: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"exec returned"

.subsections_via_symbols
