	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr_boot
_pvr_boot:                              ## @pvr_boot
	.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	8(%rdi), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_3
LBB0_2:
	movq	-24(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_pvr_altera_load
	movl	%eax, %r14d
	movl	(%rbx), %esi
	testl	%eax, %eax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmovsq	%rax, %rdx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	-24(%rbp), %rdi
	callq	_release_firmware
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hcwamc.rbf"

L_.str.1:                               ## @.str.1
	.asciz	"%d: no altera firmware [via hotplug]\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d: altera firmware upload %s\n"

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

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

	.no_dead_strip	_pvr_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr_boot
_pvr_boot:                              ; @pvr_boot
	.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	x20, x0
	ldr	x2, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	b	LBB0_3
LBB0_2:
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8]
	mov	x0, x20
	bl	_pvr_altera_load
	mov	x19, x0
	ldr	w1, [x20]
Lloh4:
	adrp	x8, l_.str.4@PAGE
Lloh5:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w0, #0
	csel	x2, x9, x8, lt
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hcwamc.rbf"

l_.str.1:                               ; @.str.1
	.asciz	"%d: no altera firmware [via hotplug]\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d: altera firmware upload %s\n"

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

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

	.no_dead_strip	_pvr_boot
.subsections_via_symbols
