	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_dma04                      ## -- Begin function dsp_dma04
	.p2align	4, 0x90
_dsp_dma04:                             ## @dsp_dma04
	.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	%rdi, %r14
	movl	%esi, %eax
	andl	$7, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_1:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rax), %rdx
	movq	(%rcx), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	8(%rax), %rdx
	movq	8(%rcx), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	16(%rax), %rdx
	movq	16(%rcx), %rdi
	jmp	LBB0_2
LBB0_5:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	24(%rax), %rdx
	movq	24(%rcx), %rdi
LBB0_2:
	movl	(%rdx,%rdi,4), %ebx
	testl	%ebx, %ebx
	jle	LBB0_13
LBB0_10:
	shrl	$8, %esi
	andl	$3, %esi
	movl	%esi, %r15d
	movq	(%rcx,%r15,8), %rcx
	movl	16(%r14), %edi
	decl	%ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rcx,4), %esi
	shll	$2, %edi
	callq	_MappedMemoryWriteLong
	movq	8(%r14), %rax
	movl	(%rax,%r15,8), %ecx
	incl	%ecx
	andl	$63, %ecx
	movq	%rcx, (%rax,%r15,8)
	movl	16(%r14), %edi
	incl	%edi
	movl	%edi, 16(%r14)
	subl	$1, %ebx
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r14), %rax
	jmp	LBB0_11
LBB0_6:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rax), %rdx
	movq	(%rcx), %rdi
	movl	(%rdx,%rdi,4), %ebx
	movq	_ScuDsp@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	incl	(%rdx)
	testl	%ebx, %ebx
	jg	LBB0_10
	jmp	LBB0_13
LBB0_7:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	8(%rax), %rdx
	movq	8(%rcx), %rdi
	movl	(%rdx,%rdi,4), %ebx
	movq	_ScuDsp@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	incl	4(%rdx)
	testl	%ebx, %ebx
	jg	LBB0_10
	jmp	LBB0_13
LBB0_8:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	16(%rax), %rdx
	movq	16(%rcx), %rdi
	movl	(%rdx,%rdi,4), %ebx
	movq	_ScuDsp@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	incl	8(%rdx)
	testl	%ebx, %ebx
	jg	LBB0_10
	jmp	LBB0_13
LBB0_9:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	24(%rax), %rdx
	movq	24(%rcx), %rdi
	movl	(%rdx,%rdi,4), %ebx
	movq	_ScuDsp@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	incl	12(%rdx)
	testl	%ebx, %ebx
	jg	LBB0_10
LBB0_13:
	movq	$0, 24(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_1, LBB0_1-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_1
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_ScuDsp,8,3                     ## @ScuDsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_dma04                      ; -- Begin function dsp_dma04
	.p2align	2
_dsp_dma04:                             ; @dsp_dma04
	.cfi_startproc
; %bb.0:
	ubfx	w9, w1, #8, #2
	and	w8, w1, #0x7
	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	x19, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_1
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_1:
	ldp	x8, x10, [x19]
	ldr	x11, [x8]
	ldr	x12, [x10]
	b	LBB0_5
LBB0_2:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #8]
	ldr	x12, [x10, #8]
	b	LBB0_5
LBB0_3:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #16]
	ldr	x12, [x10, #16]
	b	LBB0_5
LBB0_4:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #24]
	ldr	x12, [x10, #24]
LBB0_5:
	ldr	w11, [x11, x12, lsl #2]
	subs	w20, w11, #1
	b.lt	LBB0_13
LBB0_6:
	ldr	x10, [x10, w9, uxtw #3]
	ldr	w11, [x19, #16]
	lsl	x21, x9, #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x21]
	ldr	w1, [x8, x10, lsl #2]
	lsl	w0, w11, #2
	bl	_MappedMemoryWriteLong
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x21]
	add	w9, w9, #1
	and	x10, x9, #0x3f
	str	x10, [x8, x21]
	ldr	w8, [x19, #16]
	add	w11, w8, #1
	str	w11, [x19, #16]
	cbz	w20, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	sub	w20, w20, #1
	b	LBB0_7
LBB0_9:
	ldp	x8, x10, [x19]
	ldr	x11, [x8]
	ldr	x12, [x10]
	ldr	w11, [x11, x12, lsl #2]
Lloh2:
	adrp	x12, _ScuDsp@GOTPAGE
Lloh3:
	ldr	x12, [x12, _ScuDsp@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
	ldr	x12, [x12]
	ldr	w13, [x12]
	add	w13, w13, #1
	str	w13, [x12]
	subs	w20, w11, #1
	b.ge	LBB0_6
	b	LBB0_13
LBB0_10:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #8]
	ldr	x12, [x10, #8]
	ldr	w11, [x11, x12, lsl #2]
Lloh5:
	adrp	x12, _ScuDsp@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ScuDsp@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	ldr	x12, [x12]
	ldr	w13, [x12, #4]
	add	w13, w13, #1
	str	w13, [x12, #4]
	subs	w20, w11, #1
	b.ge	LBB0_6
	b	LBB0_13
LBB0_11:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #16]
	ldr	x12, [x10, #16]
	ldr	w11, [x11, x12, lsl #2]
Lloh8:
	adrp	x12, _ScuDsp@GOTPAGE
Lloh9:
	ldr	x12, [x12, _ScuDsp@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	ldr	x12, [x12]
	ldr	w13, [x12, #8]
	add	w13, w13, #1
	str	w13, [x12, #8]
	subs	w20, w11, #1
	b.ge	LBB0_6
	b	LBB0_13
LBB0_12:
	ldp	x8, x10, [x19]
	ldr	x11, [x8, #24]
	ldr	x12, [x10, #24]
	ldr	w11, [x11, x12, lsl #2]
Lloh11:
	adrp	x12, _ScuDsp@GOTPAGE
Lloh12:
	ldr	x12, [x12, _ScuDsp@GOTPAGEOFF]
Lloh13:
	ldr	x12, [x12]
	ldr	x12, [x12]
	ldr	w13, [x12, #12]
	add	w13, w13, #1
	str	w13, [x12, #12]
	subs	w20, w11, #1
	b.ge	LBB0_6
LBB0_13:
	str	xzr, [x19, #24]
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_1-LBB0_1)>>2
	.byte	(LBB0_2-LBB0_1)>>2
	.byte	(LBB0_3-LBB0_1)>>2
	.byte	(LBB0_4-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_11-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
                                        ; -- End function
	.comm	_ScuDsp,8,3                     ; @ScuDsp
.subsections_via_symbols
