	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_grid_3
_parse_grid_3:                          ## @parse_grid_3
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	cmpl	%edx, %esi
	jle	LBB0_1
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edx, %r15d
	movq	%rdi, %r12
	leal	4(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	16(%rdi), %rbx
	movslq	%ecx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r14
	leaq	(,%r14,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shlq	$3, %r14
	subl	%esi, %r15d
	incl	%r15d
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 56(%rcx)
	movq	8(%r12), %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, (%rax,%r13,4)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpl	%r13d, %r15d
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	(%r12), %eax
	setge	%al
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %eax
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax,%r13,4)
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 16(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 32(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 40(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	_ff_dca_vlc_grid_3@GOTPCREL(%rip), %rsi
	movl	$2, %edx
	callq	_parse_vlc
	addq	$-16, %rax
	movq	24(%r12), %rcx
	addq	%r14, %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, 48(%rcx)
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_ensure_bits
	testq	%rax, %rax
	je	LBB0_15
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_vlc_grid_3,4,2          ## @ff_dca_vlc_grid_3
	.no_dead_strip	_parse_grid_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_grid_3
_parse_grid_3:                          ; @parse_grid_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, w2
	b.le	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	mov	x19, x4
	mov	x20, x0
	mov	x23, #0
	add	w8, w3, #4
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w8, #1
	lsl	w25, w8, w3
	add	x21, x0, #16
	sxtw	x26, w3
	sbfiz	x27, x1, #2, #32
	sbfiz	x28, x1, #3, #32
	sub	w8, w2, w1
	add	w24, w8, #1
Lloh0:
	adrp	x22, _ff_dca_vlc_grid_3@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ff_dca_vlc_grid_3@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	ldr	x8, [x20, #24]
	add	x8, x8, x28
	ldr	x8, [x8, x23, lsl #3]
	sub	x9, x0, #16
	ldr	x8, [x8, x26, lsl #3]
	str	x9, [x8, #56]
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	orr	w10, w10, w25
	str	w10, [x8, x9]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	w24, w23
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x23, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, w8
	cset	w8, ge
	cmp	w8, w19
	b.ne	LBB0_4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	cmp	w8, w19
	b.ne	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x27
	ldr	w8, [x8, x23, lsl #2]
	tst	w8, w25
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #8]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #16]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #24]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #32]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #40]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbnz	x0, LBB0_1
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	w2, #2
	bl	_parse_vlc
	sub	x8, x0, #16
	ldr	x9, [x20, #24]
	add	x9, x9, x28
	ldr	x9, [x9, x23, lsl #3]
	ldr	x9, [x9, x26, lsl #3]
	str	x8, [x9, #48]
	mov	x0, x21
	mov	w1, #20
	bl	_ensure_bits
	cbz	x0, LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_vlc_grid_3,4,2          ; @ff_dca_vlc_grid_3
	.no_dead_strip	_parse_grid_3
.subsections_via_symbols
