	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edma_start
_edma_start:                            ## @edma_start
	.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	%rdi, %r12
	movq	8(%rdi), %r13
	movl	4(%rdi), %edi
	callq	_EDMA_CHAN_SLOT
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_EDMA_REG_ARRAY_INDEX
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_EDMA_CHANNEL_BIT
	movl	%eax, %r15d
	cmpl	$0, (%r12)
	movl	(%r13), %r12d
	je	LBB0_1
## %bb.2:
	movq	_SH_ER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_edma_shadow0_read_array
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	_EDMA_ECR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_edma_write_array
	movq	_EDMA_EMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_edma_write_array
	movq	_SH_SECR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_edma_shadow0_write_array
	movq	_SH_EESR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_edma_shadow0_write_array
	movl	(%r13), %ebx
	movq	_SH_EER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_edma_shadow0_read_array
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_1:
	movq	_SH_ESR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_edma_shadow0_read_array
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edma_shadow0_write_array       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ESR%d %08x\n"

	.comm	_SH_ESR,4,2                     ## @SH_ESR
L_.str.1:                               ## @.str.1
	.asciz	"ER%d %08x\n"

	.comm	_SH_ER,4,2                      ## @SH_ER
	.comm	_EDMA_ECR,4,2                   ## @EDMA_ECR
	.comm	_EDMA_EMCR,4,2                  ## @EDMA_EMCR
	.comm	_SH_SECR,4,2                    ## @SH_SECR
	.comm	_SH_EESR,4,2                    ## @SH_EESR
L_.str.2:                               ## @.str.2
	.asciz	"EER%d %08x\n"

	.comm	_SH_EER,4,2                     ## @SH_EER
	.no_dead_strip	_edma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edma_start
_edma_start:                            ; @edma_start
	.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	x22, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0, #4]
	bl	_EDMA_CHAN_SLOT
	mov	x21, x0
	bl	_EDMA_REG_ARRAY_INDEX
	mov	x20, x0
	mov	x0, x21
	bl	_EDMA_CHANNEL_BIT
	mov	x21, x0
	ldr	w8, [x22]
	ldr	w22, [x19]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SH_ER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SH_ER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_edma_shadow0_read_array
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_dev_dbg
Lloh5:
	adrp	x8, _EDMA_ECR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDMA_ECR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_edma_write_array
Lloh8:
	adrp	x8, _EDMA_EMCR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EDMA_EMCR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_edma_write_array
Lloh11:
	adrp	x8, _SH_SECR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SH_SECR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_edma_shadow0_write_array
Lloh14:
	adrp	x8, _SH_EESR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SH_EESR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_edma_shadow0_write_array
	ldr	w21, [x19]
Lloh17:
	adrp	x8, _SH_EER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SH_EER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_edma_shadow0_read_array
	mov	x3, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	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	_dev_dbg
LBB0_2:
Lloh22:
	adrp	x23, _SH_ESR@GOTPAGE
Lloh23:
	ldr	x23, [x23, _SH_ESR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	bl	_edma_shadow0_read_array
	mov	x3, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_dev_dbg
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	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	_edma_shadow0_write_array
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ESR%d %08x\n"

	.comm	_SH_ESR,4,2                     ; @SH_ESR
l_.str.1:                               ; @.str.1
	.asciz	"ER%d %08x\n"

	.comm	_SH_ER,4,2                      ; @SH_ER
	.comm	_EDMA_ECR,4,2                   ; @EDMA_ECR
	.comm	_EDMA_EMCR,4,2                  ; @EDMA_EMCR
	.comm	_SH_SECR,4,2                    ; @SH_SECR
	.comm	_SH_EESR,4,2                    ; @SH_EESR
l_.str.2:                               ; @.str.2
	.asciz	"EER%d %08x\n"

	.comm	_SH_EER,4,2                     ; @SH_EER
	.no_dead_strip	_edma_start
.subsections_via_symbols
