	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mss3_decode_frame
_mss3_decode_frame:                     ## @mss3_decode_frame
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movl	(%rax), %ebx
	movq	_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %ebx
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, -152(%rbp)                ## 8-byte Spill
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	8(%rax), %r13
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_bytestream2_init
	movq	%r15, %rdi
	callq	_bytestream2_get_be32
	movl	%eax, %ecx
	testl	$-770, %eax                     ## imm = 0xFCFE
	je	LBB0_5
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_5:
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_bytestream2_skip
	movq	%rbx, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bytestream2_get_be16
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_bytestream2_get_be16
	movq	%r15, %rbx
	movl	%eax, %r8d
	leal	(%r15,%r13), %eax
	cmpl	(%r14), %eax
	jg	LBB0_8
## %bb.6:
	leal	(%r8,%r12), %eax
	cmpl	4(%r14), %eax
	jg	LBB0_8
## %bb.7:
	movl	%r8d, %eax
	orl	%r13d, %eax
	testb	$15, %al
	je	LBB0_12
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	xorl	%eax, %eax
	pushq	%r12
	callq	_av_log
	addq	$16, %rsp
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.11:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r13d
	addl	$-101, %eax
	cmpl	$-101, %eax
	ja	LBB0_14
## %bb.13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %ecx
	jmp	LBB0_4
LBB0_14:
	movl	-96(%rbp), %r15d                ## 4-byte Reload
	andl	$1, %r15d
	leaq	-88(%rbp), %rdi
	movl	$4, %esi
	callq	_bytestream2_skip
	testl	%r15d, %r15d
	jne	LBB0_17
## %bb.15:
	leaq	-88(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	movq	-104(%rbp), %rax                ## 8-byte Reload
	jne	LBB0_19
## %bb.16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_17:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.18:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_19:
	movl	%r13d, -96(%rbp)                ## 4-byte Spill
	movl	$0, (%rax)
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rax, %r13
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_22
## %bb.20:
	movl	%r15d, %ecx
	xorl	$1, %ecx
	movq	8(%r13), %rax
	movl	%ecx, (%rax)
	testl	%r15d, %r15d
	jne	LBB0_23
## %bb.21:
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_23:
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rcx
LBB0_24:
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax)
	leaq	-88(%rbp), %rdi
	callq	_bytestream2_get_bytes_left
	testl	%eax, %eax
	je	LBB0_42
## %bb.25:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	leaq	48(%r15), %r13
	movq	%r15, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_reset_coders
	movq	_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	subl	%eax, %edx
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_rac_init
	movq	8(%r15), %rsi
	movq	16(%rsi), %r9
	movq	%rbx, %rcx
	movslq	%ecx, %rax
	shlq	$2, %rax
	addq	(%r9), %rax
	movq	8(%rsi), %rdx
	movslq	(%rdx), %rdi
	movslq	%r12d, %rbx
	imulq	%rdi, %rbx
	leaq	(%rax,%rbx,4), %r8
	movq	%r8, -80(%rbp)
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	movslq	%edi, %rdi
	shlq	$2, %rdi
	movq	8(%r9), %rbx
	addq	%rdi, %rbx
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	movslq	4(%rdx), %rcx
	cltq
	imulq	%rax, %rcx
	leaq	(%rbx,%rcx,4), %r11
	movq	%r11, -72(%rbp)
	addq	16(%r9), %rdi
	movslq	8(%rdx), %rcx
	imulq	%rax, %rcx
	leaq	(%rdi,%rcx,4), %rdi
	movq	%rdi, -64(%rbp)
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	cmpl	$16, %edx
	jl	LBB0_44
