	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_midi_process_event         ## -- Begin function snd_midi_process_event
	.p2align	4, 0x90
_snd_midi_process_event:                ## @snd_midi_process_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	cmpq	$0, 16(%r13)
	je	LBB0_54
## %bb.5:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_snd_seq_ev_is_channel_type
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movl	16(%rbx), %esi
	movl	(%r13), %edx
	cmpl	%edx, %esi
	jl	LBB0_7
## %bb.17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.18:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_printd                     ## TAILCALL
LBB0_6:
	xorl	%esi, %esi
LBB0_7:
	movl	(%rbx), %ecx
	movq	_SNDRV_SEQ_EVENT_NOTE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_54
## %bb.8:
	movq	8(%r13), %r14
	movq	16(%r13), %rax
	cmpl	$147, %ecx
	je	LBB0_13
## %bb.9:
	cmpl	$144, %ecx
	je	LBB0_13
## %bb.10:
	cmpl	$143, %ecx
	jne	LBB0_14
## %bb.11:
	movl	$143, %ecx
	cmpq	$0, 24(%rbx)
	jne	LBB0_13
## %bb.12:
	movl	$144, (%rbx)
	movl	$144, %ecx
LBB0_13:
	cmpl	$127, 32(%rbx)
	jle	LBB0_14
LBB0_54:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.55:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	addl	$-130, %ecx
	cmpl	$26, %ecx
	ja	LBB0_54
## %bb.15:
	movslq	%esi, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,8), %r15
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_51:
	movq	_SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	movq	_SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_54
## %bb.52:
	leaq	-112(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_snd_seq_expand_var_event
	testl	%eax, %eax
	jle	LBB0_54
## %bb.53:
	leaq	-112(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_sysex
	jmp	LBB0_54
LBB0_49:
	movq	_SNDRV_MIDI_PARAM_TYPE_REGISTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax,%rdx,8)
	movl	12(%rbx), %ecx
	shrl	$7, %ecx
	andl	$127, %ecx
	movq	24(%rax,%rdx,8), %rax
	movq	_MIDI_CTL_MSB_DATA_ENTRY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	12(%rbx), %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_LSB_DATA_ENTRY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	8(%rbx), %ecx
	shrl	$7, %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	8(%rbx), %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.50:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rpn                            ## TAILCALL
LBB0_35:
	movl	12(%rbx), %ecx
	movl	%ecx, 12(%rax,%rdx,8)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_54
## %bb.36:
	movq	_MIDI_CTL_PITCHBEND@GOTPCREL(%rip), %rcx
	jmp	LBB0_37
LBB0_34:
	movl	12(%rbx), %ecx
	movl	%ecx, 8(%rax,%rdx,8)
	jmp	LBB0_54
LBB0_19:
	movq	(%r15), %rax
	movslq	32(%rbx), %rsi
	movq	_SNDRV_MIDI_NOTE_ON@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, (%rax,%rsi,4)
	je	LBB0_22
## %bb.20:
	movq	16(%r12), %r8
	testq	%r8, %r8
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	*%r8
	movl	(%r13), %ecx
	movq	(%r15), %rax
	movslq	32(%rbx), %rsi
LBB0_22:
	movl	%ecx, (%rax,%rsi,4)
	movq	24(%r12), %rax
	jmp	LBB0_23
LBB0_26:
	movq	(%r15), %rax
	movslq	32(%rbx), %rcx
	movq	_SNDRV_MIDI_NOTE_ON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_54
## %bb.27:
	cmpq	$0, 16(%r12)
	je	LBB0_54
## %bb.28:
	movq	24(%rbx), %r8
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.29:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_note_off                       ## TAILCALL
LBB0_47:
	movq	_SNDRV_MIDI_PARAM_TYPE_NONREGISTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax,%rdx,8)
	movl	12(%rbx), %ecx
	shrl	$7, %ecx
	andl	$127, %ecx
	movq	24(%rax,%rdx,8), %rax
	movq	_MIDI_CTL_MSB_DATA_ENTRY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	12(%rbx), %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_LSB_DATA_ENTRY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	8(%rbx), %ecx
	shrl	$7, %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_NONREG_PARM_NUM_MSB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	8(%rbx), %ecx
	andl	$127, %ecx
	movq	_MIDI_CTL_NONREG_PARM_NUM_LSB@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.48:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nrpn                           ## TAILCALL
