	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScspMidiIn
_ScspMidiIn:                            ## @ScspMidiIn
	.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
	movq	_scsp@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.1:
	movq	24(%rbx), %rcx
	movl	(%rcx), %edx
	movl	%edx, 16(%rbx)
	movq	4(%rcx), %rdx
	movq	%rdx, (%rcx)
	movl	12(%rcx), %edx
	movl	%edx, 8(%rcx)
	xorl	%ecx, %ecx
	decq	%rax
	movq	%rax, 8(%rbx)
	sete	%cl
	movl	%ecx, 32(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_SCSP_INTERRUPT_MIDI_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SCSP_INTTARGET_BOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ScspRaiseInterrupt
	jmp	LBB0_4
LBB0_3:
	movl	$255, 16(%rbx)
LBB0_4:
	movl	36(%rbx), %eax
	shll	$12, %eax
	movl	40(%rbx), %ecx
	shll	$11, %ecx
	orl	%eax, %ecx
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	shll	$10, %eax
	shll	$9, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	32(%rbx), %eax
	shll	$8, %eax
	orl	%edx, %eax
	orl	16(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scsp,48,3                      ## @scsp
	.comm	_SCSP_INTERRUPT_MIDI_IN,4,2     ## @SCSP_INTERRUPT_MIDI_IN
	.comm	_SCSP_INTTARGET_BOTH,4,2        ## @SCSP_INTTARGET_BOTH
	.no_dead_strip	_ScspMidiIn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ScspMidiIn
lCPI0_0:
	.long	11                              ; 0xb
	.long	12                              ; 0xc
	.long	10                              ; 0xa
	.long	9                               ; 0x9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ScspMidiIn:                            ; @ScspMidiIn
	.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
Lloh0:
	adrp	x19, _scsp@GOTPAGE
Lloh1:
	ldr	x19, [x19, _scsp@GOTPAGEOFF]
	str	xzr, [x19]
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19, #24]
	ldr	w10, [x9]
	str	w10, [x19, #16]
	ldur	d0, [x9, #4]
	str	d0, [x9]
	ldr	w10, [x9, #12]
	str	w10, [x9, #8]
	str	x8, [x19, #8]
	cmp	x8, #0
	cset	w9, eq
	str	w9, [x19, #32]
	cbz	x8, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _SCSP_INTERRUPT_MIDI_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCSP_INTERRUPT_MIDI_IN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _SCSP_INTTARGET_BOTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCSP_INTTARGET_BOTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ScspRaiseInterrupt
	b	LBB0_4
LBB0_3:
	mov	w8, #255
	str	w8, [x19, #16]
LBB0_4:
	ldur	d0, [x19, #36]
	ldr	d1, [x19]
	rev64.2s	v0, v0
	mov.d	v0[1], v1[0]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	ldr	w8, [x19, #32]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	ldr	w10, [x19, #16]
	fmov	w11, s0
	orr	w9, w11, w9
	orr	w8, w9, w8, lsl #8
	orr	w0, w8, w10
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_scsp,48,3                      ; @scsp
	.comm	_SCSP_INTERRUPT_MIDI_IN,4,2     ; @SCSP_INTERRUPT_MIDI_IN
	.comm	_SCSP_INTTARGET_BOTH,4,2        ; @SCSP_INTTARGET_BOTH
	.no_dead_strip	_ScspMidiIn
.subsections_via_symbols
