	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsp_set_w
_scsp_set_w:                            ## @scsp_set_w
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	leal	-1048(%rbx), %eax
	cmpl	$10, %eax
	ja	LBB0_2
## %bb.1:
	movl	$1029, %ecx                     ## imm = 0x405
	btl	%eax, %ecx
	jb	LBB0_3
LBB0_2:
	movl	%ebx, %esi
	andl	$62, %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_SCSPLOG
LBB0_3:
	movq	_scsp_ccr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	xorl	$2, %ecx
	movslq	%ecx, %rcx
	movl	%r14d, (%rax,%rcx,4)
	andl	$62, %ebx
	cmpl	$46, %ebx
	ja	LBB0_92
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movl	%r14d, %eax
	shrl	$9, %eax
	movq	_scsp@GOTPCREL(%rip), %rcx
	andl	$15, %r14d
	movq	_SoundRam@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	andl	$1, %eax
	movl	%eax, (%rcx)
	movl	%r14d, 4(%rcx)
	movq	_M68K@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	jne	LBB0_93
## %bb.6:
	xorl	%edi, %edi
	movl	$262144, %esi                   ## imm = 0x40000
	callq	*%rcx
	movq	(%rbx), %rax
	movl	(%r15), %edx
	movl	$262144, %edi                   ## imm = 0x40000
	movl	$524288, %esi                   ## imm = 0x80000
	callq	*(%rax)
	movq	(%rbx), %rax
	movl	(%r15), %edx
	movl	$524288, %edi                   ## imm = 0x80000
	movl	$786432, %esi                   ## imm = 0xC0000
	callq	*(%rax)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%r15), %edx
	movl	$786432, %edi                   ## imm = 0xC0000
	movl	$1048576, %esi                  ## imm = 0x100000
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	movl	%r14d, %eax
	shrl	$7, %eax
	andl	$3, %eax
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	%eax, 8(%rcx)
	andl	$127, %r14d
	shll	$13, %r14d
	movl	%r14d, 12(%rcx)
	jmp	LBB0_92
LBB0_8:
	movzbl	%r14b, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_midi_out_send             ## TAILCALL
