	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_grid_1_sec_ch
_parse_grid_1_sec_ch:                   ## @parse_grid_1_sec_ch
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_ff_dca_scf_to_grid_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rdi), %rcx
	movl	-4(%rax,%rcx,4), %r12d
	cmpl	$2, %r12d
	jl	LBB0_7
## %bb.1:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %r15
	incq	%r12
	movl	$2, %ebx
	movq	_ff_dca_grid_1_to_scf@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	4(%r13), %eax
	jl	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_parse_scale_factors
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_6:
	movl	(%r13), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_7:
	xorl	%eax, %eax
	cmpl	$5, %ecx
	jl	LBB0_14
## %bb.8:
	leaq	8(%r13), %r15
	movslq	%esi, %r12
	xorl	%ebx, %ebx
	movq	_ff_dca_vlc_avg_g3@GOTPCREL(%rip), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	16(%r13), %rcx
	movq	(%rcx,%r12,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movl	(%r13), %ecx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	leal	-4(%rcx), %eax
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	4(%rbx), %eax
	cmpl	4(%r13), %eax
	jl	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	je	LBB0_11
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.no_dead_strip	_parse_grid_1_sec_ch
.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_sec_ch
_parse_grid_1_sec_ch:                   ; @parse_grid_1_sec_ch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ff_dca_scf_to_grid_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_dca_scf_to_grid_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x0]
	sub	w10, w8, #1
	ldr	w9, [x9, w10, sxtw #2]
	cmp	w9, #2
	b.lt	LBB0_7
; %bb.1:
	sxtw	x21, w20
	lsl	x8, x9, #2
	add	x22, x8, #4
	mov	w23, #8
Lloh3:
	adrp	x24, _ff_dca_grid_1_to_scf@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ff_dca_grid_1_to_scf@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #4
	cmp	x22, x23
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, x23]
	ldr	w9, [x19, #4]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x21, lsl #3]
	ldr	w1, [x8, x23]
	mov	x0, x19
	bl	_parse_scale_factors
	tbz	x0, #63, LBB0_2
; %bb.5:
	mov	w0, #-1
	b	LBB0_14
LBB0_6:
	ldr	w8, [x19]
LBB0_7:
	cmp	w8, #5
	b.lt	LBB0_13
; %bb.8:
	mov	x22, #0
	add	x21, x19, #8
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x23, w20
Lloh5:
	adrp	x20, _ff_dca_vlc_avg_g3@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ff_dca_vlc_avg_g3@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x23, lsl #3]
	str	x8, [x9, x22, lsl #3]
	ldr	w8, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	sub	w9, w8, #4
	cmp	x22, w9, sxtw
	b.ge	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #4]
	add	w10, w22, #4
	cmp	w10, w9
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbz	x0, LBB0_9
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.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
	.no_dead_strip	_parse_grid_1_sec_ch
.subsections_via_symbols
