	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_value3
_decode_value3:                         ## @decode_value3
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	16(%rbp), %r15
	movl	(%rdi), %r10d
	movq	%r10, %rax
	shrq	$5, %rax
	andl	$124, %eax
	movl	(%r15,%rax), %r14d
	cmpl	%esi, %r14d
	jge	LBB0_13
## %bb.1:
	movslq	%r14d, %rbx
	andl	$4095, %r10d                    ## imm = 0xFFF
	movslq	%esi, %rax
	subq	%rbx, %rax
	leaq	(%r8,%rbx,4), %r11
	addq	$4, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r10d, (%r11,%rbx,4)
	jg	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.4:
	movl	%esi, %r14d
	jmp	LBB0_5
LBB0_12:
	addl	%r14d, %ebx
	movl	%ebx, %r14d
LBB0_13:
	cmpl	%esi, %r14d
	jle	LBB0_5
## %bb.14:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_5:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movslq	%r14d, %rax
	addl	$16, (%r9,%rax,4)
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	addq	$4, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx,%rax,4), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	(%r8,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %eax
	leal	16(%rax), %edi
	movl	%edi, (%rdx)
	cmpl	$4065, %eax                     ## imm = 0xFE1
	jl	LBB0_26
## %bb.6:
	movl	$0, (%rdx)
	testl	%esi, %esi
	js	LBB0_26
## %bb.7:
	incl	%esi
	leaq	112(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%r13d, %r11d
	movl	%r13d, %eax
	sarl	%eax
	subl	%eax, %r13d
	movl	%r13d, (%r9,%r12,4)
	addl	%r13d, (%rdx)
	incq	%r12
	cmpq	%rsi, %r12
	je	LBB0_26
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_21 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movl	(%r9,%r12,4), %r13d
	movl	%r11d, (%r8,%r12,4)
	movl	%r13d, (%rcx,%r12,4)
	leal	127(%r11), %eax
	sarl	$7, %eax
	leal	(%r11,%r13), %edi
	decl	%edi
	sarl	$7, %edi
	subl	%eax, %edi
	jl	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%edi
	testl	%edi, %edi
	jle	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%eax, %r14
	movl	%edi, %r10d
	cmpl	$8, %edi
	jae	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r10d, %eax
	andl	$-8, %eax
	movd	%r12d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rax), %rdi
	movq	%rdi, %r14
	shrq	$3, %r14
	incq	%r14
	movl	%r14d, %r15d
	andl	$3, %r15d
	cmpq	$24, %rdi
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	andq	$-4, %r14
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rdi,%rbx,4), %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -112(%rdi,%rbx,4)
	movdqu	%xmm0, -96(%rdi,%rbx,4)
	movdqu	%xmm0, -80(%rdi,%rbx,4)
	movdqu	%xmm0, -64(%rdi,%rbx,4)
	movdqu	%xmm0, -48(%rdi,%rbx,4)
	movdqu	%xmm0, -32(%rdi,%rbx,4)
	movdqu	%xmm0, -16(%rdi,%rbx,4)
	movdqu	%xmm0, (%rdi,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %r14
	jne	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	testq	%r15, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%r14, %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rbx,4), %rdi
	shlq	$5, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r10, %rax
	movq	16(%rbp), %r15
	je	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r15,%r14,4), %rdi
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, (%rdi,%rax,4)
	incq	%rax
	cmpq	%rax, %r10
	jne	LBB0_24
	jmp	LBB0_25
LBB0_26:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_decode3
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sync_code3
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_27:
	addq	$56, %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
	.no_dead_strip	_decode_value3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_value3
_decode_value3:                         ; @decode_value3
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x7
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x20, x0
	mov	x21, x0
	ldr	w8, [x21], #4
	ubfx	x9, x8, #7, #5
	ldr	w22, [x6, x9, lsl #2]
	cmp	w22, w1
	b.ge	LBB0_5
; %bb.1:
	mov	x9, x22
	sxtw	x10, w9
	and	w8, w8, #0xfff
	sxtw	x9, w1
	sub	x9, x9, x10
	add	x10, x4, x10, lsl #2
	add	x10, x10, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w8
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x1
	b	LBB0_7
LBB0_5:
	cmp	w22, w1
	b.le	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_21
LBB0_7:
	sbfiz	x9, x22, #2, #32
	ldr	w8, [x5, x9]
	add	w8, w8, #16
	str	w8, [x5, x9]
	ldr	w8, [x3, x9]
	ldr	w9, [x4, x9]
	ldr	w10, [x2]
	add	w11, w10, #16
	str	w11, [x2]
	cmp	w10, #4065
	b.lt	LBB0_20
; %bb.8:
	str	wzr, [x2]
	tbnz	w1, #31, LBB0_20
; %bb.9:
	mov	x10, #0
	mov	w11, #0
	add	w12, w1, #1
	add	x13, x6, #32
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	w14, w14, w14, asr #1
	str	w14, [x5, x10, lsl #2]
	ldr	w15, [x2]
	add	w14, w15, w14
	str	w14, [x2]
	add	x10, x10, #1
	cmp	x10, x12
	b.eq	LBB0_20
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	lsl	x15, x10, #2
	ldr	w14, [x5, x15]
	str	w11, [x4, x15]
	str	w14, [x3, x15]
	add	w15, w11, #127
	asr	w16, w15, #7
	add	w11, w14, w11
	sub	w15, w11, #1
	asr	w15, w15, #7
	subs	w15, w15, w16
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w15, w15, #1
	cmp	w15, #1
	b.lt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x16, w16
	cmp	w15, #16
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x17, #0
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	and	x17, x15, #0xfffffff0
	dup.4s	v0, w10
	add	x0, x13, x16, lsl #2
	mov	x1, x17
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	q0, q0, [x0, #-32]
	stp	q0, q0, [x0], #64
	subs	x1, x1, #16
	b.ne	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x17, x15
	b.eq	LBB0_10
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x16, x17, x16
	add	x16, x6, x16, lsl #2
	sub	x15, x15, x17
LBB0_19:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w10, [x16], #4
	subs	x15, x15, #1
	b.ne	LBB0_19
	b	LBB0_10
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x8
	mov	x3, x9
	bl	_decode3
	mov	x0, x21
	mov	x1, x20
	bl	_sync_code3
	mov	w0, #0
	str	w22, [x19]
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_value3
.subsections_via_symbols
