	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_dma_add_op_transfers   ## -- Begin function mv_cesa_dma_add_op_transfers
	.p2align	4, 0x90
_mv_cesa_dma_add_op_transfers:          ## @mv_cesa_dma_add_op_transfers
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_CESA_TDMA_DST_IN_SRAM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CESA_TDMA_SRC_IN_SRAM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mv_cesa_req_dma_iter_transfer_len
	movl	%eax, %r14d
	movq	(%r13), %rax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %r12
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	movl	24(%r13), %edi
	callq	_sg_dma_address
	movq	%rax, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r13), %edi
	callq	_sg_dma_address
	movq	%rax, %r12
	addq	16(%r13), %r12
	movq	_CESA_SA_DATA_SRAM_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	(%rax), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_mv_cesa_dma_add_data_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_mv_cesa_req_dma_iter_next_transfer
	testq	%rax, %rax
	jne	LBB0_4
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,8,3              ## @DMA_TO_DEVICE
	.comm	_CESA_TDMA_DST_IN_SRAM,4,2      ## @CESA_TDMA_DST_IN_SRAM
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ## @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_SA_DATA_SRAM_OFFSET,8,3   ## @CESA_SA_DATA_SRAM_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv_cesa_dma_add_op_transfers   ; -- Begin function mv_cesa_dma_add_op_transfers
	.p2align	2
_mv_cesa_dma_add_op_transfers:          ; @mv_cesa_dma_add_op_transfers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x26, x2
	ldr	x8, [x26], #8
Lloh0:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CESA_TDMA_DST_IN_SRAM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CESA_TDMA_DST_IN_SRAM@GOTPAGEOFF]
Lloh5:
	adrp	x11, _CESA_TDMA_SRC_IN_SRAM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CESA_TDMA_SRC_IN_SRAM@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w23, [x8]
	add	x28, x2, #16
Lloh7:
	adrp	x27, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGE
Lloh8:
	ldr	x27, [x27, _CESA_SA_DATA_SRAM_OFFSET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_mv_cesa_req_dma_iter_transfer_len
	mov	x24, x0
	ldr	x8, [x20]
Lloh9:
	adrp	x9, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x20, #8]
	add	x25, x9, x8
	ldr	w0, [x20, #24]
	bl	_sg_dma_address
	mov	x8, x28
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20, #24]
	bl	_sg_dma_address
	ldr	x8, [x20, #16]
	add	x25, x8, x0
	ldr	x0, [x27]
	mov	x8, x26
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	add	x2, x8, x0
	mov	x0, x22
	mov	x1, x25
	mov	x3, x24
	mov	x4, x23
	mov	x5, x19
	bl	_mv_cesa_dma_add_data_transfer
	mov	x25, x0
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_mv_cesa_req_dma_iter_next_transfer
	cbnz	x0, LBB0_1
LBB0_6:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,8,3              ; @DMA_TO_DEVICE
	.comm	_CESA_TDMA_DST_IN_SRAM,4,2      ; @CESA_TDMA_DST_IN_SRAM
	.comm	_CESA_TDMA_SRC_IN_SRAM,4,2      ; @CESA_TDMA_SRC_IN_SRAM
	.comm	_CESA_SA_DATA_SRAM_OFFSET,8,3   ; @CESA_SA_DATA_SRAM_OFFSET
.subsections_via_symbols
