	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function play_event
_play_event:                            ## @play_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movb	(%rdi), %cl
	addb	$-128, %cl
	cmpb	$13, %cl
	ja	LBB0_31
## %bb.1:
	movq	%rdi, %rax
	movzbl	%cl, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	movl	(%rax), %ecx
	movl	%ecx, %edx
	shrl	$8, %edx
	movl	%edx, (%rax)
	cmpl	$256, %ecx                      ## imm = 0x100
	jb	LBB0_31
## %bb.10:
	movq	_seq_playing@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movl	(%rax), %edi
	movq	_prev_event_time@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_request_sound_timer
	movq	_SEQ_MAX_QUEUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_qlen@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	_output_threshold@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jl	LBB0_32
## %bb.11:
	movq	_seq_sleeper@GOTPCREL(%rip), %rdi
	callq	_wake_up
	jmp	LBB0_32
LBB0_15:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_seq_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_prev_input_time@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_prev_event_time@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_31
LBB0_23:
	movzbl	1(%rax), %edi
	movq	_max_synthdev@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_31
## %bb.24:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdi,8), %rcx
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rax, %rsi
	callq	*(%rcx)
	jmp	LBB0_31
LBB0_12:
	movq	_synth_open_mask@GOTPCREL(%rip), %rcx
	testb	$1, (%rcx)
	je	LBB0_31
## %bb.13:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_31
## %bb.14:
	movzbl	1(%rax), %esi
	movzbl	2(%rax), %edx
	xorl	%edi, %edi
	callq	*8(%rcx)
	jmp	LBB0_31
LBB0_5:
	cmpb	$-1, 4(%rax)
	jl	LBB0_31
## %bb.6:
	movq	_synth_open_mask@GOTPCREL(%rip), %rcx
	testb	$1, (%rcx)
	je	LBB0_31
## %bb.7:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.8:
	movzbl	1(%rax), %esi
	movzbl	2(%rax), %edx
	movzbl	3(%rax), %ecx
	xorl	%edi, %edi
	callq	*16(%rbx)
	jmp	LBB0_31
LBB0_2:
	movq	_synth_open_mask@GOTPCREL(%rip), %rcx
	testb	$1, (%rcx)
	je	LBB0_31
## %bb.3:
	movq	_synth_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_31
## %bb.4:
	movzbl	1(%rax), %esi
	movzbl	3(%rax), %ecx
	xorl	%edi, %edi
	movl	$255, %edx
	callq	*24(%rbx)
	jmp	LBB0_31
LBB0_16:
	movq	_midi_opened@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	2(%rax), %r14d
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_31
## %bb.17:
	movq	_num_midis@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rcx)
	jle	LBB0_32
## %bb.18:
	movq	_midi_devs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_32
## %bb.19:
	movzbl	1(%rax), %esi
	movl	%r14d, %edi
	callq	*(%rcx)
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movq	_midi_written@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%r14,4)
	jmp	LBB0_32
LBB0_25:
	movq	%rax, %rdi
	callq	_extended_event
	jmp	LBB0_31
LBB0_22:
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_seq_copy_to_input
	jmp	LBB0_31
LBB0_28:
	movq	%rax, %rdi
	callq	_seq_timing_event
	movq	_TIMER_ARMED@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_31
	jmp	LBB0_32
LBB0_30:
	movq	%rax, %rdi
	callq	_seq_sysex_message
	jmp	LBB0_31
LBB0_29:
	movq	%rax, %rdi
	callq	_seq_local_event
	jmp	LBB0_31
LBB0_26:
	movq	%rax, %rdi
	callq	_seq_chn_voice_event
	jmp	LBB0_31
LBB0_27:
	movq	%rax, %rdi
	callq	_seq_chn_common_event
LBB0_31:
	xorl	%ebx, %ebx
LBB0_32:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	movq	_seq_playing@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$-1, %edi
	callq	_request_sound_timer
	movl	$2, %ebx
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_15
	.long	L0_0_set_23
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_16
	.long	L0_0_set_25
	.long	L0_0_set_22
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_29
	.long	L0_0_set_26
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.comm	_synth_open_mask,4,2            ## @synth_open_mask
	.comm	_synth_devs,8,3                 ## @synth_devs
	.comm	_seq_playing,4,2                ## @seq_playing
	.comm	_prev_event_time,8,3            ## @prev_event_time
	.comm	_SEQ_MAX_QUEUE,8,3              ## @SEQ_MAX_QUEUE
	.comm	_qlen,8,3                       ## @qlen
	.comm	_output_threshold,8,3           ## @output_threshold
	.comm	_seq_sleeper,4,2                ## @seq_sleeper
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_seq_time,4,2                   ## @seq_time
	.comm	_prev_input_time,4,2            ## @prev_input_time
	.comm	_midi_opened,8,3                ## @midi_opened
	.comm	_num_midis,4,2                  ## @num_midis
	.comm	_midi_devs,8,3                  ## @midi_devs
	.comm	_midi_written,8,3               ## @midi_written
	.comm	_max_synthdev,4,2               ## @max_synthdev
	.comm	_TIMER_ARMED,4,2                ## @TIMER_ARMED
	.no_dead_strip	_play_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function play_event
