	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_stop                   ## -- Begin function hns_mac_stop
	.p2align	4, 0x90
_hns_mac_stop:                          ## @hns_mac_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, %r14
	callq	_hns_mac_get_drv
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jne	LBB0_5
LBB0_2:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%r14), %edi
	movq	_MAC_COMM_MODE_RX_AND_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*%rax
LBB0_4:
	movq	$0, 8(%rbx)
	movq	$0, 8(%r14)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ## @MAC_COMM_MODE_RX_AND_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_mac_stop                   ; -- Begin function hns_mac_stop
	.p2align	2
_hns_mac_stop:                          ; @hns_mac_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_mac_get_drv
	mov	x20, x0
	ldr	x8, [x0]
	subs	x8, x8, #1
	b.lt	LBB0_2
; %bb.1:
	str	x8, [x20]
	b.ne	LBB0_5
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x9, _MAC_COMM_MODE_RX_AND_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC_COMM_MODE_RX_AND_TX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
LBB0_4:
	str	xzr, [x20, #8]
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_COMM_MODE_RX_AND_TX,4,2    ; @MAC_COMM_MODE_RX_AND_TX
.subsections_via_symbols
