	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_reset
_hclgevf_reset:                         ## @hclgevf_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movl	40(%rbx), %eax
	movl	%eax, (%r14)
	incl	16(%rbx)
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	_HNAE3_DOWN_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclgevf_notify_client
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_hclgevf_reset_prepare_wait
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_hclgevf_reset_wait
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_hclgevf_reset_err_handle
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	incl	12(%rbx)
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%rbx, %rdi
	callq	_hclgevf_reset_stack
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r15d
	movq	32(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_8:
	movq	_HNAE3_UP_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclgevf_notify_client
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.9:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_HNAE3_NONE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	incl	8(%rbx)
	movq	$0, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_DOWN_CLIENT,4,2          ## @HNAE3_DOWN_CLIENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF failed(=%d) to fetch H/W reset completion status\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to reset VF stack\n"

	.comm	_HNAE3_UP_CLIENT,4,2            ## @HNAE3_UP_CLIENT
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HNAE3_NONE_RESET,4,2           ## @HNAE3_NONE_RESET
	.no_dead_strip	_hclgevf_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_reset
_hclgevf_reset:                         ; @hclgevf_reset
	.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	x19, x0
	ldr	x0, [x0, #32]
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w8, [x19, #40]
	str	w8, [x0]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	bl	_rtnl_lock
Lloh0:
	adrp	x8, _HNAE3_DOWN_CLIENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNAE3_DOWN_CLIENT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hclgevf_notify_client
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	bl	_rtnl_unlock
	b	LBB0_5
LBB0_2:
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_hclgevf_reset_prepare_wait
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_hclgevf_reset_wait
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	ldr	x0, [x19, #32]
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	x0, x19
	bl	_hclgevf_reset_err_handle
LBB0_6:
	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
LBB0_7:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	bl	_rtnl_lock
	mov	x0, x19
	bl	_hclgevf_reset_stack
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	x0, [x19, #32]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_1
LBB0_9:
Lloh7:
	adrp	x8, _HNAE3_UP_CLIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HNAE3_UP_CLIENT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hclgevf_notify_client
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.10:
	bl	_rtnl_unlock
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh13:
	adrp	x8, _HNAE3_NONE_RESET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HNAE3_NONE_RESET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_DOWN_CLIENT,4,2          ; @HNAE3_DOWN_CLIENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF failed(=%d) to fetch H/W reset completion status\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to reset VF stack\n"

	.comm	_HNAE3_UP_CLIENT,4,2            ; @HNAE3_UP_CLIENT
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HNAE3_NONE_RESET,4,2           ; @HNAE3_NONE_RESET
	.no_dead_strip	_hclgevf_reset
.subsections_via_symbols
