	.file	"extr_bnx2x_main.c_bnx2x_issue_dmae_with_comp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DMAE timeout!\n"
.LC1:
	.string	"DMAE PCI error!\n"
	.text
	.p2align 4
	.globl	bnx2x_issue_dmae_with_comp
	.type	bnx2x_issue_dmae_with_comp, @function
bnx2x_issue_dmae_with_comp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	r13, 8[rbp]
	call	CHIP_REV_IS_SLOW@PLT
	mov	edx, DWORD PTR BNX2X_MSG_DMAE[rip]
	mov	rsi, r14
	mov	rdi, rbp
	cmp	rax, 1
	sbb	ebx, ebx
	call	bnx2x_dp_dmae@PLT
	mov	rdi, r13
	and	ebx, -396000
	call	spin_lock_bh@PLT
	mov	DWORD PTR [r12], 0
	mov	rdi, rbp
	add	ebx, 400000
	call	INIT_DMAE_C@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	edx, eax
	call	bnx2x_post_dmae@PLT
	mov	edi, 5
	call	udelay@PLT
	mov	ecx, DWORD PTR DMAE_PCI_ERR_FLAG[rip]
	mov	edx, DWORD PTR [r12]
	mov	eax, ecx
	not	eax
	and	eax, edx
	cmp	eax, DWORD PTR DMAE_COMP_VAL[rip]
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	test	ebx, ebx
	je	.L7
.L3:
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR BNX2X_RECOVERY_DONE[rip]
	je	.L6
	cmp	rax, QWORD PTR BNX2X_RECOVERY_NIC_LOADING[rip]
	jne	.L7
.L6:
	mov	edi, 50
	sub	ebx, 1
	call	udelay@PLT
	mov	ecx, DWORD PTR DMAE_PCI_ERR_FLAG[rip]
	mov	edx, DWORD PTR [r12]
	mov	eax, ecx
	not	eax
	and	eax, edx
	cmp	eax, DWORD PTR DMAE_COMP_VAL[rip]
	jne	.L8
.L4:
	and	edx, ecx
	mov	r12d, edx
	je	.L5
	lea	rdi, .LC1[rip]
	call	BNX2X_ERR@PLT
	mov	r12d, DWORD PTR DMAE_PCI_ERROR[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdi, .LC0[rip]
	call	BNX2X_ERR@PLT
	mov	r12d, DWORD PTR DMAE_TIMEOUT[rip]
.L5:
	mov	rdi, r13
	call	spin_unlock_bh@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bnx2x_issue_dmae_with_comp, .-bnx2x_issue_dmae_with_comp
	.comm	DMAE_TIMEOUT,4,4
	.comm	DMAE_PCI_ERR_FLAG,4,4
	.comm	DMAE_PCI_ERROR,4,4
	.comm	DMAE_COMP_VAL,4,4
	.comm	BNX2X_RECOVERY_NIC_LOADING,8,8
	.comm	BNX2X_RECOVERY_DONE,8,8
	.comm	BNX2X_MSG_DMAE,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_bnx2x_main.c_bnx2x_issue_dmae_with_comp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMAE timeout!\012\000"
	.align	2
.LC1:
	.ascii	"DMAE PCI error!\012\000"
	.text
	.align	2
	.global	bnx2x_issue_dmae_with_comp
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2x_issue_dmae_with_comp, %function
bnx2x_issue_dmae_with_comp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r6, r2
	bl	CHIP_REV_IS_SLOW
	ldr	r3, .L17
	cmp	r0, #0
	mov	r1, r7
	ldr	r2, [r3]
	mov	r0, r5
	add	r8, r5, #4
	ldr	r4, .L17+4
	moveq	r4, #4000
	bl	bnx2x_dp_dmae
	mov	r0, r8
	bl	spin_lock_bh
	mov	r3, #0
	mov	r0, r5
	str	r3, [r6]
	bl	INIT_DMAE_C
	mov	r1, r7
	mov	r2, r0
	ldr	r7, .L17+8
	mov	r0, r5
	bl	bnx2x_post_dmae
	ldr	r10, .L17+12
	mov	r0, #5
	bl	udelay
	ldr	r3, [r6]
	ldr	r2, [r7]
	ldr	r1, [r10]
	bic	r0, r3, r2
	cmp	r0, r1
	beq	.L4
	ldr	fp, .L17+16
	ldr	r9, .L17+20
	b	.L3
.L8:
	cmp	r4, #0
	beq	.L7
.L3:
	ldr	r3, [r5]
	ldr	r2, [fp]
	sub	r4, r4, #1
	cmp	r3, r2
	beq	.L6
	ldr	r2, [r9]
	cmp	r3, r2
	bne	.L7
.L6:
	mov	r0, #50
	bl	udelay
	ldr	r3, [r6]
	ldr	r2, [r7]
	ldr	r1, [r10]
	bic	r0, r3, r2
	cmp	r0, r1
	bne	.L8
.L4:
	ands	r4, r3, r2
	beq	.L5
	ldr	r0, .L17+24
	bl	BNX2X_ERR
	ldr	r3, .L17+28
	ldr	r4, [r3]
	b	.L5
.L7:
	ldr	r0, .L17+32
	bl	BNX2X_ERR
	ldr	r3, .L17+36
	ldr	r4, [r3]
.L5:
	mov	r0, r8
	bl	spin_unlock_bh
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	BNX2X_MSG_DMAE
	.word	400000
	.word	DMAE_PCI_ERR_FLAG
	.word	DMAE_COMP_VAL
	.word	BNX2X_RECOVERY_DONE
	.word	BNX2X_RECOVERY_NIC_LOADING
	.word	.LC1
	.word	DMAE_PCI_ERROR
	.word	.LC0
	.word	DMAE_TIMEOUT
	.size	bnx2x_issue_dmae_with_comp, .-bnx2x_issue_dmae_with_comp
	.comm	DMAE_TIMEOUT,4,4
	.comm	DMAE_PCI_ERR_FLAG,4,4
	.comm	DMAE_PCI_ERROR,4,4
	.comm	DMAE_COMP_VAL,4,4
	.comm	BNX2X_RECOVERY_NIC_LOADING,4,4
	.comm	BNX2X_RECOVERY_DONE,4,4
	.comm	BNX2X_MSG_DMAE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
