	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_rx_stop
_sky2_rx_stop:                          ## @sky2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	_rxqaddr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r12d
	movq	_RB_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_RB_ADDR
	movq	_RB_DIS_OP_MD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sky2_write8
	movl	$65535, %ebx                    ## imm = 0xFFFF
	movq	_Q_RL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_Q_RSL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sky2_read8
	movq	%rax, %r13
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_RB_ADDR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sky2_read8
	cmpq	%rax, %r13
	je	LBB0_4
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
LBB0_4:
	movq	_Q_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_Q_ADDR
	movq	_BMU_RST_SET@GOTPCREL(%rip), %rcx
	movq	_BMU_FIFO_RST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_sky2_write32
	movq	_PREF_UNIT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_Y2_QADDR
	movq	_PREF_UNIT_RST_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write32                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rxqaddr,8,3                    ## @rxqaddr
	.comm	_RB_CTRL,4,2                    ## @RB_CTRL
	.comm	_RB_DIS_OP_MD,4,2               ## @RB_DIS_OP_MD
	.comm	_Q_RSL,4,2                      ## @Q_RSL
	.comm	_Q_RL,4,2                       ## @Q_RL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receiver stop failed\n"

	.comm	_Q_CSR,4,2                      ## @Q_CSR
	.comm	_BMU_RST_SET,4,2                ## @BMU_RST_SET
	.comm	_BMU_FIFO_RST,4,2               ## @BMU_FIFO_RST
	.comm	_PREF_UNIT_CTRL,4,2             ## @PREF_UNIT_CTRL
	.comm	_PREF_UNIT_RST_SET,4,2          ## @PREF_UNIT_RST_SET
	.no_dead_strip	_sky2_rx_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_rx_stop
_sky2_rx_stop:                          ; @sky2_rx_stop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _rxqaddr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rxqaddr@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w20, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _RB_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
Lloh6:
	adrp	x8, _RB_DIS_OP_MD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RB_DIS_OP_MD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
	mov	w23, #65535
Lloh9:
	adrp	x24, _Q_RSL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _Q_RSL@GOTPAGEOFF]
Lloh11:
	adrp	x25, _Q_RL@GOTPAGE
Lloh12:
	ldr	x25, [x25, _Q_RL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	bl	_sky2_read8
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_RB_ADDR
	mov	x1, x0
	mov	x0, x19
	bl	_sky2_read8
	cmp	x22, x0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w23, w23, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w0, [x21, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
LBB0_4:
Lloh15:
	adrp	x8, _Q_CSR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Q_CSR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Q_ADDR
	mov	x1, x0
Lloh18:
	adrp	x8, _BMU_RST_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMU_RST_SET@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _BMU_FIFO_RST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BMU_FIFO_RST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_sky2_write32
Lloh24:
	adrp	x8, _PREF_UNIT_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PREF_UNIT_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_Y2_QADDR
	mov	x1, x0
Lloh27:
	adrp	x8, _PREF_UNIT_RST_SET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PREF_UNIT_RST_SET@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sky2_write32
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_rxqaddr,8,3                    ; @rxqaddr
	.comm	_RB_CTRL,4,2                    ; @RB_CTRL
	.comm	_RB_DIS_OP_MD,4,2               ; @RB_DIS_OP_MD
	.comm	_Q_RSL,4,2                      ; @Q_RSL
	.comm	_Q_RL,4,2                       ; @Q_RL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receiver stop failed\n"

	.comm	_Q_CSR,4,2                      ; @Q_CSR
	.comm	_BMU_RST_SET,4,2                ; @BMU_RST_SET
	.comm	_BMU_FIFO_RST,4,2               ; @BMU_FIFO_RST
	.comm	_PREF_UNIT_CTRL,4,2             ; @PREF_UNIT_CTRL
	.comm	_PREF_UNIT_RST_SET,4,2          ; @PREF_UNIT_RST_SET
	.no_dead_strip	_sky2_rx_stop
.subsections_via_symbols
