	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_reset_tqp                ## -- Begin function hclge_reset_tqp
	.p2align	4, 0x90
_hclge_reset_tqp:                       ## @hclge_reset_tqp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_hclge_get_vport
	movq	(%rax), %r15
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_hclge_covert_handle_qid_global
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hclge_tqp_enable
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	$1, %r13d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_hclge_send_reset_tqp_cmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.14:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HCLGE_TQP_RESET_TRY_TIMES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_hclge_get_reset_status
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1200, %esi                     ## imm = 0x4B0
	callq	_usleep_range
	leal	1(%rbx), %r13d
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	movl	%r13d, %ebx
	jl	LBB0_6
LBB0_9:
	cmpl	%eax, %r13d
	jge	LBB0_10
LBB0_11:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_hclge_send_reset_tqp_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r14d, %ebx
	jmp	LBB0_13
LBB0_7:
	movl	(%r12), %eax
	movl	%ebx, %r13d
	cmpl	%eax, %r13d
	jl	LBB0_11
LBB0_10:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable tqp fail, ret = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Send reset tqp cmd fail, ret = %d\n"

	.comm	_HCLGE_TQP_RESET_TRY_TIMES,4,2  ## @HCLGE_TQP_RESET_TRY_TIMES
L_.str.2:                               ## @.str.2
	.asciz	"Reset TQP fail\n"

L_.str.3:                               ## @.str.3
	.asciz	"Deassert the soft reset fail, ret = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_reset_tqp                ; -- Begin function hclge_reset_tqp
	.p2align	2
_hclge_reset_tqp:                       ; @hclge_reset_tqp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_hclge_get_vport
	ldr	x19, [x0]
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_covert_handle_qid_global
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	_hclge_tqp_enable
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x19]
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_hclge_send_reset_tqp_cmd
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x0, [x19]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_14
LBB0_5:
Lloh4:
	adrp	x22, _HCLGE_TQP_RESET_TRY_TIMES@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HCLGE_TQP_RESET_TRY_TIMES@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w21, #1
	cmp	w8, #1
	b.lt	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_hclge_get_reset_status
	cbnz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1000
	mov	w1, #1200
	bl	_usleep_range
	add	w9, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	mov	x21, x9
	b.lt	LBB0_6
; %bb.8:
	mov	x21, x9
LBB0_9:
	cmp	w21, w8
	b.ge	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hclge_send_reset_tqp_cmd
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.11:
	ldr	x0, [x19]
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_10
LBB0_13:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable tqp fail, ret = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Send reset tqp cmd fail, ret = %d\n"

	.comm	_HCLGE_TQP_RESET_TRY_TIMES,4,2  ; @HCLGE_TQP_RESET_TRY_TIMES
l_.str.2:                               ; @.str.2
	.asciz	"Reset TQP fail\n"

l_.str.3:                               ; @.str.3
	.asciz	"Deassert the soft reset fail, ret = %d\n"

.subsections_via_symbols
