	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_ae_stop
_hclge_ae_stop:                         ## @hclge_ae_stop
	.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, %r15
	callq	_hclge_get_vport
	movq	(%rax), %r14
	movq	_HCLGE_STATE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_hclge_clear_arfs_rules
	movq	_HCLGE_STATE_RST_HANDLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_HNAE3_FUNC_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_4:
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hclge_reset_tqp
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hclge_config_mac_tnl_int
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_hclge_cfg_mac_mode
	movq	%r14, %rdi
	callq	_hclge_mac_stop_phy
	movq	%r15, %rdi
	callq	_hclge_reset_tqp_stats
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_hclge_mac_stop_phy
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_update_link_status       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ## @HCLGE_STATE_DOWN
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ## @HCLGE_STATE_RST_HANDLING
	.comm	_HNAE3_FUNC_RESET,8,3           ## @HNAE3_FUNC_RESET
	.no_dead_strip	_hclge_ae_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_ae_stop
_hclge_ae_stop:                         ; @hclge_ae_stop
	.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	x20, x0
	bl	_hclge_get_vport
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _HCLGE_STATE_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_STATE_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #8
	mov	x1, x21
	bl	_set_bit
	mov	x0, x20
	bl	_hclge_clear_arfs_rules
Lloh3:
	adrp	x8, _HCLGE_STATE_RST_HANDLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_STATE_RST_HANDLING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _HNAE3_FUNC_RESET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HNAE3_FUNC_RESET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_hclge_reset_tqp
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	bl	_hclge_config_mac_tnl_int
	mov	x0, x19
	mov	w1, #0
	bl	_hclge_cfg_mac_mode
	mov	x0, x19
	bl	_hclge_mac_stop_phy
	mov	x0, x20
	bl	_hclge_reset_tqp_stats
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_hclge_mac_stop_phy
LBB0_7:
	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_update_link_status
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_STATE_DOWN,4,2           ; @HCLGE_STATE_DOWN
	.comm	_HCLGE_STATE_RST_HANDLING,4,2   ; @HCLGE_STATE_RST_HANDLING
	.comm	_HNAE3_FUNC_RESET,8,3           ; @HNAE3_FUNC_RESET
	.no_dead_strip	_hclge_ae_stop
.subsections_via_symbols
