	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_block_intra
_decode_block_intra:                    ## @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
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %r13
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_sbits
	subl	$-128, %eax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	imull	(%rbx), %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	movq	_re@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_OPEN_READER
	xorl	%r15d, %r15d
                                        ## implicit-def: $eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $ebx
	jmp	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	imull	%ecx, %ebx
	negl	%ebx
	sarl	$4, %ebx
	decl	%ebx
	orl	$1, %ebx
	negl	%ebx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx,%rax,4)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	(%r14), %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	%ebx, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rcx
	pushq	$0
	pushq	$2
	callq	_GET_RL_VLC
	addq	$16, %rsp
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$127, %ebx
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	cmpl	$64, %r15d
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%rcx,4), %ebx
	sarl	$4, %ebx
	decl	%ebx
	orl	$1, %ebx
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	movq	%r14, %r12
	movl	%eax, %r14d
	xorl	%ebx, %r14d
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_SHOW_SBITS
	subl	%eax, %r14d
	movl	(%r12), %edi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_LAST_SKIP_BITS
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rax,%rcx,4)
	movl	%r14d, %ebx
	movq	%r12, %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	_SHOW_SBITS
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	$10, %edx
	callq	_SKIP_BITS
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_UPDATE_CACHE
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_SHOW_UBITS
	movl	%eax, %r12d
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	$6, %edx
	callq	_LAST_SKIP_BITS
	addl	%r12d, %r15d
	incl	%r15d
	cmpl	$64, %r15d
	jge	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r12d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx,%rax,4), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %ecx
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	imull	%ebx, %ecx
	sarl	$4, %ecx
	decl	%ecx
	orl	$1, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx,%rax,4)
	movl	%ecx, %ebx
	jmp	LBB0_1
LBB0_4:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rcx), %r8d
	movl	16(%rcx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_10:
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_CLOSE_READER
	xorl	%eax, %eax
LBB0_11:
	addq	$56, %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	_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	_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 decode_block_intra
_decode_block_intra:                    ; @decode_block_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	x20, x1
	ldr	x8, [x0, #24]
	stp	x0, x8, [sp]                    ; 16-byte Folded Spill
	ldr	x25, [x0]
	add	x21, x0, #8
	mov	x0, x21
	mov	w1, #8
	bl	_get_sbits
	add	w8, w0, #128
	ldr	w9, [x25]
	mul	w8, w8, w9
	str	w8, [x20]
Lloh0:
	adrp	x26, _re@GOTPAGE
Lloh1:
	ldr	x26, [x26, _re@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x21
	bl	_OPEN_READER
	mov	w27, #0
Lloh2:
	adrp	x28, _ff_rl_mpeg1@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ff_rl_mpeg1@GOTPAGEOFF]
Lloh4:
	adrp	x24, _TEX_VLC_BITS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TEX_VLC_BITS@GOTPAGEOFF]
                                        ; implicit-def: $w22
                                        ; implicit-def: $w23
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mneg	w9, w23, w9
	asr	w9, w9, #4
	sub	w9, w9, #1
	orr	w9, w9, #0x1
	neg	w23, w9
	str	w23, [x20, x8, lsl #2]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	mov	x1, x21
	bl	_UPDATE_CACHE
	ldr	w2, [x26]
	ldr	x8, [x28]
	ldr	w4, [x8]
	ldr	w5, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	mov	w6, #2
	mov	w7, #0
	bl	_GET_RL_VLC
	cbz	w23, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w23, #127
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w27, w22
	cmp	w27, #64
	b.ge	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x28
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldrsw	x28, [x8, w27, sxtw #2]
	ldr	w8, [x25, x28, lsl #2]
	mul	w8, w8, w23
	asr	w8, w8, #4
	sub	w8, w8, #1
	orr	w23, w8, #0x1
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #1
	bl	_SHOW_SBITS
	eor	w23, w23, w0
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #1
	bl	_SHOW_SBITS
	sub	w23, w23, w0
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #1
	bl	_LAST_SKIP_BITS
	str	w23, [x20, x28, lsl #2]
	mov	x28, x19
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	mov	x1, x21
	bl	_UPDATE_CACHE
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #10
	bl	_SHOW_SBITS
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #10
	bl	_SKIP_BITS
	ldr	w0, [x26]
	mov	x1, x21
	bl	_UPDATE_CACHE
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #6
	bl	_SHOW_UBITS
	add	w22, w0, #1
	ldr	w0, [x26]
	mov	x1, x21
	mov	w2, #6
	bl	_LAST_SKIP_BITS
	add	w27, w22, w27
	cmp	w27, #64
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldrsw	x8, [x8, w27, sxtw #2]
	ldr	w9, [x25, x8, lsl #2]
	tbnz	w23, #31, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mul	w9, w9, w23
	asr	w9, w9, #4
	sub	w9, w9, #1
	orr	w23, w9, #0x1
	str	w23, [x20, x8, lsl #2]
	b	LBB0_2
LBB0_9:
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldp	w3, w0, [x9, #16]
Lloh6:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w4, [x9, #12]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_CLOSE_READER
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_rl_mpeg1,8,3                ; @ff_rl_mpeg1
	.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	_decode_block_intra
.subsections_via_symbols
