	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_low_coeffs
_read_low_coeffs:                       ## @read_low_coeffs
	.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
	movq	(%rdi), %r15
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_29
## %bb.1:
	movq	%rsi, %r13
	movslq	%r8d, %r8
	movl	$3, %edi
	xorl	%esi, %esi
	xorl	%r9d, %r9d
	xorl	%r12d, %r12d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	cmpl	-52(%rbp), %r9d                 ## 4-byte Folded Reload
	jb	LBB0_4
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%r14d, %r9d
	xorl	%esi, %esi
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	setl	%sil
	xorl	%edi, %edi
	cmpl	-52(%rbp), %r9d                 ## 4-byte Folded Reload
	jae	LBB0_29
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	sarl	$8, %edi
	addl	$3, %edi
	callq	_ff_clz
	xorl	$31, %eax
	movl	%eax, %edi
	movl	$14, %esi
	callq	_FFMIN
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_get_unary
	movq	%r15, %r14
	cmpl	$7, %eax
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_show_bits
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$1, %eax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %esi
	decl	%esi
	movq	%r14, %rdi
	callq	_skip_bits
	movl	$-1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	notl	%eax
	imull	%eax, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %r14
	callq	_skip_bits
	movl	$-1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	notl	%eax
	imull	%eax, %r15d
	addl	%r14d, %r15d
	decl	%r15d
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	(%r15,%rdx), %eax
	movl	%eax, %ecx
	andl	$1, %ecx
	negl	%ecx
	orl	$1, %ecx
	addl	%r15d, %edx
	incl	%edx
	sarl	%edx
	imull	%ecx, %edx
	movl	%r12d, %ecx
	incl	%r12d
	movl	%edx, (%r13,%rcx,4)
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	incl	%r9d
	xorl	%esi, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r12d
	movl	$0, %edx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	cmoveq	%r8, %rdx
	cmovel	%esi, %r12d
	leaq	(%r13,%rdx,4), %r13
	imull	$120, %eax, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	imull	$120, %edi, %edx
	sarl	$8, %edx
	subl	%edx, %edi
	addl	%eax, %edi
	movslq	%edi, %rax
	movabsq	$4611686018427387840, %rdx      ## imm = 0x3FFFFFFFFFFFFFC0
	testq	%rdx, %rax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-52(%rbp), %r9d                 ## 4-byte Folded Reload
	jae	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	8(%rdi), %ebx
	sarl	$5, %ebx
	testl	%edi, %edi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ff_clz
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$32, %eax
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	(%rax,%rbx), %esi
	addl	$-24, %esi
	movl	$16383, %edi                    ## imm = 0x3FFF
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	callq	_av_mod_uintp2
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_get_unary
	cmpl	$8, %eax
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r14d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_show_bits
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	jl	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rbx
	callq	_skip_bits
	imull	-72(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%ebx, %r14d
	decl	%r14d
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	addl	%ebx, %esi
	addl	$-25, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skip_bits
	imull	-72(%rbp), %r14d                ## 4-byte Folded Reload
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%ebx, %ebx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	%r9d, %eax
	cmpl	%eax, %r14d
	ja	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %r14d
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %eax
	jmp	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	andl	$-2, %edi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	incl	%r12d
	movl	$0, (%r13,%rax,4)
	cmpl	%ecx, %r12d
	movl	$0, %eax
	cmoveq	%r8, %rax
	leaq	(%r13,%rax,4), %rdx
	cmovel	%ebx, %r12d
	leal	1(%r12), %eax
	movl	$0, (%rdx,%r12,4)
	cmpl	%ecx, %eax
	movl	$0, %esi
	cmoveq	%r8, %rsi
	leaq	(%rdx,%rsi,4), %r13
	cmovel	%ebx, %eax
	movl	%eax, %r12d
	addl	$-2, %edi
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r12d
	testb	$1, %r14b
	je	LBB0_2
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %esi
	incl	%eax
	cmpl	%ecx, %eax
	movl	$0, %edx
	cmoveq	%r8, %rdx
	movl	$0, (%r13,%rsi,4)
	leaq	(%r13,%rdx,4), %r13
	cmovel	%ebx, %eax
	movl	%eax, %r12d
	jmp	LBB0_2
LBB0_29:
	movq	%r15, %rdi
	callq	_align_get_bits
	movq	%r15, %rdi
	callq	_get_bits_count
	sarl	$3, %eax
	jmp	LBB0_31
LBB0_30:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_read_low_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_low_coeffs
_read_low_coeffs:                       ; @read_low_coeffs
	.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 $w4 killed $w4 def $x4
	ldr	x26, [x0]
	cbz	w2, LBB0_25
; %bb.1:
	mov	x20, x3
	mov	x27, x2
	mov	x22, x1
	mov	w9, #0
	mov	w19, #0
	mov	w28, #0
	sxtw	x21, w4
	mov	w23, #3
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	add	w19, w0, w19
	mov	w8, #65535
	cmp	w0, w8
	cset	w9, lt
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, w27
	b.hs	LBB0_25
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	asr	w8, w23, #8
	add	w0, w8, #3
	bl	_ff_clz
	eor	w0, w0, #0x1f
	mov	w1, #14
	bl	_FFMIN
	mov	x25, x0
	mov	x0, x26
	mov	w1, #0
	mov	w2, #8
	bl	_get_unary
	cmp	w0, #7
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	mov	x0, x26
	mov	x1, x25
	bl	_show_bits
	mov	x27, x26
	mov	w8, #-1
	lsl	w19, w8, w25
	cmp	w0, #1
	b.gt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w25, #1
	mov	x0, x27
	bl	_skip_bits
	mvn	w8, w19
	mul	w0, w24, w8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #16
	bl	_get_bits
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x27
	mov	x1, x25
	bl	_skip_bits
	mvn	w8, w19
	madd	w8, w24, w8, w26
	sub	w0, w8, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x27
	ldp	w27, w19, [sp, #4]              ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	w8, w0, w8
	and	w9, w8, #0x1
	neg	w9, w9
	orr	w9, w9, #0x1
	add	w10, w8, #1
	asr	w10, w10, #1
	mul	w9, w9, w10
	str	w9, [x22, w28, uxtw #2]
	add	w9, w28, #1
	add	w19, w19, #1
	cmp	w9, w20
	csel	x9, x21, xzr, eq
	add	x22, x22, x9, lsl #2
	csinc	w28, wzr, w28, eq
	mov	w10, #120
	mul	w9, w23, w10
	sub	w9, w23, w9, asr #8
	madd	w23, w8, w10, w9
	sxtw	x8, w23
	mov	w9, #0
	tst	x8, #0x3fffffffffffffc0
	b.ne	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, w27
	b.hs	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	cbz	w23, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ff_clz
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #32
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w23, #8
	asr	w8, w8, #5
	add	w19, w0, w8
	sub	w24, w19, #24
	mov	w0, #16383
	mov	x1, x24
	bl	_av_mod_uintp2
	mov	x23, x0
	mov	x0, x26
	mov	w1, #0
	mov	w2, #8
	bl	_get_unary
	cmp	w0, #8
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	w1, #16
	bl	_get_bits
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	mov	x0, x26
	mov	x1, x24
	bl	_show_bits
	mov	x27, x26
	cmp	w0, #2
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x27
	mov	x1, x24
	bl	_skip_bits
	madd	w8, w25, w23, w26
	sub	w0, w8, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w19, #25
	mov	x0, x27
	bl	_skip_bits
	mul	w0, w25, w23
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x27
	ldr	w27, [sp, #4]                   ; 4-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w19, [sp, #8]                   ; 4-byte Folded Reload
	sub	w8, w27, w19
	cmp	w0, w8
	b.hi	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x0
LBB0_24:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x22, w28, uxtw #2]
	add	w9, w28, #1
	cmp	w9, w20
	csel	x9, x21, xzr, eq
	add	x22, x22, x9, lsl #2
	csinc	w28, wzr, w28, eq
	subs	w8, w8, #1
	b.ne	LBB0_24
	b	LBB0_2
LBB0_25:
	mov	x0, x26
	bl	_align_get_bits
	mov	x0, x26
	bl	_get_bits_count
	asr	w0, w0, #3
	b	LBB0_27
LBB0_26:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_27:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_low_coeffs
.subsections_via_symbols
