	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_prep_interleaved
_axi_dmac_prep_interleaved:             ## @axi_dmac_prep_interleaved
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_to_axi_dmac_chan
	cmpl	$1, (%rbx)
	jne	LBB0_13
## %bb.1:
	movq	%rax, %r15
	movq	8(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.2:
	movq	%r15, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpl	$0, 44(%rbx)
	je	LBB0_13
## %bb.4:
	movl	36(%rbx), %esi
	movq	%r15, %rdi
	callq	_axi_dmac_check_addr
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:
	movq	%r15, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpl	$0, 40(%rbx)
	je	LBB0_13
## %bb.7:
	movl	32(%rbx), %esi
	movq	%r15, %rdi
	callq	_axi_dmac_check_addr
	testl	%eax, %eax
	je	LBB0_13
LBB0_8:
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_dmaengine_get_dst_icg
	movq	%rax, %r12
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_dmaengine_get_src_icg
	movq	%rax, %r13
	cmpq	$0, 24(%r15)
	je	LBB0_14
## %bb.9:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_axi_dmac_check_len
	testl	%eax, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$0, 16(%rbx)
	je	LBB0_13
## %bb.11:
	movq	24(%rbx), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax), %rdx
	movq	8(%r15), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_13
## %bb.12:
	addq	%r13, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_20
	jmp	LBB0_13
LBB0_14:
	movq	%r12, %rax
	orq	%r13, %rax
	jne	LBB0_13
## %bb.15:
	movq	8(%r15), %rax
	movq	24(%rbx), %rcx
	movslq	(%rcx), %rsi
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_16
## %bb.17:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_18
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_18:
	movslq	16(%rbx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_13
## %bb.19:
	imull	%ecx, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_axi_dmac_check_len
	testl	%eax, %eax
	je	LBB0_13
LBB0_20:
	movl	$1, %edi
	callq	_axi_dmac_alloc_desc
	testq	%rax, %rax
	je	LBB0_13
## %bb.21:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	36(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	%eax, 32(%rcx)
	movq	24(%rbx), %rax
	movslq	(%rax), %rax
	addq	%rax, %r13
	movq	%r13, (%rcx)
LBB0_23:
	movq	%r15, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_25
## %bb.24:
	movl	32(%rbx), %eax
	movq	8(%rsi), %rcx
	movl	%eax, 28(%rcx)
	movq	24(%rbx), %rax
	movslq	(%rax), %rax
	addq	%rax, %r12
	movq	%r12, 8(%rcx)
LBB0_25:
	cmpq	$0, 24(%r15)
	movq	24(%rbx), %rax
	movslq	(%rax), %rcx
	je	LBB0_27
## %bb.26:
	movq	8(%rsi), %rax
	movq	%rcx, 16(%rax)
	movl	16(%rbx), %ecx
	jmp	LBB0_28
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movslq	16(%rbx), %rdx
	imulq	%rcx, %rdx
	movq	8(%rsi), %rax
	movq	%rdx, 16(%rax)
	movl	$1, %ecx
LBB0_28:
	movl	%ecx, 24(%rax)
	movq	_DMA_CYCLIC@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_30
## %bb.29:
	movl	$1, (%rsi)
LBB0_30:
	addq	$16, %r15
	addq	$4, %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vchan_tx_prep                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CYCLIC,8,3                 ## @DMA_CYCLIC
	.no_dead_strip	_axi_dmac_prep_interleaved
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_prep_interleaved
_axi_dmac_prep_interleaved:             ; @axi_dmac_prep_interleaved
	.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, x2
	mov	x21, x1
	bl	_to_axi_dmac_chan
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.2:
	mov	x0, x20
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x21, #44]
	cbz	w8, LBB0_23
; %bb.4:
	ldr	w1, [x21, #36]
	mov	x0, x20
	bl	_axi_dmac_check_addr
	cbz	w0, LBB0_23
LBB0_5:
	mov	x0, x20
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_23
; %bb.7:
	ldr	w1, [x21, #32]
	mov	x0, x20
	bl	_axi_dmac_check_addr
	cbz	w0, LBB0_23
LBB0_8:
	ldr	x1, [x21, #24]
	mov	x0, x21
	bl	_dmaengine_get_dst_icg
	mov	x22, x0
	ldr	x1, [x21, #24]
	mov	x0, x21
	bl	_dmaengine_get_src_icg
	mov	x23, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_axi_dmac_check_len
	cbz	w0, LBB0_23
; %bb.10:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_23
; %bb.11:
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8]
	ldr	x9, [x20, #8]
	add	x10, x22, x8
	cmp	x10, x9
	b.hi	LBB0_23
; %bb.12:
	add	x8, x23, x8
	cmp	x8, x9
	b.ls	LBB0_16
	b	LBB0_23
LBB0_13:
	orr	x8, x22, x23
	cbnz	x8, LBB0_23
; %bb.14:
	ldr	x9, [x20, #8]
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8]
	udiv	x10, x9, x8
	ldrsw	x9, [x21, #16]
	cmp	x10, x9
	b.lo	LBB0_23
; %bb.15:
	mul	w1, w9, w8
	mov	x0, x20
	bl	_axi_dmac_check_len
	cbz	w0, LBB0_23
LBB0_16:
	mov	w0, #1
	bl	_axi_dmac_alloc_desc
	cbz	x0, LBB0_23
; %bb.17:
	mov	x24, x0
	mov	x0, x20
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w8, [x21, #36]
	ldr	x9, [x24, #8]
	str	w8, [x9, #32]
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8]
	add	x8, x23, x8
	str	x8, [x9]
LBB0_19:
	mov	x0, x20
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w8, [x21, #32]
	ldr	x9, [x24, #8]
	str	w8, [x9, #28]
	ldr	x8, [x21, #24]
	ldrsw	x8, [x8]
	add	x8, x22, x8
	str	x8, [x9, #8]
LBB0_21:
	ldr	x8, [x20, #24]
	ldr	x9, [x21, #24]
	ldrsw	x9, [x9]
	cbz	x8, LBB0_24
; %bb.22:
	ldr	x8, [x24, #8]
	str	x9, [x8, #16]
	ldr	w9, [x21, #16]
	b	LBB0_25
LBB0_23:
	mov	x0, #0
	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
LBB0_24:
	ldrsw	x8, [x21, #16]
	mul	x9, x8, x9
	ldr	x8, [x24, #8]
	str	x9, [x8, #16]
	mov	w9, #1
LBB0_25:
	str	w9, [x8, #24]
Lloh0:
	adrp	x8, _DMA_CYCLIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CYCLIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x19
	b.eq	LBB0_27
; %bb.26:
	mov	w8, #1
	str	w8, [x24]
LBB0_27:
	add	x0, x20, #16
	add	x1, x24, #4
	mov	x2, x19
	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
	b	_vchan_tx_prep
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CYCLIC,8,3                 ; @DMA_CYCLIC
	.no_dead_strip	_axi_dmac_prep_interleaved
.subsections_via_symbols
