	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_grid_1_chunk
_parse_grid_1_chunk:                    ## @parse_grid_1_chunk
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	je	LBB0_26
## %bb.1:
	movq	%rdi, %rbx
	leaq	12(%rdi), %r15
	movl	4(%rsi), %esi
	movq	%r15, %rdi
	callq	_init_get_bits8
	testq	%rax, %rax
	js	LBB0_12
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movq	_ff_dca_scf_to_grid_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movl	-4(%rax,%rcx,4), %r13d
	cmpl	$2, %r13d
	movq	%rbx, %r14
	jge	LBB0_13
LBB0_3:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_22
## %bb.4:
	cmpl	$5, (%r14)
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	jl	LBB0_20
## %bb.5:
	movslq	%r13d, %rbx
	movslq	-60(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_ff_dca_vlc_avg_g3@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r14), %rcx
	movq	(%rcx,%rbx,8), %rax
	movq	(%rax,%r12,8), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%r12,8)
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	addq	$-4, %rax
	cmpq	%rax, %r12
	jge	LBB0_20
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	32(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx,%r12,8)
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	leal	4(%r12), %eax
	cmpl	4(%r14), %eax
	jge	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	32(%r14), %rcx
	jmp	LBB0_7
LBB0_13:
	movslq	-64(%rbp), %r15                 ## 4-byte Folded Reload
	movslq	-60(%rbp), %r12                 ## 4-byte Folded Reload
	incq	%r13
	movl	$2, %ebx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_3
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_parse_scale_factors
	testq	%rax, %rax
	js	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -64(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_ff_dca_grid_1_to_scf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	4(%r14), %eax
	jge	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	40(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_parse_scale_factors
	testq	%rax, %rax
	jns	LBB0_14
LBB0_12:
	movl	$-1, %eax
	jmp	LBB0_26
LBB0_20:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	js	LBB0_24
## %bb.21:
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	jne	LBB0_25
LBB0_22:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_24:
	movl	24(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_26
LBB0_25:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_28
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_36
## %bb.27:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -56(%rbp)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -52(%rbp)
	movl	(%r14), %eax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	subl	4(%r14), %eax
	addl	$3, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$4, %eax
	jl	LBB0_34
## %bb.29:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	shrl	$2, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	subl	%r13d, %eax
	incl	%eax
	xorl	%r14d, %r14d
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%r14
	cmpq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_34
LBB0_31:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_33 Depth 2
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_30
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	xorl	%r15d, %r15d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_31 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-56(%rbp,%r15,4), %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_parse_st_code
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 4(%rcx)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_parse_st_code
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 8(%rcx)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_parse_st_code
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movl	%eax, 12(%rcx)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	callq	_parse_st_code
	movq	16(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rcx,%r14,8), %rcx
	movl	%eax, 16(%rcx)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incq	%r13
	incq	%r15
	cmpl	%r15d, %eax
	jne	LBB0_33
	jmp	LBB0_30
LBB0_34:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_left
	testl	%eax, %eax
	js	LBB0_22
## %bb.35:
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 8(%rcx)
	jmp	LBB0_22
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_scf_to_grid_1,8,3       ## @ff_dca_scf_to_grid_1
	.comm	_ff_dca_grid_1_to_scf,8,3       ## @ff_dca_grid_1_to_scf
	.comm	_ff_dca_vlc_avg_g3,4,2          ## @ff_dca_vlc_avg_g3
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"First grid chunk too short\n"

	.no_dead_strip	_parse_grid_1_chunk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_grid_1_chunk
_parse_grid_1_chunk:                    ; @parse_grid_1_chunk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w2, [x1]
	cbz	w2, LBB0_31
; %bb.1:
	mov	x21, x3
	mov	x19, x0
	add	x22, x0, #12
	ldr	w1, [x1, #4]
	mov	x0, x22
	bl	_init_get_bits8
	tbnz	x0, #63, LBB0_18
; %bb.2:
Lloh3:
	adrp	x8, _ff_dca_scf_to_grid_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_dca_scf_to_grid_1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w8, #1
	b.gt	LBB0_12
LBB0_3:
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #1
	b.lt	LBB0_31
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #5
	b.lt	LBB0_19
; %bb.5:
	mov	x24, #0
	mov	x8, x20
	sxtw	x25, w8
	mov	x8, x21
	sxtw	x26, w8
Lloh6:
	adrp	x23, _ff_dca_vlc_avg_g3@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ff_dca_vlc_avg_g3@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x8, x25, lsl #3]
	ldr	x9, [x9, x24, lsl #3]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8, x26, lsl #3]
	str	x9, [x8, x24, lsl #3]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	sub	x8, x8, #4
	cmp	x24, x8
	b.ge	LBB0_19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x25, lsl #3]
	str	x8, [x9, x24, lsl #3]
	cmp	w20, w21
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #4]
	add	w9, w24, #4
	cmp	w9, w8
	b.ge	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	w2, #2
	bl	_parse_vlc
	sub	x9, x0, #16
	ldr	x8, [x19, #32]
	b	LBB0_7
LBB0_12:
	sxtw	x23, w20
	sxtw	x24, w21
	lsl	x8, x8, #2
	add	x25, x8, #4
	mov	w26, #8
Lloh8:
	adrp	x27, _ff_dca_grid_1_to_scf@GOTPAGE
Lloh9:
	ldr	x27, [x27, _ff_dca_grid_1_to_scf@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x26, x26, #4
	cmp	x25, x26
	b.eq	LBB0_3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w1, [x8, x26]
	mov	x0, x19
	bl	_parse_scale_factors
	tbnz	x0, #63, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w20, w21
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x27]
	ldr	w8, [x8, x26]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w1, [x8, x26]
	mov	x0, x19
	bl	_parse_scale_factors
	tbz	x0, #63, LBB0_13
LBB0_18:
	mov	w0, #-1
	b	LBB0_32
LBB0_19:
	mov	x0, x22
	bl	_get_bits_left
	tbnz	w0, #31, LBB0_28
; %bb.20:
	cmp	w20, w21
	b.eq	LBB0_31
; %bb.21:
	mov	x0, x22
	mov	w1, #8
	bl	_ensure_bits
	cbnz	x0, LBB0_31
; %bb.22:
	mov	x0, x22
	mov	w1, #4
	bl	_get_bits
	str	w0, [sp, #32]
	mov	x0, x22
	mov	w1, #4
	bl	_get_bits
	str	w0, [sp, #36]
	ldp	w8, w9, [x19]
	sub	w8, w8, w9
	add	w8, w8, #3
	cmp	w8, #4
	b.lt	LBB0_29
; %bb.23:
	mov	x24, #0
	lsr	w9, w8, #2
	mov	x8, x20
	sbfiz	x8, x8, #3, #32
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	sub	w8, w21, w20
	add	w8, w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_29
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	cmp	w20, w21
	b.gt	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x28, sp, #32
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x26, [sp, #16]                  ; 8-byte Folded Reload
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w23, [x28], #4
	mov	x0, x22
	mov	x1, x23
	bl	_parse_st_code
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x26]
	lsl	x25, x24, #3
	ldr	x8, [x8, x25]
	str	w0, [x8, #4]
	mov	x0, x22
	mov	x1, x23
	bl	_parse_st_code
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x25]
	str	w0, [x8, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_parse_st_code
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x25]
	str	w0, [x8, #12]
	mov	x0, x22
	mov	x1, x23
	bl	_parse_st_code
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x25]
	str	w0, [x8, #16]
	add	x26, x26, #8
	subs	w27, w27, #1
	b.ne	LBB0_27
	b	LBB0_24
LBB0_28:
	ldr	w0, [x19, #24]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #-1
	b	LBB0_32
LBB0_29:
	mov	x0, x22
	bl	_get_bits_left
	tbnz	w0, #31, LBB0_31
; %bb.30:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_31:
	mov	w0, #0
LBB0_32:
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_scf_to_grid_1,8,3       ; @ff_dca_scf_to_grid_1
	.comm	_ff_dca_grid_1_to_scf,8,3       ; @ff_dca_grid_1_to_scf
	.comm	_ff_dca_vlc_avg_g3,4,2          ; @ff_dca_vlc_avg_g3
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"First grid chunk too short\n"

	.no_dead_strip	_parse_grid_1_chunk
.subsections_via_symbols
