	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_dostart
_pdc_dostart:                           ## @pdc_dostart
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_pdc_is_idle
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_chan2dev
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movl	(%r15), %edx
	movl	16(%r14), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_chan2dev
	movl	(%r15), %edx
	movl	12(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_chan2dev
	movl	(%r15), %edx
	movl	8(%r14), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_chan2dev
	movl	(%r15), %edx
	movl	4(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_dbg
	leaq	20(%r14), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DEV_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	movq	%r15, %rdi
	callq	_channel_writel
	movq	_MEM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	movq	%r15, %rdi
	callq	_channel_writel
	movq	_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%r15, %rdi
	callq	_channel_writel
	movq	_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r15, %rdi
	callq	_channel_writel
	movq	_DMA_CTL0_ONESHOT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_3:
	movq	_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_channel_writel
	movq	_DMA_CTL0_SG@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pdc_set_mode                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: Attempt to start non-idle channel\n"

L_.str.1:                               ## @.str.1
	.asciz	"chan %d -> dev_addr: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"chan %d -> mem_addr: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"chan %d -> size: %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"chan %d -> next: %x\n"

	.comm	_DEV_ADDR,4,2                   ## @DEV_ADDR
	.comm	_MEM_ADDR,4,2                   ## @MEM_ADDR
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_NEXT,4,2                       ## @NEXT
	.comm	_DMA_CTL0_ONESHOT,4,2           ## @DMA_CTL0_ONESHOT
	.comm	_DMA_CTL0_SG,4,2                ## @DMA_CTL0_SG
	.no_dead_strip	_pdc_dostart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_dostart
_pdc_dostart:                           ; @pdc_dostart
	.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	x20, x1
	mov	x19, x0
	bl	_pdc_is_idle
	mov	x21, x0
	mov	x0, x19
	bl	_chan2dev
	cbz	w21, LBB0_3
; %bb.1:
	ldr	w2, [x19]
	ldr	w3, [x20, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_chan2dev
	ldr	w2, [x19]
	ldr	w3, [x20, #12]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_chan2dev
	ldr	w2, [x19]
	ldr	w3, [x20, #8]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_chan2dev
	ldr	w2, [x19]
	ldr	w3, [x20, #4]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	add	x0, x20, #20
	bl	_list_empty
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _DEV_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEV_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_channel_writel
Lloh11:
	adrp	x8, _MEM_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEM_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_channel_writel
Lloh14:
	adrp	x8, _SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_channel_writel
Lloh17:
	adrp	x8, _NEXT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NEXT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_channel_writel
Lloh20:
	adrp	x8, _DMA_CTL0_ONESHOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMA_CTL0_ONESHOT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_err
LBB0_4:
Lloh24:
	adrp	x8, _NEXT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NEXT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_channel_writel
Lloh27:
	adrp	x8, _DMA_CTL0_SG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DMA_CTL0_SG@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_pdc_set_mode
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: Attempt to start non-idle channel\n"

l_.str.1:                               ; @.str.1
	.asciz	"chan %d -> dev_addr: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"chan %d -> mem_addr: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"chan %d -> size: %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"chan %d -> next: %x\n"

	.comm	_DEV_ADDR,4,2                   ; @DEV_ADDR
	.comm	_MEM_ADDR,4,2                   ; @MEM_ADDR
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_NEXT,4,2                       ; @NEXT
	.comm	_DMA_CTL0_ONESHOT,4,2           ; @DMA_CTL0_ONESHOT
	.comm	_DMA_CTL0_SG,4,2                ; @DMA_CTL0_SG
	.no_dead_strip	_pdc_dostart
.subsections_via_symbols
