	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_stop
_rx_stop:                               ## @rx_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
	movq	_RCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_rd_reg16
                                        ## kill: def $ax killed $ax def $eax
	movq	_BIT1@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %esi
	movq	_BIT2@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	%bx, %ax
	movzwl	%ax, %edx
	movq	%r15, %rdi
	callq	_wr_reg16
	movl	(%r14), %esi
	movzwl	%bx, %edx
	movq	%r15, %rdi
	callq	_wr_reg16
	movq	_IRQ_RXOVER@GOTPCREL(%rip), %r14
	movzwl	(%r14), %eax
	movq	_IRQ_RXDATA@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_IRQ_RXIDLE@GOTPCREL(%rip), %rbx
	movzwl	(%rbx), %esi
	addq	%rax, %rsi
	movq	%r15, %rdi
	callq	_slgt_irq_off
	movq	_SSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzwl	(%r14), %eax
	addw	(%rbx), %ax
	movzwl	%ax, %edx
	movq	%r15, %rdi
	callq	_wr_reg16
	movq	%r15, %rdi
	callq	_rdma_reset
	movq	$0, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCR,4,2                        ## @RCR
	.comm	_BIT1,2,1                       ## @BIT1
	.comm	_BIT2,2,1                       ## @BIT2
	.comm	_IRQ_RXOVER,2,1                 ## @IRQ_RXOVER
	.comm	_IRQ_RXDATA,8,3                 ## @IRQ_RXDATA
	.comm	_IRQ_RXIDLE,2,1                 ## @IRQ_RXIDLE
	.comm	_SSR,4,2                        ## @SSR
	.no_dead_strip	_rx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_stop
_rx_stop:                               ; @rx_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
Lloh0:
	adrp	x21, _RCR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RCR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rd_reg16
Lloh2:
	adrp	x8, _BIT1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIT1@GOTPAGEOFF]
	ldrh	w8, [x8]
	bic	w20, w0, w8
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _BIT2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BIT2@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w8, w8, w20
	and	w2, w8, #0xffff
	mov	x0, x19
	bl	_wr_reg16
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_wr_reg16
Lloh6:
	adrp	x20, _IRQ_RXOVER@GOTPAGE
Lloh7:
	ldr	x20, [x20, _IRQ_RXOVER@GOTPAGEOFF]
	ldrh	w8, [x20]
Lloh8:
	adrp	x9, _IRQ_RXDATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQ_RXDATA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x21, _IRQ_RXIDLE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IRQ_RXIDLE@GOTPAGEOFF]
	ldrh	w10, [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]
	ldrh	w8, [x21]
	ldrh	w9, [x20]
	add	w8, w9, w8
	and	w2, w8, #0xffff
	mov	x0, x19
	bl	_wr_reg16
	mov	x0, x19
	bl	_rdma_reset
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RCR,4,2                        ; @RCR
	.comm	_BIT1,2,1                       ; @BIT1
	.comm	_BIT2,2,1                       ; @BIT2
	.comm	_IRQ_RXOVER,2,1                 ; @IRQ_RXOVER
	.comm	_IRQ_RXDATA,8,3                 ; @IRQ_RXDATA
	.comm	_IRQ_RXIDLE,2,1                 ; @IRQ_RXIDLE
	.comm	_SSR,4,2                        ; @SSR
	.no_dead_strip	_rx_stop
.subsections_via_symbols
