	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SoundLoadState
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SoundLoadState
	.p2align	4, 0x90
_SoundLoadState:                        ## @SoundLoadState
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	_scsp_thread_running@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ScspSyncThread
LBB0_2:
	movq	_m68k_running@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	leaq	-44(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	_M68K@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$1, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$2, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$3, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$4, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$5, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$6, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$7, %edi
	callq	*24(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	xorl	%edi, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$1, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$2, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$3, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$4, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$5, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$6, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %esi
	movl	$7, %edi
	callq	*16(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %edi
	callq	*8(%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	(%r15), %rax
	movl	-44(%rbp), %edi
	callq	*(%rax)
	movq	_scsp_regcache@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%r13, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	_SoundRam@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movl	$524288, %edx                   ## imm = 0x80000
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	_scsp@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,2), %esi
	movl	%ebx, %edi
	callq	_ScspWriteWordDirect
	leal	2(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	4(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	6(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	8(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	10(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	12(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	14(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	16(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	18(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	20(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	leal	22(%rbx), %edi
	movq	(%r15), %rax
	movl	%edi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_ScspWriteWordDirect
	movq	152(%r13), %rdi
	addq	%rbx, %rdi
	callq	_ScspUpdateSlotAddress
	movq	152(%r13), %rdi
	addq	%rbx, %rdi
	callq	_ScspUpdateSlotFunc
	addq	$32, %rbx
	cmpq	$1024, %rbx                     ## imm = 0x400
	jne	LBB0_3
## %bb.4:
	cmpl	$2, -60(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_8
## %bb.5:
	movl	$28, %r14d
	leaq	-56(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	152(%r13), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-4, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-8, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-12, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-16, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-20, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-24, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	152(%r13), %rax
	leaq	(%rax,%r14), %rsi
	addq	$-28, %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	addq	$32, %r14
	cmpq	$1052, %r14                     ## imm = 0x41C
	jne	LBB0_6
## %bb.7:
	leaq	-56(%rbp), %rbx
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, (%r13)
	movq	(%r15), %rax
	movl	2048(%rax), %eax
	shrl	$8, %eax
	andl	$1, %eax
	movl	%eax, 4(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r13)
	leaq	148(%r13), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 16(%r13)
	leaq	144(%r13), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 20(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	movl	%ecx, 24(%r13)
	movl	%eax, %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	movl	%ecx, 28(%r13)
	shrl	$4, %eax
	andl	$1, %eax
	movl	%eax, 32(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 36(%r13)
	movq	136(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$4, %ecx
	movq	%r12, %r8
	callq	_yread
	movq	128(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$4, %ecx
	movq	%r12, %r8
	callq	_yread
	leaq	124(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	leaq	120(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	shrl	$3, %ecx
	movl	%eax, %edx
	shrl	$2, %edx
	movl	%eax, %esi
	shrl	%esi
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %esi, %xmm0
	pinsrd	$3, %eax, %xmm0
	shrl	$4, %eax
	andl	$1, %eax
	movl	%eax, 40(%r13)
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 44(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 60(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 64(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 68(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 72(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 76(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 80(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 84(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 88(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 92(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 96(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 100(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 104(%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%r12, %r8
	callq	_yread
	movl	-44(%rbp), %eax
	movl	%eax, 108(%r13)
	movq	112(%r13), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$64, %ecx
	movq	%r12, %r8
	callq	_yread
LBB0_8:
	movq	_scsp_thread_running@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_PSP_FLUSH_ALL
LBB0_10:
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scsp_thread_running,8,3        ## @scsp_thread_running
	.comm	_m68k_running,4,2               ## @m68k_running
	.comm	_M68K,8,3                       ## @M68K
	.comm	_scsp_regcache,8,3              ## @scsp_regcache
	.comm	_SoundRam,8,3                   ## @SoundRam
	.comm	_scsp,160,3                     ## @scsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function SoundLoadState
lCPI0_0:
	.long	4294967290                      ; 0xfffffffa
	.long	4294967291                      ; 0xfffffffb
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967293                      ; 0xfffffffd
	.long	4294967294                      ; 0xfffffffe
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SoundLoadState
	.p2align	2
_SoundLoadState:                        ; @SoundLoadState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp]
Lloh0:
	adrp	x23, _scsp_thread_running@GOTPAGE
Lloh1:
	ldr	x23, [x23, _scsp_thread_running@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_ScspSyncThread
LBB0_2:
Lloh2:
	adrp	x1, _m68k_running@GOTPAGE
Lloh3:
	ldr	x1, [x1, _m68k_running@GOTPAGEOFF]
	mov	x0, sp
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
Lloh4:
	adrp	x22, _M68K@GOTPAGE
Lloh5:
	ldr	x22, [x22, _M68K@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #0
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #1
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #2
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #3
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #4
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #5
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #6
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #24]
	ldr	w1, [sp, #12]
	mov	w0, #7
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #0
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #1
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #2
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #3
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #4
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #5
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #6
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	ldr	w1, [sp, #12]
	mov	w0, #7
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w0, [sp, #12]
	blr	x8
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w0, [sp, #12]
	blr	x8
Lloh6:
	adrp	x25, _scsp_regcache@GOTPAGE
Lloh7:
	ldr	x25, [x25, _scsp_regcache@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, sp
	mov	w2, #4096
	mov	w3, #1
	mov	x4, x20
	bl	_yread
Lloh8:
	adrp	x8, _SoundRam@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SoundRam@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	mov	x0, sp
	mov	w2, #524288
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x26, #0
	mov	x22, #0
Lloh11:
	adrp	x24, _scsp@GOTPAGE
Lloh12:
	ldr	x24, [x24, _scsp@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w1, [x8, x26]
	mov	x0, x22
	bl	_ScspWriteWordDirect
	add	w0, w22, #2
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #4
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #6
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #8
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #10
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #12
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #14
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #16
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #18
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #20
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	add	w0, w22, #22
	ldr	x8, [x25]
	asr	w9, w0, #1
	ldr	w1, [x8, w9, sxtw #2]
	bl	_ScspWriteWordDirect
	ldr	x8, [x24, #152]
	add	x0, x8, x22
	bl	_ScspUpdateSlotAddress
	ldr	x8, [x24, #152]
	add	x0, x8, x22
	bl	_ScspUpdateSlotFunc
	add	x22, x22, #32
	add	x26, x26, #64
	cmp	x22, #1024
	b.ne	LBB0_3
; %bb.4:
	cmp	w21, #2
	b.lt	LBB0_8
; %bb.5:
	mov	w21, #28
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #152]
	add	x1, x8, x21
	mov	x0, sp
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #4
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #8
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #12
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #16
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #20
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #24
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	x8, [x24, #152]
	add	x8, x8, x21
	sub	x1, x8, #28
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	add	x21, x21, #32
	cmp	x21, #1052
	b.ne	LBB0_6
; %bb.7:
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	ldr	x9, [x25]
	ldr	w9, [x9, #2048]
	ubfx	w9, w9, #8, #1
	stp	w8, w9, [x24]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #8]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #12]
	add	x1, x24, #148
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #16]
	add	x1, x24, #144
	mov	x0, sp
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #20]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	dup.2s	v0, w8
Lloh13:
	adrp	x9, lCPI0_0@PAGE
Lloh14:
	ldr	d1, [x9, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #1
	and.8b	v0, v0, v1
	str	d0, [x24, #24]
	ubfx	w8, w8, #4, #1
	str	w8, [x24, #32]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #36]
	ldr	x1, [x24, #136]
	mov	x0, sp
	mov	w2, #1
	mov	w3, #4
	mov	x4, x20
	bl	_yread
	ldr	x1, [x24, #128]
	mov	x0, sp
	mov	w2, #1
	mov	w3, #4
	mov	x4, x20
	bl	_yread
	add	x1, x24, #124
	mov	x0, sp
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	add	x1, x24, #120
	mov	x0, sp
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #1
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #8]
	dup.4s	v0, w8
Lloh15:
	adrp	x9, lCPI0_1@PAGE
Lloh16:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	ushl.4s	v0, v0, v1
	movi.4s	v1, #1
	and.16b	v0, v0, v1
	stur	q0, [x24, #40]
	and	w8, w8, #0x1
	str	w8, [x24, #56]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #60]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #64]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #68]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #72]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #76]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #80]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #84]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #88]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #92]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #96]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #100]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #104]
	mov	x0, sp
	add	x1, sp, #12
	mov	w2, #4
	mov	w3, #1
	mov	x4, x20
	bl	_yread
	ldr	w8, [sp, #12]
	str	w8, [x24, #108]
	ldr	x1, [x24, #112]
	mov	x0, sp
	mov	w2, #4
	mov	w3, #64
	mov	x4, x20
	bl	_yread
LBB0_8:
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_PSP_FLUSH_ALL
LBB0_10:
	mov	x0, 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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdr	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_scsp_thread_running,8,3        ; @scsp_thread_running
	.comm	_m68k_running,4,2               ; @m68k_running
	.comm	_M68K,8,3                       ; @M68K
	.comm	_scsp_regcache,8,3              ; @scsp_regcache
	.comm	_SoundRam,8,3                   ; @SoundRam
	.comm	_scsp,160,3                     ; @scsp
.subsections_via_symbols