LBB0_30:
	movq	8(%r12), %rax
LBB0_23:
	testq	%rax, %rax
	je	LBB0_54
## %bb.24:
	movslq	32(%rbx), %rsi
	movq	24(%rbx), %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_41
## %bb.25:
	movq	%r14, %rdi
	movq	%r15, %rcx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_31:
	movl	8(%rbx), %r8d
	movl	12(%rbx), %r9d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_32
	jmp	LBB0_41
LBB0_42:
	movslq	8(%rbx), %r8
	movl	12(%rbx), %r9d
	cmpq	$31, %r8
	jg	LBB0_45
## %bb.43:
	andl	$127, %r9d
	movq	24(%rax,%rdx,8), %rax
	movl	%r9d, 128(%rax,%r8,4)
	movl	8(%rbx), %r8d
	movl	12(%rbx), %r9d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.44:
	shrl	$7, %r9d
	andl	$127, %r9d
LBB0_32:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	jmp	LBB0_33
LBB0_39:
	movl	12(%rbx), %ecx
	movl	%ecx, 16(%rax,%rdx,8)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_54
## %bb.40:
	movq	_MIDI_CTL_CHAN_PRESSURE@GOTPCREL(%rip), %rcx
LBB0_37:
	movl	(%rcx), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_41
## %bb.38:
	movq	%r14, %rdi
	movq	%r15, %rdx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.46:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
LBB0_33:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_control                     ## TAILCALL
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_51, LBB0_51-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
LJTI0_0:
	.long	L0_0_set_51
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_49
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_35
	.long	L0_0_set_34
	.long	L0_0_set_19
	.long	L0_0_set_26
	.long	L0_0_set_47
	.long	L0_0_set_54
	.long	L0_0_set_30
	.long	L0_0_set_54
	.long	L0_0_set_31
	.long	L0_0_set_42
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_54
	.long	L0_0_set_39
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ev or chanbase NULL (snd_midi_process_event)\n"

L_.str.1:                               ## @.str.1
	.asciz	"dest channel is %d, max is %d\n"

	.comm	_SNDRV_SEQ_EVENT_NOTE,4,2       ## @SNDRV_SEQ_EVENT_NOTE
	.comm	_SNDRV_MIDI_NOTE_ON,4,2         ## @SNDRV_MIDI_NOTE_ON
	.comm	_MIDI_CTL_PITCHBEND,4,2         ## @MIDI_CTL_PITCHBEND
	.comm	_MIDI_CTL_CHAN_PRESSURE,4,2     ## @MIDI_CTL_CHAN_PRESSURE
	.comm	_SNDRV_MIDI_PARAM_TYPE_NONREGISTERED,4,2 ## @SNDRV_MIDI_PARAM_TYPE_NONREGISTERED
	.comm	_MIDI_CTL_MSB_DATA_ENTRY,8,3    ## @MIDI_CTL_MSB_DATA_ENTRY
	.comm	_MIDI_CTL_LSB_DATA_ENTRY,8,3    ## @MIDI_CTL_LSB_DATA_ENTRY
	.comm	_MIDI_CTL_NONREG_PARM_NUM_MSB,8,3 ## @MIDI_CTL_NONREG_PARM_NUM_MSB
	.comm	_MIDI_CTL_NONREG_PARM_NUM_LSB,8,3 ## @MIDI_CTL_NONREG_PARM_NUM_LSB
	.comm	_SNDRV_MIDI_PARAM_TYPE_REGISTERED,4,2 ## @SNDRV_MIDI_PARAM_TYPE_REGISTERED
	.comm	_MIDI_CTL_REGIST_PARM_NUM_MSB,8,3 ## @MIDI_CTL_REGIST_PARM_NUM_MSB
	.comm	_MIDI_CTL_REGIST_PARM_NUM_LSB,8,3 ## @MIDI_CTL_REGIST_PARM_NUM_LSB
	.comm	_SNDRV_SEQ_EVENT_LENGTH_MASK,4,2 ## @SNDRV_SEQ_EVENT_LENGTH_MASK
	.comm	_SNDRV_SEQ_EVENT_LENGTH_VARIABLE,4,2 ## @SNDRV_SEQ_EVENT_LENGTH_VARIABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_midi_process_event         ; -- Begin function snd_midi_process_event
	.p2align	2
