	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function init_ring
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_init_ring:                             ## @init_ring
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rax)
	movq	_TX_RING_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	64(%r15), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movslq	(%r13), %rax
	movslq	%edx, %rdi
	addq	%rax, %rdi
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	callq	_cpu_to_le32
	movq	56(%r15), %rcx
	movq	%rax, (%rcx,%r14)
	movq	$0, -8(%rcx,%r14)
	movslq	(%r12), %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_bufsize
	movq	16(%r15), %rax
	movq	%rax, 32(%r15)
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	movq	_DescOwn@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r13
	movl	%r13d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(,%rdx,4), %rdi
	addq	24(%r15), %rdi
	callq	_cpu_to_le32
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx,2)
	movq	(%r14), %rdi
	callq	_cpu_to_le32
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,2)
	movq	8(%r15), %rax
	movq	$0, (%rax,%rbx)
	movslq	(%r12), %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_refill_rx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dump_ring                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_SIZE,4,2               ## @TX_RING_SIZE
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_DescOwn,8,3                    ## @DescOwn
	.no_dead_strip	_init_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_ring
_init_ring:                             ; @init_ring
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	xzr, xzr, [x0, #72]
Lloh0:
	adrp	x22, _TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _RX_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RX_RING_SIZE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #64]
	str	xzr, [x9, x24, lsl #3]
	ldr	x9, [x20, #24]
	add	x24, x24, #1
	sdiv	w10, w24, w8
	msub	w8, w10, w8, w24
	ldr	w10, [x21]
	add	w8, w10, w8
	add	x0, x9, w8, sxtw #2
	bl	_cpu_to_le32
	ldr	x8, [x20, #56]
	add	x8, x8, x23
	stp	xzr, x0, [x8]
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x21]
	str	w8, [x20]
	stp	xzr, xzr, [x20, #40]
	mov	x0, x19
	bl	_set_bufsize
	ldr	x8, [x20, #16]
	str	x8, [x20, #32]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x24, #0
Lloh4:
	adrp	x23, _DescOwn@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DescOwn@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #24]
	add	x25, x24, #1
	sdiv	w10, w25, w8
	msub	w8, w10, w8, w25
	add	x0, x9, w8, uxtw #2
	bl	_cpu_to_le32
	ldr	x8, [x20, #16]
	add	x8, x8, x22
	str	x0, [x8, #8]
	ldr	x0, [x23]
	bl	_cpu_to_le32
	ldp	x9, x8, [x20, #8]
	str	x0, [x8, x22]
	str	xzr, [x9, x24, lsl #3]
	ldrsw	x8, [x21]
	add	x22, x22, #16
	mov	x24, x25
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_refill_rx
	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	_dump_ring
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_SIZE,4,2               ; @TX_RING_SIZE
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_DescOwn,8,3                    ; @DescOwn
	.no_dead_strip	_init_ring
.subsections_via_symbols
