	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leave_sysex
_leave_sysex:                           ## @leave_sysex
	.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
	movslq	%edi, %r14
	movq	_sysex_state@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_5
## %bb.1:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movslq	(%rcx), %r13
	movq	$0, (%rax,%r14,8)
	xorl	%ebx, %ebx
	movq	_midi_devs@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	%r13d, %edi
	movl	$247, %esi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	$1000, %ebx                     ## imm = 0x3E8
	movl	%eax, %ebx
	jb	LBB0_2
LBB0_4:
	movq	(%r15), %rax
	movq	$0, (%rax,%r14,8)
LBB0_5:
	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	_sysex_state,8,3                ## @sysex_state
	.comm	_midi_devs,8,3                  ## @midi_devs
	.no_dead_strip	_leave_sysex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leave_sysex
_leave_sysex:                           ; @leave_sysex
	.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
                                        ; kill: def $w0 killed $w0 def $x0
	sbfiz	x9, x0, #3, #32
Lloh0:
	adrp	x20, _sysex_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sysex_state@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x10, [x8, x9]
	cbz	x10, LBB0_5
; %bb.1:
	mov	w22, #0
Lloh2:
	adrp	x10, _synth_devs@GOTPAGE
Lloh3:
	ldr	x10, [x10, _synth_devs@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x9, [x10, x9]
	sxtw	x21, w0
	ldrsw	x19, [x9]
	str	xzr, [x8, x21, lsl #3]
Lloh5:
	adrp	x23, _midi_devs@GOTPAGE
Lloh6:
	ldr	x23, [x23, _midi_devs@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #247
	blr	x8
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w22, #1
	cmp	w22, #1000
	mov	x22, x8
	b.lo	LBB0_2
LBB0_4:
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_sysex_state,8,3                ; @sysex_state
	.comm	_midi_devs,8,3                  ; @midi_devs
	.no_dead_strip	_leave_sysex
.subsections_via_symbols
