	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dscc4_rx_update
_dscc4_rx_update:                       ## @dscc4_rx_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	decl	%eax
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movslq	%edx, %rax
	shlq	$2, %rax
	addq	24(%rdi), %rax
	movq	%rax, 16(%rdi)
	movq	_CH0LRDA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	8(%rdi), %rcx
	movslq	4(%rdi), %rdx
	leaq	(%rcx,%rdx,4), %rsi
	movq	%rax, %rdi
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_CH0LRDA,8,3                    ## @CH0LRDA
	.no_dead_strip	_dscc4_rx_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dscc4_rx_update
_dscc4_rx_update:                       ; @dscc4_rx_update
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	sub	w8, w8, #1
Lloh0:
	adrp	x10, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w11, w8, w10
	msub	w8, w11, w10, w8
	ldr	x10, [x0, #24]
	add	x8, x10, w8, sxtw #2
	str	x8, [x0, #16]
Lloh3:
	adrp	x10, _CH0LRDA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CH0LRDA@GOTPAGEOFF]
	ldr	x11, [x0, #8]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, x11
	add	x1, x10, x9, lsl #2
	mov	x0, x8
	b	_writel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_CH0LRDA,8,3                    ; @CH0LRDA
	.no_dead_strip	_dscc4_rx_update
.subsections_via_symbols