_snd_midi_process_event:                ; @snd_midi_process_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x23, x2
	cbz	x2, LBB0_6
; %bb.2:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_17
; %bb.3:
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_snd_seq_ev_is_channel_type
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w9, [x22, #16]
	ldr	w8, [x23]
	cmp	w9, w8
	b.lt	LBB0_9
; %bb.5:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x9, x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printd
	b	LBB0_17
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.7:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_snd_printd
LBB0_8:
	mov	w9, #0
LBB0_9:
	ldr	w10, [x22]
Lloh10:
	adrp	x8, _SNDRV_SEQ_EVENT_NOTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_NOTE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w10, w8
	b.eq	LBB0_17
; %bb.10:
	ldp	x19, x8, [x23, #8]
	cmp	w10, #147
	b.eq	LBB0_16
; %bb.11:
	cmp	w10, #144
	b.eq	LBB0_16
; %bb.12:
	cmp	w10, #143
	b.ne	LBB0_19
; %bb.13:
	ldr	x10, [x22, #24]
	cbz	x10, LBB0_15
; %bb.14:
	mov	w10, #143
	b	LBB0_16
LBB0_15:
	mov	w10, #144
	str	w10, [x22]
LBB0_16:
	ldr	w11, [x22, #32]
	cmp	w11, #127
	b.le	LBB0_19
LBB0_17:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
	sub	w11, w10, #130
	cmp	w11, #26
	b.hi	LBB0_17
; %bb.20:
	sxtw	x10, w9
	mov	w12, #40
	smaddl	x21, w9, w12, x8
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x12, LBB0_17
	ldrh	w13, [x9, x11, lsl #1]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_21:
	ldr	w8, [x22, #4]
Lloh18:
	adrp	x9, _SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh21:
	adrp	x9, _SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.22:
	add	x2, sp, #24
	mov	x0, x22
	mov	w1, #64
	mov	w3, #1
	mov	w4, #0
	bl	_snd_seq_expand_var_event
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.23:
	mov	x3, x0
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x4, x23
	bl	_sysex
	b	LBB0_17
LBB0_24:
Lloh24:
	adrp	x9, _SNDRV_MIDI_PARAM_TYPE_REGISTERED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SNDRV_MIDI_PARAM_TYPE_REGISTERED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	mov	w11, #40
	madd	x8, x10, x11, x8
	str	w9, [x8, #32]
	ldr	w9, [x22, #12]
	ubfx	w9, w9, #7, #7
	ldr	x8, [x8, #24]
Lloh27:
	adrp	x10, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #12]
	and	w9, w9, #0x7f
Lloh30:
	adrp	x10, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGE
Lloh31:
	ldr	x10, [x10, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #8]
	ubfx	w9, w9, #7, #7
Lloh33:
	adrp	x10, _MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #8]
	and	w9, w9, #0x7f
Lloh36:
	adrp	x10, _MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPAGE
Lloh37:
	ldr	x10, [x10, _MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.25:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_rpn
LBB0_26:
	ldr	w9, [x22, #12]
	mov	w11, #40
	madd	x8, x10, x11, x8
	str	w9, [x8, #12]
	ldr	x3, [x20]
	cbz	x3, LBB0_17
; %bb.27:
Lloh42:
	adrp	x8, _MIDI_CTL_PITCHBEND@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MIDI_CTL_PITCHBEND@GOTPAGEOFF]
	b	LBB0_50
LBB0_28:
	ldr	w9, [x22, #12]
	mov	w11, #40
	madd	x8, x10, x11, x8
	str	w9, [x8, #8]
	b	LBB0_17
LBB0_29:
	ldr	x8, [x21]
	ldrsw	x1, [x22, #32]
	ldr	w10, [x8, x1, lsl #2]
Lloh44:
	adrp	x23, _SNDRV_MIDI_NOTE_ON@GOTPAGE
Lloh45:
	ldr	x23, [x23, _SNDRV_MIDI_NOTE_ON@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w10
	b.eq	LBB0_32
; %bb.30:
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_32
; %bb.31:
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	blr	x10
	ldr	w9, [x23]
	ldr	x8, [x21]
	ldrsw	x1, [x22, #32]
LBB0_32:
	str	w9, [x8, x1, lsl #2]
	ldr	x4, [x20, #24]
	cbnz	x4, LBB0_40
	b	LBB0_17
LBB0_33:
	ldr	x8, [x21]
	ldrsw	x3, [x22, #32]
	ldr	w8, [x8, x3, lsl #2]
Lloh46:
	adrp	x9, _SNDRV_MIDI_NOTE_ON@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SNDRV_MIDI_NOTE_ON@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.34:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.35:
	ldr	x4, [x22, #24]
	ldur	x8, [x29, #-56]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.36:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_note_off
LBB0_37:
Lloh52:
	adrp	x9, _SNDRV_MIDI_PARAM_TYPE_NONREGISTERED@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SNDRV_MIDI_PARAM_TYPE_NONREGISTERED@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	mov	w11, #40
	madd	x8, x10, x11, x8
	str	w9, [x8, #32]
	ldr	w9, [x22, #12]
	ubfx	w9, w9, #7, #7
	ldr	x8, [x8, #24]
Lloh55:
	adrp	x10, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGE
Lloh56:
	ldr	x10, [x10, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #12]
	and	w9, w9, #0x7f
Lloh58:
	adrp	x10, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGE
Lloh59:
	ldr	x10, [x10, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGEOFF]
Lloh60:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #8]
	ubfx	w9, w9, #7, #7
Lloh61:
	adrp	x10, _MIDI_CTL_NONREG_PARM_NUM_MSB@GOTPAGE
Lloh62:
	ldr	x10, [x10, _MIDI_CTL_NONREG_PARM_NUM_MSB@GOTPAGEOFF]
Lloh63:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldr	w9, [x22, #8]
	and	w9, w9, #0x7f
Lloh64:
	adrp	x10, _MIDI_CTL_NONREG_PARM_NUM_LSB@GOTPAGE
Lloh65:
	ldr	x10, [x10, _MIDI_CTL_NONREG_PARM_NUM_LSB@GOTPAGEOFF]
Lloh66:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
	ldur	x8, [x29, #-56]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.38:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_nrpn
LBB0_39:
	ldr	x4, [x20, #8]
	cbz	x4, LBB0_17
LBB0_40:
	ldrsw	x1, [x22, #32]
	ldr	x2, [x22, #24]
	ldur	x8, [x29, #-56]
Lloh70:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh71:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh72:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.41:
	mov	x0, x19
	mov	x3, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	br	x4
LBB0_42:
	ldp	w4, w5, [x22, #8]
	b	LBB0_46
LBB0_43:
	ldp	w4, w5, [x22, #8]
	cmp	w4, #31
	b.gt	LBB0_46
; %bb.44:
	and	w9, w5, #0x7f
	mov	w11, #40
	madd	x8, x10, x11, x8
	ldr	x8, [x8, #24]
	add	w10, w4, #32
	str	w9, [x8, w10, sxtw #2]
	ldp	w4, w8, [x22, #8]
	ldur	x9, [x29, #-56]
Lloh73:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh74:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh75:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_52
; %bb.45:
	ubfx	w5, w8, #7, #7
	b	LBB0_47
LBB0_46:
	ldur	x8, [x29, #-56]
Lloh76:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh77:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
LBB0_47:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_do_control
LBB0_48:
	ldr	w9, [x22, #12]
	mov	w11, #40
	madd	x8, x10, x11, x8
	str	w9, [x8, #16]
	ldr	x3, [x20]
	cbz	x3, LBB0_17
; %bb.49:
Lloh79:
	adrp	x8, _MIDI_CTL_CHAN_PRESSURE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _MIDI_CTL_CHAN_PRESSURE@GOTPAGEOFF]
LBB0_50:
	ldr	w1, [x8]
	ldur	x8, [x29, #-56]
Lloh81:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh82:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	br	x3
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_21-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_24-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_26-LBB0_17)>>2
	.short	(LBB0_28-LBB0_17)>>2
	.short	(LBB0_29-LBB0_17)>>2
	.short	(LBB0_33-LBB0_17)>>2
	.short	(LBB0_37-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_39-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_42-LBB0_17)>>2
	.short	(LBB0_43-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_17-LBB0_17)>>2
	.short	(LBB0_48-LBB0_17)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ev or chanbase NULL (snd_midi_process_event)\n"

l_.str.1:                               ; @.str.1
	.asciz	"dest channel is %d, max is %d\n"

	.comm	_SNDRV_SEQ_EVENT_NOTE,4,2       ; @SNDRV_SEQ_EVENT_NOTE
	.comm	_SNDRV_MIDI_NOTE_ON,4,2         ; @SNDRV_MIDI_NOTE_ON
	.comm	_MIDI_CTL_PITCHBEND,4,2         ; @MIDI_CTL_PITCHBEND
	.comm	_MIDI_CTL_CHAN_PRESSURE,4,2     ; @MIDI_CTL_CHAN_PRESSURE
	.comm	_SNDRV_MIDI_PARAM_TYPE_NONREGISTERED,4,2 ; @SNDRV_MIDI_PARAM_TYPE_NONREGISTERED
	.comm	_MIDI_CTL_MSB_DATA_ENTRY,8,3    ; @MIDI_CTL_MSB_DATA_ENTRY
	.comm	_MIDI_CTL_LSB_DATA_ENTRY,8,3    ; @MIDI_CTL_LSB_DATA_ENTRY
	.comm	_MIDI_CTL_NONREG_PARM_NUM_MSB,8,3 ; @MIDI_CTL_NONREG_PARM_NUM_MSB
	.comm	_MIDI_CTL_NONREG_PARM_NUM_LSB,8,3 ; @MIDI_CTL_NONREG_PARM_NUM_LSB
	.comm	_SNDRV_MIDI_PARAM_TYPE_REGISTERED,4,2 ; @SNDRV_MIDI_PARAM_TYPE_REGISTERED
	.comm	_MIDI_CTL_REGIST_PARM_NUM_MSB,8,3 ; @MIDI_CTL_REGIST_PARM_NUM_MSB
	.comm	_MIDI_CTL_REGIST_PARM_NUM_LSB,8,3 ; @MIDI_CTL_REGIST_PARM_NUM_LSB
	.comm	_SNDRV_SEQ_EVENT_LENGTH_MASK,4,2 ; @SNDRV_SEQ_EVENT_LENGTH_MASK
	.comm	_SNDRV_SEQ_EVENT_LENGTH_VARIABLE,4,2 ; @SNDRV_SEQ_EVENT_LENGTH_VARIABLE
.subsections_via_symbols
