	.file	"extr_hclgevf_main.c_hclgevf_reset_err_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to reset VF(%d)\n"
	.text
	.p2align 4
	.type	hclgevf_reset_err_handle, @function
hclgevf_reset_err_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 1
	mov	rbp, rdi
	call	hclgevf_reset_handshake@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 24[rbp]
	lea	rsi, .LC0[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR 16[rbp], rdx
	call	dev_err@PLT
	mov	rax, QWORD PTR HCLGEVF_RESET_MAX_FAIL_CNT[rip]
	cmp	QWORD PTR 16[rbp], rax
	jl	.L6
	mov	rdi, rbp
	call	hclgevf_is_reset_pending@PLT
	test	rax, rax
	jne	.L7
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, 4[rbp]
	call	set_bit@PLT
	mov	rdi, rbp
	call	hclgevf_is_reset_pending@PLT
	test	rax, rax
	je	.L1
.L7:
	mov	edi, DWORD PTR HCLGEVF_RESET_PENDING[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	hclgevf_reset_task_schedule@PLT
	.cfi_endproc
.LFE0:
	.size	hclgevf_reset_err_handle, .-hclgevf_reset_err_handle
	.comm	HCLGEVF_RESET_PENDING,4,4
	.comm	HCLGEVF_RESET_MAX_FAIL_CNT,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_hclgevf_main.c_hclgevf_reset_err_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to reset VF(%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclgevf_reset_err_handle, %function
hclgevf_reset_err_handle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r1, #1
	bl	hclgevf_reset_handshake
	ldr	r2, [r4, #12]
	ldr	r0, [r4, #16]
	add	r2, r2, #1
	str	r2, [r4, #12]
	ldr	r1, .L7
	bl	dev_err
	ldr	r3, .L7+4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L6
.L2:
	mov	r0, r4
	bl	hclgevf_is_reset_pending
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r3, .L7+8
	mov	r1, r4
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r4
	pop	{r4, lr}
	b	hclgevf_reset_task_schedule
.L6:
	ldr	r0, [r4, #8]
	add	r1, r4, #4
	bl	set_bit
	b	.L2
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	HCLGEVF_RESET_MAX_FAIL_CNT
	.word	HCLGEVF_RESET_PENDING
	.size	hclgevf_reset_err_handle, .-hclgevf_reset_err_handle
	.comm	HCLGEVF_RESET_PENDING,4,4
	.comm	HCLGEVF_RESET_MAX_FAIL_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
