	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_start_transfer
_axi_dmac_start_transfer:               ## @axi_dmac_start_transfer
	.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
	movq	%rdi, %rbx
	callq	_chan_to_axi_dmac
	movq	%rax, %r14
	movq	_AXI_DMAC_REG_START_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_axi_dmac_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_4
## %bb.2:
	leaq	28(%rbx), %rdi
	callq	_vchan_next_desc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	leaq	24(%rbx), %rsi
	movq	%rax, %rdi
	callq	_list_move_tail
	movq	%r15, %rdi
	callq	_to_axi_dmac_desc
	movq	%rax, %r15
LBB0_4:
	movq	(%r15), %rax
	movq	32(%r15), %r13
	leaq	(%rax,%rax,4), %r12
	movq	32(%r13,%r12,8), %rcx
	movq	_AXI_DMAC_SG_UNUSED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movl	$1, (%r13,%r12,8)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	32(,%r12,8), %rdx
	addq	%r13, %rdx
	incq	%rax
	movq	%rax, (%r15)
	movslq	8(%r15), %rcx
	cmpq	%rcx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.8:
	cmpq	$0, 24(%r15)
	je	LBB0_23
LBB0_9:
	cmpq	$0, 16(%r15)
	je	LBB0_11
## %bb.10:
	movq	$0, (%r15)
	jmp	LBB0_12
LBB0_11:
	movq	$0, 16(%rbx)
LBB0_12:
	movq	_AXI_DMAC_FLAG_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_13:
	movq	_AXI_DMAC_REG_TRANSFER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_axi_dmac_read
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_AXI_DMAC_REG_DEST_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13,%r12,8), %edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
	movq	_AXI_DMAC_REG_DEST_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13,%r12,8), %edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
LBB0_15:
	movq	%rbx, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_AXI_DMAC_REG_SRC_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r13,%r12,8), %edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
	movq	_AXI_DMAC_REG_SRC_STRIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13,%r12,8), %edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
LBB0_17:
	cmpq	$0, 8(%rbx)
	je	LBB0_21
## %bb.18:
	cmpq	$0, 16(%r15)
	je	LBB0_21
## %bb.19:
	cmpl	$0, 12(%r15)
	je	LBB0_24
LBB0_21:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_26:
	xorl	%r15d, %r15d
	cmpq	$0, (%rbx)
	je	LBB0_28
## %bb.27:
	movq	_AXI_DMAC_FLAG_PARTIAL_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_28:
	orl	%ecx, %r15d
	movq	_AXI_DMAC_REG_X_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%r13,%r12,8), %edx
	decl	%edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
	movq	_AXI_DMAC_REG_Y_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r13,%r12,8), %edx
	decl	%edx
	movq	%r14, %rdi
	callq	_axi_dmac_write
	movq	_AXI_DMAC_REG_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_axi_dmac_write
	movq	_AXI_DMAC_REG_START_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axi_dmac_write                 ## TAILCALL
