	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function read_extra_header
LCPI0_0:
	.quad	0x41a999999999999a              ## double 214748364.80000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_read_extra_header:                     ## @read_extra_header
	.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
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	128(%rdi), %r14
	movq	_CONTEXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	shlq	$7, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	%ebx, %edx
	shll	$7, %edx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$128, %esi
	callq	_memset
	leal	(,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_memset
	movq	80(%r13), %rax
	movl	(%rax), %edx
	movl	12(%rax), %esi
	movq	%r14, %rdi
	callq	_ff_init_range_decoder
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r14, %rdi
	movl	$248, %esi
	callq	_ff_build_rac_states
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, (%r13)
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.1:
	movq	80(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	cmpl	$2, %eax
	je	LBB0_6
## %bb.4:
	addl	$-4, 128(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 8(%r13)
	movq	_AC_RANGE_CUSTOM_TAB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.7:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_get_symbol
	cltq
	movq	136(%r13), %rcx
	addq	(%rcx,%rbx,8), %rax
	movq	120(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_8
LBB0_9:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 12(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movq	80(%r13), %rcx
	movl	%eax, 4(%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_get_rac
	movq	%rax, 72(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 16(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 20(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_get_rac
	movq	%rax, 64(%r13)
	cmpq	$0, 72(%r13)
	jne	LBB0_11
## %bb.10:
	movl	$1, %ecx
	cmpl	$3, (%r13)
	jg	LBB0_12
LBB0_11:
	movl	$2, %ecx
LBB0_12:
	addq	%rcx, %rax
	movq	%rax, 112(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	incl	%eax
	movl	%eax, 24(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movl	%ecx, 28(%r13)
	movl	16(%r13), %ecx
	movl	20(%r13), %r8d
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.13:
	cmpl	$5, %r8d
	jae	LBB0_14
## %bb.15:
	movl	24(%r13), %ecx
	decl	%ecx
	cmpl	104(%r13), %ecx
	jae	LBB0_17
## %bb.16:
	cmpl	96(%r13), %eax
	jae	LBB0_17
## %bb.18:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 32(%r13)
	movq	_MAX_QUANT_TABLES@GOTPCREL(%rip), %rcx
	leal	-1(%rax), %edx
	cmpl	(%rcx), %edx
	jae	LBB0_21
## %bb.19:
	testl	%eax, %eax
	jle	LBB0_25
## %bb.20:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	88(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_read_quant_tables
	movq	40(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	testl	%eax, %eax
	js	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	movslq	32(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_23
LBB0_25:
	movq	%r13, %rdi
	callq	_ff_ffv1_allocate_initial_states
	testl	%eax, %eax
	js	LBB0_26
## %bb.27:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 32(%r13)
	jle	LBB0_41
## %bb.28:
	xorl	%r15d, %r15d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r15
	movslq	32(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_41
LBB0_29:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_32 Depth 2
                                        ##       Child Loop BB0_34 Depth 3
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_get_rac
	testq	%rax, %rax
	je	LBB0_40
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	40(%r13), %rcx
	cmpl	$0, (%rcx,%r15,4)
	jle	LBB0_40
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_CONTEXT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_32 Depth=2
	movq	40(%r13), %rcx
LBB0_39:                                ##   in Loop: Header=BB0_32 Depth=2
	incq	%r12
	movslq	(%rcx,%r15,4), %rdx
	cmpq	%rdx, %r12
	jge	LBB0_40
LBB0_32:                                ##   Parent Loop BB0_29 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_34 Depth 3
	testl	%eax, %eax
	jle	LBB0_39
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r14d, %r14d
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=3
	movq	48(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movq	-8(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
LBB0_37:                                ##   in Loop: Header=BB0_34 Depth=3
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_get_symbol
	addl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	movzbl	%al, %eax
	movq	48(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movq	_CONTEXT_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	cmpq	%rax, %r14
	jge	LBB0_38
LBB0_34:                                ##   Parent Loop BB0_29 Depth=1
                                        ##     Parent Loop BB0_32 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r12, %r12
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=3
	movl	$128, -72(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_37
LBB0_14:
	movq	80(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_17:
	movq	80(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_50:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_53
## %bb.51:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	80(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	$0, 32(%r13)
	jmp	LBB0_5
LBB0_41:
	xorl	%ebx, %ebx
	cmpl	$3, (%r13)
	movl	$0, %r12d
	jl	LBB0_48
## %bb.42:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 56(%r13)
	cmpl	$3, 4(%r13)
	jl	LBB0_44
## %bb.43:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_get_symbol
	movl	%eax, 60(%r13)
LBB0_44:
	cmpl	$3, (%r13)
	jl	LBB0_48
## %bb.45:
	movq	_AV_CRC_32_IEEE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movq	80(%r13), %rdx
	movl	(%rdx), %ecx
	movl	12(%rdx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_crc
	movq	80(%r13), %rdi
	testl	%eax, %eax
	jne	LBB0_52
## %bb.46:
	movl	(%rdi), %ecx
	cmpl	$4, %ecx
	jge	LBB0_47
LBB0_52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_24:
	movq	80(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_2
LBB0_26:
	movl	%eax, %ebx
	jmp	LBB0_50
LBB0_47:
	movl	12(%rdi), %eax
	addl	%ecx, %eax
	addl	$-4, %eax
	movslq	%eax, %rdi
	callq	_AV_RB32
	movl	%eax, %r12d
LBB0_48:
	movq	80(%r13), %rdi
	movq	_FF_DEBUG_PICT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_50
## %bb.49:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	movl	8(%r13), %r9d
	movl	12(%r13), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	20(%r13), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r13), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	28(%r13), %r10d
	movl	32(%r13), %r11d
	movl	56(%r13), %r14d
	movl	60(%r13), %r15d
	leaq	L_.str.6(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	64(%r13)
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	72(%r13)
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_av_log
	addq	$96, %rsp
	jmp	LBB0_50
LBB0_53:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTEXT_SIZE,4,2               ## @CONTEXT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid version in global header\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AC_RANGE_CUSTOM_TAB,4,2        ## @AC_RANGE_CUSTOM_TAB
L_.str.1:                               ## @.str.1
	.asciz	"chroma shift parameters %d %d are invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"slice count invalid\n"

	.comm	_MAX_QUANT_TABLES,8,3           ## @MAX_QUANT_TABLES
L_.str.3:                               ## @.str.3
	.asciz	"quant table count %d is invalid\n"

L_.str.4:                               ## @.str.4
	.asciz	"read_quant_table error\n"

	.comm	_AV_CRC_32_IEEE,4,2             ## @AV_CRC_32_IEEE
L_.str.5:                               ## @.str.5
	.asciz	"CRC mismatch %X!\n"

	.comm	_FF_DEBUG_PICT_INFO,4,2         ## @FF_DEBUG_PICT_INFO
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.6:                               ## @.str.6
	.asciz	"global: ver:%d.%d, coder:%d, colorspace: %d bpr:%d chroma:%d(%d:%d), alpha:%d slices:%dx%d qtabs:%d ec:%d intra:%d CRC:0x%08X\n"

	.no_dead_strip	_read_extra_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_extra_header
_read_extra_header:                     ; @read_extra_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x20, x0, #128
Lloh3:
	adrp	x25, _CONTEXT_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CONTEXT_SIZE@GOTPAGEOFF]
	ldr	w21, [x25]
	lsl	x22, x21, #2
	mov	x9, x22
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x7fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	lsl	x8, x21, #7
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x0, x9, x8
	mov	sp, x0
	lsl	w2, w21, #7
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w1, #128
	bl	_memset
	lsl	w2, w21, #2
	mov	x0, x24
	mov	w1, #128
	bl	_memset
	ldr	x8, [x19, #80]
	ldr	w1, [x8, #12]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ff_init_range_decoder
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16809, lsl #48
	fmov	d0, x8
	mov	x0, x20
	mov	w1, #248
	bl	_ff_build_rac_states
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19]
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	ldr	x0, [x19, #80]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_37
LBB0_2:
	cmp	w0, #2
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #128]
	sub	w8, w8, #4
	str	w8, [x19, #128]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_38
LBB0_4:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #8]
Lloh14:
	adrp	x8, _AC_RANGE_CUSTOM_TAB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AC_RANGE_CUSTOM_TAB@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	mov	w23, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	w2, #1
	bl	_get_symbol
	ldr	x8, [x19, #136]
	ldr	x8, [x8, x23]
	add	x8, x8, w0, sxtw
	ldr	x9, [x19, #120]
	str	x8, [x9, x23]
	add	x23, x23, #8
	cmp	x23, #2048
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #12]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	ldr	x8, [x19, #80]
	str	w0, [x8, #4]
	mov	x0, x20
	mov	x1, x24
	bl	_get_rac
	str	x0, [x19, #72]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #16]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #20]
	mov	x0, x20
	mov	x1, x24
	bl	_get_rac
	str	x0, [x19, #64]
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	cmp	w8, #3
	b.gt	LBB0_41
LBB0_9:
	mov	w8, #2
LBB0_10:
	add	x8, x0, x8
	str	x8, [x19, #112]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	add	w8, w0, #1
	str	w8, [x19, #24]
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	add	w8, w0, #1
	str	w8, [x19, #28]
	ldp	w8, w9, [x19, #16]
	cmp	w8, #4
	b.hi	LBB0_34
; %bb.11:
	cmp	w9, #5
	b.hs	LBB0_34
; %bb.12:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #104]
	sub	w8, w8, #1
	cmp	w8, w9
	b.hs	LBB0_36
; %bb.13:
	ldr	w8, [x19, #96]
	cmp	w0, w8
	b.hs	LBB0_36
; %bb.14:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #32]
Lloh17:
	adrp	x8, _MAX_QUANT_TABLES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_QUANT_TABLES@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w9, w0, #1
	cmp	w9, w8
	b.hs	LBB0_42
; %bb.15:
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x23, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #88]
	lsl	x21, x23, #2
	ldr	w1, [x8, x21]
	mov	x0, x20
	bl	_read_quant_tables
	ldr	x8, [x19, #40]
	str	w0, [x8, x21]
	tbnz	w0, #31, LBB0_54
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #32]
	cmp	x23, x8
	b.lt	LBB0_17
LBB0_19:
	mov	x0, x19
	bl	_ff_ffv1_allocate_initial_states
	tbnz	w0, #31, LBB0_39
; %bb.20:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_43
; %bb.21:
	mov	x26, #0
	stur	x24, [x29, #-104]               ; 8-byte Folded Spill
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #32]
	cmp	x26, x8
	ldur	x24, [x29, #-104]               ; 8-byte Folded Reload
	b.ge	LBB0_43
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
                                        ;       Child Loop BB0_32 Depth 3
	mov	x0, x20
	mov	x1, x24
	bl	_get_rac
	cbz	x0, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x19, #40]
	ldr	w8, [x9, x26, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x27, #0
	ldr	w8, [x25]
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=2
	ldr	x9, [x19, #40]
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=2
	add	x27, x27, #1
	ldrsw	x10, [x9, x26, lsl #2]
	cmp	x27, x10
	b.ge	LBB0_22
LBB0_28:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_32 Depth 3
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	x28, #0
	sub	x23, x27, #1
	ldur	x24, [x29, #-96]                ; 8-byte Folded Reload
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=3
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w21, [x8, x28, lsl #2]
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=3
	mov	x0, x20
	mov	x1, x24
	mov	w2, #1
	bl	_get_symbol
	add	w8, w0, w21
	and	w8, w8, #0xff
	ldr	x9, [x19, #48]
	ldr	x9, [x9, x26, lsl #3]
	ldr	x9, [x9, x27, lsl #3]
	str	w8, [x9, x28, lsl #2]
	add	x28, x28, #1
	ldrsw	x8, [x25]
	add	x24, x24, x22
	cmp	x28, x8
	b.ge	LBB0_26
LBB0_32:                                ;   Parent Loop BB0_23 Depth=1
                                        ;     Parent Loop BB0_28 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbnz	x27, LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=3
	mov	w21, #128
	b	LBB0_31
LBB0_34:
	ldr	x0, [x19, #80]
Lloh20:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x10]
	stp	x8, x9, [sp, #-16]!
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_35:
	bl	_av_log
	add	sp, sp, #16
	b	LBB0_38
LBB0_36:
	ldr	x0, [x19, #80]
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_37:
	bl	_av_log
LBB0_38:
Lloh30:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
LBB0_39:
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.40:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_41:
	mov	w8, #1
	b	LBB0_10
LBB0_42:
	ldr	x8, [x19, #80]
Lloh36:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	str	x0, [sp, #-16]!
Lloh39:
	adrp	x2, l_.str.3@PAGE
Lloh40:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_av_log
	add	sp, sp, #16
	str	wzr, [x19, #32]
	b	LBB0_38
LBB0_43:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_50
; %bb.44:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #56]
	ldr	w8, [x19, #4]
	cmp	w8, #3
	b.lt	LBB0_46
; %bb.45:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	bl	_get_symbol
	str	w0, [x19, #60]
LBB0_46:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_50
; %bb.47:
Lloh41:
	adrp	x8, _AV_CRC_32_IEEE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_CRC_32_IEEE@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	ldr	x8, [x19, #80]
	ldr	w2, [x8, #12]
	ldr	w3, [x8]
	mov	w1, #0
	bl	_av_crc
	mov	x8, x0
	ldr	x0, [x19, #80]
	cbnz	w8, LBB0_49
; %bb.48:
	ldr	w9, [x0]
	cmp	w9, #4
	b.ge	LBB0_55
LBB0_49:
Lloh44:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x9]
	str	x8, [sp, #-16]!
Lloh47:
	adrp	x2, l_.str.5@PAGE
Lloh48:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_35
LBB0_50:
	mov	w8, #0
LBB0_51:
	ldr	x0, [x19, #80]
	ldr	w9, [x0, #8]
Lloh49:
	adrp	x10, _FF_DEBUG_PICT_INFO@GOTPAGE
Lloh50:
	ldr	x10, [x10, _FF_DEBUG_PICT_INFO@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_53
; %bb.52:
Lloh52:
	adrp	x9, _AV_LOG_DEBUG@GOTPAGE
Lloh53:
	ldr	x9, [x9, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x9]
	ldp	x10, x9, [x19, #64]
	ldp	w11, w12, [x19]
	ldp	w13, w14, [x19, #8]
	ldr	w15, [x0, #4]
	ldp	w16, w17, [x19, #16]
	ldp	w2, w3, [x19, #24]
	ldr	w4, [x19, #32]
	ldp	w5, w6, [x19, #56]
	sub	sp, sp, #128
	stp	x6, x8, [sp, #104]
	stp	x4, x5, [sp, #88]
	stp	x2, x3, [sp, #72]
	stp	x17, x10, [sp, #56]
	stp	x9, x16, [sp, #40]
	stp	x14, x15, [sp, #24]
Lloh55:
	adrp	x2, l_.str.6@PAGE
Lloh56:
	add	x2, x2, l_.str.6@PAGEOFF
	stp	x12, x13, [sp, #8]
	str	x11, [sp]
	bl	_av_log
	add	sp, sp, #128
LBB0_53:
	mov	w0, #0
	b	LBB0_39
LBB0_54:
	ldr	x0, [x19, #80]
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.4@PAGE
Lloh61:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_37
LBB0_55:
	ldr	w8, [x0, #12]
	add	w8, w9, w8
	sub	w8, w8, #4
	sxtw	x0, w8
	bl	_AV_RB32
	mov	x8, x0
	b	LBB0_51
LBB0_56:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTEXT_SIZE,4,2               ; @CONTEXT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid version in global header\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AC_RANGE_CUSTOM_TAB,4,2        ; @AC_RANGE_CUSTOM_TAB
l_.str.1:                               ; @.str.1
	.asciz	"chroma shift parameters %d %d are invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"slice count invalid\n"

	.comm	_MAX_QUANT_TABLES,8,3           ; @MAX_QUANT_TABLES
l_.str.3:                               ; @.str.3
	.asciz	"quant table count %d is invalid\n"

l_.str.4:                               ; @.str.4
	.asciz	"read_quant_table error\n"

	.comm	_AV_CRC_32_IEEE,4,2             ; @AV_CRC_32_IEEE
l_.str.5:                               ; @.str.5
	.asciz	"CRC mismatch %X!\n"

	.comm	_FF_DEBUG_PICT_INFO,4,2         ; @FF_DEBUG_PICT_INFO
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.6:                               ; @.str.6
	.asciz	"global: ver:%d.%d, coder:%d, colorspace: %d bpr:%d chroma:%d(%d:%d), alpha:%d slices:%dx%d qtabs:%d ec:%d intra:%d CRC:0x%08X\n"

	.no_dead_strip	_read_extra_header
.subsections_via_symbols
