	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsp_set_b
_scsp_set_b:                            ## @scsp_set_b
	.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
	cmpl	$1032, %edi                     ## imm = 0x408
	je	LBB0_3
## %bb.1:
	cmpl	$1053, %ebx                     ## imm = 0x41D
	je	LBB0_3
## %bb.2:
	movl	%ebx, %esi
	andl	$63, %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	$3, %ecx
	movslq	%ecx, %rcx
	movl	%r14d, (%rax,%rcx,4)
	andl	$63, %ebx
	cmpl	$47, %ebx
	ja	LBB0_73
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	shrl	%r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movq	_SoundRam@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	andl	$1, %r14d
	movl	%r14d, (%rax)
	movq	_M68K@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	jne	LBB0_74
## %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_17:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$254, %ecx
	andl	28(%rax), %ecx
	movl	%r14d, %edx
	andl	$15, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	movl	%edx, 28(%rax)
	movl	%r14d, %ecx
	andl	$240, %ecx
	movl	%ecx, 32(%rax)
	testb	$16, %r14b
	je	LBB0_73
## %bb.18:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_dma                       ## TAILCALL
LBB0_20:
	andl	$7, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 36(%rax)
	jmp	LBB0_73
LBB0_21:
	shll	$8, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 40(%rax)
	jmp	LBB0_73
LBB0_26:
	movq	_scsp@GOTPCREL(%rip), %rbx
	movl	60(%rbx), %eax
	movzbl	%al, %eax
	shll	$8, %r14d
	orl	%eax, %r14d
	movl	%r14d, 60(%rbx)
	testb	$1, %al
	je	LBB0_29
## %bb.27:
	testb	$1, 64(%rbx)
	je	LBB0_29
## %bb.28:
	movl	$256, %edi                      ## imm = 0x100
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_29:
	testb	$2, %r14b
	je	LBB0_32
## %bb.30:
	testb	$2, 64(%rbx)
	je	LBB0_32
## %bb.31:
	movl	$512, %edi                      ## imm = 0x200
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %r14d
LBB0_32:
	testb	$4, %r14b
	je	LBB0_73
## %bb.33:
	testb	$4, 64(%rbx)
	je	LBB0_73
## %bb.34:
	movl	$1024, %edi                     ## imm = 0x400
	jmp	LBB0_35
LBB0_62:
	shll	$8, %r14d
LBB0_63:
	notl	%r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	andl	%r14d, 64(%rax)
	jmp	LBB0_73
LBB0_64:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 68(%rax)
	jmp	LBB0_73
LBB0_66:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 76(%rax)
	jmp	LBB0_73
LBB0_69:
	testb	$32, %r14b
	je	LBB0_73
## %bb.70:
	movl	$32, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_main_interrupt            ## TAILCALL
LBB0_7:
	andl	$15, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 4(%rax)
	jmp	LBB0_73
LBB0_8:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	andl	$1, %ecx
	andl	$1, %r14d
	leal	(%rcx,%r14,2), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_73
LBB0_9:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	andl	$2, %ecx
	movl	%r14d, %edx
	shrl	$7, %edx
	andl	$1, %edx
	orl	%ecx, %edx
	movl	%edx, 8(%rax)
	andl	$127, %r14d
	shll	$13, %r14d
	movl	%r14d, 12(%rax)
	jmp	LBB0_73
LBB0_10:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_midi_out_send             ## TAILCALL
LBB0_11:
	shrl	$3, %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_12:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$459006, %ecx                   ## imm = 0x700FE
	andl	20(%rax), %ecx
	shll	$8, %r14d
	addl	%ecx, %r14d
	movl	%r14d, 20(%rax)
	jmp	LBB0_73
LBB0_13:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$524032, %ecx                   ## imm = 0x7FF00
	andl	20(%rax), %ecx
	andl	$254, %r14d
	orl	%ecx, %r14d
	movl	%r14d, 20(%rax)
	jmp	LBB0_73
LBB0_14:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$65534, %ecx                    ## imm = 0xFFFE
	andl	20(%rax), %ecx
	movl	%r14d, %edx
	andl	$112, %edx
	shll	$12, %edx
	orl	%ecx, %edx
	movl	%edx, 20(%rax)
	movl	$254, %ecx
	andl	24(%rax), %ecx
	andl	$15, %r14d
	shll	$8, %r14d
	jmp	LBB0_16
LBB0_15:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$3840, %ecx                     ## imm = 0xF00
	andl	24(%rax), %ecx
	andl	$254, %r14d
LBB0_16:
	orl	%ecx, %r14d
	movl	%r14d, 24(%rax)
	jmp	LBB0_73
