	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_process_midi
_event_process_midi:                    ## @event_process_midi
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rax
	movq	_SNDRV_SEQ_EVENT_SYSEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	movl	8(%rbx), %esi
	movq	_SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	movq	_SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movl	_dump_midi@GOTPCREL(%rip), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_snd_seq_dump_var_event
	movq	(%r14), %rdi
	callq	_snd_midi_event_reset_decode
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.11:
	leaq	-42(%rbp), %rsi
	movl	$10, %edx
	movq	%rbx, %rcx
	callq	_snd_midi_event_decode
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	leaq	-42(%rbp), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dump_midi
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	movq	(%r14), %rdi
	callq	_snd_midi_event_reset_decode
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SNDRV_SEQ_EVENT_SYSEX,8,3      ## @SNDRV_SEQ_EVENT_SYSEX
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"seq_midi: invalid sysex event flags = 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_event_process_midi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_process_midi
_event_process_midi:                    ; @event_process_midi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	x2, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #24]
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_17
; %bb.4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_9
; %bb.6:
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _SNDRV_SEQ_EVENT_SYSEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_SYSEX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	ldr	w1, [x20, #8]
Lloh11:
	adrp	x8, _SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SNDRV_SEQ_EVENT_LENGTH_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh14:
	adrp	x9, _SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SNDRV_SEQ_EVENT_LENGTH_VARIABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.8:
Lloh17:
	adrp	x1, _dump_midi@GOTPAGE
Lloh18:
	ldr	x1, [x1, _dump_midi@GOTPAGEOFF]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	bl	_snd_seq_dump_var_event
	b	LBB0_13
LBB0_9:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.11:
	add	x1, sp, #14
	mov	w2, #10
	mov	x3, x20
	bl	_snd_midi_event_decode
	tbnz	w0, #31, LBB0_15
; %bb.12:
	mov	x2, x0
	add	x1, sp, #14
	mov	x0, x21
	bl	_dump_midi
	tbz	x0, #63, LBB0_15
LBB0_13:
	ldr	x0, [x19]
	bl	_snd_midi_event_reset_decode
	b	LBB0_15
LBB0_14:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
LBB0_15:
	mov	w0, #0
	b	LBB0_3
LBB0_16:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SNDRV_SEQ_EVENT_SYSEX,8,3      ; @SNDRV_SEQ_EVENT_SYSEX
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"seq_midi: invalid sysex event flags = 0x%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_event_process_midi
.subsections_via_symbols