LBB0_9:
	shrl	$11, %r14d
	andl	$31, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 16(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_update_monitor            ## TAILCALL
LBB0_10:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$458752, %ecx                   ## imm = 0x70000
	andl	20(%rax), %ecx
	andl	$65534, %r14d                   ## imm = 0xFFFE
	orl	%ecx, %r14d
	movl	%r14d, 20(%rax)
	jmp	LBB0_92
LBB0_11:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$65534, %ecx                    ## imm = 0xFFFE
	andl	20(%rax), %ecx
	movl	%r14d, %edx
	shll	$4, %edx
	andl	$458752, %edx                   ## imm = 0x70000
	orl	%ecx, %edx
	movl	%edx, 20(%rax)
	andl	$4094, %r14d                    ## imm = 0xFFE
	movl	%r14d, 24(%rax)
	jmp	LBB0_92
LBB0_12:
	movl	%r14d, %eax
	andl	$4094, %eax                     ## imm = 0xFFE
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	%eax, 28(%rcx)
	movl	%r14d, %eax
	shrl	$8, %eax
	andl	$240, %eax
	movl	%eax, 32(%rcx)
	testl	$4096, %r14d                    ## imm = 0x1000
	je	LBB0_92
## %bb.13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_dma                       ## TAILCALL
LBB0_14:
	movl	%r14d, %eax
	shrl	$8, %eax
	andl	$7, %eax
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	%eax, 36(%rcx)
	shll	$8, %r14d
	movzwl	%r14w, %eax
	movl	%eax, 40(%rcx)
	jmp	LBB0_92
LBB0_15:
	movl	%r14d, %eax
	shrl	$8, %eax
	andl	$7, %eax
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	%eax, 44(%rcx)
	shll	$8, %r14d
	movzwl	%r14w, %eax
	movl	%eax, 48(%rcx)
	jmp	LBB0_92
LBB0_16:
	movl	%r14d, %eax
	shrl	$8, %eax
	andl	$7, %eax
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	%eax, 52(%rcx)
	shll	$8, %r14d
	movzwl	%r14w, %eax
	movl	%eax, 56(%rcx)
	jmp	LBB0_92
LBB0_17:
	movq	_scsp@GOTPCREL(%rip), %rbx
	movl	%r14d, 60(%rbx)
	testb	$1, %r14b
	je	LBB0_20
## %bb.18:
	testb	$1, 64(%rbx)
	je	LBB0_20
## %bb.19:
	movl	$1, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_20:
	testb	$2, %r14b
	je	LBB0_23
## %bb.21:
	testb	$2, 64(%rbx)
	je	LBB0_23
## %bb.22:
	movl	$2, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_23:
	testb	$4, %r14b
	je	LBB0_26
## %bb.24:
	testb	$4, 64(%rbx)
	je	LBB0_26
## %bb.25:
	movl	$4, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_26:
	testb	$8, %r14b
	je	LBB0_29
## %bb.27:
	testb	$8, 64(%rbx)
	je	LBB0_29
## %bb.28:
	movl	$8, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_29:
	testb	$16, %r14b
	je	LBB0_32
## %bb.30:
	testb	$16, 64(%rbx)
	je	LBB0_32
## %bb.31:
	movl	$16, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_32:
	testb	$32, %r14b
	je	LBB0_35
## %bb.33:
	testb	$32, 64(%rbx)
	je	LBB0_35
## %bb.34:
	movl	$32, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_35:
	testb	$64, %r14b
	je	LBB0_38
## %bb.36:
	testb	$64, 64(%rbx)
	je	LBB0_38
## %bb.37:
	movl	$64, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_38:
	testb	$-128, %r14b
	je	LBB0_41
## %bb.39:
	testb	$-128, 64(%rbx)
	je	LBB0_41
## %bb.40:
	movl	$128, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_41:
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_44
## %bb.42:
	testb	$1, 65(%rbx)
	je	LBB0_44
## %bb.43:
	movl	$256, %edi                      ## imm = 0x100
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_44:
	testl	$512, %r14d                     ## imm = 0x200
	je	LBB0_47
## %bb.45:
	testb	$2, 65(%rbx)
	je	LBB0_47
## %bb.46:
	movl	$512, %edi                      ## imm = 0x200
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_47:
	testl	$1024, %r14d                    ## imm = 0x400
	je	LBB0_92
## %bb.48:
	testb	$4, 65(%rbx)
	je	LBB0_92
## %bb.49:
	movl	$1024, %edi                     ## imm = 0x400
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_trigger_sound_interrupt   ## TAILCALL
LBB0_50:
	testb	$32, %r14b
	je	LBB0_92
## %bb.51:
	movl	$32, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_sound_interrupt           ## TAILCALL
LBB0_52:
	notl	%r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	andl	%r14d, 64(%rax)
	jmp	LBB0_92
LBB0_53:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 68(%rax)
	jmp	LBB0_92
LBB0_54:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 72(%rax)
	jmp	LBB0_92
LBB0_55:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 76(%rax)
	jmp	LBB0_92
LBB0_89:
	testb	$32, %r14b
	je	LBB0_92
## %bb.90:
	movl	$32, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_main_interrupt            ## TAILCALL
LBB0_91:
	notl	%r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	andl	%r14d, 84(%rax)
	jmp	LBB0_92
LBB0_56:
	movq	_scsp@GOTPCREL(%rip), %rbx
	movl	%r14d, 80(%rbx)
	testb	$1, %r14b
	je	LBB0_59
## %bb.57:
	testb	$1, 84(%rbx)
	je	LBB0_59
## %bb.58:
	movl	$1, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_59:
	testb	$2, %r14b
	je	LBB0_62
## %bb.60:
	testb	$2, 84(%rbx)
	je	LBB0_62
## %bb.61:
	movl	$2, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_62:
	testb	$4, %r14b
	je	LBB0_65
## %bb.63:
	testb	$4, 84(%rbx)
	je	LBB0_65
## %bb.64:
	movl	$4, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_65:
	testb	$8, %r14b
	je	LBB0_68
## %bb.66:
	testb	$8, 84(%rbx)
	je	LBB0_68
## %bb.67:
	movl	$8, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_68:
	testb	$16, %r14b
	je	LBB0_71
## %bb.69:
	testb	$16, 84(%rbx)
	je	LBB0_71
## %bb.70:
	movl	$16, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_71:
	testb	$32, %r14b
	je	LBB0_74
## %bb.72:
	testb	$32, 84(%rbx)
	je	LBB0_74
## %bb.73:
	movl	$32, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_74:
	testb	$64, %r14b
	je	LBB0_77
## %bb.75:
	testb	$64, 84(%rbx)
	je	LBB0_77
## %bb.76:
	movl	$64, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_77:
	testb	$-128, %r14b
	je	LBB0_80
## %bb.78:
	testb	$-128, 84(%rbx)
	je	LBB0_80
## %bb.79:
	movl	$128, %edi
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_80:
	testl	$256, %r14d                     ## imm = 0x100
	je	LBB0_83
## %bb.81:
	testb	$1, 85(%rbx)
	je	LBB0_83
## %bb.82:
	movl	$256, %edi                      ## imm = 0x100
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_83:
	testl	$512, %r14d                     ## imm = 0x200
	je	LBB0_86
## %bb.84:
	testb	$2, 85(%rbx)
	je	LBB0_86
## %bb.85:
	movl	$512, %edi                      ## imm = 0x200
	callq	_scsp_trigger_main_interrupt
	movl	80(%rbx), %r14d
LBB0_86:
	testl	$1024, %r14d                    ## imm = 0x400
	je	LBB0_92
## %bb.87:
	testb	$4, 85(%rbx)
	jne	LBB0_88
LBB0_92:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_93:
	xorl	%edi, %edi
	movl	$524288, %esi                   ## imm = 0x80000
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_88:
	movl	$1024, %edi                     ## imm = 0x400
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_trigger_main_interrupt    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_92, LBB0_92-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
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_50, LBB0_50-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
.set L0_0_set_89, LBB0_89-LJTI0_0
.set L0_0_set_91, LBB0_91-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_92
	.long	L0_0_set_7
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_8
	.long	L0_0_set_92
	.long	L0_0_set_9
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_92
	.long	L0_0_set_10
	.long	L0_0_set_92
	.long	L0_0_set_11
	.long	L0_0_set_92
	.long	L0_0_set_12
	.long	L0_0_set_92
	.long	L0_0_set_14
	.long	L0_0_set_92
	.long	L0_0_set_15
	.long	L0_0_set_92
	.long	L0_0_set_16
	.long	L0_0_set_92
	.long	L0_0_set_17
	.long	L0_0_set_92
	.long	L0_0_set_50
	.long	L0_0_set_92
	.long	L0_0_set_52
	.long	L0_0_set_92
	.long	L0_0_set_53
	.long	L0_0_set_92
	.long	L0_0_set_54
	.long	L0_0_set_92
	.long	L0_0_set_55
	.long	L0_0_set_92
	.long	L0_0_set_56
	.long	L0_0_set_92
	.long	L0_0_set_89
	.long	L0_0_set_92
	.long	L0_0_set_91
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scsp : reg %.2X = %.4X\n"

	.comm	_scsp_ccr,8,3                   ## @scsp_ccr
	.comm	_scsp,88,2                      ## @scsp
	.comm	_M68K,8,3                       ## @M68K
	.comm	_SoundRam,4,2                   ## @SoundRam
	.no_dead_strip	_scsp_set_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsp_set_w
_scsp_set_w:                            ; @scsp_set_w
	.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
	mov	x19, x1
	mov	x20, x0
	sub	w8, w0, #1048
	cmp	w8, #10
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1029
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.ne	LBB0_2
; %bb.1:
	and	w1, w20, #0x3e
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_SCSPLOG
LBB0_2:
Lloh2:
	adrp	x8, _scsp_ccr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scsp_ccr@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	eor	w9, w20, #0x2
	str	w19, [x8, w9, sxtw #2]
	and	w8, w20, #0x3e
	cmp	w8, #46
	b.hi	LBB0_90
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	lsr	w8, w19, #9
	ubfx	w9, w19, #9, #1
Lloh7:
	adrp	x10, _scsp@GOTPAGE
Lloh8:
	ldr	x10, [x10, _scsp@GOTPAGEOFF]
	and	w11, w19, #0xf
Lloh9:
	adrp	x19, _M68K@GOTPAGE
Lloh10:
	ldr	x19, [x19, _M68K@GOTPAGEOFF]
	stp	w9, w11, [x10]
	ldr	x9, [x19]
	ldr	x3, [x9]
Lloh11:
	adrp	x20, _SoundRam@GOTPAGE
Lloh12:
	ldr	x20, [x20, _SoundRam@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w0, #0
	tbnz	w8, #0, LBB0_91
; %bb.5:
	mov	w1, #262144
	blr	x3
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x20]
	mov	w0, #262144
	mov	w1, #524288
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x20]
	mov	w0, #524288
	mov	w1, #786432
	blr	x8
	ldr	x8, [x19]
	ldr	x3, [x8]
	ldr	w2, [x20]
	mov	w0, #786432
	mov	w1, #1048576
	b	LBB0_92
LBB0_6:
	ubfx	w8, w19, #7, #2
Lloh13:
	adrp	x9, _scsp@GOTPAGE
Lloh14:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
	ubfiz	w10, w19, #13, #7
	stp	w8, w10, [x9, #8]
	b	LBB0_90
LBB0_7:
	and	w0, w19, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_midi_out_send
LBB0_8:
	ubfx	w8, w19, #11, #5
Lloh15:
	adrp	x9, _scsp@GOTPAGE
Lloh16:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh17:
	str	w8, [x9, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_update_monitor
LBB0_9:
Lloh18:
	adrp	x8, _scsp@GOTPAGE
Lloh19:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #20]
	and	w9, w9, #0x70000
	and	w10, w19, #0xfffe
	orr	w9, w9, w10
	str	w9, [x8, #20]
	b	LBB0_90
LBB0_10:
Lloh20:
	adrp	x8, _scsp@GOTPAGE
Lloh21:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #20]
	and	w9, w9, #0xfffe
	lsr	w10, w19, #12
	bfi	w9, w10, #16, #3
	and	w10, w19, #0xffe
	stp	w9, w10, [x8, #20]
	b	LBB0_90
LBB0_11:
	and	w8, w19, #0xffe
Lloh22:
	adrp	x9, _scsp@GOTPAGE
Lloh23:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
	lsr	w10, w19, #8
	and	w10, w10, #0xf0
	stp	w8, w10, [x9, #28]
	tbz	w19, #12, LBB0_90
; %bb.12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_dma
LBB0_13:
	ubfx	w8, w19, #8, #3
Lloh24:
	adrp	x9, _scsp@GOTPAGE
Lloh25:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
	ubfiz	w10, w19, #8, #8
	stp	w8, w10, [x9, #36]
	b	LBB0_90
LBB0_14:
	ubfx	w8, w19, #8, #3
Lloh26:
	adrp	x9, _scsp@GOTPAGE
Lloh27:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
	ubfiz	w10, w19, #8, #8
	stp	w8, w10, [x9, #44]
	b	LBB0_90
LBB0_15:
	ubfx	w8, w19, #8, #3
Lloh28:
	adrp	x9, _scsp@GOTPAGE
Lloh29:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
	ubfiz	w10, w19, #8, #8
	stp	w8, w10, [x9, #52]
	b	LBB0_90
LBB0_16:
Lloh30:
	adrp	x20, _scsp@GOTPAGE
Lloh31:
	ldr	x20, [x20, _scsp@GOTPAGEOFF]
	str	w19, [x20, #60]
	tbz	w19, #0, LBB0_19
; %bb.17:
	ldrb	w8, [x20, #64]
	tbz	w8, #0, LBB0_19
; %bb.18:
	mov	w0, #1
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_19:
	tbz	w19, #1, LBB0_22
; %bb.20:
	ldrb	w8, [x20, #64]
	tbz	w8, #1, LBB0_22
; %bb.21:
	mov	w0, #2
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_22:
	tbz	w19, #2, LBB0_25
; %bb.23:
	ldrb	w8, [x20, #64]
	tbz	w8, #2, LBB0_25
; %bb.24:
	mov	w0, #4
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_25:
	tbz	w19, #3, LBB0_28
; %bb.26:
	ldrb	w8, [x20, #64]
	tbz	w8, #3, LBB0_28
; %bb.27:
	mov	w0, #8
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_28:
	tbz	w19, #4, LBB0_31
; %bb.29:
	ldrb	w8, [x20, #64]
	tbz	w8, #4, LBB0_31
; %bb.30:
	mov	w0, #16
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_31:
	tbz	w19, #5, LBB0_34
; %bb.32:
	ldrb	w8, [x20, #64]
	tbz	w8, #5, LBB0_34
; %bb.33:
	mov	w0, #32
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_34:
	tbz	w19, #6, LBB0_37
; %bb.35:
	ldrb	w8, [x20, #64]
	tbz	w8, #6, LBB0_37
; %bb.36:
	mov	w0, #64
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_37:
	tbz	w19, #7, LBB0_40
; %bb.38:
	ldrb	w8, [x20, #64]
	tbz	w8, #7, LBB0_40
; %bb.39:
	mov	w0, #128
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_40:
	tbz	w19, #8, LBB0_43
; %bb.41:
	ldrb	w8, [x20, #65]
	tbz	w8, #0, LBB0_43
; %bb.42:
	mov	w0, #256
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_43:
	tbz	w19, #9, LBB0_46
; %bb.44:
	ldrb	w8, [x20, #65]
	tbz	w8, #1, LBB0_46
; %bb.45:
	mov	w0, #512
	bl	_scsp_trigger_sound_interrupt
	ldr	w19, [x20, #60]
LBB0_46:
	tbz	w19, #10, LBB0_90
; %bb.47:
	ldrb	w8, [x20, #65]
	tbz	w8, #2, LBB0_90
; %bb.48:
	mov	w0, #1024
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_trigger_sound_interrupt
LBB0_49:
	tbz	w19, #5, LBB0_90
; %bb.50:
	mov	w0, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_sound_interrupt
LBB0_51:
Lloh32:
	adrp	x8, _scsp@GOTPAGE
Lloh33:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #64]
	bic	w9, w9, w19
	str	w9, [x8, #64]
	b	LBB0_90
LBB0_52:
Lloh34:
	adrp	x8, _scsp@GOTPAGE
Lloh35:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh36:
	str	w19, [x8, #68]
	b	LBB0_90
LBB0_53:
Lloh37:
	adrp	x8, _scsp@GOTPAGE
Lloh38:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh39:
	str	w19, [x8, #72]
	b	LBB0_90
LBB0_54:
Lloh40:
	adrp	x8, _scsp@GOTPAGE
Lloh41:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh42:
	str	w19, [x8, #76]
	b	LBB0_90
LBB0_55:
	tbz	w19, #5, LBB0_90
; %bb.56:
	mov	w0, #32
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_main_interrupt
LBB0_57:
Lloh43:
	adrp	x8, _scsp@GOTPAGE
Lloh44:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #84]
	bic	w9, w9, w19
	str	w9, [x8, #84]
	b	LBB0_90
LBB0_58:
Lloh45:
	adrp	x20, _scsp@GOTPAGE
Lloh46:
	ldr	x20, [x20, _scsp@GOTPAGEOFF]
	str	w19, [x20, #80]
	tbz	w19, #0, LBB0_61
; %bb.59:
	ldrb	w8, [x20, #84]
	tbz	w8, #0, LBB0_61
; %bb.60:
	mov	w0, #1
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_61:
	tbz	w19, #1, LBB0_64
; %bb.62:
	ldrb	w8, [x20, #84]
	tbz	w8, #1, LBB0_64
; %bb.63:
	mov	w0, #2
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_64:
	tbz	w19, #2, LBB0_67
; %bb.65:
	ldrb	w8, [x20, #84]
	tbz	w8, #2, LBB0_67
; %bb.66:
	mov	w0, #4
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_67:
	tbz	w19, #3, LBB0_70
; %bb.68:
	ldrb	w8, [x20, #84]
	tbz	w8, #3, LBB0_70
; %bb.69:
	mov	w0, #8
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_70:
	tbz	w19, #4, LBB0_73
; %bb.71:
	ldrb	w8, [x20, #84]
	tbz	w8, #4, LBB0_73
; %bb.72:
	mov	w0, #16
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_73:
	tbz	w19, #5, LBB0_76
; %bb.74:
	ldrb	w8, [x20, #84]
	tbz	w8, #5, LBB0_76
; %bb.75:
	mov	w0, #32
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_76:
	tbz	w19, #6, LBB0_79
; %bb.77:
	ldrb	w8, [x20, #84]
	tbz	w8, #6, LBB0_79
; %bb.78:
	mov	w0, #64
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_79:
	tbz	w19, #7, LBB0_82
; %bb.80:
	ldrb	w8, [x20, #84]
	tbz	w8, #7, LBB0_82
; %bb.81:
	mov	w0, #128
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_82:
	tbz	w19, #8, LBB0_85
; %bb.83:
	ldrb	w8, [x20, #85]
	tbz	w8, #0, LBB0_85
; %bb.84:
	mov	w0, #256
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_85:
	tbz	w19, #9, LBB0_88
; %bb.86:
	ldrb	w8, [x20, #85]
	tbz	w8, #1, LBB0_88
; %bb.87:
	mov	w0, #512
	bl	_scsp_trigger_main_interrupt
	ldr	w19, [x20, #80]
LBB0_88:
	tbz	w19, #10, LBB0_90
; %bb.89:
	ldrb	w8, [x20, #85]
	tbnz	w8, #2, LBB0_93
LBB0_90:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_91:
	mov	w1, #524288
LBB0_92:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
LBB0_93:
	mov	w0, #1024
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_trigger_main_interrupt
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_4-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_6-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_7-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_8-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_9-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_10-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_11-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_13-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_14-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_15-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_16-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_49-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_51-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_52-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_53-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_54-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_58-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_55-LBB0_4)>>2
	.short	(LBB0_90-LBB0_4)>>2
	.short	(LBB0_57-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scsp : reg %.2X = %.4X\n"

	.comm	_scsp_ccr,8,3                   ; @scsp_ccr
	.comm	_scsp,88,2                      ; @scsp
	.comm	_M68K,8,3                       ; @M68K
	.comm	_SoundRam,4,2                   ; @SoundRam
	.no_dead_strip	_scsp_set_w
.subsections_via_symbols
