	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imc_decode_block
_imc_decode_block:                      ## @imc_decode_block
	.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
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rsi), %r12
	movq	%rsi, %rdi
	movl	$9, %esi
	callq	_get_bits
	movl	%eax, %ebx
	testb	$24, %bl
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_21:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_82:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	%r14d, %rax
	imulq	$120, %rax, %rbx
	leaq	(%r12,%rbx), %r14
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testb	$4, %al
	jne	LBB0_3
## %bb.4:
	cmpl	$0, (%r14)
	jne	LBB0_5
	jmp	LBB0_10
LBB0_3:
	movl	$1, (%r14)
LBB0_5:
	movq	_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.6:
	movq	8(%r12,%rbx), %rdi
	shlq	$3, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
LBB0_7:
	movq	_COEFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.8:
	movq	112(%r12,%rbx), %rdi
	shlq	$3, %rsi
	callq	___bzero
LBB0_9:
	movl	$0, (%r14)
LBB0_10:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_get_bits1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	leaq	(%r12,%rbx), %r13
	addq	$16, %r13
	movq	16(%r12,%rbx), %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	testb	$1, %sil
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	jne	LBB0_11
## %bb.12:
	movl	%esi, %r15d
	callq	_imc_read_level_coeffs
	movq	(%r13), %rsi
	testb	$4, %r15b
	jne	LBB0_13
## %bb.14:
	movq	8(%r12,%rbx), %rdx
	movq	24(%r12,%rbx), %rcx
	movq	32(%r12,%rbx), %r8
	movq	%r14, %rdi
	callq	_imc_decode_level_coefficients2
	jmp	LBB0_15
LBB0_11:
	callq	_imc_read_level_coeffs_raw
	movq	(%r13), %rsi
	movq	24(%r12,%rbx), %rdx
	movq	32(%r12,%rbx), %rcx
	movq	%r14, %rdi
	callq	_imc_decode_level_coefficients_raw
	movq	%r12, %rcx
	jmp	LBB0_16
LBB0_13:
	movq	24(%r12,%rbx), %rdx
	movq	32(%r12,%rbx), %rcx
	movq	%r14, %rdi
	callq	_imc_decode_level_coefficients
LBB0_15:
	movq	%r12, %rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	movq	%r14, %r13
	movq	_BANDS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rcx,%rbx), %rsi
	testl	%eax, %eax
	movq	%rbx, %r14
	jle	LBB0_22
## %bb.17:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rsi,%rdx,8)
	jg	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_19
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax,%r14), %rdi
	movl	$128, %edx
	callq	_memcpy
	movl	(%r12), %edx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testb	$1, %r15b
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_23
## %bb.26:
	testl	%edx, %edx
	jle	LBB0_32
## %bb.27:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_band_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r14), %rsi
	addq	$40, %rsi
	xorl	%edi, %edi
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	4(%rcx,%rdi,4), %edx
	subl	(%rcx,%rdi,4), %edx
	movq	(%rsi), %rbx
	movl	%edx, (%rbx,%rdi,4)
	incq	%rdi
LBB0_31:                                ##   in Loop: Header=BB0_28 Depth=1
	movslq	(%r12), %rdx
	cmpq	%rdx, %rdi
	jge	LBB0_32
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$16, (%rax,%rdi,4)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	(%rsi), %rdx
	movl	$0, (%rdx,%rdi,4)
	incq	%rdi
	jmp	LBB0_31
LBB0_23:
	testl	%edx, %edx
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	jle	LBB0_38
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	addq	$40, %rax
	xorl	%edx, %edx
	movq	_band_tab@GOTPCREL(%rip), %rcx
	movabsq	$4607182418800017408, %rsi      ## imm = 0x3FF0000000000000
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdi
	movl	4(%rdi,%rdx,4), %ebx
	subl	(%rdi,%rdx,4), %ebx
	movq	(%rax), %rdi
	movl	%ebx, (%rdi,%rdx,4)
	movq	64(%rax), %rdi
	movq	$0, (%rdi,%rdx,8)
	movq	-8(%rax), %rdi
	movl	(%rdi,%rdx,4), %edi
	addl	%edi, %edi
	movq	8(%rax), %rbx
	movl	%edi, (%rbx,%rdx,4)
	movq	16(%rax), %rdi
	movq	%rsi, (%rdi,%rdx,8)
	leaq	1(%rdx), %rdi
	movslq	(%r12), %rbx
	movq	%rdi, %rdx
	cmpq	%rbx, %rdi
	jl	LBB0_25
	jmp	LBB0_38
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	addq	$24, %r15
	movq	104(%rax,%r14), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_37
