	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_high_res_grid
_parse_high_res_grid:                   ## @parse_high_res_grid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DCA_LBR_SUBBANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_20
## %bb.1:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	leaq	24(%r13), %r15
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_init_get_bits8
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_21
## %bb.2:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %r8d
	andl	$7, %r8d
	movl	(%r13), %edi
	testl	%edi, %edi
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jle	LBB0_14
## %bb.3:
	movl	%eax, %ecx
	sarl	$6, %ecx
	movl	4(%r13), %r9d
	leal	(%rcx,%rcx,4), %ecx
	leal	100(,%rcx,8), %r10d
	shrl	%eax
	andl	$28, %eax
	leal	(%rax,%rax,4), %r11d
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, (%r14,%rsi,4)
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rsi
	addl	%r9d, %ecx
	cmpq	%rsi, %rdi
	je	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%edi
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	addl	%r10d, %ebx
	movl	$18000, %eax                    ## imm = 0x4650
	xorl	%edx, %edx
	idivl	%ebx
	addl	%r11d, %eax
	cmpl	$95, %eax
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$140, %eax
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$2, (%r14,%rsi,4)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$180, %eax
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$3, (%r14,%rsi,4)
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$230, %eax
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$4, (%r14,%rsi,4)
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$5, (%r14,%rsi,4)
	jmp	LBB0_5
