	.file	"extr_qede_main.c_qede_reload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qede_reload
	.type	qede_reload, @function
qede_reload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	test	edx, edx
	je	.L15
	mov	rax, QWORD PTR QEDE_STATE_OPEN[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L16
.L3:
	test	rbx, rbx
	je	.L5
	mov	rsi, rbx
	mov	rdi, rbp
	call	[QWORD PTR [rbx]]
.L5:
	test	r12d, r12d
	je	.L17
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	__qede_lock@PLT
	mov	rax, QWORD PTR QEDE_STATE_OPEN[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L3
.L16:
	mov	esi, DWORD PTR QEDE_UNLOAD_NORMAL[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	qede_unload@PLT
	test	rbx, rbx
	je	.L4
	mov	rsi, rbx
	mov	rdi, rbp
	call	[QWORD PTR [rbx]]
.L4:
	mov	esi, DWORD PTR QEDE_LOAD_RELOAD[rip]
	mov	rdi, rbp
	mov	edx, 1
	call	qede_load@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	qede_config_rx_mode@PLT
	test	r12d, r12d
	jne	.L1
.L17:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	__qede_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	qede_reload, .-qede_reload
	.comm	QEDE_UNLOAD_NORMAL,4,4
	.comm	QEDE_STATE_OPEN,8,8
	.comm	QEDE_LOAD_RELOAD,4,4
	.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_qede_main.c_qede_reload.c"
	.text
	.align	2
	.global	qede_reload
	.syntax unified
	.arm
	.fpu softvfp
	.type	qede_reload, %function
qede_reload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r2, #0
	mov	r5, r1
	mov	r4, r0
	beq	.L15
.L2:
	ldr	r3, .L18
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
	cmp	r5, #0
	beq	.L5
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r5]
	blx	r3
.L5:
	cmp	r6, #0
	popne	{r4, r5, r6, pc}
.L17:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	__qede_unlock
.L15:
	bl	__qede_lock
	b	.L2
.L16:
	ldr	r3, .L18+4
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [r3]
	bl	qede_unload
	cmp	r5, #0
	beq	.L4
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r5]
	blx	r3
.L4:
	ldr	r3, .L18+8
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	qede_load
	ldr	r0, [r4, #4]
	bl	qede_config_rx_mode
	cmp	r6, #0
	popne	{r4, r5, r6, pc}
	b	.L17
.L19:
	.align	2
.L18:
	.word	QEDE_STATE_OPEN
	.word	QEDE_UNLOAD_NORMAL
	.word	QEDE_LOAD_RELOAD
	.size	qede_reload, .-qede_reload
	.comm	QEDE_UNLOAD_NORMAL,4,4
	.comm	QEDE_STATE_OPEN,4,4
	.comm	QEDE_LOAD_RELOAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
