	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsp_get_w
_scsp_get_w:                            ## @scsp_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	andl	$62, %ebx
	cmpl	$8, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$32, %ebx
	je	LBB0_3
## %bb.2:
	leal	(%rbx,%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_SCSPLOG
LBB0_3:
	movl	%ebx, %eax
	shrl	%eax
	cmpl	$22, %eax
	ja	LBB0_15
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_scsp_ccr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	$2, %ebx
	andl	$65295, (%rax,%rbx,4)           ## imm = 0xFF0F
	jmp	LBB0_16
LBB0_15:
	movq	_scsp_ccr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	$2, %ebx
LBB0_16:
	movl	(%rax,%rbx,4), %eax
	jmp	LBB0_17
LBB0_6:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shll	$8, %ebx
	xorl	%eax, %eax
	callq	_scsp_midi_in_read
	orl	%ebx, %eax
	jmp	LBB0_17
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_scsp_midi_out_read             ## TAILCALL
LBB0_8:
	movq	_scsp@GOTPCREL(%rip), %rcx
	movl	$1920, %edx                     ## imm = 0x780
	andl	4(%rcx), %edx
	movl	8(%rcx), %eax
	shll	$5, %eax
	orl	%edx, %eax
	orl	12(%rcx), %eax
	jmp	LBB0_17
LBB0_9:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	16(%rax), %eax
	shll	$8, %eax
	jmp	LBB0_17
LBB0_10:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	20(%rax), %eax
	shll	$8, %eax
	jmp	LBB0_17
LBB0_11:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	24(%rax), %eax
	shll	$8, %eax
	jmp	LBB0_17
LBB0_12:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	28(%rax), %eax
	jmp	LBB0_17
LBB0_13:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	32(%rax), %eax
	jmp	LBB0_17
LBB0_14:
	movq	_scsp@GOTPCREL(%rip), %rax
	movl	36(%rax), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-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
.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
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r_w scsp : reg %.2X\n"

	.comm	_scsp_ccr,8,3                   ## @scsp_ccr
	.comm	_scsp,40,2                      ## @scsp
	.no_dead_strip	_scsp_get_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsp_get_w
_scsp_get_w:                            ; @scsp_get_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
	and	w19, w0, #0x3e
	cmp	w19, #8
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #32
	b.eq	LBB0_3
; %bb.2:
	lsl	w1, w19, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SCSPLOG
LBB0_3:
	lsr	w8, w19, #1
	cmp	w8, #22
	b.hi	LBB0_6
; %bb.4:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh4:
	adrp	x8, _scsp_ccr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _scsp_ccr@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	eor	w9, w19, #0x2
	lsl	x10, x9, #2
	ldr	w11, [x8, x10]
	mov	w12, #65295
	and	w11, w11, w12
	str	w11, [x8, x10]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _scsp_ccr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _scsp_ccr@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	eor	w9, w19, #0x2
LBB0_7:
	ldr	w0, [x8, x9, lsl #2]
	b	LBB0_17
LBB0_8:
Lloh10:
	adrp	x8, _scsp@GOTPAGE
Lloh11:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	bl	_scsp_midi_in_read
	orr	w0, w0, w19, lsl #8
	b	LBB0_17
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_scsp_midi_out_read
LBB0_10:
Lloh13:
	adrp	x8, _scsp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
	ldp	w9, w10, [x8, #4]
	and	w9, w9, #0x780
	orr	w9, w9, w10, lsl #5
	ldr	w8, [x8, #12]
	orr	w0, w9, w8
	b	LBB0_17
LBB0_11:
Lloh15:
	adrp	x8, _scsp@GOTPAGE
Lloh16:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8, #16]
	lsl	w0, w8, #8
	b	LBB0_17
LBB0_12:
Lloh18:
	adrp	x8, _scsp@GOTPAGE
Lloh19:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8, #20]
	lsl	w0, w8, #8
	b	LBB0_17
LBB0_13:
Lloh21:
	adrp	x8, _scsp@GOTPAGE
Lloh22:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8, #24]
	lsl	w0, w8, #8
	b	LBB0_17
LBB0_14:
Lloh24:
	adrp	x8, _scsp@GOTPAGE
Lloh25:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8, #28]
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x8, _scsp@GOTPAGE
Lloh28:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8, #32]
	b	LBB0_17
LBB0_16:
Lloh30:
	adrp	x8, _scsp@GOTPAGE
Lloh31:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8, #36]
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_16-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r_w scsp : reg %.2X\n"

	.comm	_scsp_ccr,8,3                   ; @scsp_ccr
	.comm	_scsp,40,2                      ; @scsp
	.no_dead_strip	_scsp_get_w
.subsections_via_symbols
