	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMATransfer                    ## -- Begin function DMATransfer
	.p2align	4, 0x90
_DMATransfer:                           ## @DMATransfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testb	$2, %al
	jne	LBB0_20
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r15
	movl	%eax, %edx
	andl	$12288, %edx                    ## imm = 0x3000
	xorl	%r14d, %r14d
	cmpl	$4096, %edx                     ## imm = 0x1000
	sete	%r14b
	cmpl	$8192, %edx                     ## imm = 0x2000
	movl	$-1, %esi
	cmovel	%esi, %r14d
	movl	%eax, %edx
	andl	$49152, %edx                    ## imm = 0xC000
	xorl	%edi, %edi
	cmpl	$16384, %edx                    ## imm = 0x4000
	sete	%dil
	cmpl	$32768, %edx                    ## imm = 0x8000
	cmovel	%esi, %edi
	shrl	$10, %eax
	andl	$3, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_2:
	cmpl	$0, (%rcx)
	jle	LBB0_3
## %bb.4:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	(%r13), %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %ebx
	movl	(%r15), %edi
	callq	_MappedMemoryReadByte
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_MappedMemoryWriteByte
	movl	%ebx, %edi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r15)
	movl	(%r13), %r14d
	addl	%edi, %r14d
	movl	%r14d, (%r13)
	incl	%r12d
	cmpl	(%rcx), %r12d
	jl	LBB0_5
## %bb.6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_7:
	addl	%edi, %edi
	cmpl	$0, (%rcx)
	jle	LBB0_3
## %bb.8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	addl	%r14d, %r14d
	movl	(%r13), %ebx
	xorl	%r12d, %r12d
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %r13d
	movl	%edi, %r14d
	movl	(%r15), %edi
	callq	_MappedMemoryReadWord
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MappedMemoryWriteWord
	movl	%r14d, %edi
	movl	%r13d, %r14d
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%r14d, (%r15)
	movl	(%r13), %ebx
	addl	%edi, %ebx
	movl	%ebx, (%r13)
	incl	%r12d
	cmpl	(%rcx), %r12d
	jl	LBB0_9
## %bb.10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_11:
	shll	$2, %edi
	cmpl	$0, (%rcx)
	jle	LBB0_3
## %bb.12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	shll	$2, %r14d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	callq	_MappedMemoryReadLong
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MappedMemoryWriteLong
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, (%r13)
	movl	(%r15), %edi
	addl	%r14d, %edi
	movl	%edi, (%r15)
	incl	%r12d
	cmpl	(%rcx), %r12d
	jl	LBB0_13
	jmp	LBB0_17
LBB0_14:
	shll	$2, %edi
	cmpl	$0, (%rcx)
	jle	LBB0_3
## %bb.15:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	shll	$2, %r14d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	callq	_MappedMemoryReadLong
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_MappedMemoryWriteLong
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, (%r13)
	movl	(%r15), %edi
	addl	%r14d, %edi
	movl	%edi, (%r15)
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_MappedMemoryReadLong
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_MappedMemoryWriteLong
	addl	%ebx, (%r13)
	movl	(%r15), %edi
	addl	%r14d, %edi
	movl	%edi, (%r15)
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_MappedMemoryReadLong
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_MappedMemoryWriteLong
	addl	%ebx, (%r13)
	movl	(%r15), %edi
	addl	%r14d, %edi
	movl	%edi, (%r15)
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_MappedMemoryReadLong
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_MappedMemoryWriteLong
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%ebx, (%r13)
	movl	(%r15), %edi
	addl	%r14d, %edi
	movl	%edi, (%r15)
	addl	$4, %r12d
	cmpl	(%rcx), %r12d
	jl	LBB0_16
LBB0_17:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
LBB0_18:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_3:
	movq	%r8, %r14
	xorl	%r12d, %r12d
LBB0_19:
	movl	$0, (%rcx)
	movl	%edi, %eax
	imull	%r12d, %eax
	xorl	%ecx, %ecx
	testl	%edi, %edi
	movl	%edi, %edx
	movl	(%r13), %edi
	cmovnsl	%eax, %ecx
	subl	%ecx, %edi
	movl	%edx, %esi
	negl	%esi
	cmovsl	%edx, %esi
	imull	%r12d, %esi
	callq	_SH2WriteNotify
	movl	(%rbx), %eax
	movq	%r14, %r8
LBB0_20:
	testb	$4, %al
	je	LBB0_22
## %bb.21:
	movq	_CurrentSH2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r8), %esi
	movl	(%rdi), %edx
	shrl	$8, %edx
	andl	$15, %edx
	callq	_SH2SendInterrupt
	movl	(%rbx), %eax
