	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_high_coeffs
_read_high_coeffs:                      ## @read_high_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, -72(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdi), %rdi
	leaq	4(%rdi), %r12
	callq	_bytestream2_get_bytes_left
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_37
## %bb.1:
	movl	%ebx, %edi
	sarl	$31, %edi
	xorl	%ebx, %edi
	je	LBB0_2
## %bb.9:
	callq	_ff_clz
	movl	$33, %ecx
	subl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	$17, %ecx
	jb	LBB0_3
LBB0_10:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_37
LBB0_2:
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_36
## %bb.4:
	movl	$25, %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	sarl	%eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movslq	32(%rbp), %r8
	movl	$3, %edi
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%r9d, %r9d
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	cmpl	$65535, %r10d                   ## imm = 0xFFFF
	setb	%cl
	xorl	%eax, %eax
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	movl	%ecx, %r13d
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	jae	LBB0_36
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	sarl	$8, %edi
	cmpl	$-3, %edi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addl	$3, %edi
	callq	_ff_clz
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-88(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	callq	_get_unary
	cmpl	%r15d, %eax
	jae	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_show_bits
	movq	%rbx, %rdi
	callq	_skip_bits
                                        ## implicit-def: $eax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_get_bits
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ecx, %ecx
	movl	$0, %edx
	addl	%r13d, %eax
	movl	24(%rbp), %ebx
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %esi
	andl	$1, %esi
	leal	1(%rax), %edi
	sarl	%edi
	imull	-72(%rbp), %edi                 ## 4-byte Folded Reload
	addl	-84(%rbp), %edi                 ## 4-byte Folded Reload
	movl	%esi, %edx
	negl	%edx
	xorl	%edi, %edx
	addl	%esi, %edx
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r9d
	movl	%r12d, %esi
	incl	%r12d
	cmpl	%ebx, %r12d
	cmovel	%ecx, %r12d
	movl	$0, %edi
	cmoveq	%r8, %rdi
	movl	%edx, (%r14,%rsi,4)
	leaq	(%r14,%rdi,4), %r14
	movl	16(%rbp), %esi
	imull	%esi, %eax
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%edi, %edx
	imull	%esi, %edx
	sarl	$8, %edx
	subl	%edx, %eax
	addl	%edi, %eax
	cmpl	$63, %eax
	jg	LBB0_35
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	jae	LBB0_35
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	leal	8(%rax), %r13d
	sarl	$5, %r13d
	testl	%eax, %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_ff_clz
	movl	%eax, %r15d
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$32, %r15d
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	(%r15,%r13), %esi
	addl	$-24, %esi
	movl	$16383, %edi                    ## imm = 0x3FFF
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	callq	_av_mod_uintp2
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_get_unary
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$7, %eax
	ja	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	%r13d, %r15d
	leal	-50(%r15), %ecx
	cmpl	$-26, %ecx
	jbe	LBB0_10
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_show_bits
	cmpl	$2, %eax
	movl	$0, %ebx
	jl	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %r15
	callq	_skip_bits
	movq	-96(%rbp), %r10                 ## 8-byte Reload
	imull	-64(%rbp), %r10d                ## 4-byte Folded Reload
	addl	%r15d, %r10d
	decl	%r10d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_get_bits1
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	8(,%rcx,8), %esi
	movq	%rbx, %rdi
	callq	_get_bits
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx,8), %r10d
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	$-25, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skip_bits
	movq	-96(%rbp), %r10                 ## 8-byte Reload
	imull	-64(%rbp), %r10d                ## 4-byte Folded Reload
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$65535, %r10d                   ## imm = 0xFFFF
	movl	24(%rbp), %edi
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	ja	LBB0_10
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	addl	%r10d, %r9d
	cmpl	-44(%rbp), %r9d                 ## 4-byte Folded Reload
	ja	LBB0_10
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r10d, %r10d
	je	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1, %r10d
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %eax
	jmp	LBB0_32
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r10d, %ecx
	andl	$-2, %ecx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %eax
	incl	%r12d
	cmpl	%edi, %r12d
	cmovel	%ebx, %r12d
	movl	$0, %edx
	cmoveq	%r8, %rdx
	movl	$0, (%r14,%rax,4)
	leaq	(%r14,%rdx,4), %rdx
	leal	1(%r12), %eax
	movl	$0, (%rdx,%r12,4)
	cmpl	%edi, %eax
	cmovel	%ebx, %eax
	movl	$0, %esi
	cmoveq	%r8, %rsi
	leaq	(%rdx,%rsi,4), %r14
	movl	%eax, %r12d
	addl	$-2, %ecx
	jne	LBB0_31
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	testb	$1, %r10b
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	incl	%eax
	movl	$0, (%r14,%rcx,4)
	cmpl	%edi, %eax
	cmovel	%ebx, %eax
	movl	$0, %ecx
	cmoveq	%r8, %rcx
	leaq	(%r14,%rcx,4), %r14
	movl	%eax, %r12d
	jmp	LBB0_34
