	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function decode_8_pulses_31bits
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_decode_8_pulses_31bits:                ## @decode_8_pulses_31bits
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	16(%rdi), %edi
	leaq	-80(%rbp), %r15
	movl	$4, %ebx
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$4, %ecx
	movl	$1, %r8d
	callq	_decode_10bit_pulse
	movl	20(%r12), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	movl	$6, %ecx
	movl	$5, %r8d
	callq	_decode_10bit_pulse
	movl	24(%r12), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	addl	$12, %ecx
	sarl	$5, %ecx
	movslq	%ecx, %rdx
	imulq	$1717986919, %rdx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$33, %rcx
	addl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	subl	%esi, %edx
	subl	%edx, %ebx
	testb	$1, %cl
	cmovel	%edx, %ebx
	movl	%eax, %edx
	andl	$1, %edx
	leal	(%rdx,%rbx,2), %edx
	movl	%edx, -68(%rbp)
	shrl	%eax
	andl	$1, %eax
	leal	(%rax,%rcx,2), %eax
	movl	%eax, -52(%rbp)
	movl	$8, (%r14)
	movq	8(%r14), %rsi
	movq	16(%r14), %r8
	movl	-80(%rbp), %r9d
	movl	-64(%rbp), %r11d
	leal	(,%r9,4), %eax
	leal	(,%r11,4), %ecx
	movd	(%r12), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movl	%eax, (%rsi)
	movl	%ecx, 16(%rsi)
	movl	-76(%rbp), %r10d
	movl	-60(%rbp), %r15d
	leal	1(,%r10,4), %ecx
	leal	1(,%r15,4), %ebx
	pinsrd	$1, 4(%r12), %xmm1
	movl	%ecx, 4(%rsi)
	movl	%ebx, 20(%rsi)
	movl	-72(%rbp), %r14d
	movl	-56(%rbp), %ecx
	leal	2(,%r14,4), %edx
	leal	2(,%rcx,4), %edi
	pinsrd	$2, 8(%r12), %xmm1
	movl	%edx, 8(%rsi)
	movl	%edi, 24(%rsi)
	pinsrd	$3, 12(%r12), %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-1.0E+0,-1.0E+0,-1.0E+0,-1.0E+0]
	blendvps	%xmm0, LCPI0_1(%rip), %xmm1
	movl	-68(%rbp), %edx
	movl	-52(%rbp), %edi
	leal	3(,%rdx,4), %ebx
	leal	3(,%rdi,4), %eax
	movl	%ebx, 12(%rsi)
	movl	%eax, 28(%rsi)
	movups	%xmm1, (%r8)
	movd	%r11d, %xmm2
	pinsrd	$1, %r15d, %xmm2
	pinsrd	$2, %ecx, %xmm2
	pinsrd	$3, %edi, %xmm2
	pslld	$2, %xmm2
	movd	%r9d, %xmm0
	pinsrd	$1, %r10d, %xmm0
	pinsrd	$2, %r14d, %xmm0
	pinsrd	$3, %edx, %xmm0
	pslld	$2, %xmm0
	pcmpgtd	%xmm2, %xmm0
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm1, %xmm2
	blendvps	%xmm0, %xmm2, %xmm1
	movups	%xmm1, 16(%r8)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_8_pulses_31bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_8_pulses_31bits
_decode_8_pulses_31bits:                ; @decode_8_pulses_31bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w0, [x0, #16]
	mov	w23, #4
	mov	w22, #1
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #4
	mov	w4, #1
	bl	_decode_10bit_pulse
	ldr	w0, [x19, #20]
	mov	w21, #2
	add	x1, sp, #8
	mov	w2, #2
	mov	w3, #6
	mov	w4, #5
	bl	_decode_10bit_pulse
	ldr	w8, [x19, #24]
	asr	w9, w8, #2
	mov	w10, #25
	orr	w11, wzr, #0xc
	madd	w9, w9, w10, w11
	asr	w9, w9, #5
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w9, w10
	lsr	x11, x10, #63
	asr	x10, x10, #33
	add	w10, w10, w11
	add	w11, w10, w10, lsl #2
	sub	w9, w9, w11
	sub	w11, w23, w9
	tst	w10, #0x1
	csel	w9, w9, w11, eq
	lsr	w11, w8, #1
	bfi	w8, w9, #1, #31
	bfi	w11, w10, #1, #31
	str	w8, [sp, #20]
	str	w11, [sp, #36]
	mov	w8, #8
	str	w8, [x20]
	ldp	x9, x8, [x20, #8]
	ldr	w10, [sp, #8]
	ldr	w11, [sp, #24]
	add	x12, x19, #4
	add	x13, x19, #8
	add	x14, x19, #12
	lsl	w10, w10, #2
	lsl	w11, w11, #2
	ldr	s0, [x19]
	str	w10, [x9]
	str	w11, [x9, #16]
	ldr	w15, [sp, #12]
	ldr	w16, [sp, #28]
	lsl	w17, w15, #2
	mov	w0, #1
	bfi	w0, w15, #2, #30
	lsl	w15, w16, #2
	bfi	w22, w16, #2, #30
	ld1.s	{ v0 }[1], [x12]
	str	w0, [x9, #4]
	str	w22, [x9, #20]
	ldr	w12, [sp, #16]
	ldr	w16, [sp, #32]
	lsl	w0, w12, #2
	mov	w1, #2
	bfi	w1, w12, #2, #30
	lsl	w12, w16, #2
	bfi	w21, w16, #2, #30
	ld1.s	{ v0 }[2], [x13]
	str	w1, [x9, #8]
	str	w21, [x9, #24]
	ld1.s	{ v0 }[3], [x14]
	cmeq.4s	v0, v0, #0
	fmov.4s	v1, #-1.00000000
	fmov.4s	v2, #1.00000000
	bsl.16b	v0, v2, v1
	ldr	w13, [sp, #20]
	ldr	w14, [sp, #36]
	lsl	w16, w13, #2
	mov	w1, #3
	mov	w2, #3
	bfi	w2, w13, #2, #30
	lsl	w13, w14, #2
	bfi	w1, w14, #2, #30
	str	w2, [x9, #12]
	fmov	s1, w11
	mov.s	v1[1], w15
	mov.s	v1[2], w12
	str	w1, [x9, #28]
	mov.s	v1[3], w13
	fmov	s2, w10
	mov.s	v2[1], w17
	mov.s	v2[2], w0
	mov.s	v2[3], w16
	cmgt.4s	v1, v2, v1
	fneg.4s	v2, v0
	bsl.16b	v1, v2, v0
	stp	q0, q1, [x8]
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decode_8_pulses_31bits
.subsections_via_symbols