LBB0_22:
	orl	$2, %eax
	movl	%eax, (%rbx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_CurrentSH2,8,3                 ## @CurrentSH2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMATransfer                    ; -- Begin function DMATransfer
	.p2align	2
_DMATransfer:                           ; @DMATransfer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x0
	ldr	w8, [x0]
	tbnz	w8, #1, LBB0_16
; %bb.1:
	and	w9, w8, #0x3000
	cmp	w9, #1, lsl #12                 ; =4096
	cset	w10, eq
	cmp	w9, #2, lsl #12                 ; =8192
	csinv	w27, w10, wzr, ne
	and	w9, w8, #0xc000
	cmp	w9, #4, lsl #12                 ; =16384
	cset	w10, eq
	cmp	w9, #8, lsl #12                 ; =32768
	csinv	w25, w10, wzr, ne
	ubfx	w8, w8, #10, #2
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w26, #0
	ldr	w24, [x21]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_MappedMemoryReadByte
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteByte
	ldr	w8, [x23]
	add	w8, w8, w27
	str	w8, [x23]
	ldr	w8, [x21]
	add	w24, w8, w25
	str	w24, [x21]
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w26, w8
	b.lt	LBB0_4
	b	LBB0_15
LBB0_5:
	lsl	w25, w25, #1
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w26, #0
	lsl	w27, w27, #1
	ldr	w24, [x21]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_MappedMemoryReadWord
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteWord
	ldr	w8, [x23]
	add	w8, w8, w27
	str	w8, [x23]
	ldr	w8, [x21]
	add	w24, w8, w25
	str	w24, [x21]
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w26, w8
	b.lt	LBB0_7
	b	LBB0_15
LBB0_8:
	lsl	w25, w25, #2
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w26, #0
	lsl	w27, w27, #2
	ldr	w0, [x23]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x21]
	bl	_MappedMemoryReadLong
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteLong
	ldr	w8, [x21]
	add	w8, w8, w25
	str	w8, [x21]
	ldr	w8, [x23]
	add	w0, w8, w27
	str	w0, [x23]
	add	w26, w26, #1
	ldr	w8, [x22]
	cmp	w26, w8
	b.lt	LBB0_10
	b	LBB0_15
LBB0_11:
	lsl	w25, w25, #2
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	w26, #0
	lsl	w27, w27, #2
	ldr	w0, [x23]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x21]
	bl	_MappedMemoryReadLong
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteLong
	ldr	w8, [x21]
	add	w8, w8, w25
	str	w8, [x21]
	ldr	w8, [x23]
	add	w0, w8, w27
	str	w0, [x23]
	ldr	w24, [x21]
	bl	_MappedMemoryReadLong
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteLong
	ldr	w8, [x21]
	add	w8, w8, w25
	str	w8, [x21]
	ldr	w8, [x23]
	add	w0, w8, w27
	str	w0, [x23]
	ldr	w24, [x21]
	bl	_MappedMemoryReadLong
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteLong
	ldr	w8, [x21]
	add	w8, w8, w25
	str	w8, [x21]
	ldr	w8, [x23]
	add	w0, w8, w27
	str	w0, [x23]
	ldr	w24, [x21]
	bl	_MappedMemoryReadLong
	mov	x1, x0
	mov	x0, x24
	bl	_MappedMemoryWriteLong
	ldr	w8, [x21]
	add	w8, w8, w25
	str	w8, [x21]
	ldr	w8, [x23]
	add	w0, w8, w27
	str	w0, [x23]
	add	w26, w26, #4
	ldr	w8, [x22]
	cmp	w26, w8
	b.lt	LBB0_13
	b	LBB0_15
LBB0_14:
	mov	w26, #0
LBB0_15:
	str	wzr, [x22]
	ldr	w8, [x21]
	mul	w9, w25, w26
	cmp	w25, #0
	csel	w9, wzr, w9, lt
	cneg	w10, w25, mi
	sub	w0, w8, w9
	mul	w1, w10, w26
	bl	_SH2WriteNotify
	ldr	w8, [x19]
LBB0_16:
	tbz	w8, #2, LBB0_18
; %bb.17:
Lloh2:
	adrp	x8, _CurrentSH2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CurrentSH2@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	ldr	w1, [x20]
	ldr	w8, [x0]
	ubfx	w2, w8, #8, #4
	bl	_SH2SendInterrupt
	ldr	w8, [x19]
LBB0_18:
	orr	w8, w8, #0x2
	str	w8, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_CurrentSH2,8,3                 ; @CurrentSH2
.subsections_via_symbols