LBB0_23:
	movq	%r15, 16(%rbx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_24:
	cmpl	$1, 8(%r15)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_26
## %bb.25:
	movq	_AXI_DMAC_FLAG_CYCLIC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_AXI_DMAC_REG_START_TRANSFER,4,2 ## @AXI_DMAC_REG_START_TRANSFER
	.comm	_AXI_DMAC_SG_UNUSED,8,3         ## @AXI_DMAC_SG_UNUSED
	.comm	_AXI_DMAC_FLAG_LAST,4,2         ## @AXI_DMAC_FLAG_LAST
	.comm	_AXI_DMAC_REG_TRANSFER_ID,4,2   ## @AXI_DMAC_REG_TRANSFER_ID
	.comm	_AXI_DMAC_REG_DEST_ADDRESS,4,2  ## @AXI_DMAC_REG_DEST_ADDRESS
	.comm	_AXI_DMAC_REG_DEST_STRIDE,4,2   ## @AXI_DMAC_REG_DEST_STRIDE
	.comm	_AXI_DMAC_REG_SRC_ADDRESS,4,2   ## @AXI_DMAC_REG_SRC_ADDRESS
	.comm	_AXI_DMAC_REG_SRC_STRIDE,4,2    ## @AXI_DMAC_REG_SRC_STRIDE
	.comm	_AXI_DMAC_FLAG_CYCLIC,4,2       ## @AXI_DMAC_FLAG_CYCLIC
	.comm	_AXI_DMAC_FLAG_PARTIAL_REPORT,4,2 ## @AXI_DMAC_FLAG_PARTIAL_REPORT
	.comm	_AXI_DMAC_REG_X_LENGTH,4,2      ## @AXI_DMAC_REG_X_LENGTH
	.comm	_AXI_DMAC_REG_Y_LENGTH,4,2      ## @AXI_DMAC_REG_Y_LENGTH
	.comm	_AXI_DMAC_REG_FLAGS,4,2         ## @AXI_DMAC_REG_FLAGS
	.no_dead_strip	_axi_dmac_start_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_start_transfer
_axi_dmac_start_transfer:               ; @axi_dmac_start_transfer
	.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	x20, x0
	bl	_chan_to_axi_dmac
	mov	x19, x0
Lloh0:
	adrp	x22, _AXI_DMAC_REG_START_TRANSFER@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AXI_DMAC_REG_START_TRANSFER@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_axi_dmac_read
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x21, [x20, #16]
	cbnz	x21, LBB0_4
; %bb.2:
	add	x0, x20, #28
	bl	_vchan_next_desc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	add	x1, x20, #24
	bl	_list_move_tail
	mov	x0, x21
	bl	_to_axi_dmac_desc
	mov	x21, x0
LBB0_4:
	ldr	x23, [x21, #32]
	ldr	x24, [x21]
	mov	w8, #40
	madd	x26, x24, x8, x23
	ldr	x8, [x26, #32]!
Lloh2:
	adrp	x9, _AXI_DMAC_SG_UNUSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AXI_DMAC_SG_UNUSED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #40
	mul	x8, x24, x8
	mov	w9, #1
	str	w9, [x23, x8]
LBB0_6:
	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
	ret
LBB0_7:
	add	x8, x24, #1
	str	x8, [x21]
	ldrsw	x9, [x21, #8]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_23
LBB0_9:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_11
; %bb.10:
	str	xzr, [x21]
	b	LBB0_12
LBB0_11:
	str	xzr, [x20, #16]
LBB0_12:
Lloh5:
	adrp	x8, _AXI_DMAC_FLAG_LAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AXI_DMAC_FLAG_LAST@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
LBB0_13:
Lloh8:
	adrp	x8, _AXI_DMAC_REG_TRANSFER_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AXI_DMAC_REG_TRANSFER_ID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_axi_dmac_read
	str	x0, [x26]
	mov	x0, x20
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_15
; %bb.14:
Lloh11:
	adrp	x8, _AXI_DMAC_REG_DEST_ADDRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXI_DMAC_REG_DEST_ADDRESS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w8, #40
	madd	x26, x24, x8, x23
	ldr	w2, [x26, #4]
	mov	x0, x19
	bl	_axi_dmac_write
Lloh14:
	adrp	x8, _AXI_DMAC_REG_DEST_STRIDE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AXI_DMAC_REG_DEST_STRIDE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x26, #8]
	mov	x0, x19
	bl	_axi_dmac_write
LBB0_15:
	mov	x0, x20
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_17
; %bb.16:
Lloh17:
	adrp	x8, _AXI_DMAC_REG_SRC_ADDRESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AXI_DMAC_REG_SRC_ADDRESS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w8, #40
	madd	x26, x24, x8, x23
	ldr	w2, [x26, #12]
	mov	x0, x19
	bl	_axi_dmac_write
Lloh20:
	adrp	x8, _AXI_DMAC_REG_SRC_STRIDE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AXI_DMAC_REG_SRC_STRIDE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x26, #16]
	mov	x0, x19
	bl	_axi_dmac_write
LBB0_17:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_22
; %bb.18:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_22
; %bb.19:
	ldr	w8, [x21, #12]
	cbnz	w8, LBB0_22
; %bb.20:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.21:
Lloh23:
	adrp	x8, _AXI_DMAC_FLAG_CYCLIC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AXI_DMAC_FLAG_CYCLIC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_22:
Lloh26:
	adrp	x8, _AXI_DMAC_FLAG_PARTIAL_REPORT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AXI_DMAC_FLAG_PARTIAL_REPORT@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh28:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh29:
	adrp	x9, _AXI_DMAC_REG_X_LENGTH@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AXI_DMAC_REG_X_LENGTH@GOTPAGEOFF]
	orr	w20, w8, w25
Lloh31:
	ldr	w1, [x9]
	mov	w8, #40
	madd	x21, x24, x8, x23
	ldr	w8, [x21, #20]
	sub	w2, w8, #1
	mov	x0, x19
	bl	_axi_dmac_write
Lloh32:
	adrp	x8, _AXI_DMAC_REG_Y_LENGTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AXI_DMAC_REG_Y_LENGTH@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w8, [x21, #24]
	sub	w2, w8, #1
	mov	x0, x19
	bl	_axi_dmac_write
Lloh35:
	adrp	x8, _AXI_DMAC_REG_FLAGS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AXI_DMAC_REG_FLAGS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_axi_dmac_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	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	_axi_dmac_write
LBB0_23:
	mov	w25, #0
	str	x21, [x20, #16]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AXI_DMAC_REG_START_TRANSFER,4,2 ; @AXI_DMAC_REG_START_TRANSFER
	.comm	_AXI_DMAC_SG_UNUSED,8,3         ; @AXI_DMAC_SG_UNUSED
	.comm	_AXI_DMAC_FLAG_LAST,4,2         ; @AXI_DMAC_FLAG_LAST
	.comm	_AXI_DMAC_REG_TRANSFER_ID,4,2   ; @AXI_DMAC_REG_TRANSFER_ID
	.comm	_AXI_DMAC_REG_DEST_ADDRESS,4,2  ; @AXI_DMAC_REG_DEST_ADDRESS
	.comm	_AXI_DMAC_REG_DEST_STRIDE,4,2   ; @AXI_DMAC_REG_DEST_STRIDE
	.comm	_AXI_DMAC_REG_SRC_ADDRESS,4,2   ; @AXI_DMAC_REG_SRC_ADDRESS
	.comm	_AXI_DMAC_REG_SRC_STRIDE,4,2    ; @AXI_DMAC_REG_SRC_STRIDE
	.comm	_AXI_DMAC_FLAG_CYCLIC,4,2       ; @AXI_DMAC_FLAG_CYCLIC
	.comm	_AXI_DMAC_FLAG_PARTIAL_REPORT,4,2 ; @AXI_DMAC_FLAG_PARTIAL_REPORT
	.comm	_AXI_DMAC_REG_X_LENGTH,4,2      ; @AXI_DMAC_REG_X_LENGTH
	.comm	_AXI_DMAC_REG_Y_LENGTH,4,2      ; @AXI_DMAC_REG_Y_LENGTH
	.comm	_AXI_DMAC_REG_FLAGS,4,2         ; @AXI_DMAC_REG_FLAGS
	.no_dead_strip	_axi_dmac_start_transfer
.subsections_via_symbols
