	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function DMAExec
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_DMAExec
	.p2align	4, 0x90
_DMAExec:                               ## @DMAExec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_CurrentSH2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	movl	(%r8), %eax
	testb	$6, %al
	je	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	4(%r8), %xmm1                   ## xmm1 = mem[0],zero
	pand	LCPI0_0(%rip), %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$1, %cl
	je	LBB0_2
## %bb.8:
	pextrb	$4, %xmm0, %eax
	testb	$1, %al
	jne	LBB0_10
	jmp	LBB0_9
LBB0_2:
	leaq	4(%r8), %rdi
	pextrb	$4, %xmm0, %ecx
	testb	$1, %cl
	je	LBB0_3
## %bb.6:
	leaq	40(%r8), %rsi
	leaq	36(%r8), %rdx
	leaq	32(%r8), %rcx
	addq	$28, %r8
	jmp	LBB0_7
LBB0_3:
	testb	$8, %al
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	movq	(%rbx), %r8
	leaq	4(%r8), %rdi
LBB0_5:
	leaq	40(%r8), %rsi
	leaq	36(%r8), %rdx
	leaq	32(%r8), %rcx
	addq	$28, %r8
	callq	_DMATransfer
	movq	(%rbx), %r8
LBB0_9:
	leaq	8(%r8), %rdi
	leaq	24(%r8), %rsi
	leaq	20(%r8), %rdx
	leaq	16(%r8), %rcx
	addq	$12, %r8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DMATransfer                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentSH2,8,3                 ## @CurrentSH2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma\t: FIXME: two channel dma - round robin priority not properly implemented\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAExec                        ; -- Begin function DMAExec
	.p2align	2
_DMAExec:                               ; @DMAExec
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _CurrentSH2@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CurrentSH2@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	w10, [x9]
	tst	w10, #0x6
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x9
	ldrb	w12, [x0, #4]!
	mov	x8, x0
	ldr	w11, [x8, #4]!
	tbnz	w12, #0, LBB0_5
; %bb.3:
	tbz	w11, #0, LBB0_1
; %bb.4:
	add	x1, x9, #24
	add	x2, x9, #20
	add	x3, x9, #16
	add	x4, x9, #12
	mov	x0, x8
	b	LBB0_11
LBB0_5:
	tbnz	w11, #0, LBB0_7
; %bb.6:
	add	x1, x9, #40
	add	x2, x9, #36
	add	x3, x9, #32
	add	x4, x9, #28
	b	LBB0_11
LBB0_7:
	tbnz	w10, #3, LBB0_9
; %bb.8:
	add	x1, x9, #40
	add	x2, x9, #36
	add	x3, x9, #32
	add	x4, x9, #28
	b	LBB0_10
LBB0_9:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	ldr	x8, [x19]
	add	x0, x8, #4
	add	x1, x8, #40
	add	x2, x8, #36
	add	x3, x8, #32
	add	x4, x8, #28
LBB0_10:
	bl	_DMATransfer
	ldr	x8, [x19]
	add	x0, x8, #8
	add	x1, x8, #24
	add	x2, x8, #20
	add	x3, x8, #16
	add	x4, x8, #12
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DMATransfer
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentSH2,8,3                 ; @CurrentSH2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma\t: FIXME: two channel dma - round robin priority not properly implemented\n"

.subsections_via_symbols
