	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg2_decode_block_intra
_mpeg2_decode_block_intra:              ## @mpeg2_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	$88, %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, %r14
	movq	%rdi, %r12
	movq	72(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	andl	$1, %ebx
	incl	%ebx
	xorl	%edx, %edx
	xorl	%eax, %eax
	cmpl	$4, %r15d
	setge	%al
	movl	$0, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmovll	%edx, %ebx
	movq	8(%rdi,%rax,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	48(%rdi), %r13
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_decode_dc
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jl	LBB0_3
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_3:
	movl	%r15d, -44(%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
	movl	%eax, (%r14)
	movl	64(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_ff_tlog
	movl	(%r14), %eax
	xorl	$1, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	56(%r12), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rsi
	callq	_OPEN_READER
                                        ## implicit-def: $r13d
                                        ## implicit-def: $r15d
	movq	%r14, %rbx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	sarl	$4, %r15d
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, -60(%rbp)                ## 4-byte Folded Spill
	movl	%r15d, (%rbx,%r13,4)
	movq	-104(%rbp), %r13                ## 8-byte Reload
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %edx
	movq	_ff_rl_mpeg2@GOTPCREL(%rip), %rax
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_ff_rl_mpeg1@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movq	_TEX_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r15d, %edi
	movl	%r13d, %esi
	movq	%r14, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$127, %r15d
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%r13d, %ecx
	movq	_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r12
	movslq	(%rcx,%rax,4), %r13
	imull	-64(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%r13,4), %r15d
	sarl	$4, %r15d
	movq	_re@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	movl	%eax, %ebx
	xorl	%r15d, %ebx
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	subl	%eax, %ebx
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_LAST_SKIP_BITS
	movl	%ebx, %r15d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_re@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	$6, %edx
	callq	_LAST_SKIP_BITS
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_UPDATE_CACHE
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_SHOW_SBITS
	movl	%eax, %r12d
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	$12, %edx
	callq	_SKIP_BITS
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%ebx, %ecx
	incl	%ecx
	movq	_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jg	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %r13
	movl	%r12d, %r15d
	imull	-64(%rbp), %r15d                ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%r13,4), %r15d
	testl	%r12d, %r12d
	jns	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	negl	%r15d
	sarl	$4, %r15d
	negl	%r15d
	jmp	LBB0_17
LBB0_8:
	movq	%rbx, %r12
	jmp	LBB0_9
LBB0_13:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	_re@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_CLOSE_READER
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	andl	$1, %eax
	xorl	%eax, 252(%r12)
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_check_scantable_index
	movq	40(%r13), %rax
	movslq	%r15d, %rcx
	movl	%ebx, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_2:
	addq	$88, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dc=%d\n"

	.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
	.comm	_MAX_INDEX,4,2                  ## @MAX_INDEX
	.no_dead_strip	_mpeg2_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_decode_block_intra
_mpeg2_decode_block_intra:              ; @mpeg2_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, #72]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [x0]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	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_13
LBB0_2:
	str	w19, [sp, #16]                  ; 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	w2, w10, w8
	str	w2, [x21]
	ldr	w0, [x20, #64]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ff_tlog
	ldr	w8, [x21]
	eor	w19, w8, #0x1
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x26, [x20, #56]
Lloh5:
	adrp	x20, _re@GOTPAGE
Lloh6:
	ldr	x20, [x20, _re@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x22
	bl	_OPEN_READER
	mov	w23, #0
                                        ; implicit-def: $w24
                                        ; implicit-def: $w25
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	asr	w25, w8, #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	eor	w19, w25, w19
	str	w25, [x21, x27, lsl #2]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w2, [x20]
	cmp	x26, #0
Lloh7:
	adrp	x8, _ff_rl_mpeg1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ff_rl_mpeg1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _ff_rl_mpeg2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ff_rl_mpeg2@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _TEX_VLC_BITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TEX_VLC_BITS@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	cbz	w25, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #127
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x8, _MAX_INDEX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAX_INDEX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w23, w24, w23
	cmp	w23, w8
	b.gt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x27, [x8, w23, sxtw #2]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w25, w8
	ldr	w9, [x28, x27, lsl #2]
	mul	w25, w8, w9
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	eor	w25, w0, w25, asr #4
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	sub	w25, w25, w0
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #1
	bl	_LAST_SKIP_BITS
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #6
	bl	_SHOW_UBITS
	add	w24, w0, #1
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #6
	bl	_LAST_SKIP_BITS
	ldr	w0, [x20]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #12
	bl	_SHOW_SBITS
	mov	x25, x0
	ldr	w0, [x20]
	mov	x1, x22
	mov	w2, #12
	bl	_SKIP_BITS
Lloh17:
	adrp	x8, _MAX_INDEX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_INDEX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w23, w24, w23
	cmp	w23, w8
	b.gt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x27, [x8, w23, sxtw #2]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w25, w8
	ldr	w9, [x28, x27, lsl #2]
	mul	w8, w8, w9
	tbz	w25, #31, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	neg	w8, w8
	neg	w25, w8, asr #4
	b	LBB0_4
LBB0_12:
	ldr	w24, [sp, #16]                  ; 4-byte Folded Reload
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w0, [x20]
	mov	x1, x22
	bl	_CLOSE_READER
	and	w8, w19, #0x1
	ldr	w9, [x21, #252]
	eor	w8, w9, w8
	str	w8, [x21, #252]
	mov	x0, x25
	mov	x1, x23
	bl	_check_scantable_index
	mov	w0, #0
	ldr	x8, [x25, #40]
	str	w23, [x8, w24, sxtw #2]
LBB0_13:
	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	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dc=%d\n"

	.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
	.comm	_MAX_INDEX,4,2                  ; @MAX_INDEX
	.no_dead_strip	_mpeg2_decode_block_intra
.subsections_via_symbols
