	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_hw_rings
_setup_hw_rings:                        ## @setup_hw_rings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NUM_RX_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	leaq	-1(%r8), %rax
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rax
	jae	LBB0_9
## %bb.2:
	xorl	%r11d, %r11d
	jmp	LBB0_3
LBB0_9:
	andl	$-4, %r8d
	xorl	%eax, %eax
	xorl	%r11d, %r11d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%rax), %r10
	movq	8(%rdi), %rcx
	movq	%r10, (%rcx,%rax,2)
	leaq	(%rsi,%rax), %r10
	addq	$4, %r10
	movq	8(%rdi), %rcx
	movq	%r10, 8(%rcx,%rax,2)
	leaq	8(%rsi,%rax), %r10
	movq	8(%rdi), %rcx
	movq	%r10, 16(%rcx,%rax,2)
	leaq	(%rsi,%rax), %r10
	addq	$12, %r10
	movq	8(%rdi), %rcx
	movq	%r10, 24(%rcx,%rax,2)
	addq	$4, %r11
	addq	$16, %rax
	cmpq	%r11, %r8
	jne	LBB0_10
LBB0_3:
	testq	%r9, %r9
	je	LBB0_6
## %bb.4:
	shlq	$2, %r11
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%r11), %r8
	movq	8(%rdi), %rax
	movq	%r8, (%rax,%r11,2)
	addq	$4, %r11
	decq	%r9
	jne	LBB0_5
LBB0_6:
	movq	_NUM_TX_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.7:
	leaq	-1(%r8), %rcx
	movl	%r8d, %r10d
	andl	$3, %r10d
	cmpq	$3, %rcx
	jae	LBB0_11
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_11:
	andl	$-4, %r8d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdx,%rsi), %r9
	movq	(%rdi), %rax
	movq	%r9, (%rax,%rsi,2)
	leaq	(%rdx,%rsi), %r9
	addq	$4, %r9
	movq	(%rdi), %rax
	movq	%r9, 8(%rax,%rsi,2)
	leaq	8(%rdx,%rsi), %r9
	movq	(%rdi), %rax
	movq	%r9, 16(%rax,%rsi,2)
	leaq	(%rdx,%rsi), %r9
	addq	$12, %r9
	movq	(%rdi), %rax
	movq	%r9, 24(%rax,%rsi,2)
	addq	$4, %rcx
	addq	$16, %rsi
	cmpq	%rcx, %r8
	jne	LBB0_12
LBB0_13:
	testq	%r10, %r10
	je	LBB0_16
## %bb.14:
	shlq	$2, %rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdx,%rcx), %rax
	movq	(%rdi), %rsi
	movq	%rax, (%rsi,%rcx,2)
	addq	$4, %rcx
	decq	%r10
	jne	LBB0_15
LBB0_16:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_RX_DMA,4,2                 ## @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ## @NUM_TX_DMA
	.no_dead_strip	_setup_hw_rings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_hw_rings
_setup_hw_rings:                        ; @setup_hw_rings
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NUM_RX_DMA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_RX_DMA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0, #8]
	str	x1, [x10, x8]
	add	x8, x8, #8
	add	x1, x1, #4
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_3:
Lloh3:
	adrp	x8, _NUM_TX_DMA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_TX_DMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x8, #0
	lsl	x9, x9, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x0]
	str	x2, [x10, x8]
	add	x8, x8, #8
	add	x2, x2, #4
	cmp	x9, x8
	b.ne	LBB0_5
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_RX_DMA,4,2                 ; @NUM_RX_DMA
	.comm	_NUM_TX_DMA,4,2                 ; @NUM_TX_DMA
	.no_dead_strip	_setup_hw_rings
.subsections_via_symbols