LBB0_19:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$3840, %ecx                     ## imm = 0xF00
	andl	28(%rax), %ecx
	andl	$254, %r14d
	orl	%ecx, %r14d
	movl	%r14d, 28(%rax)
	jmp	LBB0_73
LBB0_22:
	andl	$7, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 44(%rax)
	jmp	LBB0_73
LBB0_23:
	shll	$8, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 48(%rax)
	jmp	LBB0_73
LBB0_24:
	andl	$7, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 52(%rax)
	jmp	LBB0_73
LBB0_25:
	shll	$8, %r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 56(%rax)
	jmp	LBB0_73
LBB0_36:
	movq	_scsp@GOTPCREL(%rip), %rbx
	movl	$1792, %eax                     ## imm = 0x700
	andl	60(%rbx), %eax
	addl	%r14d, %eax
	movl	%eax, 60(%rbx)
	testb	$1, %al
	je	LBB0_39
## %bb.37:
	testb	$1, 64(%rbx)
	je	LBB0_39
## %bb.38:
	movl	$1, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_39:
	testb	$2, %al
	je	LBB0_42
## %bb.40:
	testb	$2, 64(%rbx)
	je	LBB0_42
## %bb.41:
	movl	$2, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_42:
	testb	$4, %al
	je	LBB0_45
## %bb.43:
	testb	$4, 64(%rbx)
	je	LBB0_45
## %bb.44:
	movl	$4, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_45:
	testb	$8, %al
	je	LBB0_48
## %bb.46:
	testb	$8, 64(%rbx)
	je	LBB0_48
## %bb.47:
	movl	$8, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_48:
	testb	$16, %al
	je	LBB0_51
## %bb.49:
	testb	$16, 64(%rbx)
	je	LBB0_51
## %bb.50:
	movl	$16, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_51:
	testb	$32, %al
	je	LBB0_54
## %bb.52:
	testb	$32, 64(%rbx)
	je	LBB0_54
## %bb.53:
	movl	$32, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_54:
	testb	$64, %al
	je	LBB0_57
## %bb.55:
	testb	$64, 64(%rbx)
	je	LBB0_57
## %bb.56:
	movl	$64, %edi
	callq	_scsp_trigger_sound_interrupt
	movl	60(%rbx), %eax
LBB0_57:
	testb	$-128, %al
	je	LBB0_73
## %bb.58:
	testb	$-128, 64(%rbx)
	je	LBB0_73
## %bb.59:
	movl	$128, %edi
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_trigger_sound_interrupt   ## TAILCALL
LBB0_60:
	testb	$32, %r14b
	je	LBB0_73
## %bb.61:
	movl	$32, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scsp_sound_interrupt           ## TAILCALL
LBB0_65:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	%r14d, 72(%rax)
	jmp	LBB0_73
LBB0_67:
	movq	_scsp@GOTPCREL(%rip), %rax
	movzbl	80(%rax), %ecx
	shll	$8, %r14d
	orl	%ecx, %r14d
	movl	%r14d, 80(%rax)
	jmp	LBB0_73
LBB0_68:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	$1792, %ecx                     ## imm = 0x700
	andl	80(%rax), %ecx
	addl	%r14d, %ecx
	movl	%ecx, 80(%rax)
	jmp	LBB0_73
LBB0_71:
	shll	$8, %r14d
LBB0_72:
	notl	%r14d
	movq	_scsp@GOTPCREL(%rip), %rax
	andl	%r14d, 84(%rax)
LBB0_73:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_74:
	xorl	%edi, %edi
	movl	$524288, %esi                   ## imm = 0x80000
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-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_73, LBB0_73-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_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_60, LBB0_60-LJTI0_0
.set L0_0_set_62, LBB0_62-LJTI0_0
.set L0_0_set_63, LBB0_63-LJTI0_0
.set L0_0_set_64, LBB0_64-LJTI0_0
.set L0_0_set_65, LBB0_65-LJTI0_0
.set L0_0_set_66, LBB0_66-LJTI0_0
.set L0_0_set_67, LBB0_67-LJTI0_0
.set L0_0_set_68, LBB0_68-LJTI0_0
.set L0_0_set_69, LBB0_69-LJTI0_0
.set L0_0_set_71, LBB0_71-LJTI0_0
.set L0_0_set_72, LBB0_72-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_73
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_25
	.long	L0_0_set_26
	.long	L0_0_set_36
	.long	L0_0_set_73
	.long	L0_0_set_60
	.long	L0_0_set_62
	.long	L0_0_set_63
	.long	L0_0_set_73
	.long	L0_0_set_64
	.long	L0_0_set_73
	.long	L0_0_set_65
	.long	L0_0_set_73
	.long	L0_0_set_66
	.long	L0_0_set_67
	.long	L0_0_set_68
	.long	L0_0_set_73
	.long	L0_0_set_69
	.long	L0_0_set_71
	.long	L0_0_set_72
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scsp : reg %.2X = %.2X\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_b
.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 scsp_set_b
lCPI0_0:
	.long	12                              ; 0xc
	.long	8                               ; 0x8