## %bb.26:
	movq	%r15, %r10
	shrl	$4, %edx
	movq	-136(%rbp), %r9                 ## 8-byte Reload
	movl	%r9d, %eax
	sarl	$4, %eax
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##       Child Loop BB0_30 Depth 3
	cmpl	$16, %r9d
	jl	LBB0_41
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	%r11, -168(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_30 Depth 3
	xorl	%r13d, %r13d
LBB0_30:                                ##   Parent Loop BB0_27 Depth=1
                                        ##     Parent Loop BB0_29 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%r13, %r13
	sete	%cl
	movl	$8, %r12d
	shll	%cl, %r12d
	movq	40(%r10), %rsi
	addq	%r13, %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r10, %rbx
	callq	_decode_block_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=3
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=3
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	32(%rbx), %esi
	movl	%r12d, %edx
	imull	%r15d, %edx
	shlq	$2, %rdx
	addq	-80(%rbp,%r13,8), %rdx
	addl	%r13d, %esi
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_decode_image_block
	jmp	LBB0_36
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=3
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	20(%rbx), %esi
	addl	%r13d, %esi
	movl	%r12d, %edx
	imull	%r15d, %edx
	shlq	$2, %rdx
	addq	-80(%rbp,%r13,8), %rdx
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %ecx
	movl	16(%rbx), %r9d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_decode_haar_block
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_30 Depth=3
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	36(%rbx), %esi
	movl	%r12d, %edx
	imull	%r15d, %edx
	shlq	$2, %rdx
	addq	-80(%rbp,%r13,8), %rdx
	addl	%r13d, %esi
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %ecx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_decode_fill_block
	jmp	LBB0_36
LBB0_35:                                ##   in Loop: Header=BB0_30 Depth=3
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	28(%rbx), %esi
	addl	%r13d, %esi
	movl	%r12d, %edx
	imull	%r15d, %edx
	shlq	$2, %rdx
	addq	-80(%rbp,%r13,8), %rdx
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %ecx
	movl	24(%rbx), %r9d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	%r15
	callq	_decode_dct_block
	addq	$16, %rsp
LBB0_36:                                ##   in Loop: Header=BB0_30 Depth=3
	cmpl	$0, (%rbx)
	movq	%rbx, %r10
	jne	LBB0_47
## %bb.37:                              ##   in Loop: Header=BB0_30 Depth=3
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_47
## %bb.38:                              ##   in Loop: Header=BB0_30 Depth=3
	incq	%r13
	cmpq	$3, %r13
	jne	LBB0_30
## %bb.39:                              ##   in Loop: Header=BB0_29 Depth=2
	incl	%r15d
	cmpl	-124(%rbp), %r15d               ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.40:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%r10), %rsi
	movq	-80(%rbp), %r8
	movq	-136(%rbp), %r9                 ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-168(%rbp), %r11                ## 8-byte Reload
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
LBB0_41:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%rsi), %rax
	movslq	(%rax), %rcx
	shlq	$6, %rcx
	addq	%rcx, %r8
	movq	%r8, -80(%rbp)
	movslq	4(%rax), %rcx
	shlq	$5, %rcx
	addq	%rcx, %r11
	movq	%r11, -72(%rbp)
	movslq	8(%rax), %rax
	shlq	$5, %rax
	addq	%rax, %rdi
	movq	%rdi, -64(%rbp)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	%edx, %eax
	jne	LBB0_27
	jmp	LBB0_45
