	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_dec_huff_desc           ## -- Begin function ff_ivi_dec_huff_desc
	.p2align	4, 0x90
_ff_ivi_dec_huff_desc:                  ## @ff_ivi_dec_huff_desc
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %ebx
	testl	%esi, %esi
	je	LBB0_1
## %bb.5:
	movq	%r8, %r14
	movq	%rdi, %r15
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, (%r12)
	cmpl	$7, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -48(%rbp)
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	jg	LBB0_8
## %bb.10:
	leaq	24(%r12), %r15
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ivi_huff_desc_cmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ivi_huff_desc_copy
	leaq	16(%r12), %rbx
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_ff_free_vlc
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ivi_create_huff_from_desc
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	$0, (%r15)
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_22
LBB0_1:
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.3:
	movq	_ivi_mb_vlc_tabs@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	testl	%ebx, %ebx
	jne	LBB0_18
## %bb.19:
	movq	_ivi_mb_vlc_tabs@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_2:
	movq	_ivi_blk_vlc_tabs@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	addq	$56, %rax
	jmp	LBB0_21
LBB0_18:
	movq	_ivi_blk_vlc_tabs@GOTPCREL(%rip), %rcx
LBB0_20:
	cltq
	shlq	$3, %rax
	addq	(%rcx), %rax
	jmp	LBB0_21
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_11:
	cmpq	$0, 16(%r12)
	je	LBB0_12
LBB0_16:
	leaq	16(%r12), %rax
LBB0_21:
	movq	%rax, 8(%r12)
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_get_bits
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_ivi_blk_vlc_tabs,8,3           ## @ivi_blk_vlc_tabs
	.comm	_ivi_mb_vlc_tabs,8,3            ## @ivi_mb_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Empty custom Huffman table!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Error while initializing custom vlc table!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ivi_dec_huff_desc           ; -- Begin function ff_ivi_dec_huff_desc
	.p2align	2
_ff_ivi_dec_huff_desc:                  ; @ff_ivi_dec_huff_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	cbz	w1, LBB0_9
; %bb.1:
	mov	x20, x4
	mov	x21, x0
	mov	w1, #3
	bl	_get_bits
	str	w0, [x19]
	cmp	w0, #7
	b.ne	LBB0_10
; %bb.2:
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	str	w0, [sp]
	cbz	w0, LBB0_11
; %bb.3:
	cmp	w0, #1
	b.ge	LBB0_16
; %bb.4:
	add	x22, x19, #24
	mov	x0, sp
	mov	x1, x22
	bl	_ivi_huff_desc_cmp
	cbz	x0, LBB0_12
LBB0_5:
	mov	x1, sp
	mov	x0, x22
	bl	_ivi_huff_desc_copy
	mov	x21, x19
	ldr	x8, [x21, #16]!
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_ff_free_vlc
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_ivi_create_huff_from_desc
	cbz	w0, LBB0_13
; %bb.8:
	mov	x21, x0
	str	xzr, [x22]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_15
LBB0_9:
	mov	w21, #0
Lloh5:
	adrp	x8, _ivi_blk_vlc_tabs@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ivi_blk_vlc_tabs@GOTPAGEOFF]
Lloh7:
	adrp	x9, _ivi_mb_vlc_tabs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ivi_mb_vlc_tabs@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	add	x8, x8, #56
	b	LBB0_14
LBB0_10:
	mov	w21, #0
Lloh9:
	adrp	x8, _ivi_mb_vlc_tabs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ivi_mb_vlc_tabs@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ivi_blk_vlc_tabs@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ivi_blk_vlc_tabs@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	lsl	x9, x0, #32
	add	x8, x8, x9, asr #29
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_12:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
LBB0_13:
	mov	w21, #0
	add	x8, x19, #16
LBB0_14:
	str	x8, [x19, #8]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	brk	#0x1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ivi_blk_vlc_tabs,8,3           ; @ivi_blk_vlc_tabs
	.comm	_ivi_mb_vlc_tabs,8,3            ; @ivi_mb_vlc_tabs
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Empty custom Huffman table!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Error while initializing custom vlc table!\n"

.subsections_via_symbols