lCPI0_1:
	.long	65534                           ; 0xfffe
	.long	254                             ; 0xfe
lCPI0_2:
	.long	458752                          ; 0x70000
	.long	3840                            ; 0xf00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_scsp_set_b:                            ; @scsp_set_b
	.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
	cmp	w0, #1032
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #1053
	b.eq	LBB0_3
; %bb.2:
	and	w1, w20, #0x3f
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_SCSPLOG
LBB0_3:
Lloh2:
	adrp	x8, _scsp_ccr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scsp_ccr@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	eor	w9, w20, #0x3
	str	w19, [x8, w9, sxtw #2]
	and	w8, w20, #0x3f
	cmp	w8, #47
	b.hi	LBB0_73
; %bb.4:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	lsr	w8, w19, #1
	ubfx	w9, w19, #1, #1
Lloh7:
	adrp	x10, _scsp@GOTPAGE
Lloh8:
	ldr	x10, [x10, _scsp@GOTPAGEOFF]
Lloh9:
	adrp	x19, _M68K@GOTPAGE
Lloh10:
	ldr	x19, [x19, _M68K@GOTPAGEOFF]
Lloh11:
	str	w9, [x10]
	ldr	x9, [x19]
	ldr	x3, [x9]
Lloh12:
	adrp	x20, _SoundRam@GOTPAGE
Lloh13:
	ldr	x20, [x20, _SoundRam@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w0, #0
	tbnz	w8, #0, LBB0_74
; %bb.6:
	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_75
LBB0_7:
Lloh14:
	adrp	x8, _scsp@GOTPAGE
Lloh15:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #28]
	and	w9, w9, #0xfe
	bfi	w9, w19, #8, #4
	and	w10, w19, #0xf0
	stp	w9, w10, [x8, #28]
	tbz	w19, #4, LBB0_73
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_dma
LBB0_9:
	and	w8, w19, #0x7
Lloh16:
	adrp	x9, _scsp@GOTPAGE
Lloh17:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh18:
	str	w8, [x9, #36]
	b	LBB0_73
LBB0_10:
	lsl	w8, w19, #8
Lloh19:
	adrp	x9, _scsp@GOTPAGE
Lloh20:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh21:
	str	w8, [x9, #40]
	b	LBB0_73
LBB0_11:
Lloh22:
	adrp	x20, _scsp@GOTPAGE
Lloh23:
	ldr	x20, [x20, _scsp@GOTPAGEOFF]
	ldr	w9, [x20, #60]
	mov	x8, x9
	bfi	w8, w19, #8, #24
	str	w8, [x20, #60]
	tbz	w9, #0, LBB0_14
; %bb.12:
	ldrb	w9, [x20, #64]
	tbz	w9, #0, LBB0_14
; %bb.13:
	mov	w0, #256
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_14:
	tbz	w8, #1, LBB0_17
; %bb.15:
	ldrb	w9, [x20, #64]
	tbz	w9, #1, LBB0_17
; %bb.16:
	mov	w0, #512
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_17:
	tbz	w8, #2, LBB0_73
; %bb.18:
	ldrb	w8, [x20, #64]
	tbz	w8, #2, LBB0_73
; %bb.19:
	mov	w0, #1024
	b	LBB0_64
LBB0_20:
Lloh24:
	adrp	x8, _scsp@GOTPAGE
Lloh25:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #64]
	bic	w9, w9, w19, lsl #8
	str	w9, [x8, #64]
	b	LBB0_73
LBB0_21:
Lloh26:
	adrp	x8, _scsp@GOTPAGE
Lloh27:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #64]
	bic	w9, w9, w19
	str	w9, [x8, #64]
	b	LBB0_73
LBB0_22:
Lloh28:
	adrp	x8, _scsp@GOTPAGE
Lloh29:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh30:
	str	w19, [x8, #68]
	b	LBB0_73
LBB0_23:
Lloh31:
	adrp	x8, _scsp@GOTPAGE
Lloh32:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh33:
	str	w19, [x8, #76]
	b	LBB0_73
LBB0_24:
	tbz	w19, #5, LBB0_73
; %bb.25:
	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_26:
	and	w8, w19, #0xf
Lloh34:
	adrp	x9, _scsp@GOTPAGE
Lloh35:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh36:
	str	w8, [x9, #4]
	b	LBB0_73
LBB0_27:
Lloh37:
	adrp	x8, _scsp@GOTPAGE
Lloh38:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	and	w9, w9, #0x1
	bfi	w9, w19, #1, #1
	str	w9, [x8, #8]
	b	LBB0_73
LBB0_28:
Lloh39:
	adrp	x8, _scsp@GOTPAGE
Lloh40:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	and	w9, w9, #0x2
	bfxil	w9, w19, #7, #1
	ubfiz	w10, w19, #13, #7
	stp	w9, w10, [x8, #8]
	b	LBB0_73
LBB0_29:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_midi_out_send
LBB0_30:
	ubfx	w8, w19, #3, #5
Lloh41:
	adrp	x9, _scsp@GOTPAGE
Lloh42:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh43:
	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_31:
Lloh44:
	adrp	x8, _scsp@GOTPAGE
Lloh45:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #20]
	and	w9, w9, #0x7fffe
	and	w9, w9, #0xffff00ff
	add	w9, w9, w19, lsl #8
	str	w9, [x8, #20]
	b	LBB0_73
LBB0_32:
Lloh46:
	adrp	x8, _scsp@GOTPAGE
Lloh47:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #20]
	and	w9, w9, #0x7ff00
	and	w10, w19, #0xfe
	orr	w9, w9, w10
	str	w9, [x8, #20]
	b	LBB0_73
LBB0_33:
	dup.2s	v0, w19
Lloh48:
	adrp	x8, lCPI0_0@PAGE
Lloh49:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh50:
	adrp	x8, _scsp@GOTPAGE
Lloh51:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldur	d1, [x8, #20]
Lloh52:
	adrp	x9, lCPI0_1@PAGE
Lloh53:
	ldr	d2, [x9, lCPI0_1@PAGEOFF]
	and.8b	v1, v1, v2
Lloh54:
	adrp	x9, lCPI0_2@PAGE
Lloh55:
	ldr	d2, [x9, lCPI0_2@PAGEOFF]
	and.8b	v0, v0, v2
	orr.8b	v0, v1, v0
	stur	d0, [x8, #20]
	b	LBB0_73
LBB0_34:
Lloh56:
	adrp	x8, _scsp@GOTPAGE
Lloh57:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #24]
	and	w9, w9, #0xf00
	and	w10, w19, #0xfe
	orr	w9, w9, w10
	str	w9, [x8, #24]
	b	LBB0_73
LBB0_35:
Lloh58:
	adrp	x8, _scsp@GOTPAGE
Lloh59:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #28]
	and	w9, w9, #0xf00
	and	w10, w19, #0xfe
	orr	w9, w9, w10
	str	w9, [x8, #28]
	b	LBB0_73
LBB0_36:
	and	w8, w19, #0x7
Lloh60:
	adrp	x9, _scsp@GOTPAGE
Lloh61:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh62:
	str	w8, [x9, #44]
	b	LBB0_73
LBB0_37:
	lsl	w8, w19, #8
Lloh63:
	adrp	x9, _scsp@GOTPAGE
Lloh64:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh65:
	str	w8, [x9, #48]
	b	LBB0_73
LBB0_38:
	and	w8, w19, #0x7
Lloh66:
	adrp	x9, _scsp@GOTPAGE
Lloh67:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh68:
	str	w8, [x9, #52]
	b	LBB0_73
LBB0_39:
	lsl	w8, w19, #8
Lloh69:
	adrp	x9, _scsp@GOTPAGE
Lloh70:
	ldr	x9, [x9, _scsp@GOTPAGEOFF]
Lloh71:
	str	w8, [x9, #56]
	b	LBB0_73
LBB0_40:
Lloh72:
	adrp	x20, _scsp@GOTPAGE
Lloh73:
	ldr	x20, [x20, _scsp@GOTPAGEOFF]
	ldr	w8, [x20, #60]
	and	w8, w8, #0x700
	add	w8, w8, w19
	str	w8, [x20, #60]
	tbz	w8, #0, LBB0_43
; %bb.41:
	ldrb	w9, [x20, #64]
	tbz	w9, #0, LBB0_43
; %bb.42:
	mov	w0, #1
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_43:
	tbz	w8, #1, LBB0_46
; %bb.44:
	ldrb	w9, [x20, #64]
	tbz	w9, #1, LBB0_46
; %bb.45:
	mov	w0, #2
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_46:
	tbz	w8, #2, LBB0_49
; %bb.47:
	ldrb	w9, [x20, #64]
	tbz	w9, #2, LBB0_49
; %bb.48:
	mov	w0, #4
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_49:
	tbz	w8, #3, LBB0_52
; %bb.50:
	ldrb	w9, [x20, #64]
	tbz	w9, #3, LBB0_52
; %bb.51:
	mov	w0, #8
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_52:
	tbz	w8, #4, LBB0_55
; %bb.53:
	ldrb	w9, [x20, #64]
	tbz	w9, #4, LBB0_55
; %bb.54:
	mov	w0, #16
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_55:
	tbz	w8, #5, LBB0_58
; %bb.56:
	ldrb	w9, [x20, #64]
	tbz	w9, #5, LBB0_58
; %bb.57:
	mov	w0, #32
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_58:
	tbz	w8, #6, LBB0_61
; %bb.59:
	ldrb	w9, [x20, #64]
	tbz	w9, #6, LBB0_61
; %bb.60:
	mov	w0, #64
	bl	_scsp_trigger_sound_interrupt
	ldr	w8, [x20, #60]
LBB0_61:
	tbz	w8, #7, LBB0_73
; %bb.62:
	ldrb	w8, [x20, #64]
	tbz	w8, #7, LBB0_73
; %bb.63:
	mov	w0, #128
LBB0_64:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_trigger_sound_interrupt
LBB0_65:
	tbz	w19, #5, LBB0_73
; %bb.66:
	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_67:
Lloh74:
	adrp	x8, _scsp@GOTPAGE
Lloh75:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh76:
	str	w19, [x8, #72]
	b	LBB0_73
LBB0_68:
Lloh77:
	adrp	x8, _scsp@GOTPAGE
Lloh78:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldrb	w9, [x8, #80]
	bfi	w9, w19, #8, #24
	str	w9, [x8, #80]
	b	LBB0_73
LBB0_69:
Lloh79:
	adrp	x8, _scsp@GOTPAGE
Lloh80:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #80]
	and	w9, w9, #0x700
	add	w9, w9, w19
	str	w9, [x8, #80]
	b	LBB0_73
LBB0_70:
Lloh81:
	adrp	x8, _scsp@GOTPAGE
Lloh82:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #84]
	bic	w9, w9, w19, lsl #8
	b	LBB0_72
LBB0_71:
Lloh83:
	adrp	x8, _scsp@GOTPAGE
Lloh84:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldr	w9, [x8, #84]
	bic	w9, w9, w19
LBB0_72:
	str	w9, [x8, #84]
LBB0_73:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_74:
	mov	w1, #524288
LBB0_75:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdr	Lloh54, Lloh55
	.loh AdrpAdrp	Lloh52, Lloh54
	.loh AdrpLdr	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdrp	Lloh48, Lloh50
	.loh AdrpLdr	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotStr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotStr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_5-LBB0_5)>>2
	.short	(LBB0_26-LBB0_5)>>2
	.short	(LBB0_27-LBB0_5)>>2
	.short	(LBB0_28-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_29-LBB0_5)>>2
	.short	(LBB0_30-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_31-LBB0_5)>>2
	.short	(LBB0_32-LBB0_5)>>2
	.short	(LBB0_33-LBB0_5)>>2
	.short	(LBB0_34-LBB0_5)>>2
	.short	(LBB0_7-LBB0_5)>>2
	.short	(LBB0_35-LBB0_5)>>2
	.short	(LBB0_9-LBB0_5)>>2
	.short	(LBB0_10-LBB0_5)>>2
	.short	(LBB0_36-LBB0_5)>>2
	.short	(LBB0_37-LBB0_5)>>2
	.short	(LBB0_38-LBB0_5)>>2
	.short	(LBB0_39-LBB0_5)>>2
	.short	(LBB0_11-LBB0_5)>>2
	.short	(LBB0_40-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_65-LBB0_5)>>2
	.short	(LBB0_20-LBB0_5)>>2
	.short	(LBB0_21-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_22-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_67-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_23-LBB0_5)>>2
	.short	(LBB0_68-LBB0_5)>>2
	.short	(LBB0_69-LBB0_5)>>2
	.short	(LBB0_73-LBB0_5)>>2
	.short	(LBB0_24-LBB0_5)>>2
	.short	(LBB0_70-LBB0_5)>>2
	.short	(LBB0_71-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scsp : reg %.2X = %.2X\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_b
.subsections_via_symbols
