	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_stop
_tx_stop:                               ## @tx_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, %rbx
	addq	$8, %rdi
	callq	_del_timer
	movq	%rbx, %rdi
	callq	_tdma_reset
	movq	_TCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_rd_reg16
                                        ## kill: def $ax killed $ax def $eax
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%r14), %esi
	movq	_BIT2@GOTPCREL(%rip), %rax
	orw	(%rax), %cx
	movzwl	%cx, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
	movq	_IRQ_TXDATA@GOTPCREL(%rip), %rax
	movq	_IRQ_TXIDLE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rax), %rsi
	movq	_IRQ_TXUNDER@GOTPCREL(%rip), %r15
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_slgt_irq_off
	movq	_SSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	addl	(%r14), %eax
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	callq	_wr_reg16
	movq	%rbx, %rdi
	callq	_reset_tbufs
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCR,4,2                        ## @TCR
	.comm	_BIT1,2,1                       ## @BIT1
	.comm	_BIT2,2,1                       ## @BIT2
	.comm	_IRQ_TXDATA,8,3                 ## @IRQ_TXDATA
	.comm	_IRQ_TXIDLE,8,3                 ## @IRQ_TXIDLE
	.comm	_IRQ_TXUNDER,8,3                ## @IRQ_TXUNDER
	.comm	_SSR,4,2                        ## @SSR
	.no_dead_strip	_tx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_stop
_tx_stop:                               ; @tx_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	x19, x0
	add	x0, x0, #8
	bl	_del_timer
	mov	x0, x19
	bl	_tdma_reset
Lloh0:
	adrp	x20, _TCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TCR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rd_reg16
Lloh2:
	adrp	x8, _BIT1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT1@GOTPAGEOFF]
	ldrh	w8, [x8]
	eor	w8, w8, #0xffff
	and	w8, w0, w8
	ldr	w1, [x20]
Lloh4:
	adrp	x9, _BIT2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BIT2@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_wr_reg16
Lloh6:
	adrp	x8, _IRQ_TXDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_TXDATA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x20, _IRQ_TXIDLE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _IRQ_TXIDLE@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh11:
	adrp	x21, _IRQ_TXUNDER@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IRQ_TXUNDER@GOTPAGEOFF]
	ldr	x10, [x21]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	x0, x19
	bl	_slgt_irq_off
Lloh13:
	adrp	x8, _SSR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ldr	w9, [x21]
	add	w8, w9, w8
	and	w2, w8, #0xffff
	mov	x0, x19
	bl	_wr_reg16
	mov	x0, x19
	bl	_reset_tbufs
	str	xzr, [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
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TCR,4,2                        ; @TCR
	.comm	_BIT1,2,1                       ; @BIT1
	.comm	_BIT2,2,1                       ; @BIT2
	.comm	_IRQ_TXDATA,8,3                 ; @IRQ_TXDATA
	.comm	_IRQ_TXIDLE,8,3                 ; @IRQ_TXIDLE
	.comm	_IRQ_TXUNDER,8,3                ; @IRQ_TXUNDER
	.comm	_SSR,4,2                        ; @SSR
	.no_dead_strip	_tx_stop
.subsections_via_symbols
