	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdec_decode_block_intra
_mdec_decode_block_intra:               ## @mdec_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	$72, %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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$2, 12(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %rdi
	movl	$10, %esi
	callq	_get_sbits
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	addl	$1024, %eax                     ## imm = 0x400
	jmp	LBB0_5
LBB0_2:
	leal	-3(%r15), %eax
	xorl	%r14d, %r14d
	cmpl	$4, %r15d
	cmovgel	%eax, %r14d
	leaq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_decode_dc
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jge	LBB0_3
## %bb.4:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rcx
	movl	%r14d, %edx
	addl	(%rcx,%rdx,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	shll	$3, %eax
LBB0_5:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	32(%rbx), %r15
	movq	%r15, %rsi
	callq	_OPEN_READER
	xorl	%r13d, %r13d
                                        ## implicit-def: $ebx
                                        ## implicit-def: $r14d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	negl	%r14d
	shrl	$3, %r14d
	decl	%r14d
	orl	$1, %r14d
	negl	%r14d
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx,%rax,4)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %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	%r14d, %edi
	movl	%ebx, %esi
	movq	%r15, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$127, %r14d
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %r13d
	cmpl	$64, %r13d
	jge	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r13d, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	imull	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%rcx,4), %r14d
	sarl	$3, %r14d
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movl	%eax, %ebx
	xorl	%r14d, %ebx
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_SHOW_SBITS
	subl	%eax, %ebx
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_LAST_SKIP_BITS
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%ebx, (%rax,%rcx,4)
	movl	%ebx, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$6, %edx
	callq	_LAST_SKIP_BITS
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$10, %edx
	callq	_SHOW_SBITS
	movq	%r15, %rsi
	movl	%eax, %r15d
	movl	(%r12), %edi
	movl	$10, %edx
	callq	_SKIP_BITS
	addl	%ebx, %r13d
	incl	%r13d
	cmpl	$64, %r13d
	jge	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movslq	%r13d, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rax
	movl	%r15d, %r14d
	imull	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx,%rax,4), %r14d
	testl	%r15d, %r15d
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	shrl	$3, %r14d
	decl	%r14d
	orl	$1, %r14d
	jmp	LBB0_15
LBB0_9:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	44(%rcx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rcx), %r8d
	movl	40(%rcx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_3:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_CLOSE_READER
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movslq	-80(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	%r13d, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_17:
	addq	$72, %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	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ac-tex damaged at %d %d\n"

	.no_dead_strip	_mdec_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 mdec_decode_block_intra
_mdec_decode_block_intra:               ; @mdec_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x9, [x0, #48]
	ldr	x8, [x0]
	stp	x8, x9, [sp, #16]               ; 16-byte Folded Spill
	ldp	w27, w8, [x0, #8]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	add	x0, x19, #32
	mov	w1, #10
	bl	_get_sbits
	lsl	w8, w0, #1
	add	w8, w8, #1024
	b	LBB0_4
LBB0_2:
	sub	w8, w20, #3
	cmp	w20, #4
	csel	w22, wzr, w8, lt
	add	x0, x19, #32
	mov	x1, x22
	bl	_decode_dc
	mov	w8, #65535
	cmp	w0, w8
	b.ge	LBB0_14
; %bb.3:
	str	w20, [sp, #4]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #16]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w0
	str	w10, [x8, x9]
	lsl	w8, w10, #3
LBB0_4:
	str	w8, [x21]
Lloh0:
	adrp	x28, _re@GOTPAGE
Lloh1:
	ldr	x28, [x28, _re@GOTPAGEOFF]
	ldr	w0, [x28]
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	add	x22, x19, #32
	mov	x1, x22
	bl	_OPEN_READER
	mov	w20, #0
Lloh2:
	adrp	x19, _ff_rl_mpeg1@GOTPAGE
Lloh3:
	ldr	x19, [x19, _ff_rl_mpeg1@GOTPAGEOFF]
Lloh4:
	adrp	x26, _TEX_VLC_BITS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TEX_VLC_BITS@GOTPAGEOFF]
                                        ; implicit-def: $w23
                                        ; implicit-def: $w24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	neg	w9, w9
	lsr	w9, w9, #3
	sub	w9, w9, #1
	orr	w9, w9, #0x1
	neg	w24, w9
	str	w24, [x21, x8, lsl #2]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w2, [x28]
	ldr	x8, [x19]
	ldr	w4, [x8]
	ldr	w5, [x26]
	mov	x0, x24
	mov	x1, x23
	mov	x3, x22
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	cbz	w24, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w24, #127
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, w23
	cmp	w20, #64
	b.ge	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x19
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	ldrsw	x19, [x8, w20, sxtw #2]
	mul	w8, w24, w27
	ldr	w9, [x9, x19, lsl #2]
	mul	w24, w8, w9
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	eor	w24, w0, w24, asr #3
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #1
	bl	_SHOW_SBITS
	sub	w24, w24, w0
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #1
	bl	_LAST_SKIP_BITS
	str	w24, [x21, x19, lsl #2]
	mov	x19, x25
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #6
	bl	_SHOW_UBITS
	add	w23, w0, #1
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #6
	bl	_LAST_SKIP_BITS
	ldr	w0, [x28]
	mov	x1, x22
	bl	_UPDATE_CACHE
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #10
	bl	_SHOW_SBITS
	mov	x24, x0
	ldr	w0, [x28]
	mov	x1, x22
	mov	w2, #10
	bl	_SKIP_BITS
	add	w20, w23, w20
	cmp	w20, #64
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	x10, x8, [sp, #16]              ; 16-byte Folded Reload
	ldrsw	x8, [x8, w20, sxtw #2]
	mul	w9, w24, w27
	ldr	w10, [x10, x8, lsl #2]
	mul	w9, w9, w10
	tbnz	w24, #31, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	lsr	w9, w9, #3
	sub	w9, w9, #1
	orr	w24, w9, #0x1
	str	w24, [x21, x8, lsl #2]
	b	LBB0_6
LBB0_13:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldp	w3, w0, [x9, #40]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w4, [x9, #36]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_14:
Lloh11:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_15:
	ldr	w0, [x28]
	mov	x1, x22
	bl	_CLOSE_READER
	mov	w0, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	str	w20, [x8, w9, sxtw #2]
LBB0_16:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.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	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ac-tex damaged at %d %d\n"

	.no_dead_strip	_mdec_decode_block_intra
.subsections_via_symbols
