	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_grid_2
_parse_grid_2:                          ## @parse_grid_2
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_ff_dca_scf_to_grid_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rdi), %rdx
	movl	-4(%rax,%rdx,4), %eax
	incl	%eax
	cmpl	%r8d, %eax
	cmovgel	%r8d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %eax
	jle	LBB0_27
## %bb.1:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r13
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpl	%r13d, -60(%rbp)                ## 4-byte Folded Reload
	je	LBB0_27
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_26
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	cmpl	%r14d, -64(%rbp)                ## 4-byte Folded Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_26
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	cmpq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%ecx, %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_ff_dca_grid_2_to_scf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	cmpq	8(%rdi), %rax
	setge	%cl
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%rdi), %rax
	movq	(%rax,%r14,8), %rdx
	movq	(%rdx,%r13,8), %r15
	movzbl	%cl, %ecx
	cmpl	%r9d, %ecx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$64, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=3
	addq	$32, %r15
	addl	$-8, %r12d
	je	LBB0_25
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%rbx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 20(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 24(%r15)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_2@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	movl	%eax, 28(%r15)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	testl	%r9d, %r9d
	jne	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r13,8), %rsi
	movq	%r15, %rdi
	movl	$64, %edx
	callq	_memcpy
	jmp	LBB0_25
LBB0_27:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_scf_to_grid_2,8,3       ## @ff_dca_scf_to_grid_2
	.comm	_ff_dca_grid_2_to_scf,8,3       ## @ff_dca_grid_2_to_scf
	.comm	_ff_dca_vlc_grid_2,4,2          ## @ff_dca_vlc_grid_2
	.no_dead_strip	_parse_grid_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_grid_2
_parse_grid_2:                          ; @parse_grid_2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _ff_dca_scf_to_grid_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_dca_scf_to_grid_2@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	add	w9, w8, #1
	cmp	w9, w4
	csinc	w8, w4, w8, ge
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w8, w3
	b.le	LBB0_27
; %bb.1:
	mov	x19, x5
	mov	x22, x0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sxtw	x26, w8
	add	x23, x0, #16
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	add	w28, w8, #1
	sxtw	x20, w3
Lloh3:
	adrp	x24, _ff_dca_vlc_grid_2@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ff_dca_vlc_grid_2@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, w20
	b.eq	LBB0_27
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_14 Depth 3
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	w9, w8
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, x26
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	neg	w2, w21
	mov	x0, x25
	mov	w1, #0
	bl	_memset
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x27, x27, #1
	cmp	w28, w27
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_14 Depth 3
	cmp	x27, x26
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w9, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
Lloh5:
	adrp	x8, _ff_dca_grid_2_to_scf@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ff_dca_grid_2_to_scf@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	x9, [x22, #8]
	cmp	x8, x9
	cset	w9, ge
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x22, #24]
	ldr	x10, [x8, x27, lsl #3]
	ldr	x25, [x10, x20, lsl #3]
	cmp	w9, w19
	b.ne	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w21, #-64
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x25
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=3
	add	x25, x25, #32
	adds	w21, w21, #8
	b.eq	LBB0_6
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	bl	_get_bits1
	cbz	x0, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #4]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #8]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #12]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #16]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #20]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #24]
	mov	x0, x23
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_13
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=3
	mov	x0, x23
	mov	x1, x24
	mov	w2, #2
	bl	_parse_vlc
	str	w0, [x25, #28]
	b	LBB0_13
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=2
	cbnz	w19, LBB0_6
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x8, x26, lsl #3]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x25
	mov	w2, #64
	bl	_memcpy
	b	LBB0_6
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_scf_to_grid_2,8,3       ; @ff_dca_scf_to_grid_2
	.comm	_ff_dca_grid_2_to_scf,8,3       ; @ff_dca_grid_2_to_scf
	.comm	_ff_dca_vlc_grid_2,4,2          ; @ff_dca_vlc_grid_2
	.no_dead_strip	_parse_grid_2
.subsections_via_symbols