LBB0_42:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_22
## %bb.43:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_44:
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
LBB0_45:
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_22
## %bb.46:
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_10
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_47:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movq	-112(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	movq	%r10, %rbx
	callq	_av_log
	movl	$1, (%rbx)
	jmp	LBB0_9
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
LJTI0_0:
	.long	L0_0_set_32
	.long	L0_0_set_33
	.long	L0_0_set_34
	.long	L0_0_set_35
	.end_data_region
                                        ## -- End function
	.comm	_HEADER_SIZE,4,2                ## @HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frame should have at least %d bytes, got %d instead\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Invalid frame type %X\n"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid frame dimensions %dx%d +%d,%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid quality setting %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Keyframe without data found\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
L_.str.5:                               ## @.str.5
	.asciz	"Error decoding block %d,%d\n"

	.no_dead_strip	_mss3_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mss3_decode_frame
_mss3_decode_frame:                     ; @mss3_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w19, [x3]
Lloh3:
	adrp	x24, _HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HEADER_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w19, w8
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	stp	x8, x19, [sp]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	mov	x21, x2
	mov	x22, x1
	ldr	x25, [x3, #8]
	ldr	x26, [x20, #8]
	add	x0, sp, #92
	mov	x1, x25
	mov	x2, x19
	bl	_bytestream2_init
	add	x0, sp, #92
	bl	_bytestream2_get_be32
	mov	x23, x0
	mov	w8, #-770
	tst	w0, w8
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	stp	x21, x26, [sp, #72]             ; 16-byte Folded Spill
	add	x0, sp, #92
	mov	w1, #6
	bl	_bytestream2_skip
	add	x0, sp, #92
	bl	_bytestream2_get_be16
	mov	x26, x0
	add	x0, sp, #92
	bl	_bytestream2_get_be16
	mov	x28, x0
	add	x0, sp, #92
	bl	_bytestream2_get_be16
	mov	x21, x0
	add	x0, sp, #92
	bl	_bytestream2_get_be16
	mov	x27, x0
	ldr	w8, [x20]
	add	w9, w21, w26
	cmp	w9, w8
	b.gt	LBB0_7
; %bb.5:
	ldr	w8, [x20, #4]
	add	w9, w27, w28
	cmp	w9, w8
	b.gt	LBB0_7
; %bb.6:
	orr	w8, w27, w21
	tst	w8, #0xf
	b.eq	LBB0_12
LBB0_7:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	stp	x26, x28, [sp, #16]
	stp	x21, x27, [sp]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_av_log
LBB0_9:
Lloh20:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
LBB0_10:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_12:
	str	x21, [sp, #64]                  ; 8-byte Folded Spill
	add	x0, sp, #92
	mov	w1, #4
	bl	_bytestream2_skip
	add	x0, sp, #92
	bl	_bytestream2_get_byte
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #101
	cmn	w8, #101
	b.hi	LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_14:
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	and	w23, w23, #0x1
	add	x0, sp, #92
	mov	w1, #4
	bl	_bytestream2_skip
	cbnz	w23, LBB0_17
; %bb.15:
	add	x0, sp, #92
	bl	_bytestream2_get_bytes_left
	cbnz	w0, LBB0_18
; %bb.16:
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.4@PAGE
Lloh35:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_17:
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
LBB0_18:
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	wzr, [x8]
	mov	x21, x8
	ldr	x1, [x8, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_40
; %bb.19:
	eor	w8, w23, #0x1
	ldr	x9, [x21, #8]
	str	w8, [x9]
Lloh36:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh38:
	adrp	x10, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh39:
	ldr	x10, [x10, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	str	w8, [x9, #24]
	add	x0, sp, #92
	bl	_bytestream2_get_bytes_left
	cbz	w0, LBB0_37
; %bb.20:
	add	x23, x21, #48
	mov	x0, x21
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_reset_coders
	ldrsw	x8, [x24]
	add	x1, x25, x8, lsl #2
	sub	w2, w19, w8
	mov	x25, x23
	mov	x0, x23
	bl	_rac_init
	ldr	x1, [x21, #8]
	ldp	x10, x9, [x1, #8]
	ldp	x8, x11, [x9]
	add	x8, x8, w26, sxtw #2
	ldp	w12, w13, [x10]
	mul	w12, w12, w28
	add	x8, x8, w12, sxtw #2
	cmp	w26, #0
	cinc	w12, w26, lt
	asr	w12, w12, #1
	sbfiz	x12, x12, #2, #32
	add	x11, x11, x12
	cmp	w28, #0
	cinc	w14, w28, lt
	asr	w14, w14, #1
	mul	w13, w13, w14
	add	x13, x11, w13, sxtw #2
	stp	x8, x13, [sp, #96]
	ldr	x9, [x9, #16]
	add	x9, x9, x12
	ldr	w10, [x10, #8]
	mul	w10, w10, w14
	add	x14, x9, w10, sxtw #2
	str	x14, [sp, #112]
	cmp	w27, #16
	b.lt	LBB0_38
; %bb.21:
	mov	w26, #0
	lsr	w15, w27, #4
	ldr	x12, [sp, #64]                  ; 8-byte Folded Reload
	asr	w9, w12, #4
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	str	w9, [sp, #56]                   ; 4-byte Folded Spill
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;       Child Loop BB0_25 Depth 3
	cmp	w12, #16
	b.lt	LBB0_36
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	str	w15, [sp, #36]                  ; 4-byte Folded Spill
	stp	x14, x13, [sp, #40]             ; 16-byte Folded Spill
	mov	w28, #0
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_25 Depth 3
	mov	x24, #0
LBB0_25:                                ;   Parent Loop BB0_22 Depth=1
                                        ;     Parent Loop BB0_24 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x24, #0
	cset	w27, eq
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	x8, [x23, #40]
	add	x1, x24, x8
	mov	x0, x25
	bl	_decode_block_type
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_31
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=3
	mov	w9, #8
	lsl	w4, w9, w27
Lloh40:
	adrp	x11, lJTI0_0@PAGE
Lloh41:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_27
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=3
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w8, [x23, #32]
	add	w1, w24, w8
	add	x8, sp, #96
	ldr	x8, [x8, x24, lsl #3]
	mul	w9, w4, w28
	add	x2, x8, w9, uxtw #2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x25
	bl	_decode_image_block
	b	LBB0_31
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=3
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldp	w5, w8, [x23, #16]
	add	w1, w24, w8
	add	x8, sp, #96
	ldr	x8, [x8, x24, lsl #3]
	mul	w9, w4, w28
	add	x2, x8, w9, uxtw #2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x25
	bl	_decode_haar_block
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=3
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldr	w8, [x23, #36]
	add	w1, w24, w8
	add	x8, sp, #96
	ldr	x8, [x8, x24, lsl #3]
	mul	w9, w4, w28
	add	x2, x8, w9, uxtw #2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x25
	bl	_decode_fill_block
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_25 Depth=3
	ldr	x23, [sp, #80]                  ; 8-byte Folded Reload
	ldp	w5, w8, [x23, #24]
	add	w1, w24, w8
	add	x8, sp, #96
	ldr	x8, [x8, x24, lsl #3]
	mul	w9, w4, w28
	add	x2, x8, w9, uxtw #2
	ldr	x8, [x23, #8]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x24, lsl #2]
	mov	x0, x25
	mov	x6, x28
	mov	x7, x26
	bl	_decode_dct_block
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=3
	ldr	w8, [x23]
	cbnz	w8, LBB0_41
; %bb.32:                               ;   in Loop: Header=BB0_25 Depth=3
	ldr	x8, [x25]
	cbnz	x8, LBB0_41
; %bb.33:                               ;   in Loop: Header=BB0_25 Depth=3
	add	x24, x24, #1
	cmp	x24, #3
	b.ne	LBB0_25
; %bb.34:                               ;   in Loop: Header=BB0_24 Depth=2
	add	w28, w28, #1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.ne	LBB0_24
; %bb.35:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x1, [x8, #8]
	ldr	x8, [sp, #96]
	ldr	x12, [sp, #64]                  ; 8-byte Folded Reload
	ldp	x14, x13, [sp, #40]             ; 16-byte Folded Reload
	ldr	w15, [sp, #36]                  ; 4-byte Folded Reload
LBB0_36:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x9, [x1, #8]
	ldpsw	x10, x11, [x9]
	add	x8, x8, x10, lsl #6
	add	x13, x13, x11, lsl #5
	stp	x8, x13, [sp, #96]
	ldrsw	x9, [x9, #8]
	add	x14, x14, x9, lsl #5
	str	x14, [sp, #112]
	add	w26, w26, #1
	cmp	w26, w15
	b.ne	LBB0_22
	b	LBB0_38
LBB0_37:
	ldr	x1, [x21, #8]
LBB0_38:
	mov	x0, x22
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_40
; %bb.39:
	mov	w8, #1
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_10
LBB0_40:
	mov	x19, x0
	b	LBB0_10
LBB0_41:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	stp	x28, x26, [sp]
Lloh45:
	adrp	x2, l_.str.5@PAGE
Lloh46:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_av_log
	mov	w8, #1
	str	w8, [x23]
	b	LBB0_9
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_27-LBB0_27)>>2
	.byte	(LBB0_28-LBB0_27)>>2
	.byte	(LBB0_29-LBB0_27)>>2
	.byte	(LBB0_30-LBB0_27)>>2
                                        ; -- End function
	.comm	_HEADER_SIZE,4,2                ; @HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame should have at least %d bytes, got %d instead\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Invalid frame type %X\n"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid frame dimensions %dx%d +%d,%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid quality setting %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Keyframe without data found\n"

	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
l_.str.5:                               ; @.str.5
	.asciz	"Error decoding block %d,%d\n"

	.no_dead_strip	_mss3_decode_frame
.subsections_via_symbols
