	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qdm2_get_vlc
_qdm2_get_vlc:                          ## @qdm2_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	callq	_get_vlc2
	subl	$1, %eax
	jae	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.3:
	cmpl	$59, %eax
	jle	LBB0_4
## %bb.7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%eax, %ecx
	callq	_av_log
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_vlc_stage3_values@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %rdx
	movl	(%rcx,%rdx,4), %r14d
	testl	$-4, %eax
	jle	LBB0_5
## %bb.6:
	sarl	$2, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_bits
	addl	%r14d, %eax
	jmp	LBB0_8
LBB0_5:
	movl	%r14d, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	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	"value %d in qdm2_get_vlc too large\n"

	.comm	_vlc_stage3_values,8,3          ## @vlc_stage3_values
	.no_dead_strip	_qdm2_get_vlc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qdm2_get_vlc
_qdm2_get_vlc:                          ; @qdm2_get_vlc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldp	w2, w8, [x1]
	mov	x1, x8
	bl	_get_vlc2
	cbz	w0, LBB0_2
; %bb.1:
	sub	w3, w0, #1
	cbnz	w20, LBB0_3
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	add	w1, w0, #1
	mov	x0, x19
	bl	_get_bits
	mov	x3, x0
	cbz	w20, LBB0_8
LBB0_3:
	cmp	w3, #59
	b.le	LBB0_5
; %bb.4:
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
	mov	x0, #0
	bl	_av_log
	mov	w3, #0
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _vlc_stage3_values@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vlc_stage3_values@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w20, [x8, w3, sxtw #2]
	and	w8, w3, #0xfffffffc
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.6:
	asr	w1, w3, #2
	mov	x0, x19
	bl	_get_bits
	add	w3, w0, w20
	b	LBB0_8
LBB0_7:
	mov	x3, x20
LBB0_8:
	mov	x0, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value %d in qdm2_get_vlc too large\n"

	.comm	_vlc_stage3_values,8,3          ; @vlc_stage3_values
	.no_dead_strip	_qdm2_get_vlc
.subsections_via_symbols
