	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function build_vlc
LCPI0_0:
	.space	4
	.long	4294967294                      ## 0xfffffffe
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_build_vlc:                             ## @build_vlc
	.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
	pushq	%rax
	movl	$13352, %eax                    ## imm = 0x3428
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, -13384(%rbp)              ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -13364(%rbp)
	movq	%rsi, -13376(%rbp)              ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_ff_free_vlc
	leaq	-10264(%rbp), %rax
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,4294967294,u,u>
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %edx
	movl	%edx, -24(%rax)
	movdqa	%xmm0, %xmm1
	pinsrd	$0, %ecx, %xmm1
	pshufd	$4, %xmm1, %xmm1                ## xmm1 = xmm1[0,1,0,0]
	movdqu	%xmm1, -20(%rax)
	movl	4(%rbx,%rcx,4), %edx
	movl	%edx, -4(%rax)
	leal	1(%rcx), %edx
	movdqa	%xmm0, %xmm1
	pinsrd	$0, %edx, %xmm1
	pshufd	$4, %xmm1, %xmm1                ## xmm1 = xmm1[0,1,0,0]
	movdqu	%xmm1, (%rax)
	addq	$40, %rax
	addq	$2, %rcx
	cmpq	$256, %rcx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$256, %r8d                      ## imm = 0x100
	leaq	-10288(%rbp), %r10
	xorl	%r11d, %r11d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movslq	%r8d, %r8
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	movl	%r8d, %ecx
	leaq	(%r8,%r8,4), %r13
	leaq	-10288(,%r13,4), %r12
	addq	%rbp, %r12
	movl	$-1, -10288(%rbp,%r13,4)
	movq	%r10, %rdx
	movq	%r11, %rdi
	movl	%r8d, %ebx
	movl	%r8d, %r15d
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=3
	movl	%edi, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=3
	incq	%rdi
	addq	$20, %rdx
	cmpq	%rdi, %rcx
	je	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rdx), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movslq	%ebx, %r14
	leaq	(%r14,%r14,4), %rax
	cmpl	-10288(%rbp,%rax,4), %esi
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=3
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %rax
	cmpl	-10288(%rbp,%rax,4), %esi
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	%r15d, %ebx
	movl	%edi, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%r8d, %ebx
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movslq	%r15d, %rax
	leaq	(%rax,%rax,4), %rax
	movl	-10288(%rbp,%rax,4), %ecx
	movslq	%ebx, %rdx
	leaq	(%rdx,%rdx,4), %rsi
	movl	-10288(%rbp,%rsi,4), %edx
	movl	$0, -10288(%rbp,%rax,4)
	movl	$0, -10288(%rbp,%rsi,4)
	movl	%r9d, %eax
	subl	%edx, %eax
	cmpl	%eax, %ecx
	jae	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	addl	%ecx, %edx
	movl	%edx, (%r12)
	movl	$-1, -10284(%rbp,%r13,4)
	movl	%r8d, -10280(%rbp,%r13,4)
	movl	%ebx, -10276(%rbp,%r13,4)
	movl	%r15d, -10272(%rbp,%r13,4)
	incq	%r8
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	257(%r11), %eax
	incq	%r11
	addq	$20, %r10
	cmpl	%r8d, %eax
	je	LBB0_3
