	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp6_parse_coeff_huffman
_vp6_parse_coeff_huffman:               ## @vp6_parse_coeff_huffman
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	72(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	40(%rdi), %r12
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movl	%r14d, %edi
	movl	$63, %esi
	callq	_FFMIN
	movl	(%rbx,%rax,4), %eax
	movq	24(%r15), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	cmpq	$6, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$4, %rdx
	movl	$1, %eax
	cmovael	%eax, %ebx
	leaq	(,%rbx,4), %r13
	addq	64(%r15), %r13
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$1, %r14d
	jg	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	48(%r15), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rcx
	movq	%rcx, (%rax,%rbx,8)
	movl	$1, %ebx
	testl	%r14d, %r14d
	je	LBB0_21
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_get_bits_left
	testq	%rax, %rax
	jle	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %esi
	movq	_FF_HUFFMAN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$11, %eax
	je	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ff_vp56_coeff_bias@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %ebx
	cmpl	$5, %eax
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	-4(%rax), %esi
	cmpl	$10, %eax
	movl	$11, %eax
	cmovael	%eax, %esi
	movq	%r12, %rdi
	callq	_get_bits
	addl	%eax, %ebx
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	xorl	%r12d, %r12d
	cmpl	$2, %ebx
	setge	%r13b
	callq	_get_bits1
	movl	%eax, %ecx
	negl	%ecx
	xorl	%ebx, %ecx
	addl	%eax, %ecx
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	imull	8(%r15), %ecx
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movb	%r13b, %r12b
	incl	%r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	%r14d, %rdx
	movslq	(%rax,%rdx,4), %rax
	movq	16(%r15), %rdx
	movq	(%rdx,%rsi,8), %rdx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi,%rax,8), %rax
	movl	%ecx, (%rdx,%rax,4)
	movl	$1, %ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	cmpl	$6, %r14d
	setge	%al
	movq	56(%r15), %rcx
	movl	(%rcx,%rax,4), %esi
	movq	_FF_HUFFMAN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	movq	%r12, %rdi
	xorl	%r12d, %r12d
	cmpl	$8, %eax
	jl	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$6, %esi
	callq	_get_bits
	addl	%eax, %ebx
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_vp6_get_nb_null
	movq	48(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	$1, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%ebx, %r14d
	cmpl	$63, %r14d
	jg	LBB0_10
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_vp6_coeff_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$3, %esi
	callq	_FFMIN
	movq	32(%r15), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rcx,%rbx,8), %rcx
	movl	%r12d, %edx
	movslq	%eax, %r13
	shlq	$2, %r13
	addq	(%rcx,%rdx,8), %r13
	cmpl	$1, %r14d
	jle	LBB0_3
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r14d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_vp6_get_nb_null
	movq	48(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movl	$1, %r14d
	jmp	LBB0_10
LBB0_23:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_FF_HUFFMAN_BITS,4,2            ## @FF_HUFFMAN_BITS
	.comm	_ff_vp56_coeff_bias,8,3         ## @ff_vp56_coeff_bias
	.comm	_vp6_coeff_groups,8,3           ## @vp6_coeff_groups
	.no_dead_strip	_vp6_parse_coeff_huffman
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp6_parse_coeff_huffman
_vp6_parse_coeff_huffman:               ; @vp6_parse_coeff_huffman
	.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, x0
	mov	x22, #0
	mov	w23, #0
	ldr	x24, [x0, #72]
	ldr	x8, [x0]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x20, x0, #40
Lloh0:
	adrp	x26, _FF_HUFFMAN_BITS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _FF_HUFFMAN_BITS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _vp6_coeff_groups@GOTPAGE
Lloh3:
	ldr	x27, [x27, _vp6_coeff_groups@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x25, [x24, #8]
	mov	x0, x21
	mov	w1, #63
	bl	_FFMIN
	ldr	w8, [x25, x0, lsl #2]
	ldr	x9, [x19, #24]
	str	w8, [x9, x22, lsl #2]
	add	x22, x22, #1
	cmp	x22, #6
	b.eq	LBB0_25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w21, #0
	mov	w28, #0
	cmp	x22, #3
	csinc	w23, w23, wzr, ls
	ldr	x8, [x19, #64]
	add	x25, x8, w23, uxtw #2
	cmp	w21, #1
	b.gt	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, w21, sxtw #3]
	ldr	x9, [x8, x23, lsl #3]
	cbz	x9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x9, #1
	str	x9, [x8, x23, lsl #3]
	cbz	w21, LBB0_17
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_get_bits_left
	cmp	x0, #1
	b.lt	LBB0_23
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	x0, x20
	mov	w3, #3
	bl	_get_vlc2
	cbz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #11
	b.eq	LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x8, _ff_vp56_coeff_bias@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ff_vp56_coeff_bias@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w25, [x8, w0, sxtw #2]
	cmp	w0, #5
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w0, #4
	cmp	w0, #10
	mov	w9, #11
	csel	w1, w8, w9, lo
	mov	x0, x20
	bl	_get_bits
	add	w25, w25, w0
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #1
	mov	w8, #1
	cinc	w28, w8, gt
	mov	x0, x20
	bl	_get_bits1
	neg	w8, w0
	eor	w8, w25, w8
	add	w8, w8, w0
	cbz	w21, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, #8]
	mul	w8, w9, w8
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x24]
	ldrsw	x9, [x9, w21, sxtw #2]
	ldr	x10, [x19, #16]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x9, [x11, x9, lsl #3]
	str	w8, [x10, x9, lsl #2]
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w21, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #5
	cset	w8, gt
	ldr	x9, [x19, #56]
	ldr	w1, [x9, w8, uxtw #2]
	ldr	w2, [x26]
	mov	x0, x20
	mov	w3, #3
	bl	_get_vlc2
	add	w25, w0, #1
	cmp	w0, #8
	b.lt	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #6
	bl	_get_bits
	mov	w28, #0
	add	w25, w25, w0
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_vp6_get_nb_null
	mov	w28, #0
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	str	x0, [x8, x23, lsl #3]
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #1
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w25, w21
	cmp	w21, #63
	b.gt	LBB0_1
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	ldr	w0, [x8, w21, sxtw #2]
	mov	w1, #3
	bl	_FFMIN
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, w28, uxtw #3]
	lsl	x9, x0, #32
	add	x25, x8, x9, asr #30
	cmp	w21, #1
	b.le	LBB0_3
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #0
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #1
	b.ne	LBB0_1
; %bb.22:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_vp6_get_nb_null
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #8]
	str	x0, [x8, x23, lsl #3]
	b	LBB0_1
LBB0_23:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_24:
	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
LBB0_25:
	mov	w0, #0
	b	LBB0_24
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_FF_HUFFMAN_BITS,4,2            ; @FF_HUFFMAN_BITS
	.comm	_ff_vp56_coeff_bias,8,3         ; @ff_vp56_coeff_bias
	.comm	_vp6_coeff_groups,8,3           ; @vp6_coeff_groups
	.no_dead_strip	_vp6_parse_coeff_huffman
.subsections_via_symbols
