	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_rx_ring_init
_fv_rx_ring_init:                       ## @fv_rx_ring_init
	.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, %r14
	movq	$0, 16(%rdi)
	movq	24(%rdi), %rdi
	movq	_FV_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bzero
	movq	_FV_RX_RING_CNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_ADSTAT_OWN@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	$0, 8(%rcx,%rbx)
	movq	24(%r14), %rax
	leaq	(%rax,%rbx), %rdx
	movq	%rdx, (%rcx,%rbx)
	movl	(%r13), %ecx
	movl	%ecx, 12(%rax,%rbx)
	movl	$0, 8(%rax,%rbx)
	movl	(%r15), %ecx
	decl	%ecx
	cmpq	%rcx, %r12
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ADCTL_ER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax,%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%rax,%rbx)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_fv_newbuf
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_7:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %rax
	movq	_BUS_DMASYNC_PREWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_bus_dmamap_sync
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FV_RX_RING_SIZE,4,2            ## @FV_RX_RING_SIZE
	.comm	_FV_RX_RING_CNT,4,2             ## @FV_RX_RING_CNT
	.comm	_ADSTAT_OWN,4,2                 ## @ADSTAT_OWN
	.comm	_ADCTL_ER,4,2                   ## @ADCTL_ER
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_rx_ring_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_rx_ring_init
_fv_rx_ring_init:                       ; @fv_rx_ring_init
	.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	x19, x0
	str	xzr, [x0, #16]
	ldr	x0, [x0, #24]
Lloh0:
	adrp	x8, _FV_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FV_RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bzero
Lloh3:
	adrp	x21, _FV_RX_RING_CNT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FV_RX_RING_CNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x20, #0
Lloh5:
	adrp	x23, _ADSTAT_OWN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ADSTAT_OWN@GOTPAGEOFF]
Lloh7:
	adrp	x24, _ADCTL_ER@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ADCTL_ER@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x10, x8, x22
	ldr	x8, [x19, #24]
	add	x9, x8, x22
	stp	x9, xzr, [x10]
	ldr	w10, [x23]
	stp	wzr, w10, [x9, #8]
	ldr	w10, [x21]
	sub	w10, w10, #1
	cmp	x20, x10
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x24]
	str	w10, [x9, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x8, x22]
	mov	x0, x19
	mov	x1, x20
	bl	_fv_newbuf
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_6:
Lloh9:
	adrp	x8, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	ldp	w1, w0, [x19]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FV_RX_RING_SIZE,4,2            ; @FV_RX_RING_SIZE
	.comm	_FV_RX_RING_CNT,4,2             ; @FV_RX_RING_CNT
	.comm	_ADSTAT_OWN,4,2                 ; @ADSTAT_OWN
	.comm	_ADCTL_ER,4,2                   ; @ADCTL_ER
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_rx_ring_init
.subsections_via_symbols
