	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsp_midi_out_send             ## -- Begin function scsp_midi_out_send
	.p2align	4, 0x90
_scsp_midi_out_send:                    ## @scsp_midi_out_send
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SCSP_MIDI_OUT_EMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movq	_scsp@GOTPCREL(%rip), %rax
	andl	%ecx, 4(%rax)
	movslq	(%rax), %rcx
	cmpq	$3, %rcx
	jg	LBB0_3
## %bb.1:
	movq	8(%rax), %rdx
	leal	1(%rcx), %esi
	movl	%esi, (%rax)
	movl	%edi, (%rdx,%rcx,4)
	cmpl	$4, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	_SCSP_MIDI_OUT_FUL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%rax)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCSP_MIDI_OUT_EMP,4,2          ## @SCSP_MIDI_OUT_EMP
	.comm	_scsp,16,3                      ## @scsp
	.comm	_SCSP_MIDI_OUT_FUL,4,2          ## @SCSP_MIDI_OUT_FUL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scsp_midi_out_send             ; -- Begin function scsp_midi_out_send
	.p2align	2
_scsp_midi_out_send:                    ; @scsp_midi_out_send
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _SCSP_MIDI_OUT_EMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCSP_MIDI_OUT_EMP@GOTPAGEOFF]
Lloh2:
	adrp	x8, _scsp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scsp@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	ldp	w9, w11, [x8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	bic	w10, w11, w10
	str	w10, [x8, #4]
	cmp	w9, #3
	b.gt	LBB0_3
; %bb.1:
	ldr	x10, [x8, #8]
	add	w11, w9, #1
	str	w11, [x8]
	str	w0, [x10, x9, lsl #2]
	ldr	w9, [x8]
	cmp	w9, #4
	b.lt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, _SCSP_MIDI_OUT_FUL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCSP_MIDI_OUT_FUL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	orr	w9, w10, w9
	str	w9, [x8, #4]
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCSP_MIDI_OUT_EMP,4,2          ; @SCSP_MIDI_OUT_EMP
	.comm	_scsp,16,3                      ; @scsp
	.comm	_SCSP_MIDI_OUT_FUL,4,2          ; @SCSP_MIDI_OUT_FUL
.subsections_via_symbols
