	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_post_rxds
_gem_post_rxds:                         ## @gem_post_rxds
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	andl	$-4, %r14d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dma_wmb
	cmpl	%ebx, %r14d
	je	LBB0_8
## %bb.1:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	%r14d, %r12d
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, %r14d
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r14d, %edi
	callq	_NEXT_RX
	movl	%eax, %r14d
	incl	%r13d
	cmpl	$4, %r13d
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movslq	%r12d, %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_RXDCTRL_FRESH
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movl	%r12d, %edi
	callq	_NEXT_RX
	movl	%eax, %r12d
	cmpl	%r14d, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	movl	%r14d, %r12d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_mb
	movq	_RXDMA_KICK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXDMA_KICK,8,3                 ## @RXDMA_KICK
	.no_dead_strip	_gem_post_rxds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_post_rxds
_gem_post_rxds:                         ; @gem_post_rxds
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	and	w21, w8, #0xfffffffc
	bl	_dma_wmb
	cmp	w21, w20
	b.eq	LBB0_9
; %bb.1:
	mov	w24, #0
	mov	w23, #-1
	mov	x22, x21
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w20
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x21
	bl	_NEXT_RX
	mov	x21, x0
	add	w24, w24, #1
	cmp	w24, #4
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	add	x23, x8, w22, sxtw #2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_RXDCTRL_FRESH
	bl	_cpu_to_le64
	str	w0, [x23], #4
	mov	x0, x22
	bl	_NEXT_RX
	mov	x22, x0
	cmp	w0, w21
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
	mov	x22, x21
	mov	x23, x21
	b	LBB0_2
LBB0_7:
	tbnz	w23, #31, LBB0_9
; %bb.8:
	bl	_mb
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _RXDMA_KICK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXDMA_KICK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RXDMA_KICK,8,3                 ; @RXDMA_KICK
	.no_dead_strip	_gem_post_rxds
.subsections_via_symbols
