	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sysex_decode
LCPI0_0:
	.quad	1                               ## 0x1
	.quad	2                               ## 0x2
LCPI0_1:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sysex_decode
	.p2align	4, 0x90
_sysex_decode:                          ## @sysex_decode
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	7(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	xorl	%eax, %eax
	cmpl	$2, %edx
	jl	LBB0_20
## %bb.1:
	movl	%ecx, %r8d
	sarl	$3, %r8d
	andl	$-8, %ecx
	movl	%edx, %r9d
	subl	%ecx, %r9d
	cmpl	$8, %edx
	jb	LBB0_4
## %bb.2:
	movl	%r8d, %r10d
	leaq	24(%rdi), %rdx
	movq	%rsi, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rcx), %ebx
	andl	$127, %ebx
	movl	%ebx, -24(%rdx)
	movl	(%rcx), %eax
	andl	$64, %eax
	leal	(%rbx,%rax,2), %eax
	movl	%eax, -24(%rdx)
	movl	8(%rcx), %eax
	andl	$127, %eax
	movl	%eax, -20(%rdx)
	movl	(%rcx), %ebx
	andl	$32, %ebx
	leal	(%rax,%rbx,4), %eax
	movl	%eax, -20(%rdx)
	movl	12(%rcx), %eax
	andl	$127, %eax
	movl	%eax, -16(%rdx)
	movl	(%rcx), %ebx
	andl	$16, %ebx
	leal	(%rax,%rbx,8), %eax
	movl	%eax, -16(%rdx)
	movl	16(%rcx), %eax
	andl	$127, %eax
	movl	%eax, -12(%rdx)
	movl	(%rcx), %ebx
	andl	$8, %ebx
	shll	$4, %ebx
	orl	%eax, %ebx
	movl	%ebx, -12(%rdx)
	movl	20(%rcx), %eax
	andl	$127, %eax
	movl	%eax, -8(%rdx)
	movl	(%rcx), %ebx
	andl	$4, %ebx
	shll	$5, %ebx
	orl	%eax, %ebx
	movl	%ebx, -8(%rdx)
	movl	24(%rcx), %eax
	andl	$127, %eax
	movl	%eax, -4(%rdx)
	movl	(%rcx), %ebx
	andl	$2, %ebx
	shll	$6, %ebx
	orl	%eax, %ebx
	movl	%ebx, -4(%rdx)
	movl	28(%rcx), %eax
	andl	$127, %eax
	movl	%eax, (%rdx)
	movl	(%rcx), %ebx
	shll	$7, %ebx
	movzbl	%bl, %ebx
	orl	%eax, %ebx
	movl	%ebx, (%rdx)
	addq	$28, %rdx
	addq	$32, %rcx
	decq	%r10
	jne	LBB0_3
LBB0_4:
	leal	(,%r8,8), %ecx
	movl	%ecx, %eax
	subl	%r8d, %eax
	testl	%r9d, %r9d
	je	LBB0_20
## %bb.5:
	leal	-1(%r9), %r12d
	cmpl	$2, %r9d
	jl	LBB0_19
## %bb.6:
	movslq	%ecx, %r11
	leaq	(%rsi,%r11,4), %r10
	movslq	%eax, %r13
	movl	%r12d, %r9d
	cmpl	$4, %r12d
	jae	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_8:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	(%rdi,%r13,4), %r8
	movq	%r13, %rcx
	leaq	(%r9,%r13), %rdx
	leaq	(%rdi,%rdx,4), %r15
	leaq	(,%r11,4), %rbx
	orq	$4, %rbx
	addq	%rsi, %rbx
	leaq	(%r11,%r9), %rdx
	leaq	(%rsi,%rdx,4), %rdx
	addq	$4, %rdx
	cmpq	%rbx, %r8
	setb	%r13b
	cmpq	%r15, %r10
	setb	%r14b
	cmpq	%rdx, %r8
	setb	%r12b
	cmpq	%r15, %rbx
	setb	%r15b
	xorl	%edx, %edx
	testb	%r14b, %r13b
	jne	LBB0_9
## %bb.10:
	andb	%r15b, %r12b
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%rcx, %r13
	jne	LBB0_14
