	.file	"extr_qlcnic_init.c_qlcnic_request_firmware.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_request_firmware
	.type	qlcnic_request_firmware, @function
qlcnic_request_firmware:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR QLCNIC_UNKNOWN_ROMIMAGE[rip]
	mov	rbp, QWORD PTR 16[rdi]
	mov	QWORD PTR [rax], rdx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	qlcnic_get_next_fwtype@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR QLCNIC_FLASH_ROMIMAGE[rip]
	je	.L12
	mov	rdx, QWORD PTR fw_name[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR [rdx+rax*4]
	mov	rdx, rbp
	call	request_firmware@PLT
	test	eax, eax
	jne	.L4
	mov	rdi, rbx
	call	qlcnic_validate_firmware@PLT
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	call	release_firmware@PLT
	mov	esi, 1500
	mov	edi, 1000
	call	usleep_range@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR [rbx], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_request_firmware, .-qlcnic_request_firmware
	.comm	fw_name,8,8
	.comm	QLCNIC_UNKNOWN_ROMIMAGE,8,8
	.comm	QLCNIC_FLASH_ROMIMAGE,8,8
	.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_qlcnic_init.c_qlcnic_request_firmware.c"
	.text
	.align	2
	.global	qlcnic_request_firmware
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_request_firmware, %function
qlcnic_request_firmware:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r2, .L13
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	ldr	r5, .L13+4
	ldr	r7, .L13+8
	ldr	r8, .L13+12
	ldr	r6, [r0, #8]
	str	r2, [r3]
.L4:
	mov	r0, r4
	bl	qlcnic_get_next_fwtype
	ldr	r3, [r4, #4]
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L12
	ldr	r1, [r7]
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r1, r3, lsl #2]
	bl	request_firmware
	cmp	r0, #0
	bne	.L4
	mov	r0, r4
	bl	qlcnic_validate_firmware
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r0, [r4]
	bl	release_firmware
	mov	r1, r8
	mov	r0, #1000
	bl	usleep_range
	b	.L4
.L12:
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	QLCNIC_UNKNOWN_ROMIMAGE
	.word	QLCNIC_FLASH_ROMIMAGE
	.word	fw_name
	.word	1500
	.size	qlcnic_request_firmware, .-qlcnic_request_firmware
	.comm	fw_name,4,4
	.comm	QLCNIC_UNKNOWN_ROMIMAGE,4,4
	.comm	QLCNIC_FLASH_ROMIMAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
