	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_reset
_hclge_reset:                           ## @hclge_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
	movl	32(%rdi), %edi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	incl	24(%rbx)
	movq	_HNAE3_DOWN_CLIENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_roce_client
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	callq	_hclge_reset_prepare_down
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_client
	testl	%eax, %eax
	je	LBB0_3
LBB0_14:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%rbx, %rdi
	callq	_hclge_reset_prepare_wait
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%rbx, %rdi
	callq	_hclge_reset_wait
	testq	%rax, %rax
	jne	LBB0_15
## %bb.5:
	incl	20(%rbx)
	movq	_HNAE3_UNINIT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_roce_client
	testl	%eax, %eax
	je	LBB0_6
LBB0_15:
	movq	%rbx, %rdi
	callq	_hclge_reset_err_handle
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_reset_task_schedule      ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%rbx, %rdi
	callq	_hclge_reset_stack
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	%rbx, %rdi
	callq	_hclge_clear_reset_cause
	movq	%rbx, %rdi
	callq	_hclge_reset_prepare_up
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_HNAE3_INIT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_roce_client
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_HCLGE_RESET_MAX_FAIL_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, 12(%rbx)
	jl	LBB0_15
LBB0_10:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	_HNAE3_UP_CLIENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_client
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_hclge_notify_roce_client
	testl	%eax, %eax
	jne	LBB0_15
## %bb.12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	$0, 12(%rbx)
	incl	16(%rbx)
	movq	_HNAE3_NONE_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, (%r14)
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_hclge_get_reset_level
	cmpl	(%r15), %eax
	jne	LBB0_13
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	addq	$4, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_DOWN_CLIENT,4,2          ## @HNAE3_DOWN_CLIENT
	.comm	_HNAE3_UNINIT_CLIENT,4,2        ## @HNAE3_UNINIT_CLIENT
	.comm	_HNAE3_INIT_CLIENT,4,2          ## @HNAE3_INIT_CLIENT
	.comm	_HCLGE_RESET_MAX_FAIL_CNT,4,2   ## @HCLGE_RESET_MAX_FAIL_CNT
	.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	_hclge_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_reset
_hclge_reset:                           ; @hclge_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w0, [x0, #32]
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	w8, [x19]
	str	w8, [x0]
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh0:
	adrp	x21, _HNAE3_DOWN_CLIENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HNAE3_DOWN_CLIENT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hclge_notify_roce_client
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_hclge_reset_prepare_down
	cbnz	w0, LBB0_7
; %bb.2:
	bl	_rtnl_lock
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hclge_notify_client
	cbz	w0, LBB0_4
LBB0_3:
	bl	_rtnl_unlock
	b	LBB0_7
LBB0_4:
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_hclge_reset_prepare_wait
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_hclge_reset_wait
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
Lloh2:
	adrp	x8, _HNAE3_UNINIT_CLIENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HNAE3_UNINIT_CLIENT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hclge_notify_roce_client
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_hclge_reset_err_handle
	cbz	x0, LBB0_16
; %bb.8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hclge_reset_task_schedule
LBB0_9:
	bl	_rtnl_lock
	mov	x0, x19
	bl	_hclge_reset_stack
	cbnz	w0, LBB0_3
; %bb.10:
	mov	x0, x19
	bl	_hclge_clear_reset_cause
	mov	x0, x19
	bl	_hclge_reset_prepare_up
	cbnz	w0, LBB0_3
; %bb.11:
	bl	_rtnl_unlock
Lloh5:
	adrp	x8, _HNAE3_INIT_CLIENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HNAE3_INIT_CLIENT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hclge_notify_roce_client
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w8, [x19, #12]
Lloh8:
	adrp	x9, _HCLGE_RESET_MAX_FAIL_CNT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HCLGE_RESET_MAX_FAIL_CNT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w8, w9
	b.lt	LBB0_7
LBB0_13:
	bl	_rtnl_lock
Lloh11:
	adrp	x21, _HNAE3_UP_CLIENT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HNAE3_UP_CLIENT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hclge_notify_client
	cbnz	w0, LBB0_3
; %bb.14:
	bl	_rtnl_unlock
	ldr	w1, [x21]
	mov	x0, x19
	bl	_hclge_notify_roce_client
	cbnz	w0, LBB0_7
; %bb.15:
Lloh13:
	adrp	x8, _jiffies@GOTPAGE
Lloh14:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	stp	wzr, w8, [x19, #12]
Lloh16:
	adrp	x21, _HNAE3_NONE_RESET@GOTPAGE
Lloh17:
	ldr	x21, [x21, _HNAE3_NONE_RESET@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [x20]
	add	x1, x19, #8
	mov	x0, x20
	bl	_hclge_get_reset_level
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	add	x1, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_DOWN_CLIENT,4,2          ; @HNAE3_DOWN_CLIENT
	.comm	_HNAE3_UNINIT_CLIENT,4,2        ; @HNAE3_UNINIT_CLIENT
	.comm	_HNAE3_INIT_CLIENT,4,2          ; @HNAE3_INIT_CLIENT
	.comm	_HCLGE_RESET_MAX_FAIL_CNT,4,2   ; @HCLGE_RESET_MAX_FAIL_CNT
	.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	_hclge_reset
.subsections_via_symbols