## %bb.33:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx), %rbx
	addq	$104, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	incq	%r14
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_37
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbx), %rcx
	cmpl	$0, (%rcx,%r14,4)
	je	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	movq	%r13, %rdi
	callq	_get_bits1
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movl	(%r12), %eax
	jmp	LBB0_36
LBB0_37:
	movq	(%r15), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	32(%rax,%r14), %rdx
	movq	40(%rax,%r14), %rcx
	movq	48(%rax,%r14), %r8
	movq	56(%rax,%r14), %r9
	movq	%r13, %rdi
	callq	_imc_calculate_coeffs
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
LBB0_38:
	xorl	%eax, %eax
	testb	$2, %r15b
	je	LBB0_50
## %bb.39:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	64(%rax,%r14), %r8
	movl	$5, (%r8)
	movq	72(%rax,%r14), %rcx
	movabsq	$21474836485, %rax              ## imm = 0x500000005
	movq	%rax, (%rcx)
	movl	$5, 8(%rcx)
	movq	_band_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$5, %edi
	testb	$1, %r15b
	jne	LBB0_41
## %bb.40:
	movq	(%r9), %rax
	xorl	%esi, %esi
	cmpl	$16, 4(%rax)
	setne	%sil
	leal	(%rsi,%rsi,4), %edi
LBB0_41:
	movl	%edi, 4(%r8)
	movslq	4(%rdx), %rbx
	movl	$15, %eax
	cmpl	8(%rdx), %ebx
	jge	LBB0_42
## %bb.54:
	movl	$15, %eax
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%rcx,%rbx,4)
	addl	%edi, %eax
	incq	%rbx
	movslq	8(%rdx), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_55
LBB0_42:
	movl	$5, %edi
	testb	$1, %r15b
	jne	LBB0_44
## %bb.43:
	movq	(%r9), %rdi
	xorl	%ebx, %ebx
	cmpl	$16, 8(%rdi)
	setne	%bl
	leal	(%rbx,%rbx,4), %edi
LBB0_44:
	movl	%edi, 8(%r8)
	movslq	8(%rdx), %rbx
	cmpl	12(%rdx), %ebx
	jge	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%rcx,%rbx,4)
	addl	%edi, %eax
	incq	%rbx
	movslq	12(%rdx), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_45
LBB0_46:
	movl	$5, %edi
	testb	$1, %r15b
	jne	LBB0_48
## %bb.47:
	movq	(%r9), %rsi
	xorl	%edi, %edi
	cmpl	$16, 12(%rsi)
	setne	%dil
	leal	(%rdi,%rdi,4), %edi
LBB0_48:
	movl	%edi, 12(%r8)
	movslq	12(%rdx), %rsi
	cmpl	16(%rdx), %esi
	jge	LBB0_50
	.p2align	4, 0x90
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%rcx,%rsi,4)
	addl	%edi, %eax
	incq	%rsi
	movslq	16(%rdx), %rbx
	cmpq	%rbx, %rsi
	jl	LBB0_49
LBB0_50:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_AV_CODEC_ID_IAC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_52
## %bb.51:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	40(%rcx,%r14), %rcx
	movslq	(%r12), %rdx
	cmpl	$1, -4(%rcx,%rdx,4)
	sbbl	$-1, %eax
	leal	16(%rax), %ecx
	testb	$2, %r15b
	cmovnel	%eax, %ecx
	movl	%ecx, %eax
