	.file	"extr_mcdi.c_efx_mcdi_ev_cpl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"MC response mismatch tx seq 0x%x rx seq 0x%x\n"
	.text
	.p2align 4
	.type	efx_mcdi_ev_cpl, @function
efx_mcdi_ev_cpl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	efx_mcdi@PLT
	lea	r14, 12[rax]
	mov	rbp, rax
	mov	rdi, r14
	call	spin_lock@PLT
	mov	r9d, DWORD PTR 0[rbp]
	mov	eax, r9d
	xor	eax, r15d
	test	DWORD PTR SEQ_MASK[rip], eax
	je	.L2
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L3
	sub	rax, 1
	mov	QWORD PTR 24[rbp], rax
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	cmp	DWORD PTR [rax], 1
	jle	.L4
	mov	rdi, r12
	call	efx_mcdi_read_response_header@PLT
	mov	rdi, r14
	call	spin_unlock@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	efx_mcdi_complete_async@PLT
	test	eax, eax
	je	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, r13d
	call	efx_mcdi_errno@PLT
	mov	DWORD PTR 4[rbp], 4
	mov	rdi, r14
	mov	DWORD PTR 16[rbp], eax
	mov	DWORD PTR 8[rbp], ebx
	call	spin_unlock@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	efx_mcdi_complete_async@PLT
	test	eax, eax
	jne	.L1
.L10:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	efx_mcdi_complete_sync@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[r12]
	mov	esi, DWORD PTR hw[rip]
	mov	r8d, r15d
	mov	rdi, r12
	lea	rcx, .LC0[rip]
	call	netif_err@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	efx_mcdi_ev_cpl, .-efx_mcdi_ev_cpl
	.comm	hw,4,4
	.comm	SEQ_MASK,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_mcdi.c_efx_mcdi_ev_cpl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MC response mismatch tx seq 0x%x rx seq 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_mcdi_ev_cpl, %function
efx_mcdi_ev_cpl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r7, r2
	mov	r8, r3
	mov	r6, r0
	bl	efx_mcdi
	mov	r4, r0
	add	r9, r0, #12
	mov	r0, r9
	bl	spin_lock
	ldr	r2, .L11
	ldr	r3, [r4]
	ldr	r2, [r2]
	eor	r1, r3, r5
	tst	r1, r2
	beq	.L2
	ldr	r2, [r4, #20]
	cmp	r2, #0
	beq	.L3
	mov	r0, r9
	sub	r2, r2, #1
	str	r2, [r4, #20]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L2:
	ldr	r3, [r6]
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L4
	mov	r0, r6
	bl	efx_mcdi_read_response_header
	mov	r0, r9
	bl	spin_unlock
.L5:
	mov	r1, #0
	mov	r0, r4
	bl	efx_mcdi_complete_async
	cmp	r0, #0
	beq	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	mov	r0, r8
	bl	efx_mcdi_errno
	mov	r3, #4
	str	r0, [r4, #16]
	str	r7, [r4, #8]
	mov	r0, r9
	str	r3, [r4, #4]
	bl	spin_unlock
	b	.L5
.L3:
	ldr	r2, .L11+4
	str	r3, [sp, #4]
	str	r5, [sp]
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r3, .L11+8
	ldr	r2, [r6, #4]
	bl	netif_err
	mov	r0, r9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L10:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	efx_mcdi_complete_sync
.L12:
	.align	2
.L11:
	.word	SEQ_MASK
	.word	hw
	.word	.LC0
	.size	efx_mcdi_ev_cpl, .-efx_mcdi_ev_cpl
	.comm	hw,4,4
	.comm	SEQ_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
