	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r6040_init_ring_desc
_r6040_init_ring_desc:                  ## @r6040_init_ring_desc
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rdi, %r15
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movl	%edx, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	16(%rax), %ebx
	incl	%r12d
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	leaq	16(%r13), %r15
	movq	%r15, (%r13)
	addl	$16, %ebx
	decl	%r12d
	movq	%r15, %r13
	cmpl	$1, %r12d
	ja	LBB0_2
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le32
	movq	%rax, -8(%r15)
	movq	%r14, -16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_r6040_init_ring_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r6040_init_ring_desc
_r6040_init_ring_desc:                  ; @r6040_init_ring_desc
	.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
	mov	x23, x0
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	add	w21, w20, #16
	add	w22, w2, #1
	mov	x24, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cpu_to_le32
	add	x23, x24, #16
	stp	x23, x0, [x24]
	add	w21, w21, #16
	sub	w22, w22, #1
	mov	x24, x23
	cmp	w22, #1
	b.hi	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_cpu_to_le32
	stp	x19, x0, [x23, #-16]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_r6040_init_ring_desc
.subsections_via_symbols
