	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_reset_ae_dev
_hclge_reset_ae_dev:                    ## @hclge_reset_ae_dev
	.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), %r14
	movq	8(%rdi), %rbx
	movq	_HCLGE_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_hclge_stats_clear
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_hclge_cmd_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_2:
	movq	%rbx, %rdi
	callq	_hclge_map_tqp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_hclge_reset_umv_space
	movq	%rbx, %rdi
	callq	_hclge_mac_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	movq	_HCLGE_TSO_MSS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_TSO_MSS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hclge_config_tso
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hclge_config_gro
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_24
## %bb.10:
	movq	%rbx, %rdi
	callq	_hclge_init_vlan_config
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hclge_tm_init_hw
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_4
LBB0_14:
	movq	%rbx, %rdi
	callq	_hclge_rss_init_hw
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_4
LBB0_16:
	movq	%rbx, %rdi
	callq	_hclge_init_fd_config
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_18:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hclge_config_nic_hw_error
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_4
LBB0_20:
	cmpq	$0, (%rbx)
	je	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_hclge_config_rocee_ras_interrupt
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_4
LBB0_23:
	movq	%rbx, %rdi
	callq	_hclge_reset_vport_state
	movq	_HCLGE_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ## @HCLGE_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cmd queue init failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Map tqp error, ret = %d.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Mac init error, ret = %d\n"

	.comm	_HCLGE_TSO_MSS_MIN,4,2          ## @HCLGE_TSO_MSS_MIN
	.comm	_HCLGE_TSO_MSS_MAX,4,2          ## @HCLGE_TSO_MSS_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Enable tso fail, ret =%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"VLAN init fail, ret =%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"tm init hw fail, ret =%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Rss init fail, ret =%d\n"

L_.str.7:                               ## @.str.7
	.asciz	"fd table init fail, ret=%d\n"

L_.str.8:                               ## @.str.8
	.asciz	"fail(%d) to re-enable NIC hw error interrupts\n"

L_.str.9:                               ## @.str.9
	.asciz	"fail(%d) to re-enable roce ras interrupts\n"

L_.str.10:                              ## @.str.10
	.asciz	"Reset done, %s driver initialization finished.\n"

	.comm	_HCLGE_DRIVER_NAME,4,2          ## @HCLGE_DRIVER_NAME
	.no_dead_strip	_hclge_reset_ae_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_reset_ae_dev
_hclge_reset_ae_dev:                    ; @hclge_reset_ae_dev
	.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
	ldp	x19, x20, [x0]
Lloh0:
	adrp	x8, _HCLGE_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_set_bit
	mov	x0, x20
	bl	_hclge_stats_clear
	ldr	w0, [x20, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #8]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_hclge_cmd_init
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_hclge_map_tqp
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	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_6:
	mov	x0, x20
	bl	_hclge_reset_umv_space
	mov	x0, x20
	bl	_hclge_mac_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _HCLGE_TSO_MSS_MIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_TSO_MSS_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HCLGE_TSO_MSS_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_TSO_MSS_MAX@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hclge_config_tso
	cbz	w0, LBB0_11
; %bb.9:
	mov	x21, x0
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_5
LBB0_11:
	mov	x0, x20
	mov	w1, #1
	bl	_hclge_config_gro
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.12:
	mov	x0, x20
	bl	_hclge_init_vlan_config
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_14:
	mov	x0, x20
	mov	w1, #1
	bl	_hclge_tm_init_hw
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_16:
	mov	x0, x20
	bl	_hclge_rss_init_hw
	cbz	w0, LBB0_18
; %bb.17:
	mov	x21, x0
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_18:
	mov	x0, x20
	bl	_hclge_init_fd_config
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_20:
	mov	x0, x20
	mov	w1, #1
	bl	_hclge_config_nic_hw_error
	cbz	w0, LBB0_22
; %bb.21:
	mov	x21, x0
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_10
LBB0_22:
	ldr	x8, [x20]
	cbz	x8, LBB0_25
; %bb.23:
	mov	x0, x20
	mov	w1, #1
	bl	_hclge_config_rocee_ras_interrupt
	cbz	w0, LBB0_25
; %bb.24:
	mov	x21, x0
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.9@PAGE
Lloh28:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_10
LBB0_25:
	mov	x0, x20
	bl	_hclge_reset_vport_state
Lloh29:
	adrp	x8, _HCLGE_DRIVER_NAME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HCLGE_DRIVER_NAME@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ; @HCLGE_STATE_DOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cmd queue init failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Map tqp error, ret = %d.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Mac init error, ret = %d\n"

	.comm	_HCLGE_TSO_MSS_MIN,4,2          ; @HCLGE_TSO_MSS_MIN
	.comm	_HCLGE_TSO_MSS_MAX,4,2          ; @HCLGE_TSO_MSS_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Enable tso fail, ret =%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"VLAN init fail, ret =%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"tm init hw fail, ret =%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Rss init fail, ret =%d\n"

l_.str.7:                               ; @.str.7
	.asciz	"fd table init fail, ret=%d\n"

l_.str.8:                               ; @.str.8
	.asciz	"fail(%d) to re-enable NIC hw error interrupts\n"

l_.str.9:                               ; @.str.9
	.asciz	"fail(%d) to re-enable roce ras interrupts\n"

l_.str.10:                              ; @.str.10
	.asciz	"Reset done, %s driver initialization finished.\n"

	.comm	_HCLGE_DRIVER_NAME,4,2          ; @HCLGE_DRIVER_NAME
	.no_dead_strip	_hclge_reset_ae_dev
.subsections_via_symbols
