	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rv40_decode_intra_types
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rv40_decode_intra_types:               ## @rv40_decode_intra_types
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%ecx, %ecx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_aic_top_vlc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AIC_TOP_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %ecx
	shrl	$2, %ecx
	movl	%eax, %edx
	shrl	%edx
	movd	%ecx, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %eax, %xmm0
	addl	%eax, %eax
	pinsrd	$3, %eax, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%r14)
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movslq	(%r13), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %r14
	cmpl	$4, %ecx
	je	LBB0_27
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	testl	%ecx, %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_3
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	callq	_get_bits1
	addl	%eax, %eax
	xorl	$2, %eax
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	%eax, (%r14)
	addq	$4, %r14
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=2
	leal	1(%r12), %eax
	cmpl	$3, %r12d
	movl	%eax, %r12d
	jge	LBB0_26
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movslq	(%r13), %rsi
	leaq	(,%rsi,4), %rax
	negq	%rax
	movl	(%r14,%rax), %r8d
	movl	-4(%r14), %r9d
	movq	_MODE2_PATTERNS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %ecx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	%r8d, %edx
	shll	$4, %edx
	addl	(%r14,%rcx,4), %edx
	movl	%r9d, %edi
	shll	$8, %edi
	addl	%edx, %edi
	movq	_rv40_aic_table_index@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpl	(%rbx), %edi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movb	$1, %al
	xorl	%edx, %edx
	cmpl	$2, %r12d
	jle	LBB0_16
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	leaq	-1(%rax), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rsi, %rcx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=3
	leaq	1(%rsi), %rdx
	cmpl	4(%rbx,%rsi,4), %edi
	movq	%rdx, %rsi
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%rax, %rdx
	setb	%al
	cmpl	$2, %r12d
	jg	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=2
	testb	%al, %al
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_aic_mode2_vlc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	_AIC_MODE2_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %ecx
	callq	_get_vlc2
	cltq
	imulq	$954437177, %rax, %rcx          ## imm = 0x38E38E39
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$33, %rcx
	addl	%edx, %ecx
	movl	%ecx, (%r14)
	leal	(%rcx,%rcx,8), %ecx
	subl	%ecx, %eax
	movl	%eax, 4(%r14)
	addq	$8, %r14
	incl	%r12d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %r8d
	je	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$-1, %r9d
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_aic_mode1_vlc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	(%r9,%r9,4), %ecx
	leal	(%r8,%rcx,2), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_AIC_MODE1_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$2, %r9d
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=2
	testl	%r9d, %r9d
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=2
	xorl	%eax, %eax
	cmpl	$-1, %r9d
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$1, %r8d
	jg	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	callq	_get_bits1
	xorl	$1, %eax
	jmp	LBB0_24
LBB0_27:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aic_top_vlc,4,2                ## @aic_top_vlc
	.comm	_AIC_TOP_BITS,4,2               ## @AIC_TOP_BITS
	.comm	_MODE2_PATTERNS_NUM,4,2         ## @MODE2_PATTERNS_NUM
	.comm	_rv40_aic_table_index,8,3       ## @rv40_aic_table_index
	.comm	_aic_mode2_vlc,8,3              ## @aic_mode2_vlc
	.comm	_AIC_MODE2_BITS,4,2             ## @AIC_MODE2_BITS
	.comm	_aic_mode1_vlc,8,3              ## @aic_mode1_vlc
	.comm	_AIC_MODE1_BITS,4,2             ## @AIC_MODE1_BITS
	.no_dead_strip	_rv40_decode_intra_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rv40_decode_intra_types
lCPI0_0:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rv40_decode_intra_types:               ; @rv40_decode_intra_types
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w25, #1
	movi.2s	v9, #2
Lloh2:
	adrp	x26, _MODE2_PATTERNS_NUM@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MODE2_PATTERNS_NUM@GOTPAGEOFF]
Lloh4:
	adrp	x27, _rv40_aic_table_index@GOTPAGE
Lloh5:
	ldr	x27, [x27, _rv40_aic_table_index@GOTPAGEOFF]