LBB0_52:
	movl	$512, %ecx                      ## imm = 0x200
	subl	%eax, %ecx
	movslq	%ecx, %rbx
	movq	%r13, %rdi
	callq	_get_bits_count
	subq	%rax, %rbx
	movq	%r13, %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_bit_allocation
	testl	%eax, %eax
	js	LBB0_53
## %bb.56:
	testb	$1, %r15b
	jne	LBB0_57
## %bb.83:
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_imc_refine_bit_allocation
	movl	(%r12), %esi
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_64
LBB0_20:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
LBB0_53:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, (%r14)
	jmp	LBB0_82
LBB0_57:
	movl	(%r12), %esi
	testl	%esi, %esi
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	jle	LBB0_79
## %bb.58:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r11, %rax
	addq	$80, %rax
	leaq	-1(%rsi), %rdx
	movl	%esi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rdx
	jae	LBB0_60
## %bb.59:
	xorl	%edx, %edx
	jmp	LBB0_62
LBB0_60:
	movl	%esi, %edi
	andl	$-4, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	$0, (%rbx,%rdx,8)
	movq	(%rax), %rbx
	movq	$0, 8(%rbx,%rdx,8)
	movq	(%rax), %rbx
	movq	$0, 16(%rbx,%rdx,8)
	movq	(%rax), %rbx
	movq	$0, 24(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_61
LBB0_62:
	testq	%rcx, %rcx
	je	LBB0_64
	.p2align	4, 0x90
LBB0_63:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	movq	$0, (%rdi,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_63
LBB0_64:
	testl	%esi, %esi
	jle	LBB0_79
## %bb.65:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	96(%rdx,%r11), %rax
	movq	_band_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	addq	%r11, %rdx
	addq	$80, %rdx
	movl	%esi, %r8d
	movl	(%r9), %r12d
	xorl	%r10d, %r10d
	jmp	LBB0_70
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_70 Depth=1
	cmpq	%r8, %r10
	je	LBB0_79
LBB0_70:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_74 Depth 2
	movq	%r10, %rbx
	movl	%r12d, %ecx
	movq	$0, (%rax,%r10,8)
	incq	%r10
	movl	4(%r9,%rbx,4), %r12d
	cmpl	%r12d, %ecx
	jge	LBB0_69
## %bb.71:                              ##   in Loop: Header=BB0_70 Depth=1
	movslq	%r12d, %rdi
	movq	(%rdx), %rsi
	movslq	%ecx, %r15
	movq	%rdi, %r14
	subq	%r15, %r14
	movq	%r15, %rcx
	notq	%rcx
	addq	%rdi, %rcx
	jne	LBB0_73
## %bb.72:                              ##   in Loop: Header=BB0_70 Depth=1
	xorl	%edi, %edi
LBB0_66:                                ##   in Loop: Header=BB0_70 Depth=1
	testb	$1, %r14b
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	je	LBB0_69
## %bb.67:                              ##   in Loop: Header=BB0_70 Depth=1
	cmpq	$0, (%rsi,%r15,8)
	jne	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_70 Depth=1
	movq	-8(%rdx), %rsi
	movslq	(%rsi,%r15,4), %rcx
	addq	%rcx, %rdi
	movq	%rdi, (%rax,%rbx,8)
	jmp	LBB0_69
	.p2align	4, 0x90
LBB0_73:                                ##   in Loop: Header=BB0_70 Depth=1
	movq	%r14, %r11
	andq	$-2, %r11
	xorl	%edi, %edi
	jmp	LBB0_74
	.p2align	4, 0x90
LBB0_78:                                ##   in Loop: Header=BB0_74 Depth=2
	addq	$2, %r15
	addq	$-2, %r11
	je	LBB0_66
LBB0_74:                                ##   Parent Loop BB0_70 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rsi,%r15,8)
	je	LBB0_75
## %bb.76:                              ##   in Loop: Header=BB0_74 Depth=2
	cmpq	$0, 8(%rsi,%r15,8)
	jne	LBB0_78
	jmp	LBB0_77
	.p2align	4, 0x90
LBB0_75:                                ##   in Loop: Header=BB0_74 Depth=2
	movq	-8(%rdx), %rcx
	movslq	(%rcx,%r15,4), %rcx
	addq	%rcx, %rdi
	movq	%rdi, (%rax,%rbx,8)
	cmpq	$0, 8(%rsi,%r15,8)
	jne	LBB0_78
LBB0_77:                                ##   in Loop: Header=BB0_74 Depth=2
	movq	-8(%rdx), %rcx
	movslq	4(%rcx,%r15,4), %rcx
	addq	%rcx, %rdi
	movq	%rdi, (%rax,%rbx,8)
	jmp	LBB0_78
LBB0_79:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	88(%r12,%r11), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_imc_get_coeffs
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_inverse_quant_coeff
	testq	%rax, %rax
	js	LBB0_80
## %bb.81:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	80(%r12,%rax), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_imc_imdct256
	jmp	LBB0_82
LBB0_80:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	$1, (%r15)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame header check failed!\n"

L_.str.1:                               ## @.str.1
	.asciz	"got %X.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_BANDS,4,2                      ## @BANDS
	.comm	_COEFFS,4,2                     ## @COEFFS
	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.2:                               ## @.str.2
	.asciz	"scalefactor out of range\n"

	.comm	_band_tab,8,3                   ## @band_tab
	.comm	_AV_CODEC_ID_IAC,8,3            ## @AV_CODEC_ID_IAC
L_.str.3:                               ## @.str.3
	.asciz	"Bit allocations failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Inverse quantization of coefficients failed\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1

	.no_dead_strip	_imc_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imc_decode_block
_imc_decode_block:                      ; @imc_decode_block
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x24, [x1, #8]
	mov	x0, x1
	mov	w1, #9
	bl	_get_bits
	tst	w0, #0x18
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x19, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AV_LOG_ERROR@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	bl	_av_log
	ldr	w1, [x19]
	str	x22, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
LBB0_2:
	bl	_av_log
LBB0_3:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
LBB0_4:
	mov	x0, x23
	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
LBB0_5:
	sxtw	x25, w20
	mov	w8, #120
	smaddl	x19, w20, w8, x24
	mov	x0, x21
	mov	w1, #3
	bl	_get_bits
	mov	x22, x0
Lloh9:
	adrp	x26, _BANDS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BANDS@GOTPAGEOFF]
	tbnz	w0, #2, LBB0_7
; %bb.6:
	ldr	w8, [x19]
	cbnz	w8, LBB0_8
	b	LBB0_13
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
	mov	w9, #120
	madd	x9, x25, x9, x24
	ldr	x0, [x9, #8]
	lsl	x2, x8, #3
Lloh11:
	adrp	x1, l_.memset_pattern@PAGE
Lloh12:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_10:
Lloh13:
	adrp	x8, _COEFFS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COEFFS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.11:
	mov	w9, #120
	madd	x9, x25, x9, x24
	ldr	x0, [x9, #112]
	lsl	x1, x8, #3
	bl	_bzero
LBB0_12:
	str	wzr, [x19]
LBB0_13:
	stp	x19, x23, [sp, #16]             ; 16-byte Folded Spill
	mov	x0, x21
	bl	_get_bits1
	mov	x23, x0
	mov	w8, #120
	madd	x27, x25, x8, x24
	ldr	x2, [x27, #16]!
	mov	x0, x21
	mov	x1, x22
	tbnz	w22, #0, LBB0_16
; %bb.14:
	bl	_imc_read_level_coeffs
	ldr	x1, [x27]
	mov	w8, #120
	madd	x8, x25, x8, x24
	tbnz	w22, #2, LBB0_17
; %bb.15:
	ldr	x2, [x8, #8]
	ldp	x3, x4, [x8, #24]
	mov	x0, x21
	bl	_imc_decode_level_coefficients2
	b	LBB0_18
LBB0_16:
	bl	_imc_read_level_coeffs_raw
	ldr	x1, [x27]
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldp	x2, x3, [x8, #24]
	mov	x0, x21
	bl	_imc_decode_level_coefficients_raw
	b	LBB0_18
LBB0_17:
	ldp	x2, x3, [x8, #24]
	mov	x0, x21
	bl	_imc_decode_level_coefficients
LBB0_18:
	ldr	w8, [x26]
	mov	w9, #120
	madd	x28, x25, x9, x24
	ldr	x1, [x28, #24]!
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.19:
Lloh16:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	mov	x10, x1
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x9
	b.gt	LBB0_60
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_20
LBB0_22:
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldr	x0, [x8, #8]
	mov	w2, #128
	bl	_memcpy
	ldr	w12, [x26]
	tbnz	w22, #0, LBB0_29
; %bb.23:
	cmp	w12, #1
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_34
; %bb.24:
	mov	x10, #0
	ldr	x8, [x27]
Lloh19:
	adrp	x9, _band_tab@GOTPAGE
Lloh20:
	ldr	x9, [x9, _band_tab@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	mov	w11, #120
	madd	x11, x25, x11, x24
	add	x11, x11, #40
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	lsl	x12, x10, #2
	add	x10, x10, #1
	ldr	w13, [x9, x10, lsl #2]
	ldr	w14, [x9, x12]
	sub	w13, w13, w14
	ldr	x14, [x11]
	str	w13, [x14, x12]
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldrsw	x12, [x26]
	cmp	x10, x12
	b.ge	LBB0_34
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x10, lsl #2]
	cmp	w12, #16
	b.ne	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x12, [x11]
	str	wzr, [x12, x10, lsl #2]
	add	x10, x10, #1
	b	LBB0_26
LBB0_29:
	cmp	w12, #1
	b.lt	LBB0_32
; %bb.30:
	mov	x13, #0
	mov	w8, #120
	madd	x12, x25, x8, x24
	add	x8, x12, #40
	add	x9, x12, #104
	add	x10, x12, #32
	add	x11, x12, #48
	add	x12, x12, #56
Lloh22:
	adrp	x14, _band_tab@GOTPAGE
Lloh23:
	ldr	x14, [x14, _band_tab@GOTPAGEOFF]
	mov	x15, #4607182418800017408
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x14]
	lsl	x17, x13, #2
	lsl	x0, x13, #3
	add	x1, x13, #1
	add	x13, x16, x17
	ldp	w13, w16, [x13]
	sub	w13, w16, w13
	ldr	x16, [x8]
	str	w13, [x16, x17]
	ldr	x13, [x9]
	str	xzr, [x13, x0]
	ldr	x13, [x10]
	ldr	w13, [x13, x17]
	lsl	w13, w13, #1
	ldr	x16, [x11]
	str	w13, [x16, x17]
	ldr	x13, [x12]
	str	x15, [x13, x0]
	ldrsw	x16, [x26]
	mov	x13, x1
	cmp	x1, x16
	b.lt	LBB0_31
LBB0_32:
	tbnz	w22, #1, LBB0_40
LBB0_33:
	mov	w9, #0
	b	LBB0_54
LBB0_34:
	mov	w8, #120
	madd	x23, x25, x8, x24
	ldr	x0, [x23, #104]!
	lsl	w2, w12, #2
	mov	w1, #0
	bl	_memset
	ldr	w8, [x26]
	cmp	w8, #1
	b.le	LBB0_39
; %bb.35:
	mov	x20, #0
	mov	w9, #120
	madd	x9, x25, x9, x24
	add	x19, x9, #40
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	add	x20, x20, #1
	sub	w9, w8, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_39
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	w9, [x9, x20, lsl #2]
	cbz	w9, LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	x0, x21
	bl	_get_bits1
	ldr	x8, [x23]
	str	x0, [x8, x20, lsl #3]
	ldr	w8, [x26]
	b	LBB0_36
LBB0_39:
	ldr	x1, [x28]
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldp	x2, x3, [x8, #32]
	ldp	x4, x5, [x8, #48]
	mov	x0, x21
	bl	_imc_calculate_coeffs
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	tbz	w22, #1, LBB0_33
LBB0_40:
	mov	w8, #120
	madd	x8, x25, x8, x24
	mov	w12, #5
	ldp	x11, x8, [x8, #64]
	str	w12, [x11]
	movi.2s	v0, #5
	str	d0, [x8]
	str	w12, [x8, #8]
Lloh24:
	adrp	x9, _band_tab@GOTPAGE
Lloh25:
	ldr	x9, [x9, _band_tab@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x9]
	tbnz	w22, #0, LBB0_42
; %bb.41:
	ldr	x9, [x27]
	ldr	w9, [x9, #4]
	cmp	w9, #16
	csel	w12, wzr, w12, eq
LBB0_42:
	str	w12, [x11, #4]
	ldp	w13, w9, [x10, #4]
                                        ; kill: def $w13 killed $w13 def $x13
	sxtw	x13, w13
	cmp	w13, w9
	b.ge	LBB0_75
; %bb.43:
	mov	w9, #15
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	str	w12, [x8, x13, lsl #2]
	add	w9, w9, w12
	add	x13, x13, #1
	ldrsw	x14, [x10, #8]
	cmp	x13, x14
	b.lt	LBB0_44
; %bb.45:
	mov	w12, #5
	tbnz	w22, #0, LBB0_47
LBB0_46:
	ldr	x13, [x27]
	ldr	w13, [x13, #8]
	cmp	w13, #16
	csel	w12, wzr, w12, eq
LBB0_47:
	str	w12, [x11, #8]
	ldp	w13, w14, [x10, #8]
                                        ; kill: def $w13 killed $w13 def $x13
	sxtw	x13, w13
	cmp	w13, w14
	b.ge	LBB0_49
LBB0_48:                                ; =>This Inner Loop Header: Depth=1
	str	w12, [x8, x13, lsl #2]
	add	w9, w9, w12
	add	x13, x13, #1
	ldrsw	x14, [x10, #12]
	cmp	x13, x14
	b.lt	LBB0_48
LBB0_49:
	mov	w12, #5
	tbnz	w22, #0, LBB0_51
; %bb.50:
	ldr	x13, [x27]
	ldr	w13, [x13, #12]
	cmp	w13, #16
	csel	w12, wzr, w12, eq
LBB0_51:
	str	w12, [x11, #12]
	ldp	w11, w13, [x10, #12]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	cmp	w11, w13
	b.ge	LBB0_54
; %bb.52:
	ldp	x27, x20, [sp, #16]             ; 16-byte Folded Reload
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	str	w12, [x8, x11, lsl #2]
	add	w9, w9, w12
	add	x11, x11, #1
	ldrsw	x13, [x10, #16]
	cmp	x11, x13
	b.lt	LBB0_53
	b	LBB0_55
LBB0_54:
	ldp	x27, x20, [sp, #16]             ; 16-byte Folded Reload
LBB0_55:
	ldr	x8, [x20]
Lloh27:
	adrp	x10, _AV_CODEC_ID_IAC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _AV_CODEC_ID_IAC@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_57
; %bb.56:
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldr	x8, [x8, #40]
	ldrsw	x10, [x26]
	add	x8, x8, x10, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w8, #0
	cinc	w8, w9, ne
	add	w9, w8, #16
	tst	w22, #0x2
	csel	w9, w9, w8, eq
LBB0_57:
	mov	w8, #512
	sub	w8, w8, w9
	sxtw	x19, w8
	mov	x0, x21
	bl	_get_bits_count
	sub	x3, x19, x0
	mov	x0, x21
	mov	x1, x27
	mov	x2, x22
	mov	x4, x23
	bl	_bit_allocation
	tbnz	w0, #31, LBB0_61
; %bb.58:
	tbnz	w22, #0, LBB0_62
; %bb.59:
	mov	x0, x21
	mov	x1, x27
	bl	_imc_refine_bit_allocation
	ldr	w13, [x26]
	b	LBB0_65
LBB0_60:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.2@PAGE
Lloh34:
	add	x2, x2, l_.str.2@PAGEOFF
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_2
LBB0_61:
	mov	x23, x0
Lloh35:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w8, #1
	str	w8, [x27]
	b	LBB0_4
LBB0_62:
	ldr	w13, [x26]
	cmp	w13, #1
	b.lt	LBB0_73
; %bb.63:
	mov	x8, #0
	mov	w9, #120
	madd	x9, x25, x9, x24
	add	x9, x9, #80
	lsl	x10, x13, #3
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	str	xzr, [x11, x8]
	add	x8, x8, #8
	cmp	x10, x8
	b.ne	LBB0_64
LBB0_65:
	cmp	w13, #1
	b.lt	LBB0_73
; %bb.66:
	mov	x8, #0
	mov	w9, #120
	madd	x12, x25, x9, x24
Lloh40:
	adrp	x10, _band_tab@GOTPAGE
Lloh41:
	ldr	x10, [x10, _band_tab@GOTPAGEOFF]
	ldr	x9, [x12, #96]
Lloh42:
	ldr	x10, [x10]
	add	x11, x12, #80
	add	x12, x12, #72
	mov	w13, w13
	ldr	w1, [x10]
	b	LBB0_68
LBB0_67:                                ;   in Loop: Header=BB0_68 Depth=1
	mov	x1, x15
	mov	x8, x14
	cmp	x14, x13
	b.eq	LBB0_73
LBB0_68:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_71 Depth 2
	str	xzr, [x9, x8, lsl #3]
	add	x14, x8, #1
	ldr	w15, [x10, x14, lsl #2]
	cmp	w1, w15
	b.ge	LBB0_67
; %bb.69:                               ;   in Loop: Header=BB0_68 Depth=1
	mov	x16, #0
	sxtw	x17, w15
	ldr	x0, [x11]
	sxtw	x1, w1
	b	LBB0_71
LBB0_70:                                ;   in Loop: Header=BB0_71 Depth=2
	add	x1, x1, #1
	cmp	x17, x1
	b.eq	LBB0_67
LBB0_71:                                ;   Parent Loop BB0_68 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x0, x1, lsl #3]
	cbnz	x2, LBB0_70
; %bb.72:                               ;   in Loop: Header=BB0_71 Depth=2
	ldr	x2, [x12]
	ldrsw	x2, [x2, x1, lsl #2]
	add	x16, x16, x2
	str	x16, [x9, x8, lsl #3]
	b	LBB0_70
LBB0_73:
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldr	x0, [x8, #88]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	bl	_imc_get_coeffs
	mov	x0, x21
	mov	x1, x27
	mov	x2, x22
	bl	_inverse_quant_coeff
	tbnz	x0, #63, LBB0_76
; %bb.74:
	mov	w8, #120
	madd	x8, x25, x8, x24
	ldr	x0, [x8, #80]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	x1, x27
	bl	_imc_imdct256
	mov	w23, #0
	b	LBB0_4
LBB0_75:
	mov	w9, #15
	mov	w12, #5
	tbz	w22, #0, LBB0_46
	b	LBB0_47
LBB0_76:
Lloh43:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.4@PAGE
Lloh47:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w8, #1
	str	w8, [x27]
	b	LBB0_3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame header check failed!\n"

l_.str.1:                               ; @.str.1
	.asciz	"got %X.\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_BANDS,4,2                      ; @BANDS
	.comm	_COEFFS,4,2                     ; @COEFFS
	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.2:                               ; @.str.2
	.asciz	"scalefactor out of range\n"

	.comm	_band_tab,8,3                   ; @band_tab
	.comm	_AV_CODEC_ID_IAC,8,3            ; @AV_CODEC_ID_IAC
l_.str.3:                               ; @.str.3
	.asciz	"Bit allocations failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Inverse quantization of coefficients failed\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.quad	0x3ff0000000000000              ; double 1
	.quad	0x3ff0000000000000              ; double 1

	.no_dead_strip	_imc_decode_block
.subsections_via_symbols