## %bb.11:
	movl	%r9d, %edx
	andl	$-4, %edx
	movd	(%r10), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,2]
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [127,127,127,127]
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [128,128,128,128]
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %xmm5
	pshufd	$68, %xmm5, %xmm5               ## xmm5 = xmm5[0,1,0,1]
	por	%xmm1, %xmm5
	leal	3(%rbx), %r14d
	leaq	4(%rbx), %r15
	movq	%xmm5, %rcx
	addq	%r11, %rcx
	movdqu	(%rsi,%rcx,4), %xmm6
	pand	%xmm2, %xmm6
	pshufd	$232, %xmm5, %xmm5              ## xmm5 = xmm5[0,2,2,3]
	pinsrd	$2, %r14d, %xmm5
	pinsrd	$3, %r15d, %xmm5
	pslld	$23, %xmm5
	paddd	%xmm3, %xmm5
	cvttps2dq	%xmm5, %xmm5
	pmulld	%xmm0, %xmm5
	pand	%xmm4, %xmm5
	por	%xmm6, %xmm5
	movdqu	%xmm5, (%r8,%rbx,4)
	movq	%r15, %rbx
	cmpq	%rdx, %r15
	jne	LBB0_12
## %bb.13:
	cmpq	%r9, %rdx
	jne	LBB0_14
	jmp	LBB0_19
LBB0_9:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%rcx, %r13
LBB0_14:
	movq	%rdx, %r8
	notq	%r8
	testb	$1, %r9b
	je	LBB0_16
## %bb.15:
	movq	%rdx, %rcx
	orq	$1, %rcx
	leaq	(%rcx,%r11), %rbx
	movl	(%rsi,%rbx,4), %r14d
	andl	$127, %r14d
	addq	%r13, %rdx
	movl	%r14d, (%rdi,%rdx,4)
	movl	(%rsi,%r11,4), %ebx
	shll	%cl, %ebx
	andl	$128, %ebx
	orl	%r14d, %ebx
	movl	%ebx, (%rdi,%rdx,4)
	movq	%rcx, %rdx
LBB0_16:
	addq	%r9, %r8
	je	LBB0_19
