	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chn_voice_event
_chn_voice_event:                       ## @chn_voice_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rsi), %eax
	cmpl	$32, %eax
	jge	LBB0_7
## %bb.1:
	movq	%rdx, %r10
	movl	4(%rsi), %ecx
	cmpl	$130, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_7
## %bb.4:
	movl	16(%rsi), %edx
	movl	8(%rsi), %r8d
	movl	12(%rsi), %ecx
	movl	%edx, %esi
	movl	%eax, %edx
	movq	%r10, %r9
	addq	$16, %rsp
	popq	%rbp
	jmp	_note_on_event                  ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_6:
	movl	16(%rsi), %ecx
	movq	_SNDRV_SEQ_EVENT_KEYPRESS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rsi), %r9d
	movl	12(%rsi), %r8d
	movq	%r10, (%rsp)
	movl	%ecx, %esi
	movl	%eax, %ecx
	callq	_set_note_event
	jmp	LBB0_8
LBB0_5:
	movl	16(%rsi), %edx
	movl	8(%rsi), %r8d
	movl	12(%rsi), %ecx
	movl	%edx, %esi
	movl	%eax, %edx
	movq	%r10, %r9
	addq	$16, %rsp
	popq	%rbp
	jmp	_note_off_event                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SNDRV_SEQ_EVENT_KEYPRESS,4,2   ## @SNDRV_SEQ_EVENT_KEYPRESS
	.no_dead_strip	_chn_voice_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chn_voice_event
_chn_voice_event:                       ; @chn_voice_event
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cmp	w9, #32
	b.ge	LBB0_5
; %bb.1:
	mov	x6, x2
	ldr	w8, [x1, #4]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	ldp	w3, w8, [x1, #12]
	ldr	w4, [x1, #8]
	mov	x1, x8
	mov	x2, x9
	mov	x5, x6
	b	_note_on_event
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	ldp	w4, w8, [x1, #12]
Lloh3:
	adrp	x10, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SNDRV_SEQ_EVENT_KEYPRESS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x10]
	ldr	w5, [x1, #8]
	mov	x1, x8
	mov	x3, x9
	b	_set_note_event
LBB0_7:
	ldp	w3, w8, [x1, #12]
	ldr	w4, [x1, #8]
	mov	x1, x8
	mov	x2, x9
	mov	x5, x6
	b	_note_off_event
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SNDRV_SEQ_EVENT_KEYPRESS,4,2   ; @SNDRV_SEQ_EVENT_KEYPRESS
	.no_dead_strip	_chn_voice_event
.subsections_via_symbols
