	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_midi_synth_controller          ## -- Begin function midi_synth_controller
	.p2align	4, 0x90
_midi_synth_controller:                 ## @midi_synth_controller
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, %esi
	ja	LBB0_8
## %bb.1:
	movl	%edx, %r15d
	cmpl	$127, %edx
	ja	LBB0_8
## %bb.2:
	movl	%ecx, %r14d
	movl	%esi, %ebx
	movq	_synth_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movq	(%rax,%rdi,8), %rax
	movslq	(%rax), %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_leave_sysex
	movq	_prev_out_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, %ecx
	andl	$240, %ecx
	cmpl	$176, %ecx
	jne	LBB0_4
## %bb.3:
	andl	$15, %eax
	cmpl	%ebx, %eax
	jne	LBB0_4
## %bb.7:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_prefix_cmd
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_4:
	orl	$176, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_prefix_cmd
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_midi_outc
LBB0_6:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_midi_outc
	andl	$127, %r14d
	movl	%r12d, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_midi_outc                      ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_prev_out_status,8,3            ## @prev_out_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_midi_synth_controller          ; -- Begin function midi_synth_controller
	.p2align	2
_midi_synth_controller:                 ; @midi_synth_controller
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w1, #15
	b.hi	LBB0_7
; %bb.1:
	mov	x20, x2
	cmp	w2, #127
	b.hi	LBB0_7
; %bb.2:
	mov	x19, x3
	mov	x22, x1
Lloh0:
	adrp	x8, _synth_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _synth_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldrsw	x21, [x8]
	bl	_leave_sysex
Lloh3:
	adrp	x8, _prev_out_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prev_out_status@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	and	w9, w8, #0xf0
	and	w8, w8, #0xf
	cmp	w9, #176
	ccmp	w8, w22, #0, eq
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #176
	orr	w22, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_prefix_cmd
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	bl	_midi_outc
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_prefix_cmd
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_midi_outc
	and	w1, w19, #0x7f
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_midi_outc
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_prev_out_status,8,3            ; @prev_out_status
.subsections_via_symbols
