	.file	"extr_bttv-cards.c_pvr_boot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed"
.LC1:
	.string	"ok"
.LC2:
	.string	"hcwamc.rbf"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"%d: no altera firmware [via hotplug]\n"
	.align 8
.LC4:
	.string	"%d: altera firmware upload %s\n"
	.text
	.p2align 4
	.type	pvr_boot, @function
pvr_boot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC2[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rsp
	call	request_firmware@PLT
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR [rsp]
	mov	rdi, rbx
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	pvr_altera_load@PLT
	lea	rdx, .LC0[rip]
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC4[rip]
	test	eax, eax
	mov	r12d, eax
	lea	rax, .LC1[rip]
	cmovns	rdx, rax
	call	pr_info@PLT
	mov	rdi, QWORD PTR [rsp]
	call	release_firmware@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR [rbx]
	lea	rdi, .LC3[rip]
	mov	r12d, eax
	call	pr_warn@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pvr_boot, .-pvr_boot
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bttv-cards.c_pvr_boot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed\000"
	.align	2
.LC1:
	.ascii	"ok\000"
	.align	2
.LC2:
	.ascii	"hcwamc.rbf\000"
	.align	2
.LC3:
	.ascii	"%d: no altera firmware [via hotplug]\012\000"
	.align	2
.LC4:
	.ascii	"%d: altera firmware upload %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pvr_boot, %function
pvr_boot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L11
	sub	sp, sp, #12
	ldr	r2, [r0, #4]
	mov	r5, r0
	ldr	r1, .L11+4
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	request_firmware
	subs	r4, r0, #0
	bne	.L9
	ldr	r3, [sp]
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	bl	pvr_altera_load
	ldr	r3, .L11+8
	subs	r4, r0, #0
	ldr	r2, .L11+12
	ldr	r1, [r5]
	movge	r2, r3
	ldr	r0, .L11+16
	bl	pr_info
	ldr	r0, [sp]
	bl	release_firmware
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r1, [r5]
	ldr	r0, .L11+20
	bl	pr_warn
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	.LC3
	.size	pvr_boot, .-pvr_boot
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
