	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_midi_synth_kill_note           ## -- Begin function midi_synth_kill_note
	.p2align	4, 0x90
_midi_synth_kill_note:                  ## @midi_synth_kill_note
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$15, %esi
	ja	LBB0_13
## %bb.1:
	movl	%edx, %r14d
	cmpl	$127, %edx
	ja	LBB0_13
## %bb.2:
	movl	%esi, %ebx
	movq	_synth_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movq	(%rax,%rdi,8), %rax
	movslq	(%rax), %r15
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%ecx, %eax
	cmpl	$127, %eax
	movl	$127, %r12d
	cmovbl	%eax, %r12d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_leave_sysex
	movq	_prev_out_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r13d
	movl	%r13d, %eax
	andl	$15, %eax
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.3:
	andl	$240, %r13d
	movl	%r13d, %eax
	xorl	$144, %eax
	movl	%r12d, %ecx
	xorl	$64, %ecx
	orl	%eax, %ecx
	sete	%al
	cmpl	$128, %r13d
	je	LBB0_5
## %bb.4:
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	cmpl	$64, %r12d
	jne	LBB0_10
## %bb.8:
	orl	$144, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_prefix_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_midi_outc
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_midi_outc
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_10:
	orl	$128, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_prefix_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_midi_outc
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_midi_outc
	jmp	LBB0_12
LBB0_5:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_prefix_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_midi_outc
	xorl	%eax, %eax
	cmpl	$144, %r13d
	cmovel	%eax, %r12d
LBB0_12:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_midi_outc
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_kill_note           ; -- Begin function midi_synth_kill_note
	.p2align	2
_midi_synth_kill_note:                  ; @midi_synth_kill_note
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w1, #15
	b.hi	LBB0_12
; %bb.1:
	mov	x20, x2
	cmp	w2, #127
	b.hi	LBB0_12
; %bb.2:
	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	x19, [x8]
	cmp	w3, #0
	csel	w8, w3, wzr, gt
	mov	w9, #127
	cmp	w8, #127
	csel	w21, w8, w9, lo
	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, x19, lsl #2]
	and	w9, w8, #0xf
	cmp	w9, w22
	b.ne	LBB0_6
; %bb.3:
	and	w23, w8, #0xf0
	cmp	w23, #144
	mov	w8, #64
	ccmp	w21, w8, #0, eq
	cset	w8, eq
	cmp	w23, #128
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_prefix_cmd
	cbz	w0, LBB0_12
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_midi_outc
	cmp	w23, #144
	csel	w21, wzr, w21, eq
	b	LBB0_11
LBB0_6:
	cmp	w21, #64
	b.ne	LBB0_9
; %bb.7:
	mov	w8, #144
	orr	w21, w22, w8
	mov	x0, x19
	mov	x1, x21
	bl	_prefix_cmd
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_midi_outc
	mov	x0, x19
	mov	x1, x20
	bl	_midi_outc
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	orr	w22, w22, #0x80
	mov	x0, x19
	mov	x1, x22
	bl	_prefix_cmd
	cbz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x22
	bl	_midi_outc
	mov	x0, x19
	mov	x1, x20
	bl	_midi_outc
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	bl	_midi_outc
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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
