	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_intra
_decode_intra:                          ## @decode_intra
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	cmpq	$0, (%r15)
	movslq	8(%r15), %rax
	je	LBB0_1
## %bb.4:
	leal	(%rax,%rax), %ecx
	movl	%ecx, 12(%r15)
	movl	%eax, %ecx
	andl	$1, %ecx
	addl	%ecx, %eax
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_1:
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_3:
	movq	_intra_cb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 12(%r15)
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.6:
	movl	4(%r13), %eax
	movl	$8, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	$16, %esi
	addl	$16, -52(%rbp)                  ## 4-byte Folded Spill
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addl	$8, %edx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %esi
	jge	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	_cbplo_tab@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_get_vlc2
	movl	%eax, %ebx
	sarl	$4, %ebx
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_get_cbphi
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	orl	%ebx, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_decode_blocks
	testl	%eax, %eax
	js	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax), %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	addq	(%rcx), %rdi
	addq	%r14, %rdi
	movq	16(%r15), %rax
	movl	(%rax), %edx
	callq	*24(%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax), %esi
	movl	%r12d, %eax
	imull	%esi, %eax
	cltq
	addq	(%rcx), %rax
	leaq	(%r14,%rax), %rdi
	addq	$8, %rdi
	movq	16(%r15), %rax
	movl	4(%rax), %edx
	callq	*24(%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax), %esi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	addq	(%rcx), %rdi
	addq	%r14, %rdi
	movq	16(%r15), %rax
	movl	8(%rax), %edx
	callq	*24(%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rax), %esi
	movl	%r12d, %eax
	imull	%esi, %eax
	cltq
	addq	(%rcx), %rax
	leaq	(%r14,%rax), %rdi
	addq	$8, %rdi
	movq	16(%r15), %rax
	movl	12(%rax), %edx
	callq	*24(%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	4(%rax), %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	addq	8(%rcx), %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	movq	16(%r15), %rax
	movl	16(%rax), %edx
	callq	*24(%r15)
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	%r12d, %eax
	imull	%esi, %eax
	movslq	%eax, %rdi
	addq	16(%rcx), %rdi
	addq	%rbx, %rdi
	movq	16(%r15), %rax
	movl	20(%rax), %edx
	callq	*24(%r15)
	addq	$16, %r14
	movl	4(%r13), %eax
	addq	$8, %rbx
	cmpl	%r14d, %eax
	jg	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %ecx
	jmp	LBB0_12
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$56, %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	_intra_cb,8,3                   ## @intra_cb
	.comm	_cbplo_tab,8,2                  ## @cbplo_tab
	.no_dead_strip	_decode_intra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_intra
_decode_intra:                          ; @decode_intra
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x26, x0
	ldr	x25, [x0, #8]
	ldr	x9, [x25]
	ldrsw	x8, [x25, #8]
	cbz	x9, LBB0_2
; %bb.1:
	lsl	w9, w8, #1
	str	w9, [x25, #12]
	and	w9, w8, #0x1
	add	w8, w8, w9
	sub	w8, w8, #1
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	b	LBB0_5
LBB0_2:
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_4:
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x9, _intra_cb@GOTPAGE
Lloh4:
	ldr	x9, [x9, _intra_cb@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x25, #12]
LBB0_5:
	ldr	w9, [x26]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.6:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
	mov	w27, #0
	ldr	w8, [x26, #4]
	mov	w28, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w27, w27, #16
	add	w28, w28, #16
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	add	w10, w10, #8
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	cmp	w27, w9
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, #0
	mov	x21, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh6:
	adrp	x8, _cbplo_tab@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cbplo_tab@GOTPAGEOFF]
	ldp	w2, w1, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_get_vlc2
	mov	x23, x0
	mov	x0, x20
	bl	_get_bits1
	mov	x24, x0
	mov	x0, x20
	mov	w1, #1
	bl	_get_cbphi
	lsl	w8, w0, #2
	orr	w2, w8, w23, asr #4
	mov	x0, x26
	mov	x1, x20
	mov	w3, #0
	ldr	w4, [sp, #8]                    ; 4-byte Folded Reload
	mov	x5, x24
	bl	_decode_blocks
	tbnz	w0, #31, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x9]
	mul	w9, w27, w1
	add	x8, x8, w9, sxtw
	add	x0, x21, x8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9]
	blr	x8
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x9]
	mul	w9, w27, w1
	add	x8, x8, w9, sxtw
	add	x8, x21, x8
	add	x0, x8, #8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9, #4]
	blr	x8
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x9]
	mul	w9, w28, w1
	add	x8, x8, w9, sxtw
	add	x0, x21, x8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9, #8]
	blr	x8
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x9]
	mul	w9, w28, w1
	add	x8, x8, w9, sxtw
	add	x8, x21, x8
	add	x0, x8, #8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9, #12]
	blr	x8
	ldp	x9, x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w1, [x9, #4]
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	mul	w9, w24, w1
	add	x8, x8, w9, sxtw
	add	x0, x22, x8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9, #16]
	blr	x8
	ldp	x9, x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w1, [x9, #8]
	mul	w9, w24, w1
	add	x8, x8, w9, sxtw
	add	x0, x22, x8
	ldp	x9, x8, [x25, #16]
	ldr	w2, [x9, #20]
	blr	x8
	add	x21, x21, #16
	ldr	w8, [x26, #4]
	add	x22, x22, #8
	cmp	w8, w21
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	b	LBB0_7
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_intra_cb,8,3                   ; @intra_cb
	.comm	_cbplo_tab,8,2                  ; @cbplo_tab
	.no_dead_strip	_decode_intra
.subsections_via_symbols
