	.file	"extr_hclge_main.c_hclge_reset_wait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Wait for unsupported reset type: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"flr wait timeout: %d\n"
.LC2:
	.string	"Wait for reset timeout: %d\n"
	.text
	.p2align 4
	.type	hclge_reset_wait, @function
hclge_reset_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rdx, DWORD PTR [rdi]
	cmp	edx, 130
	je	.L2
	jg	.L3
	cmp	edx, 128
	je	.L4
	cmp	edx, 129
	jne	.L6
	mov	r12, QWORD PTR HCLGE_GLOBAL_RESET_REG[rip]
	mov	rbp, QWORD PTR HCLGE_GLOBAL_RESET_BIT[rip]
.L8:
	lea	r13, 16[r14]
	mov	rsi, r12
	xor	ebx, ebx
	mov	rdi, r13
	call	hclge_read_dev@PLT
	mov	rdi, rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	rbx, 200
	je	.L15
	mov	edi, 100
	add	rbx, 1
	call	msleep@PLT
	mov	rdi, r13
	mov	rsi, r12
	call	hclge_read_dev@PLT
	mov	rdi, rax
.L17:
	mov	rsi, rbp
	call	hnae3_get_bit@PLT
	test	rax, rax
	jne	.L20
	cmp	rbx, 200
	je	.L15
.L16:
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	edx, 131
	jne	.L6
	lea	rbp, 20[rdi]
	xor	r12d, r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	add	r12, 1
	cmp	r12, 201
	je	.L10
	mov	edi, 100
	call	msleep@PLT
.L7:
	mov	edi, DWORD PTR HNAE3_FLR_DONE[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	eax, eax
	je	.L21
.L10:
	mov	edi, DWORD PTR HNAE3_FLR_DONE[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	test	eax, eax
	jne	.L16
	mov	rdi, QWORD PTR 8[r14]
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r14]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12, QWORD PTR HCLGE_GLOBAL_RESET_REG[rip]
	mov	rbp, QWORD PTR HCLGE_IMP_RESET_BIT[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12, QWORD PTR HCLGE_FUN_RST_ING[rip]
	mov	rbp, QWORD PTR HCLGE_FUN_RST_ING_B[rip]
	jmp	.L8
.L15:
	mov	rdi, QWORD PTR 8[r14]
	mov	edx, DWORD PTR [r14]
	lea	rsi, .LC2[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hclge_reset_wait, .-hclge_reset_wait
	.comm	HNAE3_FLR_DONE,4,4
	.comm	HCLGE_RESET_WATI_MS,4,4
	.comm	HCLGE_RESET_WAIT_CNT,8,8
	.comm	HCLGE_IMP_RESET_BIT,8,8
	.comm	HCLGE_GLOBAL_RESET_REG,8,8
	.comm	HCLGE_GLOBAL_RESET_BIT,8,8
	.comm	HCLGE_FUN_RST_ING_B,8,8
	.comm	HCLGE_FUN_RST_ING,8,8
	.comm	EINVAL,4,4
	.comm	EBUSY,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_hclge_main.c_hclge_reset_wait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wait for unsupported reset type: %d\012\000"
	.align	2
.LC1:
	.ascii	"flr wait timeout: %d\012\000"
	.align	2
.LC2:
	.ascii	"Wait for reset timeout: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclge_reset_wait, %function
hclge_reset_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	sub	r3, r2, #128
	mov	r6, r0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r4, #0
	ldr	r5, .L23
	add	r7, r0, #12
	b	.L8
.L21:
	add	r4, r4, #1
	cmp	r4, #201
	beq	.L11
	mov	r0, #100
	bl	msleep
.L8:
	mov	r1, r7
	ldr	r0, [r5]
	bl	test_bit
	cmp	r0, #0
	beq	.L21
.L11:
	mov	r1, r7
	ldr	r0, [r5]
	bl	test_bit
	cmp	r0, #0
	beq	.L13
.L17:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L23+4
	ldr	r3, .L23+8
	ldr	r7, [r2]
	ldr	r5, [r3]
.L9:
	add	r8, r6, #8
	mov	r0, r8
	mov	r1, r7
	bl	hclge_read_dev
	mov	r4, #0
	b	.L18
.L22:
	cmp	r4, #200
	beq	.L16
	mov	r0, #100
	bl	msleep
	mov	r1, r7
	mov	r0, r8
	bl	hclge_read_dev
	add	r4, r4, #1
.L18:
	mov	r1, r5
	bl	hnae3_get_bit
	cmp	r0, #0
	bne	.L22
	cmp	r4, #200
	bne	.L17
.L16:
	ldr	r2, [r6]
	ldr	r0, [r6, #4]
	ldr	r1, .L23+12
	bl	dev_warn
	ldr	r3, .L23+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r2, .L23+20
	ldr	r3, .L23+24
	ldr	r7, [r2]
	ldr	r5, [r3]
	b	.L9
.L7:
	ldr	r2, .L23+20
	ldr	r3, .L23+28
	ldr	r7, [r2]
	ldr	r5, [r3]
	b	.L9
.L13:
	mov	r2, r4
	ldr	r0, [r6, #4]
	ldr	r1, .L23+32
	bl	dev_err
	ldr	r3, .L23+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L23+36
	ldr	r0, [r0, #4]
	bl	dev_err
	ldr	r3, .L23+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	HNAE3_FLR_DONE
	.word	HCLGE_FUN_RST_ING
	.word	HCLGE_FUN_RST_ING_B
	.word	.LC2
	.word	EBUSY
	.word	HCLGE_GLOBAL_RESET_REG
	.word	HCLGE_GLOBAL_RESET_BIT
	.word	HCLGE_IMP_RESET_BIT
	.word	.LC1
	.word	.LC0
	.word	EINVAL
	.size	hclge_reset_wait, .-hclge_reset_wait
	.comm	HNAE3_FLR_DONE,4,4
	.comm	HCLGE_RESET_WATI_MS,4,4
	.comm	HCLGE_RESET_WAIT_CNT,4,4
	.comm	HCLGE_IMP_RESET_BIT,4,4
	.comm	HCLGE_GLOBAL_RESET_REG,4,4
	.comm	HCLGE_GLOBAL_RESET_BIT,4,4
	.comm	HCLGE_FUN_RST_ING_B,4,4
	.comm	HCLGE_FUN_RST_ING,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
