	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_reset_err_handle
_hclgevf_reset_err_handle:              ## @hclgevf_reset_err_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_hclgevf_reset_handshake
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rdi
	incq	%rdx
	movq	%rdx, 16(%rbx)
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	16(%rbx), %rax
	movq	_HCLGEVF_RESET_MAX_FAIL_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	4(%rbx), %rsi
	callq	_set_bit
LBB0_2:
	movq	%rbx, %rdi
	callq	_hclgevf_is_reset_pending
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_HCLGEVF_RESET_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hclgevf_reset_task_schedule    ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to reset VF(%d)\n"

	.comm	_HCLGEVF_RESET_MAX_FAIL_CNT,8,3 ## @HCLGEVF_RESET_MAX_FAIL_CNT
	.comm	_HCLGEVF_RESET_PENDING,4,2      ## @HCLGEVF_RESET_PENDING
	.no_dead_strip	_hclgevf_reset_err_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_reset_err_handle
_hclgevf_reset_err_handle:              ; @hclgevf_reset_err_handle
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #1
	bl	_hclgevf_reset_handshake
	ldp	x8, x0, [x19, #16]
	add	x2, x8, #1
	str	x2, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _HCLGEVF_RESET_MAX_FAIL_CNT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCLGEVF_RESET_MAX_FAIL_CNT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
	bl	_set_bit
LBB0_2:
	mov	x0, x19
	bl	_hclgevf_is_reset_pending
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _HCLGEVF_RESET_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGEVF_RESET_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hclgevf_reset_task_schedule
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to reset VF(%d)\n"

	.comm	_HCLGEVF_RESET_MAX_FAIL_CNT,8,3 ; @HCLGEVF_RESET_MAX_FAIL_CNT
	.comm	_HCLGEVF_RESET_PENDING,4,2      ; @HCLGEVF_RESET_PENDING
	.no_dead_strip	_hclgevf_reset_err_handle
.subsections_via_symbols
