	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function note_on_event
_note_on_event:                         ## @note_on_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, %r9d
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rdx
	movl	16(%rcx,%rdx,8), %eax
	cmpl	$128, %eax
	je	LBB0_22
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_20
## %bb.3:
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.4:
	movq	8(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	cmpl	%r15d, (%rcx,%rdx,8)
	jle	LBB0_6
## %bb.9:
	cmpl	$255, %r14d
	jne	LBB0_15
## %bb.10:
	movl	%r15d, %ecx
	movl	(%rax,%rcx,8), %r8d
	testl	%r8d, %r8d
	js	LBB0_20
## %bb.11:
	cmpl	$0, 4(%rax,%rcx,8)
	jne	LBB0_12
## %bb.13:
	movq	_SNDRV_SEQ_EVENT_NOTEON@GOTPCREL(%rip), %rdx
	jmp	LBB0_14
LBB0_22:
	cmpl	$128, %r14d
	jl	LBB0_6
## %bb.23:
	movq	_SNDRV_SEQ_EVENT_KEYPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$-128, %r14d
	jmp	LBB0_7
LBB0_15:
	cmpl	$128, %r14d
	jge	LBB0_20
## %bb.16:
	movl	%r15d, %esi
	movl	(%rax,%rsi,8), %r8d
	cmpl	%r14d, %r8d
	je	LBB0_19
## %bb.17:
	testl	%r8d, %r8d
	js	LBB0_19
## %bb.18:
	leaq	(%rcx,%rdx,8), %rax
	addq	$8, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SNDRV_SEQ_EVENT_NOTEOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, (%rsp)
	movq	%rbx, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	xorl	%r9d, %r9d
	callq	_set_note_event
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_19:
	movl	%r14d, (%rax,%rsi,8)
	movl	%r9d, 4(%rax,%rsi,8)
	testl	%r9d, %r9d
	je	LBB0_20
LBB0_6:
	movq	_SNDRV_SEQ_EVENT_NOTEON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movq	%r13, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_set_note_event
	jmp	LBB0_21
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SNDRV_SEQ_EVENT_KEYPRESS@GOTPCREL(%rip), %rdx
LBB0_14:
	movl	(%rdx), %edx
	movl	%r9d, 4(%rax,%rcx,8)
	movq	%r13, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_set_note_event
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SEQ_EVENT_NOTEON,4,2     ## @SNDRV_SEQ_EVENT_NOTEON
	.comm	_SNDRV_SEQ_EVENT_KEYPRESS,4,2   ## @SNDRV_SEQ_EVENT_KEYPRESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_SEQ_EVENT_NOTEOFF,4,2    ## @SNDRV_SEQ_EVENT_NOTEOFF
	.no_dead_strip	_note_on_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function note_on_event
_note_on_event:                         ; @note_on_event
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x9, [x0]
	mov	w8, #24
	smaddl	x8, w1, w8, x9
	ldr	w8, [x8, #16]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_17
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.3:
	tbnz	w21, #31, LBB0_17
; %bb.4:
	sxtw	x10, w22
	mov	w8, #24
	madd	x25, x10, x8, x9
	ldr	x8, [x25, #8]!
	cbz	x8, LBB0_17
; %bb.5:
	mov	w11, #24
	mul	x10, x10, x11
	ldr	w9, [x9, x10]
	cmp	w9, w21
	b.le	LBB0_17
; %bb.6:
	cmp	w24, #255
	b.ne	LBB0_12
; %bb.7:
	mov	w9, w21
	lsl	x10, x9, #3
	ldr	w4, [x8, x10]
	tbnz	w4, #31, LBB0_19
; %bb.8:
	add	x8, x8, x9, lsl #3
Lloh0:
	adrp	x9, _SNDRV_SEQ_EVENT_NOTEON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_NOTEON@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGEOFF]
	ldr	w11, [x8, #4]
	cmp	w11, #0
	csel	x9, x9, x10, eq
	ldr	w2, [x9]
	str	w20, [x8, #4]
	b	LBB0_11
LBB0_9:
	subs	w4, w24, #128
	b.lt	LBB0_17
; %bb.10:
Lloh4:
	adrp	x8, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	b	LBB0_18
LBB0_12:
	cmp	w24, #128
	b.ge	LBB0_19
; %bb.13:
	mov	w26, w21
	lsl	x9, x26, #3
	ldr	w4, [x8, x9]
	cmp	w4, w24
	b.eq	LBB0_16
; %bb.14:
	tbnz	w4, #31, LBB0_16
; %bb.15:
Lloh7:
	adrp	x8, _SNDRV_SEQ_EVENT_NOTEOFF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_NOTEOFF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	w5, #0
	mov	x6, x19
	bl	_set_note_event
	ldr	x8, [x25]
LBB0_16:
	add	x8, x8, x26, lsl #3
	stp	w24, w20, [x8]
	cbz	w20, LBB0_19
LBB0_17:
Lloh10:
	adrp	x8, _SNDRV_SEQ_EVENT_NOTEON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_NOTEON@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	x4, x24
LBB0_18:
	mov	x5, x20
	mov	x6, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_set_note_event
LBB0_19:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SEQ_EVENT_NOTEON,4,2     ; @SNDRV_SEQ_EVENT_NOTEON
	.comm	_SNDRV_SEQ_EVENT_KEYPRESS,4,2   ; @SNDRV_SEQ_EVENT_KEYPRESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_SEQ_EVENT_NOTEOFF,4,2    ; @SNDRV_SEQ_EVENT_NOTEOFF
	.no_dead_strip	_note_on_event
.subsections_via_symbols