LBB0_36:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_align_get_bits
	movq	%rbx, %rdi
	callq	_get_bits_count
	sarl	$3, %eax
LBB0_37:
	addq	$72, %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_high_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_high_coeffs
_read_high_coeffs:                      ; @read_high_coeffs
	.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	x19, x7
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	mov	x25, x5
	stp	w3, w4, [sp, #16]               ; 8-byte Folded Spill
	mov	x24, x2
	mov	x22, x1
	ldr	x0, [x0]
	add	x21, x0, #4
	bl	_bytestream2_get_bytes_left
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_30
; %bb.1:
	eor	w0, w25, w25, asr #31
	cbz	w0, LBB0_4
; %bb.2:
	bl	_ff_clz
	mov	w8, #33
	sub	w8, w8, w0
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w8, #17
	b.lo	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_4:
	mov	w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_5:
	ldr	w25, [sp, #16]                  ; 4-byte Folded Reload
	cbz	w25, LBB0_29
; %bb.6:
	mov	w22, #0
	mov	w20, #0
	mov	w26, #0
	ldr	w8, [x29, #16]
	mov	w9, #25
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	sub	w9, w9, w10
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	asr	w9, w9, #1
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
	sxtw	x23, w8
	mov	w27, #3
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
	cmp	w26, w25
	b.hs	LBB0_29
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	asr	w8, w27, #8
	cmn	w8, #3
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w0, w8, #3
	bl	_ff_clz
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #0
	ldr	w28, [sp, #24]                  ; 4-byte Folded Reload
	mov	x2, x28
	bl	_get_unary
	cmp	w0, w28
	b.hs	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_show_bits
	mov	x0, x21
	bl	_skip_bits
                                        ; implicit-def: $w0
	adds	w8, w0, w22
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	and	w9, w8, #0x1
	add	w10, w8, #1
	asr	w10, w10, #1
	ldr	w11, [sp, #20]                  ; 4-byte Folded Reload
	ldr	w12, [sp, #8]                   ; 4-byte Folded Reload
	madd	w10, w10, w11, w12
	neg	w11, w9
	eor	w10, w10, w11
	add	w9, w10, w9
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_get_bits
	adds	w8, w0, w22
	b.ne	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w9, #0
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w26, w26, #1
	add	w10, w20, #1
	str	w9, [x24, w20, uxtw #2]
	cmp	w10, w19
	csinc	w20, wzr, w20, eq
	csel	x9, x23, xzr, eq
	add	x24, x24, x9, lsl #2
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	mul	w8, w8, w9
	mul	w9, w27, w9
	sub	w8, w8, w9, asr #8
	add	w27, w8, w27
	cmp	w27, #63
	ccmp	w26, w25, #2, le
	b.hs	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	cbz	w27, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x27
	bl	_ff_clz
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #32
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w27, #8
	asr	w8, w8, #5
	add	w27, w0, w8
	sub	w28, w27, #24
	mov	w0, #16383
	mov	x1, x28
	bl	_av_mod_uintp2
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_get_unary
	cmp	w0, #7
	b.hi	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w27, #50
	cmn	w8, #26
	b.ls	LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x0
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	mov	x0, x21
	mov	x1, x28
	bl	_show_bits
	mov	x22, x0
	cmp	w22, #2
	b.lt	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x28
	bl	_skip_bits
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	madd	w8, w25, w8, w22
	sub	w8, w8, #1
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_get_bits1
	cmp	x0, #0
	mov	w8, #8
	mov	w9, #16
	csel	w1, w8, w9, eq
	mov	x0, x21
	bl	_get_bits
	add	w8, w0, w22, lsl #3
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w1, w27, #25
	mov	x0, x21
	bl	_skip_bits
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	mul	w8, w25, w8
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	lsr	w9, w8, #16
	cmp	w9, #0
	add	w26, w8, w26
	ldr	w25, [sp, #16]                  ; 4-byte Folded Reload
	ccmp	w26, w25, #2, eq
	b.hi	LBB0_3
; %bb.26:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x8
	cbz	w8, LBB0_28
LBB0_27:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x24, w20, uxtw #2]
	add	w10, w20, #1
	cmp	w10, w19
	csinc	w20, wzr, w20, eq
	csel	x10, x23, xzr, eq
	add	x24, x24, x10, lsl #2
	subs	w9, w9, #1
	b.ne	LBB0_27
LBB0_28:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w27, #0
	mov	w9, #65535
	cmp	w8, w9
	cset	w22, lo
	cmp	w26, w25
	b.lo	LBB0_8
LBB0_29:
	mov	x0, x21
	bl	_align_get_bits
	mov	x0, x21
	bl	_get_bits_count
	asr	w0, w0, #3
LBB0_30:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_high_coeffs
.subsections_via_symbols