LBB0_14:
	movq	_ff_dca_sb_reorder@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r8d, %ecx
	movq	(%rax,%rcx,8), %rcx
	movq	8(%r13), %rax
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	shrl	$31, %edx
	addl	%ebx, %edx
	sarl	%edx
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, (%rax)
	movq	8(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 4(%rax)
	movq	16(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 8(%rax)
	movq	24(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 12(%rax)
	movq	32(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 16(%rax)
	movq	40(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 20(%rax)
	movq	48(%rcx), %rdx
	movl	(%r14,%rdx,4), %edx
	movl	%edx, 24(%rax)
	movq	56(%rcx), %rcx
	movl	(%r14,%rcx,4), %ecx
	movl	%ecx, 28(%rax)
	cmpl	$9, (%r13)
	jl	LBB0_17
## %bb.15:
	movl	$8, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%r13), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_16
LBB0_17:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	_parse_lpc
	testq	%rax, %rax
	js	LBB0_21
## %bb.18:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_parse_ts
	testq	%rax, %rax
	js	LBB0_21
## %bb.19:
	cmpl	%r15d, %ebx
	jle	LBB0_23
LBB0_20:
	xorl	%r12d, %r12d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.22:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movslq	%ebx, %r12
	movl	%r15d, %r14d
	subl	%ebx, %r14d
	leal	1(%r14), %ebx
	movq	%r12, %r15
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_parse_scale_factors
	testq	%rax, %rax
	js	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	incq	%r15
	decl	%ebx
	jne	LBB0_24
## %bb.26:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_20
## %bb.27:
	incl	%r14d
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	callq	_parse_scale_factors
	testq	%rax, %rax
	js	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	incq	%r12
	decl	%r14d
	jne	LBB0_28
	jmp	LBB0_20
LBB0_31:
	movl	$-1, %r12d
	jmp	LBB0_21
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_LBR_SUBBANDS,4,2           ## @DCA_LBR_SUBBANDS
	.comm	_ff_dca_sb_reorder,8,3          ## @ff_dca_sb_reorder
	.no_dead_strip	_parse_high_res_grid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_high_res_grid
_parse_high_res_grid:                   ; @parse_high_res_grid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x3
	mov	x21, x2
	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, #-72]
Lloh3:
	adrp	x8, _DCA_LBR_SUBBANDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCA_LBR_SUBBANDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	w2, [x1]
	cbz	w2, LBB0_20
; %bb.1:
	add	x22, x19, #24
	ldr	w1, [x1, #4]
	mov	x0, x22
	bl	_init_get_bits8
	tbnz	x0, #63, LBB0_28
; %bb.2:
	mov	x0, x22
	mov	w1, #8
	bl	_get_bits
	and	w8, w0, #0x7
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w10, #0
	mov	x11, #0
	asr	w13, w0, #6
	ubfx	w14, w0, #3, #3
	ldr	w12, [x19, #4]
	mov	w15, #40
	mul	w13, w13, w15
	add	w13, w13, #100
	add	w14, w14, w14, lsl #2
	lsl	w14, w14, #2
	mov	w15, #19923
	movk	w15, #4194, lsl #16
	mov	w16, #18000
	mov	w17, #1
	mov	w0, #2
	mov	w1, #3
	mov	w2, #4
	mov	w3, #5
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w17, [x23, x11, lsl #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, #1
	add	w10, w10, w12
	cmp	x9, x11
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w4, w10, w9
	add	w4, w4, w4, lsl #1
	lsl	w4, w4, #2
	smull	x4, w4, w15
	lsr	x5, x4, #63
	asr	x4, x4, #38
	add	w4, w4, w5
	add	w4, w13, w4
	sdiv	w4, w16, w4
	add	w4, w4, w14
	cmp	w4, #95
	b.le	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w4, #140
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w0, [x23, x11, lsl #2]
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w4, #180
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w1, [x23, x11, lsl #2]
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w4, #230
	b.hi	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w2, [x23, x11, lsl #2]
	b	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w3, [x23, x11, lsl #2]
	b	LBB0_5
LBB0_14:
Lloh8:
	adrp	x9, _ff_dca_sb_reorder@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ff_dca_sb_reorder@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x9, [x9, w8, uxtw #3]
	ldr	x8, [x19, #8]
	cmp	w21, #0
	cinc	w10, w21, lt
	asr	w10, w10, #1
	ldr	x8, [x8, w10, sxtw #3]
	ldp	x10, x11, [x9]
	ldr	w10, [x23, x10, lsl #2]
	ldr	w11, [x23, x11, lsl #2]
	stp	w10, w11, [x8]
	ldp	x10, x11, [x9, #16]
	ldr	w10, [x23, x10, lsl #2]
	ldr	w11, [x23, x11, lsl #2]
	stp	w10, w11, [x8, #8]
	ldp	x10, x11, [x9, #32]
	ldr	w10, [x23, x10, lsl #2]
	ldr	w11, [x23, x11, lsl #2]
	stp	w10, w11, [x8, #16]
	ldp	x10, x9, [x9, #48]
	ldr	w10, [x23, x10, lsl #2]
	ldr	w9, [x23, x9, lsl #2]
	stp	w10, w9, [x8, #24]
	ldr	w9, [x19]
	cmp	w9, #9
	b.lt	LBB0_17
; %bb.15:
	mov	w9, #8
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #2
	ldr	w11, [x23, x10]
	str	w11, [x8, x10]
	add	x9, x9, #1
	ldrsw	x10, [x19]
	cmp	x9, x10
	b.lt	LBB0_16
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #2
	bl	_parse_lpc
	tbnz	x0, #63, LBB0_28
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #2
	mov	w5, #0
	bl	_parse_ts
	tbnz	x0, #63, LBB0_28
; %bb.19:
	cmp	w21, w20
	b.le	LBB0_21
LBB0_20:
	mov	w0, #0
	b	LBB0_29
LBB0_21:
	sxtw	x8, w21
	lsl	x22, x8, #3
	sub	w23, w20, w21
	add	w24, w23, #1
	mov	x25, x22
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x25]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_parse_scale_factors
	tbnz	x0, #63, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x25, x25, #8
	subs	w24, w24, #1
	b.ne	LBB0_22
; %bb.24:
	cmp	w21, w20
	b.gt	LBB0_20
; %bb.25:
	add	w20, w23, #1
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x22]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_parse_scale_factors
	tbnz	x0, #63, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w0, #0
	add	x22, x22, #8
	subs	w20, w20, #1
	b.ne	LBB0_26
	b	LBB0_29
LBB0_28:
	mov	w0, #-1
LBB0_29:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_LBR_SUBBANDS,4,2           ; @DCA_LBR_SUBBANDS
	.comm	_ff_dca_sb_reorder,8,3          ; @ff_dca_sb_reorder
	.no_dead_strip	_parse_high_res_grid
.subsections_via_symbols
