	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_ring_format
_ravb_ring_format:                      ## @ravb_ring_format
	.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
	subq	$40, %rsp
	.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, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%rax), %r15d
	movq	8(%rax), %rax
	movslq	%ebx, %rbx
	movl	(%rax,%rbx,4), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	imull	%r15d, %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %r13d
	movq	104(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	96(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	88(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	80(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r12), %rax
	cmpl	$0, (%rax,%rbx,4)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_5
## %bb.1:
	movl	$2, %r13d
	xorl	%r14d, %r14d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, -8(%r15,%r13,8)
	movq	_DT_FEMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%r15,%r13,8)
	incq	%r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rax,%rbx,4), %rax
	addq	$3, %r13
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	movl	64(%r12), %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15,%r13,8)
	movq	%r12, %rcx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	72(%rcx), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %esi
	movl	64(%rcx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15,%r13,8)
	jmp	LBB0_4
LBB0_5:
	movq	40(%r12), %rax
	movq	56(%r12), %rcx
	movq	%rbx, %r13
	movq	(%rcx,%rbx,8), %rbx
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	leaq	(%r14,%r14,2), %rcx
	movq	%rax, 8(%rbx,%rcx,8)
	movq	_DT_LINKFIX@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%rbx,%rcx,8)
	movq	48(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	xorl	%esi, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	16(%r12), %rax
	movq	48(%r12), %rcx
	movq	(%rcx,%r13,8), %rbx
	movl	(%rax,%r13,4), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.6:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_14:
	testb	$1, %al
	je	LBB0_18
## %bb.15:
	movq	_DT_EEMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpl	$2, %edi
	jl	LBB0_17
## %bb.16:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	addq	$24, %rbx
LBB0_17:
	addq	$24, %rbx
LBB0_18:
	movq	24(%r12), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	32(%r12), %r14
	movq	_RX_QUEUE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	%r13, %rbx
	movq	(%r15), %rax
	shlq	$4, %rbx
	movq	%rax, 8(%r14,%rbx)
	movq	40(%r12), %rax
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14,%rbx)
	movq	32(%r12), %r14
	movq	(%r15), %rax
	movq	%r13, %rbx
	shlq	$4, %rbx
	movq	%rax, 8(%r14,%rbx)
	movq	24(%r12), %rax
	movl	(%rax,%r13,8), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14,%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%eax, %ecx
	andl	$-2, %ecx
	movq	_DT_EEMPTY@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$48, %rbx
	addl	$-2, %ecx
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, (%rbx)
	cmpl	$2, %edi
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, 24(%rbx)
	addq	$24, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, 24(%rbx)
	cmpl	$2, %edi
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, 48(%rbx)
	addq	$24, %rbx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DT_FEMPTY,8,3                  ## @DT_FEMPTY
	.comm	_DT_LINKFIX,8,3                 ## @DT_LINKFIX
	.comm	_DT_EEMPTY,8,3                  ## @DT_EEMPTY
	.comm	_RX_QUEUE_OFFSET,4,2            ## @RX_QUEUE_OFFSET
	.no_dead_strip	_ravb_ring_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_ring_format
_ravb_ring_format:                      ; @ravb_ring_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w12, [x0]
	sxtw	x22, w23
	sbfiz	x20, x23, #2, #32
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	sbfiz	x8, x23, #3, #32
	ldp	x10, x9, [x0, #96]
	str	xzr, [x9, x8]
	str	xzr, [x10, x8]
	ldp	x10, x9, [x0, #80]
	str	xzr, [x9, x8]
	ldp	x9, x11, [x0, #8]
	ldr	w9, [x9, x20]
	add	w9, w9, w9, lsl #1
	lsl	w2, w9, #3
	ldr	w9, [x11, x20]
	mul	w9, w12, w9
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #3
	stp	w12, w9, [sp]                   ; 8-byte Folded Spill
	str	xzr, [x10, x8]
	ldr	x9, [x0, #56]
	ldr	x0, [x9, x8]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x20]
	mov	x25, x22
	lsl	x26, x22, #3
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x28, #0
	mov	x27, #0
Lloh0:
	adrp	x22, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x20, _DT_FEMPTY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DT_FEMPTY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x24, #8]
	ldr	x8, [x20]
	str	x8, [x24]
	add	x27, x27, #1
	ldr	x8, [x19, #8]
	ldrsw	x8, [x8, x25, lsl #2]
	add	x28, x28, #24
	cmp	x27, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	ldr	x23, [x8, x26]
	ldr	w0, [x19, #64]
	bl	_cpu_to_le16
	add	x24, x23, x28
	str	x0, [x24, #16]
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x26]
	ldr	w0, [x21]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w1, [x8]
	ldr	w2, [x19, #64]
	ldr	w3, [x22]
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x21]
	mov	x1, x23
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	b	LBB0_2
LBB0_5:
	mov	x27, #0
LBB0_6:
	ldr	x8, [x19, #56]
	ldr	x20, [x8, x26]
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x26]
	bl	_cpu_to_le32
	mov	w8, #24
	madd	x8, x27, x8, x20
Lloh4:
	adrp	x21, _DT_LINKFIX@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DT_LINKFIX@GOTPAGEOFF]
	str	x0, [x8, #8]
	ldr	x9, [x21]
	str	x9, [x8]
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x26]
	mov	w1, #0
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	bl	_memset
	ldr	x8, [x19, #48]
	ldr	x20, [x8, x26]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
Lloh6:
	adrp	x9, _DT_EEMPTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DT_EEMPTY@GOTPAGEOFF]
	ldr	w11, [sp]                       ; 4-byte Folded Reload
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, #24
	subs	w8, w8, #1
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	str	x10, [x20]
	cmp	w11, #2
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x10, [x9]
	str	x10, [x20, #24]!
	b	LBB0_8
LBB0_11:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x26]
	bl	_cpu_to_le32
	ldr	x8, [x21]
	stp	x8, x0, [x20]
Lloh8:
	adrp	x8, _RX_QUEUE_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_QUEUE_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	w8, w8, w9
	ldr	x9, [x21]
	ldp	x10, x11, [x19, #32]
	add	x20, x10, w8, sxtw #4
	str	x9, [x20, #8]
	ldr	w0, [x11, x26]
	bl	_cpu_to_le32
	str	x0, [x20]
	ldr	x8, [x21]
	ldp	x10, x9, [x19, #24]
	add	x19, x9, x25, lsl #4
	str	x8, [x19, #8]
	ldr	w0, [x10, x26]
	bl	_cpu_to_le32
	str	x0, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DT_FEMPTY,8,3                  ; @DT_FEMPTY
	.comm	_DT_LINKFIX,8,3                 ; @DT_LINKFIX
	.comm	_DT_EEMPTY,8,3                  ; @DT_EEMPTY
	.comm	_RX_QUEUE_OFFSET,4,2            ; @RX_QUEUE_OFFSET
	.no_dead_strip	_ravb_ring_format
.subsections_via_symbols