_play_event:                            ; @play_event
	.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
	ldrb	w9, [x0]
	sub	w9, w9, #128
	cmp	w9, #13
	b.hi	LBB0_31
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w9, [x8]
	lsr	w10, w9, #8
	str	w10, [x8]
	cmp	w9, #256
	b.lo	LBB0_31
; %bb.3:
Lloh2:
	adrp	x9, _seq_playing@GOTPAGE
Lloh3:
	ldr	x9, [x9, _seq_playing@GOTPAGEOFF]
	mov	w19, #1
Lloh4:
	str	w19, [x9]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _prev_event_time@GOTPAGE
Lloh6:
	ldr	x8, [x8, _prev_event_time@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_request_sound_timer
Lloh8:
	adrp	x8, _SEQ_MAX_QUEUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEQ_MAX_QUEUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _qlen@GOTPAGE
Lloh12:
	ldr	x9, [x9, _qlen@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _output_threshold@GOTPAGE
Lloh15:
	ldr	x10, [x10, _output_threshold@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	sub	x8, x8, x9
	cmp	x8, x10
	b.lt	LBB0_32
; %bb.4:
Lloh17:
	adrp	x0, _seq_sleeper@GOTPAGE
Lloh18:
	ldr	x0, [x0, _seq_sleeper@GOTPAGEOFF]
	bl	_wake_up
	mov	w19, #1
	b	LBB0_32
LBB0_5:
Lloh19:
	adrp	x8, _jiffies@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _seq_time@GOTPAGE
Lloh23:
	ldr	x9, [x9, _seq_time@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
Lloh25:
	adrp	x8, _prev_input_time@GOTPAGE
Lloh26:
	ldr	x8, [x8, _prev_input_time@GOTPAGEOFF]
Lloh27:
	str	wzr, [x8]
Lloh28:
	adrp	x8, _prev_event_time@GOTPAGE
Lloh29:
	ldr	x8, [x8, _prev_event_time@GOTPAGEOFF]
Lloh30:
	str	xzr, [x8]
	b	LBB0_31
LBB0_6:
	ldrb	w0, [x8, #1]
Lloh31:
	adrp	x9, _max_synthdev@GOTPAGE
Lloh32:
	ldr	x9, [x9, _max_synthdev@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_31
; %bb.7:
Lloh34:
	adrp	x9, _synth_devs@GOTPAGE
Lloh35:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	ldr	x9, [x9, x0, lsl #3]
	ldr	x9, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x8
	blr	x9
	b	LBB0_31
LBB0_8:
Lloh37:
	adrp	x9, _synth_open_mask@GOTPAGE
Lloh38:
	ldr	x9, [x9, _synth_open_mask@GOTPAGEOFF]
	ldrb	w9, [x9]
	tbz	w9, #0, LBB0_31
; %bb.9:
Lloh39:
	adrp	x9, _synth_devs@GOTPAGE
Lloh40:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_31
; %bb.10:
	ldr	x9, [x9, #8]
	ldrb	w1, [x8, #1]
	ldrb	w2, [x8, #2]
	mov	w0, #0
	blr	x9
	b	LBB0_31
LBB0_11:
	ldrsb	w9, [x8, #4]
	cmn	w9, #1
	b.lt	LBB0_31
; %bb.12:
Lloh42:
	adrp	x9, _synth_open_mask@GOTPAGE
Lloh43:
	ldr	x9, [x9, _synth_open_mask@GOTPAGEOFF]
	ldrb	w9, [x9]
	tbz	w9, #0, LBB0_31
; %bb.13:
Lloh44:
	adrp	x9, _synth_devs@GOTPAGE
Lloh45:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_31
; %bb.14:
	ldr	x9, [x9, #16]
	ldrb	w1, [x8, #1]
	ldrb	w2, [x8, #2]
	ldrb	w3, [x8, #3]
	mov	w0, #0
	blr	x9
	b	LBB0_31
LBB0_15:
Lloh47:
	adrp	x9, _synth_open_mask@GOTPAGE
Lloh48:
	ldr	x9, [x9, _synth_open_mask@GOTPAGEOFF]
	ldrb	w9, [x9]
	tbz	w9, #0, LBB0_31
; %bb.16:
Lloh49:
	adrp	x9, _synth_devs@GOTPAGE
Lloh50:
	ldr	x9, [x9, _synth_devs@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_31
; %bb.17:
	ldr	x9, [x9, #24]
	ldrb	w1, [x8, #1]
	ldrb	w3, [x8, #3]
	mov	w0, #0
	mov	w2, #255
	blr	x9
	b	LBB0_31
LBB0_18:
Lloh52:
	adrp	x9, _midi_opened@GOTPAGE
Lloh53:
	ldr	x9, [x9, _midi_opened@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	ldrb	w20, [x8, #2]
	ldr	w9, [x9, x20, lsl #2]
	cbz	w9, LBB0_31
; %bb.19:
Lloh55:
	adrp	x9, _num_midis@GOTPAGE
Lloh56:
	ldr	x9, [x9, _num_midis@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	cmp	w9, w20
	b.le	LBB0_31
; %bb.20:
Lloh58:
	adrp	x9, _midi_devs@GOTPAGE
Lloh59:
	ldr	x9, [x9, _midi_devs@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	ldr	x9, [x9, x20, lsl #3]
	cbz	x9, LBB0_31
; %bb.21:
	ldr	x9, [x9]
	ldrb	w1, [x8, #1]
	mov	x0, x20
	blr	x9
	cbz	w0, LBB0_33
; %bb.22:
	mov	w19, #0
Lloh61:
	adrp	x8, _midi_written@GOTPAGE
Lloh62:
	ldr	x8, [x8, _midi_written@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, x20, lsl #2]
	b	LBB0_32
LBB0_23:
	mov	x0, x8
	bl	_extended_event
	b	LBB0_31
LBB0_24:
	mov	x0, x8
	mov	w1, #4
	bl	_seq_copy_to_input
	b	LBB0_31
LBB0_25:
	mov	x0, x8
	bl	_seq_timing_event
Lloh64:
	adrp	x8, _TIMER_ARMED@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TIMER_ARMED@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_31
; %bb.26:
	mov	w19, #1
	b	LBB0_32
LBB0_27:
	mov	x0, x8
	bl	_seq_sysex_message
	b	LBB0_31
LBB0_28:
	mov	x0, x8
	bl	_seq_local_event
	b	LBB0_31
LBB0_29:
	mov	x0, x8
	bl	_seq_chn_voice_event
	b	LBB0_31
LBB0_30:
	mov	x0, x8
	bl	_seq_chn_common_event
LBB0_31:
	mov	w19, #0
LBB0_32:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_33:
Lloh67:
	adrp	x8, _seq_playing@GOTPAGE
Lloh68:
	ldr	x8, [x8, _seq_playing@GOTPAGEOFF]
	mov	w9, #1
Lloh69:
	str	w9, [x8]
	mov	w0, #-1
	bl	_request_sound_timer
	mov	w19, #2
	b	LBB0_32
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotStr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_27-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
	.byte	(LBB0_30-LBB0_2)>>2
                                        ; -- End function
	.comm	_synth_open_mask,4,2            ; @synth_open_mask
	.comm	_synth_devs,8,3                 ; @synth_devs
	.comm	_seq_playing,4,2                ; @seq_playing
	.comm	_prev_event_time,8,3            ; @prev_event_time
	.comm	_SEQ_MAX_QUEUE,8,3              ; @SEQ_MAX_QUEUE
	.comm	_qlen,8,3                       ; @qlen
	.comm	_output_threshold,8,3           ; @output_threshold
	.comm	_seq_sleeper,4,2                ; @seq_sleeper
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_seq_time,4,2                   ; @seq_time
	.comm	_prev_input_time,4,2            ; @prev_input_time
	.comm	_midi_opened,8,3                ; @midi_opened
	.comm	_num_midis,4,2                  ; @num_midis
	.comm	_midi_devs,8,3                  ; @midi_devs
	.comm	_midi_written,8,3               ; @midi_written
	.comm	_max_synthdev,4,2               ; @max_synthdev
	.comm	_TIMER_ARMED,4,2                ; @TIMER_ARMED
	.no_dead_strip	_play_event
.subsections_via_symbols
