	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qdmc_get_vlc
_qdmc_get_vlc:                          ## @qdmc_get_vlc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	decl	%ebx
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%r14, %rdi
	callq	_get_bits
	movl	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_9
LBB0_7:
	movq	_code_prefix@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jge	LBB0_1
## %bb.8:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r15d
	sarl	$2, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_get_bitsz
	movl	%eax, %ebx
	addl	%r15d, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_code_prefix,8,3                ## @code_prefix
	.no_dead_strip	_qdmc_get_vlc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdmc_get_vlc
_qdmc_get_vlc:                          ; @qdmc_get_vlc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_7
; %bb.1:
	ldp	w2, w1, [x21]
	mov	x0, x19
	mov	w3, #1
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_7
; %bb.2:
	cbz	w0, LBB0_4
; %bb.3:
	sub	w21, w0, #1
	cbnz	w20, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	add	w1, w0, #1
	mov	x0, x19
	bl	_get_bits
	mov	x21, x0
	cbz	w20, LBB0_8
LBB0_5:
Lloh0:
	adrp	x20, _code_prefix@GOTPAGE
Lloh1:
	ldr	x20, [x20, _code_prefix@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_FF_ARRAY_ELEMS
	cmp	w21, w0
	b.ge	LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	w20, [x8, w21, sxtw #2]
	asr	w1, w21, #2
	mov	x0, x19
	bl	_get_bitsz
	add	w21, w0, w20
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_code_prefix,8,3                ; @code_prefix
	.no_dead_strip	_qdmc_get_vlc
.subsections_via_symbols