## %bb.17:
	leaq	(%rsi,%r11,4), %r8
	addq	$8, %r8
	leaq	(%rdi,%r13,4), %rdi
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r8,%rdx,4), %ebx
	andl	$127, %ebx
	movl	%ebx, -4(%rdi,%rdx,4)
	movl	(%r10), %esi
	leal	1(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	andl	$128, %esi
	orl	%ebx, %esi
	movl	%esi, -4(%rdi,%rdx,4)
	leaq	2(%rdx), %rcx
	movl	(%r8,%rdx,4), %esi
	andl	$127, %esi
	movl	%esi, (%rdi,%rdx,4)
	movl	(%r10), %ebx
	shll	%cl, %ebx
	andl	$128, %ebx
	orl	%esi, %ebx
	movl	%ebx, (%rdi,%rdx,4)
	movq	%rcx, %rdx
	cmpq	%rcx, %r9
	jne	LBB0_18
LBB0_19:
	addl	%r12d, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function sysex_decode
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sysex_decode
	.p2align	2
_sysex_decode:                          ; @sysex_decode
	.cfi_startproc
; %bb.0:
	add	w8, w2, #7
	cmp	w2, #0
	csel	w8, w8, w2, lt
	cmp	w2, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
	mov	x0, x8
	ret
LBB0_2:
	asr	w8, w8, #3
	cmp	w2, #8
	b.lo	LBB0_5
; %bb.3:
	add	x9, x0, #12
	mov	x10, x1
	mov	x11, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, #4]
	and	w12, w12, #0x7f
	stur	w12, [x9, #-12]
	ldr	w13, [x10]
	lsr	w13, w13, #6
	bfi	w12, w13, #7, #1
	stur	w12, [x9, #-12]
	ldr	w12, [x10, #8]
	and	w12, w12, #0x7f
	stur	w12, [x9, #-8]
	ldr	w13, [x10]
	lsr	w13, w13, #5
	bfi	w12, w13, #7, #1
	stur	w12, [x9, #-8]
	ldr	w12, [x10, #12]
	and	w12, w12, #0x7f
	stur	w12, [x9, #-4]
	ldr	w13, [x10]
	lsr	w13, w13, #4
	bfi	w12, w13, #7, #1
	stur	w12, [x9, #-4]
	ldr	w12, [x10, #16]
	and	w12, w12, #0x7f
	str	w12, [x9]
	ldr	w13, [x10]
	lsr	w13, w13, #3
	bfi	w12, w13, #7, #1
	str	w12, [x9]
	ldr	w12, [x10, #20]
	and	w12, w12, #0x7f
	str	w12, [x9, #4]
	ldr	w13, [x10]
	lsr	w13, w13, #2
	bfi	w12, w13, #7, #1
	str	w12, [x9, #4]
	ldr	w12, [x10, #24]
	and	w12, w12, #0x7f
	str	w12, [x9, #8]
	ldr	w13, [x10]
	lsr	w13, w13, #1
	bfi	w12, w13, #7, #1
	str	w12, [x9, #8]
	ldr	w12, [x10, #28]
	and	w12, w12, #0x7f
	str	w12, [x9, #12]
	ldr	w13, [x10], #32
	bfi	w12, w13, #7, #1
	str	w12, [x9, #12]
	add	x9, x9, #28
	subs	x11, x11, #1
	b.ne	LBB0_4
LBB0_5:
	sub	w11, w2, w8, lsl #3
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x10, w8
	sbfiz	x8, x8, #3, #32
	sub	x8, x8, x10
	cbz	w11, LBB0_17
; %bb.6:
	sub	w9, w11, #1
	cmp	w11, #2
	b.lt	LBB0_16
; %bb.7:
	lsl	x12, x10, #3
	add	x10, x1, x10, lsl #5
	cmp	w9, #8
	b.hs	LBB0_9
; %bb.8:
	mov	x11, #0
	b	LBB0_14
LBB0_9:
	mov	x11, #0
	add	x14, x0, x8, lsl #2
	add	x13, x8, x9
	add	x15, x0, x13, lsl #2
	lsl	x13, x12, #2
	orr	x13, x13, #0x4
	add	x16, x1, x13
	add	x13, x12, x9
	add	x13, x1, x13, lsl #2
	add	x13, x13, #4
	cmp	x14, x13
	ccmp	x16, x15, #2, lo
	cset	w13, lo
	cmp	x10, x15
	ccmp	x14, x16, #2, lo
	b.lo	LBB0_14
; %bb.10:
	tbnz	w13, #0, LBB0_14
; %bb.11:
	ld1r.4s	{ v0 }, [x10]
	and	x11, x9, #0xfffffff8
	add	x13, x0, x8, lsl #2
	add	x13, x13, #16
Lloh0:
	adrp	x14, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x14, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x14, lCPI0_1@PAGE
Lloh3:
	ldr	q2, [x14, lCPI0_1@PAGEOFF]
	mov	w14, #1
	dup.2d	v3, x14
	movi.4s	v4, #127
	movi.2s	v5, #1
	movi.4s	v6, #5
	movi.4s	v7, #128
	mov	w14, #8
	dup.2d	v16, x14
	mov	x14, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add.2d	v17, v2, v3
	xtn.2s	v18, v17
	fmov	x15, d17
	add	x15, x15, x12
	add	x15, x1, x15, lsl #2
	ldp	q17, q19, [x15]
	and.16b	v17, v17, v4
	and.16b	v19, v19, v4
	xtn.2s	v20, v1
	add.2s	v20, v20, v5
	mov.d	v18[1], v20[0]
	uzp1.4s	v20, v2, v1
	add.4s	v20, v20, v6
	ushl.4s	v18, v0, v18
	ushl.4s	v20, v0, v20
	and.16b	v18, v18, v7
	and.16b	v20, v20, v7
	orr.16b	v17, v18, v17
	orr.16b	v18, v20, v19
	stp	q17, q18, [x13, #-16]
	add.2d	v1, v1, v16
	add.2d	v2, v2, v16
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_12
; %bb.13:
	cmp	x11, x9
	b.eq	LBB0_16
LBB0_14:
	add	x13, x0, x8, lsl #2
	add	x12, x1, x12, lsl #2
	add	x12, x12, #4
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	lsl	x14, x11, #2
	ldr	w15, [x12, x14]
	add	x16, x11, #1
	and	w11, w15, #0x7f
	str	w11, [x13, x14]
	ldr	w11, [x10]
	lsl	w11, w11, w16
	and	w11, w11, #0x80
	bfxil	w11, w15, #0, #7
	str	w11, [x13, x14]
	mov	x11, x16
	cmp	x9, x16
	b.ne	LBB0_15
LBB0_16:
	add	w8, w9, w8
LBB0_17:
	mov	x0, x8
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
