	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg2_fast_decode_block_intra
_mpeg2_fast_decode_block_intra:         ## @mpeg2_fast_decode_block_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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	64(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	andl	$1, %ebx
	incl	%ebx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpl	$4, %edx
	setge	%al
	cmovll	%ecx, %ebx
	movq	8(%rdi,%rax,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	48(%rdi), %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_decode_dc
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jl	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_2:
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movq	24(%r12), %rcx
	movl	%ebx, %edx
	addl	(%rcx,%rdx,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	movb	$3, %cl
	subb	32(%r12), %cl
	shll	%cl, %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r13)
	movq	56(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_re@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_OPEN_READER
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	movslq	%ebx, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax,%rbx,4), %rbx
	imull	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%rbx,4), %r15d
	sarl	$4, %r15d
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	movq	%r12, %r13
	movl	%eax, %r12d
	xorl	%r15d, %r12d
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	subl	%eax, %r12d
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_LAST_SKIP_BITS
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax,%rbx,4)
	movl	%r12d, %r15d
	movq	%r13, %r12
	movq	_re@GOTPCREL(%rip), %r13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_UPDATE_CACHE
	movl	(%r13), %edx
	movq	_ff_rl_mpeg2@GOTPCREL(%rip), %rax
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ff_rl_mpeg1@GOTPCREL(%rip), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movq	_TEX_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	cmpl	$63, %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$63, %ebx
	jg	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r15d
	leal	1(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$6, %edx
	callq	_LAST_SKIP_BITS
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_UPDATE_CACHE
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_SHOW_SBITS
	movq	%r13, %rcx
	movl	%eax, %r13d
	movl	(%rcx), %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_SKIP_BITS
	addl	%r15d, %ebx
	incl	%ebx
	movslq	%ebx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rax
	movl	%r13d, %r15d
	imull	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx,%rax,4), %r15d
	testl	%r13d, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	sarl	$4, %r15d
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	negl	%r15d
	sarl	$4, %r15d
	negl	%r15d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx,%rax,4)
	movq	_re@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_13:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_CLOSE_READER
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_check_scantable_index
	movq	40(%r12), %rax
	movslq	-68(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	%ebx, (%rax,%rcx,4)
	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	_ff_rl_mpeg2,8,3                ## @ff_rl_mpeg2
	.comm	_ff_rl_mpeg1,8,3                ## @ff_rl_mpeg1
	.comm	_re,4,2                         ## @re
	.comm	_TEX_VLC_BITS,4,2               ## @TEX_VLC_BITS
	.no_dead_strip	_mpeg2_fast_decode_block_intra
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg2_fast_decode_block_intra
_mpeg2_fast_decode_block_intra:         ; @mpeg2_fast_decode_block_intra
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #64]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w27, [x0]
	and	w8, w2, #0x1
	cmp	w2, #4
	csinc	w23, wzr, w8, lt
	mov	w8, #16
	mov	w9, #8
	csel	x8, x9, x8, lt
	ldr	x28, [x0, x8]
	add	x22, x0, #48
	mov	x0, x22
	mov	x1, x23
	bl	_decode_dc
	mov	w8, #65535
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_2:
	str	w19, [sp, #20]                  ; 4-byte Folded Spill
	ldr	x8, [x20, #24]
	lsl	x9, x23, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	ldr	w8, [x20, #32]
	mov	w9, #3
	sub	w8, w9, w8
	lsl	w8, w10, w8
	str	w8, [x21]
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x20, [x20, #56]
Lloh3:
	adrp	x19, _re@GOTPAGE
Lloh4:
	ldr	x19, [x19, _re@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x22
	bl	_OPEN_READER
	mov	w23, #0
                                        ; implicit-def: $w24
                                        ; implicit-def: $w25
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w24, w23
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x26, [x8, w23, sxtw #2]
	mul	w8, w25, w27
	ldr	w9, [x28, x26, lsl #2]
	mul	w25, w8, w9
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	eor	w25, w0, w25, asr #4
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	sub	w25, w25, w0
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #1
	bl	_LAST_SKIP_BITS
	str	w25, [x21, x26, lsl #2]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w2, [x19]
	cmp	x20, #0
Lloh5:
	adrp	x8, _ff_rl_mpeg1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ff_rl_mpeg1@GOTPAGEOFF]
Lloh7:
	adrp	x9, _ff_rl_mpeg2@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ff_rl_mpeg2@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _TEX_VLC_BITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEX_VLC_BITS@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	cmp	w25, #63
	b.gt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #63
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w25, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #6
	bl	_SHOW_UBITS
	add	w24, w0, #1
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #6
	bl	_LAST_SKIP_BITS
	ldr	w0, [x19]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #12
	bl	_SHOW_SBITS
	mov	x25, x0
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #12
	bl	_SKIP_BITS
	add	w23, w24, w23
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, w23, sxtw #2]
	mul	w9, w25, w27
	ldr	w10, [x28, x8, lsl #2]
	mul	w9, w9, w10
	tbnz	w25, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	asr	w25, w9, #4
	str	w25, [x21, x8, lsl #2]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	neg	w9, w9
	neg	w25, w9, asr #4
	str	w25, [x21, x8, lsl #2]
	b	LBB0_4
LBB0_10:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_CLOSE_READER
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x23
	bl	_check_scantable_index
	mov	w0, #0
	ldr	x8, [x19, #40]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	str	w23, [x8, w9, sxtw #2]
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_rl_mpeg2,8,3                ; @ff_rl_mpeg2
	.comm	_ff_rl_mpeg1,8,3                ; @ff_rl_mpeg1
	.comm	_re,4,2                         ; @re
	.comm	_TEX_VLC_BITS,4,2               ; @TEX_VLC_BITS
	.no_dead_strip	_mpeg2_fast_decode_block_intra
.subsections_via_symbols
