	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_value
_decode_value:                          ## @decode_value
	.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	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	$16, %rdi
	movq	(%rsi,%rdx,8), %rbx
	leaq	-80(%rbp), %rdx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	*(%r14)
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_5
## %bb.2:
	movq	%r13, %rsi
	leaq	20(%r14), %rdi
	movq	-80(%rbp), %rax
	xorl	%edx, %edx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r15,8), %r13
	leaq	(%rdx,%r13), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movq	%rcx, %rdx
	cmpq	%r15, %rsi
	jne	LBB0_3
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_6:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%rbx, %r8
	callq	*8(%r14)
	testl	%eax, %eax
	js	LBB0_19
## %bb.7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	movq	%r13, (%r12,%r15,8)
	addq	%rax, %rbx
	movq	_BOT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jbe	LBB0_18
## %bb.8:
	cmpq	$4, %rdi
	jae	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_10:
	movq	%rdi, %rax
	andq	$-4, %rax
	leaq	-4(%rax), %rcx
	movq	%rcx, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	pxor	%xmm3, %xmm3
	xorl	%ecx, %ecx
	pcmpeqd	%xmm2, %xmm2
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r12,%rcx,8), %xmm5
	movdqu	16(%r12,%rcx,8), %xmm6
	movdqu	32(%r12,%rcx,8), %xmm0
	movdqu	48(%r12,%rcx,8), %xmm1
	psrlq	$1, %xmm5
	psrlq	$1, %xmm6
	psubq	%xmm2, %xmm5
	psubq	%xmm2, %xmm6
	movdqu	%xmm5, (%r12,%rcx,8)
	movdqu	%xmm6, 16(%r12,%rcx,8)
	paddq	%xmm3, %xmm5
	paddq	%xmm4, %xmm6
	psrlq	$1, %xmm0
	psrlq	$1, %xmm1
	psubq	%xmm2, %xmm0
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, 32(%r12,%rcx,8)
	movdqu	%xmm1, 48(%r12,%rcx,8)
	paddq	%xmm5, %xmm0
	paddq	%xmm6, %xmm1
	addq	$8, %rcx
	movdqa	%xmm0, %xmm3
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
LBB0_14:
	testb	$1, %dl
	je	LBB0_16
## %bb.15:
	movdqu	(%r12,%rcx,8), %xmm2
	movdqu	16(%r12,%rcx,8), %xmm3
	psrlq	$1, %xmm2
	psrlq	$1, %xmm3
	pcmpeqd	%xmm4, %xmm4
	psubq	%xmm4, %xmm2
	psubq	%xmm4, %xmm3
	movdqu	%xmm2, (%r12,%rcx,8)
	movdqu	%xmm3, 16(%r12,%rcx,8)
	paddq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
LBB0_16:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rbx
	cmpq	%rdi, %rax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rax,8), %rcx
	shrq	%rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, (%r12,%rax,8)
	addq	%rcx, %rbx
	incq	%rbx
	incq	%rax
	cmpq	%rax, %rdi
	jne	LBB0_17
LBB0_18:
	movq	%rbx, (%r12,%rdi,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_BOT,8,3                        ## @BOT
	.no_dead_strip	_decode_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_value
_decode_value:                          ; @decode_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	mov	x24, x0
	ldr	x23, [x1, x2, lsl #3]
	ldr	x8, [x24], #16
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	blr	x8
	tbnz	w0, #31, LBB0_16
; %bb.1:
	cbz	x20, LBB0_5
; %bb.2:
	mov	x2, #0
	mov	x27, #0
	add	x0, x25, #20
	ldr	x8, [sp, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x21, x27, lsl #3]
	add	x9, x26, x2
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	mov	x2, x9
	cmp	x20, x27
	b.ne	LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_6:
	ldr	x8, [x25, #8]
	mov	x1, x24
	mov	x3, x26
	mov	x4, x23
	blr	x8
	tbnz	w0, #31, LBB0_16
; %bb.7:
	add	x8, x26, x22
	str	x8, [x21, x27, lsl #3]
Lloh3:
	adrp	x8, _BOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BOT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x23, x22
	cmp	x9, x8
	b.ls	LBB0_15
; %bb.8:
	cmp	x20, #8
	b.hs	LBB0_10
; %bb.9:
	mov	x8, #0
	mov	x9, #0
	b	LBB0_13
LBB0_10:
	and	x8, x20, #0xfffffffffffffff8
	add	x9, x21, #32
	movi.2d	v0, #0000000000000000
	mov	w10, #1
	dup.2d	v1, x10
	mov	x10, x8
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x9, #-32]
	ldp	q7, q16, [x9]
	mov.16b	v17, v1
	usra.2d	v17, v5, #1
	mov.16b	v5, v1
	usra.2d	v5, v6, #1
	mov.16b	v6, v1
	usra.2d	v6, v7, #1
	mov.16b	v7, v1
	usra.2d	v7, v16, #1
	stp	q17, q5, [x9, #-32]
	stp	q6, q7, [x9], #64
	add.2d	v0, v17, v0
	add.2d	v2, v5, v2
	add.2d	v3, v6, v3
	add.2d	v4, v7, v4
	subs	x10, x10, #8
	b.ne	LBB0_11
; %bb.12:
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x9, d0
	cmp	x8, x20
	b.eq	LBB0_15
LBB0_13:
	add	x10, x21, x8, lsl #3
	sub	x8, x20, x8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	lsr	x11, x11, #1
	add	x11, x11, #1
	str	x11, [x10], #8
	add	x9, x11, x9
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	mov	w0, #0
	str	x9, [x21, x20, lsl #3]
	str	x27, [x19]
LBB0_16:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_BOT,8,3                        ; @BOT
	.no_dead_strip	_decode_value
.subsections_via_symbols
