	.file	"536356.c"
	.intel_syntax noprefix
	.text
	.globl	EBADE
	.bss
	.align 4
	.type	EBADE, @object
	.size	EBADE, 4
EBADE:
	.zero	4
	.globl	EBUSY
	.align 4
	.type	EBUSY, @object
	.size	EBUSY, 4
EBUSY:
	.zero	4
	.globl	HCLGEVF_NIC_CSQ_HEAD_REG
	.align 4
	.type	HCLGEVF_NIC_CSQ_HEAD_REG, @object
	.size	HCLGEVF_NIC_CSQ_HEAD_REG, 4
HCLGEVF_NIC_CSQ_HEAD_REG:
	.zero	4
	.globl	HCLGEVF_NIC_CSQ_TAIL_REG
	.align 4
	.type	HCLGEVF_NIC_CSQ_TAIL_REG, @object
	.size	HCLGEVF_NIC_CSQ_TAIL_REG, 4
HCLGEVF_NIC_CSQ_TAIL_REG:
	.zero	4
	.globl	HCLGEVF_STATE_CMD_DISABLE
	.align 4
	.type	HCLGEVF_STATE_CMD_DISABLE, @object
	.size	HCLGEVF_STATE_CMD_DISABLE, 4
HCLGEVF_STATE_CMD_DISABLE:
	.zero	4
	.section	.rodata
.LC0:
	.string	"cleaned %d, need to clean %d\n"
	.text
	.globl	hclgevf_cmd_send
	.type	hclgevf_cmd_send, @function
hclgevf_cmd_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 16
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 24
	mov	rdi, rax
	call	spin_lock_bh@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	eax, DWORD PTR HCLGEVF_STATE_CMD_DISABLE[rip]
	mov	rsi, rdx
	mov	edi, eax
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 24
	mov	rdi, rax
	call	spin_unlock_bh@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 16
	mov	rdi, rax
	call	hclgevf_ring_space@PLT
	cmp	DWORD PTR -84[rbp], eax
	jle	.L4
	mov	edx, DWORD PTR HCLGEVF_NIC_CSQ_HEAD_REG[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	hclgevf_read_dev@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rdx], eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 24
	mov	rdi, rax
	call	spin_unlock_bh@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	le16_to_cpu@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rcx
	mov	edx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jne	.L6
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 16[rax], 0
.L6:
	add	DWORD PTR -60[rbp], 1
.L5:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L7
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	ecx, DWORD PTR HCLGEVF_NIC_CSQ_TAIL_REG[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	hclgevf_write_dev@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	le16_to_cpu@PLT
	mov	rdi, rax
	call	HCLGEVF_SEND_SYNC@PLT
	test	rax, rax
	je	.L8
.L10:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	hclgevf_cmd_csq_done@PLT
	test	rax, rax
	jne	.L18
	mov	edi, 1
	call	udelay@PLT
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	jl	.L10
	jmp	.L8
.L18:
	nop
.L8:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	hclgevf_cmd_csq_done@PLT
	test	rax, rax
	je	.L11
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	hclgevf_is_special_opcode@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	le16_to_cpu@PLT
	mov	QWORD PTR -40[rbp], rax
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	le16_to_cpu@PLT
	mov	QWORD PTR -40[rbp], rax
.L14:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	hclgevf_cmd_convert_err_code@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 8[rax], edx
	add	DWORD PTR -52[rbp], 1
	add	DWORD PTR -60[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -52[rbp], eax
	jne	.L12
	mov	DWORD PTR -52[rbp], 0
.L12:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L15
.L11:
	cmp	DWORD PTR -64[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR EBADE[rip]
	neg	eax
	mov	DWORD PTR -56[rbp], eax
.L16:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	hclgevf_cmd_csq_clean@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	je	.L17
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	edx, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
.L17:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 24
	mov	rdi, rax
	call	spin_unlock_bh@PLT
	mov	eax, DWORD PTR -56[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	hclgevf_cmd_send, .-hclgevf_cmd_send
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"536356.c"
	.text
	.comm	EBADE,4,4
	.comm	EBUSY,4,4
	.comm	HCLGEVF_NIC_CSQ_HEAD_REG,4,4
	.comm	HCLGEVF_NIC_CSQ_TAIL_REG,4,4
	.comm	HCLGEVF_STATE_CMD_DISABLE,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cleaned %d, need to clean %d\012\000"
	.text
	.align	2
	.global	hclgevf_cmd_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclgevf_cmd_send, %function
hclgevf_cmd_send:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	mov	r0, r3
	bl	spin_lock_bh
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	test_bit
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	mov	r0, r3
	bl	spin_unlock_bh
	ldr	r3, .L19+4
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-48]
	add	r3, r3, #8
	mov	r0, r3
	bl	hclgevf_ring_space
	mov	r2, r0
	ldr	r3, [fp, #-56]
	cmp	r3, r2
	ble	.L4
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	hclgevf_read_dev
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	mov	r0, r3
	bl	spin_unlock_bh
	ldr	r3, .L19+4
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L3
.L4:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	le16_to_cpu
	str	r0, [fp, #-12]
	b	.L5
.L7:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [fp, #-48]
	mov	r2, #0
	str	r2, [r3, #8]
.L6:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L5:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L19+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	hclgevf_write_dev
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	le16_to_cpu
	mov	r3, r0
	mov	r0, r3
	bl	HCLGEVF_SEND_SYNC
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
.L10:
	ldr	r0, [fp, #-48]
	bl	hclgevf_cmd_csq_done
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	mov	r0, #1
	bl	udelay
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L10
	b	.L8
.L18:
	nop
.L8:
	ldr	r0, [fp, #-48]
	bl	hclgevf_cmd_csq_done
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	mov	r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L12
.L15:
	ldr	r3, [fp, #-48]
	ldr	r1, [r3, #20]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r0, [fp, #-12]
	bl	hclgevf_is_special_opcode
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	likely
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r3, r3, r2
	ldr	r3, [r3]
	mov	r0, r3
	bl	le16_to_cpu
	str	r0, [fp, #-28]
	b	.L14
.L13:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r0, r3
	bl	le16_to_cpu
	str	r0, [fp, #-28]
.L14:
	ldr	r0, [fp, #-28]
	bl	hclgevf_cmd_convert_err_code
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L12
	mov	r3, #0
	str	r3, [fp, #-24]
.L12:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L15
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L19+16
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-32]
.L16:
	ldr	r0, [fp, #-48]
	bl	hclgevf_cmd_csq_clean
	str	r0, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	beq	.L17
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-36]
	ldr	r1, .L19+20
	bl	dev_warn
.L17:
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	mov	r0, r3
	bl	spin_unlock_bh
	ldr	r3, [fp, #-32]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	HCLGEVF_STATE_CMD_DISABLE
	.word	EBUSY
	.word	HCLGEVF_NIC_CSQ_HEAD_REG
	.word	HCLGEVF_NIC_CSQ_TAIL_REG
	.word	EBADE
	.word	.LC0
	.size	hclgevf_cmd_send, .-hclgevf_cmd_send
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
