	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function fv_tx_ring_init
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_fv_tx_ring_init:                       ## @fv_tx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rdi)
	movups	%xmm0, 16(%rdi)
	movq	48(%rdi), %rdi
	movq	_FV_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bzero
	movq	_FV_TX_RING_CNT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %r12
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_FV_TX_RING_ADDR
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r14), %rcx
	movq	%rbx, %rdx
	shlq	$5, %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rcx,%rdx)
	movq	$0, 24(%rcx,%rdx)
	movl	%eax, (%rcx,%rdx)
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movslq	(%r15), %rax
	movq	%r12, %rbx
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_FV_TX_RING_ADDR
	leaq	1(%rbx), %r12
	jmp	LBB0_5
LBB0_6:
	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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FV_TX_RING_SIZE,4,2            ## @FV_TX_RING_SIZE
	.comm	_FV_TX_RING_CNT,4,2             ## @FV_TX_RING_CNT
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ## @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_tx_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_tx_ring_init
_fv_tx_ring_init:                       ; @fv_tx_ring_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #16]
	ldr	x0, [x0, #48]
Lloh0:
	adrp	x8, _FV_TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FV_TX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bzero
Lloh3:
	adrp	x21, _FV_TX_RING_CNT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _FV_TX_RING_CNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x22, #1
	mov	x0, x19
	mov	x1, x20
	bl	_FV_TX_RING_ADDR
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	add	x8, x8, x22, lsl #5
	stp	xzr, xzr, [x8, #8]
	str	xzr, [x8, #24]
	str	w0, [x8]
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22, lsl #3]
	ldrsw	x8, [x21]
	mov	x22, x20
	cmp	x20, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_FV_TX_RING_ADDR
	add	x20, x22, #1
	b	LBB0_3
LBB0_6:
Lloh5:
	adrp	x8, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	ldp	w1, w0, [x19]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BUS_DMASYNC_PREWRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BUS_DMASYNC_PREWRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_bus_dmamap_sync
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FV_TX_RING_SIZE,4,2            ; @FV_TX_RING_SIZE
	.comm	_FV_TX_RING_CNT,4,2             ; @FV_TX_RING_CNT
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_BUS_DMASYNC_PREWRITE,4,2       ; @BUS_DMASYNC_PREWRITE
	.no_dead_strip	_fv_tx_ring_init
.subsections_via_symbols
