	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_envelope
_decode_envelope:                       ## @decode_envelope
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	16(%rdi), %r12
	movq	%r12, %rdi
	movl	$6, %esi
	callq	_get_bits
	addl	$-6, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	cmpl	$2, (%r15)
	jl	LBB0_6
## %bb.1:
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r15), %rax
	movl	%r13d, %ecx
	subl	%eax, %ecx
	addq	%rax, %rax
	movl	%r13d, %edx
	shrl	%edx
	cmpq	$2, %r13
	movl	$1, %esi
	cmovbl	%esi, %edx
	cmpq	%rax, %r13
	cmovgel	%ecx, %edx
	cmpl	$13, %edx
	movl	$13, %eax
	cmovgel	%eax, %edx
	movq	8(%r14), %rax
	movslq	%edx, %rcx
	movl	-8(%rax,%rcx,8), %edx
	movl	-4(%rax,%rcx,8), %esi
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
                                        ## kill: def $eax killed $eax def $rax
	movl	-4(%rbx,%r13,4), %edx
	leal	(%rdx,%rax), %ecx
	addl	$-12, %ecx
	movl	%ecx, (%rbx,%r13,4)
	addl	%edx, %eax
	addl	$-76, %eax
	cmpl	$-128, %eax
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movl	(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %r8d
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid quantizer %d at position %d, outside [-63, 63] range\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_envelope
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_envelope
_decode_envelope:                       ; @decode_envelope
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #16
	mov	x0, x22
	mov	w1, #6
	bl	_get_bits
	sub	w8, w0, #6
	str	w8, [x20]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	w24, #13
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x23, #1
	ldrsw	x8, [x21, #4]
	sub	w9, w23, w8
	ubfx	x10, x25, #1, #31
	cmp	x25, #1
	csinc	w10, w10, wzr, hi
	cmp	x25, x8, lsl #1
	csinc	w8, w10, w9, lt
	cmp	w8, #13
	csel	w8, w8, w24, lt
	ldr	x9, [x19, #8]
	add	x8, x9, w8, sxtw #3
	ldp	w2, w1, [x8, #-8]
	mov	x0, x22
	mov	w3, #2
	bl	_get_vlc2
	add	x8, x20, x23, lsl #2
	ldr	w9, [x8]
	add	w9, w9, w0
	sub	w3, w9, #12
	str	w3, [x8, #4]
	sub	w8, w9, #76
	cmn	w8, #128
	b.ls	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x21]
	add	x9, x23, #2
	mov	x23, x25
	cmp	x9, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	add	w4, w23, #1
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid quantizer %d at position %d, outside [-63, 63] range\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_decode_envelope
.subsections_via_symbols
