	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioc3_clean_rx_ring
_ioc3_clean_rx_ring:                    ## @ioc3_clean_rx_ring
	.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
	testb	$15, %al
	je	LBB0_1
## %bb.2:
	movslq	%eax, %r8
	movq	8(%rdi), %r10
	movq	16(%rdi), %rsi
	movq	(%rsi,%r8,8), %rdx
	movq	%rdx, (%rsi,%r10,8)
	movq	24(%rdi), %rdx
	leal	1(%rax), %r9d
	movl	%r9d, (%rdi)
	movl	(%rdx,%r8,4), %esi
	movl	%esi, (%rdx,%r10,4)
	incq	%r10
	testb	$15, %r9b
	je	LBB0_5
## %bb.3:
	addl	$2, %eax
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi), %rsi
	movq	16(%rdi), %r8
	movq	(%r8,%rsi,8), %rcx
	movq	%rcx, (%r8,%r10,8)
	movq	24(%rdi), %r8
	leal	1(%rsi), %ecx
	movl	%ecx, (%rdi)
	movl	(%r8,%rsi,4), %ecx
	movl	%ecx, (%r8,%r10,4)
	incq	%r10
	incl	%edx
	testb	$15, %al
	movl	%edx, %eax
	jne	LBB0_4
LBB0_5:
	movl	(%rdi), %eax
	jmp	LBB0_6
LBB0_1:
	movq	8(%rdi), %r10
LBB0_6:
	andl	$511, %r10d                     ## imm = 0x1FF
	movq	%r10, 8(%rdi)
	andl	$511, %eax                      ## imm = 0x1FF
	movl	%eax, (%rdi)
	cmpq	%rax, %r10
	je	LBB0_9
## %bb.7:
	movq	16(%rdi), %rdx
	movq	_RX_OFFSET@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rax,8), %rcx
	movq	(%rcx), %rcx
	subq	(%rsi), %rcx
	movq	$0, (%rcx)
	incl	%eax
	andl	$511, %eax                      ## imm = 0x1FF
	cmpq	%rax, %r10
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_OFFSET,8,3                  ## @RX_OFFSET
	.no_dead_strip	_ioc3_clean_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioc3_clean_rx_ring
_ioc3_clean_rx_ring:                    ; @ioc3_clean_rx_ring
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	tst	w8, #0xf
	b.eq	LBB0_4
; %bb.1:
	sxtw	x9, w8
	ldp	x12, x10, [x0, #8]
	ldr	x11, [x10, x9, lsl #3]
	str	x11, [x10, x12, lsl #3]
	ldr	x10, [x0, #24]
	add	w11, w8, #1
	str	w11, [x0]
	ldr	w13, [x10, x9, lsl #2]
	add	x9, x12, #1
	str	w13, [x10, x12, lsl #2]
	tst	w11, #0xf
	b.eq	LBB0_5
; %bb.2:
	add	w8, w8, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x0]
	ldr	x11, [x0, #16]
	ldr	x12, [x11, x10, lsl #3]
	str	x12, [x11, x9, lsl #3]
	ldr	x11, [x0, #24]
	add	w12, w10, #1
	str	w12, [x0]
	ldr	w12, [x11, x10, lsl #2]
	add	x10, x9, #1
	str	w12, [x11, x9, lsl #2]
	mov	x9, x10
	tst	w8, #0xf
	add	w8, w8, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
	ldr	x10, [x0, #8]
	b	LBB0_7
LBB0_5:
	mov	x10, x9
LBB0_6:
	ldr	w8, [x0]
LBB0_7:
	and	x9, x10, #0x1ff
	str	x9, [x0, #8]
	and	w8, w8, #0x1ff
	str	w8, [x0]
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.8:
	ldr	x10, [x0, #16]
Lloh0:
	adrp	x11, _RX_OFFSET@GOTPAGE
Lloh1:
	ldr	x11, [x11, _RX_OFFSET@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x8, lsl #3]
	ldr	x12, [x12]
	ldr	x13, [x11]
	sub	x12, x12, x13
	str	xzr, [x12]
	add	w8, w8, #1
	and	w8, w8, #0x1ff
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_10:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_OFFSET,8,3                  ; @RX_OFFSET
	.no_dead_strip	_ioc3_clean_rx_ring
.subsections_via_symbols