Lloh6:
	adrp	x24, _AIC_MODE1_BITS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AIC_MODE1_BITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _aic_top_vlc@GOTPAGE
Lloh9:
	ldr	x8, [x8, _aic_top_vlc@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AIC_TOP_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AIC_TOP_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_get_vlc2
	dup.2s	v0, w0
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	str	d0, [x23]
	and	w8, w0, #0x2
	ubfiz	w9, w0, #1, #1
	stp	w8, w9, [x23, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	ldrsw	x8, [x21]
	add	x23, x23, x8, lsl #2
	cmp	w22, #4
	b.eq	LBB0_26
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	cbz	w22, LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	mov	x19, x23
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
Lloh14:
	adrp	x10, _aic_mode1_vlc@GOTPAGE
Lloh15:
	ldr	x10, [x10, _aic_mode1_vlc@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	mov	w11, #10
	madd	w8, w9, w11, w8
	ldr	w1, [x10, w8, sxtw #2]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #1
	bl	_get_vlc2
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	w0, [x19], #4
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w8, w28, #1
	cmp	w28, #3
	mov	x28, x8
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	w10, [x21]
	neg	w8, w10
	ldr	w8, [x19, w8, sxtw #2]
	ldur	w9, [x19, #-4]
	ldr	w11, [x26]
	cmp	w11, #1
	b.lt	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	sub	w10, w25, w10
	ldr	w10, [x19, w10, sxtw #2]
	add	w10, w10, w8, lsl #4
	add	w12, w10, w9, lsl #8
	ldr	x13, [x27]
	ldr	w10, [x13]
	cmp	w12, w10
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x10, #0
	mov	w11, #1
	cmp	w28, #2
	b.le	LBB0_16
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x10, #0
	add	x13, x13, #4
	sub	x14, x11, #1
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x14, x10
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w15, [x13, x10, lsl #2]
	add	x10, x10, #1
	cmp	w12, w15
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	x10, x11
	cset	w11, lo
	cmp	w28, #2
	b.gt	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=2
	cbz	w11, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=2
Lloh17:
	adrp	x8, _aic_mode2_vlc@GOTPAGE
Lloh18:
	ldr	x8, [x8, _aic_mode2_vlc@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	w1, [x8, w10, uxtw #2]
Lloh20:
	adrp	x8, _AIC_MODE2_BITS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AIC_MODE2_BITS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #2
	bl	_get_vlc2
	mov	w8, #36409
	movk	w8, #14563, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w9, w8, w8, lsl #3
	sub	w9, w0, w9
	stp	w8, w9, [x19], #8
	add	w28, w28, #1
	b	LBB0_8
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=2
	cmn	w8, #1
	ccmn	w9, #1, #4, ne
	b.ne	LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w9, #2
	b.eq	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=2
	cbz	w9, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=2
	cmn	w9, #1
	b.ne	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w8, #1
	b.gt	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	bl	_get_bits1
	eor	w0, w0, #0x1
	b	LBB0_7
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x20
	bl	_get_bits1
	lsl	w8, w0, #1
	eor	w0, w8, #0x2
	b	LBB0_7
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	w0, #0
	b	LBB0_7
LBB0_26:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_aic_top_vlc,4,2                ; @aic_top_vlc
	.comm	_AIC_TOP_BITS,4,2               ; @AIC_TOP_BITS
	.comm	_MODE2_PATTERNS_NUM,4,2         ; @MODE2_PATTERNS_NUM
	.comm	_rv40_aic_table_index,8,3       ; @rv40_aic_table_index
	.comm	_aic_mode2_vlc,8,3              ; @aic_mode2_vlc
	.comm	_AIC_MODE2_BITS,4,2             ; @AIC_MODE2_BITS
	.comm	_aic_mode1_vlc,8,3              ; @aic_mode1_vlc
	.comm	_AIC_MODE1_BITS,4,2             ; @AIC_MODE1_BITS
	.no_dead_strip	_rv40_decode_intra_types
.subsections_via_symbols
