	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s6dmac_put_fifo_cache          ## -- Begin function s6dmac_put_fifo_cache
	.p2align	4, 0x90
_s6dmac_put_fifo_cache:                 ## @s6dmac_put_fifo_cache
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	movl	%edx, %edi
	callq	_xtensa_need_flush_dma_source
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_10
## %bb.1:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_DMA_CHNL
	movq	_S6_DMA_CMONCHUNK@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%r13d, %esi
	movl	%r15d, %edi
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	%eax, %r12d
	movl	%r13d, %esi
	movl	%r15d, %edi
	cmpl	%r13d, %eax
	jge	LBB0_9
## %bb.3:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_DMA_CHNL
	movq	_S6_DMA_SRCSKIP@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %ecx
	leal	(%r12,%r13), %eax
	decl	%eax
	cltd
	idivl	%r12d
	movl	%eax, %esi
	decl	%esi
	testl	%ecx, %ecx
	js	LBB0_5
## %bb.4:
	imull	%ecx, %esi
	addl	%r13d, %esi
	jmp	LBB0_8
LBB0_5:
	movl	%ecx, %eax
	negl	%eax
	cmpl	%eax, %r12d
	jge	LBB0_7
## %bb.6:
	addl	%r12d, %ecx
	imull	%ecx, %esi
	subl	%esi, %r12d
	movl	%esi, %edi
	addl	%r15d, %edi
	movl	%r12d, %esi
	jmp	LBB0_9
LBB0_7:
	movl	%esi, %edi
	imull	%ecx, %edi
	addl	%r13d, %edi
	addl	%ecx, %r12d
	imull	%esi, %r12d
	subl	%ecx, %r12d
	movl	%r12d, %esi
	callq	_max
	movl	%eax, %esi
LBB0_8:
	movl	%r15d, %edi
LBB0_9:
	callq	_flush_dcache_unaligned
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_10:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_xtensa_need_invalidate_dma_destination
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movl	%ebx, %edi
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_DMA_CHNL
	movq	_S6_DMA_CMONCHUNK@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%r13d, %esi
	movl	%r12d, %edi
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movl	%eax, %ebx
	movl	%r13d, %esi
	movl	%r12d, %edi
	cmpl	%r13d, %eax
	jge	LBB0_19
## %bb.13:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_DMA_CHNL
	movq	_S6_DMA_DSTSKIP@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movl	%eax, %ecx
	leal	(%rbx,%r13), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	%eax, %esi
	decl	%esi
	testl	%ecx, %ecx
	js	LBB0_15
## %bb.14:
	imull	%ecx, %esi
	addl	%r13d, %esi
	jmp	LBB0_18
LBB0_15:
	movl	%ecx, %eax
	negl	%eax
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.16:
	addl	%ebx, %ecx
	imull	%ecx, %esi
	subl	%esi, %ebx
	movl	%esi, %edi
	addl	%r12d, %edi
	movl	%ebx, %esi
	jmp	LBB0_19
LBB0_17:
	movl	%esi, %edi
	imull	%ecx, %edi
	addl	%r13d, %edi
	addl	%ecx, %ebx
	imull	%esi, %ebx
	subl	%ecx, %ebx
	movl	%ebx, %esi
	callq	_max
	movl	%eax, %esi
LBB0_18:
	movl	%r12d, %edi
LBB0_19:
	callq	_invalidate_dcache_unaligned
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_20:
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s6dmac_put_fifo                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_DMA_CMONCHUNK,8,3           ## @S6_DMA_CMONCHUNK
	.comm	_S6_DMA_SRCSKIP,8,3             ## @S6_DMA_SRCSKIP
	.comm	_S6_DMA_DSTSKIP,8,3             ## @S6_DMA_DSTSKIP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s6dmac_put_fifo_cache          ; -- Begin function s6dmac_put_fifo_cache
	.p2align	2
_s6dmac_put_fifo_cache:                 ; @s6dmac_put_fifo_cache
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x2
	bl	_xtensa_need_flush_dma_source
Lloh0:
	adrp	x25, _S6_DMA_CMONCHUNK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _S6_DMA_CMONCHUNK@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_DMA_CHNL
	ldr	x8, [x25]
	add	x0, x8, x0
	bl	_readl
	mov	x24, x0
	cmp	w0, #0
	ccmp	w0, w19, #0, ne
	mov	x1, x19
	mov	x0, x21
	b.ge	LBB0_8
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	bl	_DMA_CHNL
Lloh2:
	adrp	x8, _S6_DMA_SRCSKIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S6_DMA_SRCSKIP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_readl
	add	w8, w19, w24
	sub	w8, w8, #1
	sdiv	w8, w8, w24
	sub	w9, w8, #1
	tbnz	w0, #31, LBB0_4
; %bb.3:
	madd	w1, w9, w0, w19
	b	LBB0_7
LBB0_4:
	neg	w8, w0
	cmp	w24, w8
	b.ge	LBB0_6
; %bb.5:
	add	w8, w0, w24
	mul	w8, w9, w8
	add	w0, w8, w21
	sub	w1, w24, w8
	b	LBB0_8
LBB0_6:
	madd	w8, w9, w0, w19
	add	w10, w0, w24
	neg	w11, w0
	madd	w1, w9, w10, w11
	mov	x0, x8
	bl	_max
	mov	x1, x0
LBB0_7:
	mov	x0, x21
LBB0_8:
	bl	_flush_dcache_unaligned
LBB0_9:
	mov	x0, x20
	bl	_xtensa_need_invalidate_dma_destination
	cbz	x0, LBB0_18
; %bb.10:
	mov	x0, x23
	mov	x1, x22
	bl	_DMA_CHNL
	ldr	x8, [x25]
	add	x0, x8, x0
	bl	_readl
	mov	x24, x0
	cmp	w0, #0
	ccmp	w0, w19, #0, ne
	mov	x1, x19
	mov	x0, x20
	b.ge	LBB0_17
; %bb.11:
	mov	x0, x23
	mov	x1, x22
	bl	_DMA_CHNL
Lloh5:
	adrp	x8, _S6_DMA_DSTSKIP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S6_DMA_DSTSKIP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, x0
	bl	_readl
	add	w8, w19, w24
	sub	w8, w8, #1
	sdiv	w8, w8, w24
	sub	w9, w8, #1
	tbnz	w0, #31, LBB0_13
; %bb.12:
	madd	w1, w9, w0, w19
	b	LBB0_16
LBB0_13:
	neg	w8, w0
	cmp	w24, w8
	b.ge	LBB0_15
; %bb.14:
	add	w8, w0, w24
	mul	w8, w9, w8
	add	w0, w8, w20
	sub	w1, w24, w8
	b	LBB0_17
LBB0_15:
	madd	w8, w9, w0, w19
	add	w10, w0, w24
	neg	w11, w0
	madd	w1, w9, w10, w11
	mov	x0, x8
	bl	_max
	mov	x1, x0
LBB0_16:
	mov	x0, x20
LBB0_17:
	bl	_invalidate_dcache_unaligned
LBB0_18:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, 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	_s6dmac_put_fifo
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_DMA_CMONCHUNK,8,3           ; @S6_DMA_CMONCHUNK
	.comm	_S6_DMA_SRCSKIP,8,3             ; @S6_DMA_SRCSKIP
	.comm	_S6_DMA_DSTSKIP,8,3             ; @S6_DMA_DSTSKIP
.subsections_via_symbols
