	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_decode_block_intra    ## -- Begin function ff_mpeg1_decode_block_intra
	.p2align	4, 0x90
_ff_mpeg1_decode_block_intra:           ## @ff_mpeg1_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r13
	leal	-3(%r9), %ebx
	xorl	%r12d, %r12d
	cmpl	$4, %r9d
	cmovll	%r12d, %ebx
	movl	%ebx, %esi
	callq	_decode_dc
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jge	LBB0_23
## %bb.1:
	movl	%ebx, %ecx
	addl	(%r15,%rcx,4), %eax
	movl	%eax, (%r15,%rcx,4)
	imull	(%r14), %eax
	movl	$3221225472, %r15d              ## imm = 0xC0000000
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_re@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_OPEN_READER
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_GET_CACHE
	cmpq	%r15, %rax
	jl	LBB0_22
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
                                        ## implicit-def: $r15d
                                        ## implicit-def: $r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movq	_ff_rl_mpeg1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movq	_TEX_VLC_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%r13, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r14d, %r12d
	movq	_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %r14
	imull	16(%rbp), %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%r14,4), %r15d
	sarl	$4, %r15d
	decl	%r15d
	orl	$1, %r15d
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	movl	%eax, %ebx
	xorl	%r15d, %ebx
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	subl	%eax, %ebx
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_SKIP_BITS
	movl	%ebx, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	incl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_LAST_SKIP_BITS
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_SHOW_SBITS
	movq	%r13, %r14
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_SKIP_BITS
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-128, %r13d
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r13d
	addl	$-256, %r13d
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_SKIP_BITS
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %r14
	movl	%r13d, %r15d
	imull	16(%rbp), %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%r14,4), %r15d
	testl	%r13d, %r13d
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	sarl	$4, %r15d
	decl	%r15d
	orl	$1, %r15d
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	negl	%r15d
	sarl	$4, %r15d
	decl	%r15d
	orl	$1, %r15d
	negl	%r15d
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	_re@GOTPCREL(%rip), %r12
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax,%r14,4)
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_GET_CACHE
	movl	$3221225472, %ecx               ## imm = 0xC0000000
	cmpq	%rcx, %rax
	movq	%r12, %rbx
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_3
LBB0_18:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_22
LBB0_20:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_21:
	movq	_re@GOTPCREL(%rip), %rbx
LBB0_22:
	movl	(%rbx), %edi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_LAST_SKIP_BITS
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_CLOSE_READER
	movq	_MAX_INDEX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_24
LBB0_23:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_rl_mpeg1,8,3                ## @ff_rl_mpeg1
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_re,4,2                         ## @re
	.comm	_TEX_VLC_BITS,4,2               ## @TEX_VLC_BITS
	.comm	_MAX_INDEX,4,2                  ## @MAX_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_decode_block_intra    ; -- Begin function ff_mpeg1_decode_block_intra
	.p2align	2
_ff_mpeg1_decode_block_intra:           ; @ff_mpeg1_decode_block_intra
	.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	x20, x6
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	sub	w8, w5, #3
	cmp	w5, #4
	csel	w25, wzr, w8, lt
	mov	x1, x25
	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_5
LBB0_2:
	lsl	x8, x25, #2
	ldr	w9, [x24, x8]
	add	w9, w9, w0
	str	w9, [x24, x8]
	ldr	w8, [x23]
	mul	w8, w8, w9
	str	w8, [x21]
Lloh3:
	adrp	x26, _re@GOTPAGE
Lloh4:
	ldr	x26, [x26, _re@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x19
	bl	_OPEN_READER
	ldr	w0, [x26]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w0, [x26]
	mov	x1, x19
	bl	_GET_CACHE
	mov	w8, #-1073741824
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.3:
	mov	w28, #0
LBB0_4:
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #2
	bl	_LAST_SKIP_BITS
	ldr	w0, [x26]
	mov	x1, x19
	bl	_CLOSE_READER
Lloh5:
	adrp	x8, _MAX_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w28, w8
	csel	w0, w9, w28, gt
LBB0_5:
	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
LBB0_6:
	mov	w28, #0
                                        ; implicit-def: $w25
                                        ; implicit-def: $w24
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26]
Lloh11:
	adrp	x8, _ff_rl_mpeg1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ff_rl_mpeg1@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _TEX_VLC_BITS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TEX_VLC_BITS@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x19
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	cbz	w25, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh17:
	adrp	x8, _MAX_INDEX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_INDEX@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w28, w24, w28
	cmp	w28, w8
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x27, [x22, w28, sxtw #2]
	ldr	w8, [x23, x27, lsl #2]
	mul	w9, w25, w20
	mul	w8, w9, w8
	asr	w8, w8, #4
	sub	w8, w8, #1
	orr	w25, w8, #0x1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #1
	bl	_SHOW_SBITS
	eor	w25, w25, w0
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #1
	bl	_SHOW_SBITS
	sub	w25, w25, w0
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #1
	bl	_SKIP_BITS
	b	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #6
	bl	_SHOW_UBITS
	mov	x24, x0
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #6
	bl	_LAST_SKIP_BITS
	ldr	w0, [x26]
	mov	x1, x19
	bl	_UPDATE_CACHE
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #8
	bl	_SHOW_SBITS
	mov	x25, x0
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #8
	bl	_SKIP_BITS
	cbz	w25, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmn	w25, #128
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #8
	bl	_SHOW_UBITS
	sub	w25, w0, #256
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #8
	bl	_SHOW_UBITS
	mov	x25, x0
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	mov	w2, #8
	bl	_SKIP_BITS
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
Lloh20:
	adrp	x8, _MAX_INDEX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_INDEX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w28, w24, w28
	cmp	w28, w8
	b.gt	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x27, [x22, w28, sxtw #2]
	mul	w8, w25, w20
	ldr	w9, [x23, x27, lsl #2]
	mul	w8, w8, w9
	tbnz	w25, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	asr	w8, w8, #4
	sub	w8, w8, #1
	orr	w25, w8, #0x1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	neg	w8, w8
	asr	w8, w8, #4
	sub	w8, w8, #1
	orr	w8, w8, #0x1
	neg	w25, w8
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w25, [x21, x27, lsl #2]
	ldr	w0, [x26]
	mov	x1, x19
	bl	_GET_CACHE
	mov	w8, #-1073741824
	cmp	x0, x8
	b.lt	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26]
	mov	x1, x19
	bl	_UPDATE_CACHE
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_rl_mpeg1,8,3                ; @ff_rl_mpeg1
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_re,4,2                         ; @re
	.comm	_TEX_VLC_BITS,4,2               ; @TEX_VLC_BITS
	.comm	_MAX_INDEX,4,2                  ; @MAX_INDEX
.subsections_via_symbols