## %bb.16:
	decl	%r8d
	leaq	-13364(%rbp), %rax
	leaq	-11312(%rbp), %r15
	leaq	-12336(%rbp), %rbx
	leaq	-13360(%rbp), %r12
	leaq	-10288(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_get_tree_codes
	addq	$16, %rsp
	movl	-13364(%rbp), %edx
	subq	$8, %rsp
	movq	-13376(%rbp), %rdi              ## 8-byte Reload
	movl	$10, %esi
	movq	%rbx, %rcx
	movl	$2, %r8d
	movl	$2, %r9d
	pushq	$0
	pushq	$1
	pushq	$1
	pushq	%r12
	pushq	$4
	pushq	$4
	pushq	%r15
	callq	_ff_init_vlc_sparse
	addq	$64, %rsp
	jmp	LBB0_17
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-13384(%rbp), %rdi              ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$13352, %rsp                    ## imm = 0x3428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"count overflow\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_build_vlc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_vlc
_build_vlc:                             ; @build_vlc
	.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	w9, #13360
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #3, lsl #12             ; =12288
	sub	sp, sp, #1072
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	wzr, [sp, #36]
	mov	x0, x1
	bl	_ff_free_vlc
	mov	x8, #0
	add	x9, x21, #8
	add	x10, sp, #3112
	add	x10, x10, #40
	mov	w11, #-2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w8, #1
	add	w13, w8, #2
	add	w14, w8, #3
	ldp	w15, w16, [x9, #-8]
	ldp	w17, w0, [x9], #16
	stp	w15, w8, [x10, #-40]
	stp	w17, w13, [x10]
	stp	w12, w11, [x10, #-16]
	stp	w14, w11, [x10, #24]
	stp	w11, w8, [x10, #-32]
	stp	w11, w13, [x10, #8]
	stp	w8, w16, [x10, #-24]
	stp	w12, w12, [x10, #-8]
	stp	w13, w0, [x10, #16]
	add	x8, x8, #4
	stp	w14, w14, [x10, #32]
	add	x10, x10, #80
	cmp	x8, #256
	b.ne	LBB0_1
; %bb.2:
	mov	x10, #0
Lloh5:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
	add	x9, sp, #3112
Lloh7:
	ldr	w11, [x8]
	mov	w8, #256
	mov	w12, #20
	mov	w13, #-1
	add	x14, sp, #3112
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	sxtw	x8, w8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	and	x0, x8, #0xffffffff
	madd	x15, x8, x12, x9
	str	w13, [x15]
	mov	x1, x14
	mov	x2, x10
	mov	x17, x8
	mov	x16, x8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=3
	add	x2, x2, #1
	add	x1, x1, #20
	cmp	x0, x2
	b.eq	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x1]
	cbz	w3, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	smull	x4, w17, w12
	ldr	w4, [x9, x4]
	cmp	w3, w4
	b.ge	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=3
	smull	x17, w16, w12
	ldr	w17, [x9, x17]
	cmp	w3, w17
	csel	w17, w16, w2, lt
	csel	w16, w2, w16, lt
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w17, w8
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=2
	smull	x2, w16, w12
	ldr	w0, [x9, x2]
	smull	x3, w17, w12
	ldr	w1, [x9, x3]
	str	wzr, [x9, x2]
	str	wzr, [x9, x3]
	sub	w2, w11, w1
	cmp	w0, w2
	b.hs	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=2
	add	w0, w1, w0
	str	w0, [x15]
	madd	x15, x8, x12, x9
	stp	w13, w8, [x15, #4]
	stp	w17, w16, [x15, #12]
	add	x8, x8, #1
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w15, w10, #257
	add	x10, x10, #1
	add	x14, x14, #20
	cmp	w15, w8
	b.eq	LBB0_3
; %bb.13:
	sub	w4, w8, #1
	add	x20, sp, #40
	add	x0, sp, #2088
	add	x1, sp, #1064
	add	x2, sp, #40
	add	x3, sp, #3112
	add	x7, sp, #36
	mov	w5, #0
	mov	w6, #0
	bl	_get_tree_codes
	ldr	w2, [sp, #36]
	str	wzr, [sp, #24]
	mov	x8, #4294967297
	stp	x20, x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp]
	add	x3, sp, #1064
	add	x6, sp, #2088
	mov	x0, x19
	mov	w1, #10
	mov	w4, #2
	mov	w5, #2
	mov	w7, #4
	bl	_ff_init_vlc_sparse
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh13:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #3, lsl #12             ; =12288
	add	sp, sp, #1072
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"count overflow\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_build_vlc
.subsections_via_symbols
