	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_ae_stop
_hns_ae_stop:                           ## @hns_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_hns_get_mac_cb
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_RCB_INT_FLAG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hns_rcb_wait_fbd_clean
	movl	$20, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_hns_mac_stop
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hns_ae_ring_enable_all
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_RCB_INT_FLAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hns_rcb_wait_fbd_clean
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hns_mac_vm_config_bc_en        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RCB_INT_FLAG_TX,4,2            ## @RCB_INT_FLAG_TX
	.comm	_RCB_INT_FLAG_RX,4,2            ## @RCB_INT_FLAG_RX
	.no_dead_strip	_hns_ae_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_ae_stop
_hns_ae_stop:                           ; @hns_ae_stop
	.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
	bl	_hns_get_mac_cb
	mov	x20, x0
	ldp	w1, w0, [x19]
Lloh0:
	adrp	x8, _RCB_INT_FLAG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCB_INT_FLAG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_hns_rcb_wait_fbd_clean
	mov	w0, #20
	bl	_msleep
	mov	x0, x20
	bl	_hns_mac_stop
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #0
	bl	_hns_ae_ring_enable_all
	ldp	w1, w0, [x19]
Lloh3:
	adrp	x8, _RCB_INT_FLAG_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RCB_INT_FLAG_RX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_hns_rcb_wait_fbd_clean
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hns_mac_vm_config_bc_en
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RCB_INT_FLAG_TX,4,2            ; @RCB_INT_FLAG_TX
	.comm	_RCB_INT_FLAG_RX,4,2            ; @RCB_INT_FLAG_RX
	.no_dead_strip	_hns_ae_stop
.subsections_via_symbols
