	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlc_decode_block
_vlc_decode_block:                      ## @vlc_decode_block
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	*32(%rbx)
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	shll	$3, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	xorl	%eax, %eax
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	$2, %r14d
	jb	LBB0_12
## %bb.1:
	movl	$1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	imulq	$1098413215, %rax, %rax         ## imm = 0x4178749F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$40, %rax
	addl	%ecx, %eax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rcx
	movl	%r14d, %edx
	movq	(%rcx,%rdx,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	incl	%r14d
	movl	%r14d, %r12d
	cmpl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	jae	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %edx
	movl	24(%rbx), %esi
	movq	%r13, %rdi
	movl	$3, %ecx
	callq	_get_vlc2
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r15d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %r14d
	andl	$15, %r14d
	addl	%r12d, %r14d
	cmpl	$64, %r14d
	jae	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$4, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_get_bits
	movq	_vlcdec_lookup@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r15d, %rdx
	movq	(%rcx,%rdx,8), %rcx
	cltq
	movl	(%rcx,%rax,4), %eax
	cmpl	$2, %r14d
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	shll	$4, %eax
	jmp	LBB0_10
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movl	%r15d, %eax
LBB0_12:
	addq	$24, %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
	.comm	_vlcdec_lookup,8,3              ## @vlcdec_lookup
	.no_dead_strip	_vlc_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlc_decode_block
_vlc_decode_block:                      ; @vlc_decode_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x8, [x0, #32]
	mov	x0, x22
	blr	x8
	add	x23, x21, #16
	mov	x0, x23
	mov	w1, #8
	bl	_get_bits
	lsl	w8, w0, #3
	str	w8, [x22]
	cmp	w20, #2
	b.lo	LBB0_6
; %bb.1:
	mov	w24, #1
Lloh0:
	adrp	x25, _vlcdec_lookup@GOTPAGE
Lloh1:
	ldr	x25, [x25, _vlcdec_lookup@GOTPAGEOFF]
	mov	w26, #29855
	movk	w26, #16760, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x21, #20]
	mov	x0, x23
	mov	w3, #3
	bl	_get_vlc2
	cbz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w0, #0xf
	add	w27, w8, w24
	cmp	w27, #64
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w24, w0, #4
	mov	x0, x23
	mov	x1, x24
	bl	_get_bits
	ldr	x8, [x25]
	ldr	x8, [x8, w24, sxtw #3]
	ldr	w8, [x8, w0, sxtw #2]
	mul	w9, w8, w19
	smull	x9, w9, w26
	lsr	x10, x9, #63
	asr	x9, x9, #40
	add	w9, w9, w10
	lsl	w8, w8, #4
	cmp	w27, #2
	csel	w8, w9, w8, hi
	ldr	x9, [x21, #8]
	ldr	x9, [x9, w27, uxtw #3]
	str	w8, [x22, x9, lsl #2]
	add	w24, w27, #1
	cmp	w24, w20
	b.lo	LBB0_2
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 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	_vlcdec_lookup,8,3              ; @vlcdec_lookup
	.no_dead_strip	_vlc_decode_block
.subsections_via_symbols
