	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_dma01                      ## -- Begin function dsp_dma01
	.p2align	4, 0x90
_dsp_dma01:                             ## @dsp_dma01
	.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
	movzbl	%sil, %ebx
	movl	%esi, %r15d
	shrl	$8, %r15d
	andl	$3, %r15d
	andl	$229376, %esi                   ## imm = 0x38000
	cmpl	$32768, %esi                    ## imm = 0x8000
	jne	LBB0_1
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movl	8(%r14), %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	shll	$2, %edi
	callq	_MappedMemoryReadLong
	movq	(%r14), %rcx
	movq	24(%r14), %rdx
	movq	(%rdx,%r15,8), %rdx
	movq	(%rcx,%r15,8), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r14), %rax
	movl	(%rax,%r15,8), %ecx
	incl	%ecx
	andl	$63, %ecx
	movq	%rcx, (%rax,%r15,8)
	movl	8(%r14), %edi
	incl	%edi
	movl	%edi, 8(%r14)
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.2:
	movl	8(%r14), %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	shll	$2, %edi
	callq	_MappedMemoryReadLong
	movq	(%r14), %rcx
	movq	24(%r14), %rdx
	movq	(%rdx,%r15,8), %rdx
	movq	(%rcx,%r15,8), %rcx
	movq	%rax, (%rdx,%rcx,8)
	movq	(%r14), %rax
	movl	(%rax,%r15,8), %ecx
	incl	%ecx
	andl	$63, %ecx
	movq	%rcx, (%rax,%r15,8)
	movl	8(%r14), %edi
	incl	%edi
	movl	%edi, 8(%r14)
	decl	%ebx
	jne	LBB0_3
LBB0_7:
	movq	$0, 16(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dsp_dma01                      ; -- Begin function dsp_dma01
	.p2align	2
_dsp_dma01:                             ; @dsp_dma01
	.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	x19, x0
	and	w20, w1, #0xff
	ubfx	w8, w1, #8, #2
	and	w9, w1, #0x38000
	cmp	w9, #8, lsl #12                 ; =32768
	b.ne	LBB0_4
; %bb.1:
	cbz	w20, LBB0_7
; %bb.2:
	ldr	w9, [x19, #8]
	lsl	x21, x8, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w0, w9, #2
	bl	_MappedMemoryReadLong
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21]
	ldr	x9, [x19]
	ldr	x9, [x9, x21]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19]
	ldr	w9, [x8, x21]
	add	w9, w9, #1
	and	x9, x9, #0x3f
	str	x9, [x8, x21]
	ldr	w8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	subs	w20, w20, #1
	b.ne	LBB0_3
	b	LBB0_7
LBB0_4:
	cbz	w20, LBB0_7
; %bb.5:
	ldr	w9, [x19, #8]
	lsl	x21, x8, #3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w0, w9, #2
	bl	_MappedMemoryReadLong
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21]
	ldr	x9, [x19]
	ldr	x9, [x9, x21]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19]
	ldr	w9, [x8, x21]
	add	w9, w9, #1
	and	x9, x9, #0x3f
	str	x9, [x8, x21]
	ldr	w8, [x19, #8]
	add	w9, w8, #1
	str	w9, [x19, #8]
	subs	w20, w20, #1
	b.ne	LBB0_6
LBB0_7:
	str	xzr, [x19, #16]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
