	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mss1_decode_frame
_mss1_decode_frame:                     ## @mss1_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	leaq	-48(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_arith_init
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ff_reget_buffer
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movq	(%r14), %rax
	movq	(%rax), %rcx
	movq	16(%rax), %rax
	movslq	(%rcx), %rcx
	movslq	(%rbx), %rdx
	decq	%rdx
	imulq	%rcx, %rdx
	addq	(%rax), %rdx
	movq	%rdx, 40(%r14)
	negl	%ecx
	movl	%ecx, 16(%r14)
	leaq	-44(%rbp), %rdi
	callq	_arith_get_bit
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 20(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 32(%r14)
	jne	LBB0_4
## %bb.6:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r14), %r13
	movq	$0, 32(%r14)
	leaq	8(%r14), %rdi
	callq	_ff_mss12_slicecontext_reset
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_decode_pal
	movl	%eax, %r13d
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	$1, %ecx
LBB0_7:
	movq	(%r14), %rdx
	movl	%ecx, 8(%rdx)
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	leaq	8(%r14), %rdi
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ff_mss12_decode_rect
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %r12
LBB0_11:
	movl	(%r12), %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %rax
	movq	16(%rax), %rax
	movq	8(%rax), %rdi
	movl	24(%r14), %esi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	(%r14), %rsi
	movl	%r13d, 12(%rsi)
	movq	%r15, %rdi
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.no_dead_strip	_mss1_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mss1_decode_frame
_mss1_decode_frame:                     ; @mss1_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0, #8]
	ldp	w2, w1, [x3]
	add	x0, sp, #12
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_9
; %bb.1:
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_arith_init
	ldr	x1, [x24]
	mov	x0, x22
	mov	w2, #0
	bl	_ff_reget_buffer
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x8, [x24]
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	ldrsw	x10, [x22]
	sub	x10, x10, #1
	madd	x9, x10, x8, x9
	str	x9, [x24, #40]
	neg	w8, w8
	str	w8, [x24, #16]
	add	x0, sp, #8
	bl	_arith_get_bit
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x24, #20]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_7
; %bb.4:
	mov	w9, #0
	mov	w23, #0
Lloh0:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	add	x23, x24, #16
	str	xzr, [x24, #32]
	add	x0, x24, #8
	bl	_ff_mss12_slicecontext_reset
	add	x1, sp, #8
	mov	x0, x23
	bl	_decode_pal
	mov	x23, x0
Lloh2:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
	mov	w9, #1
LBB0_6:
	ldr	x10, [x24]
	str	w9, [x10, #8]
	ldr	w8, [x8]
	str	w8, [x10, #24]
	add	x0, x24, #8
	ldp	w5, w4, [x22]
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #0
	bl	_ff_mss12_decode_rect
	str	x0, [x24, #32]
	cbz	x0, LBB0_10
LBB0_7:
Lloh4:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh5:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	x8, [x24]
	ldr	x8, [x8, #16]
	ldr	x0, [x8, #8]
	ldr	w1, [x24, #24]
Lloh6:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x1, [x24]
	str	w23, [x1, #12]
	mov	x0, x21
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_9
; %bb.11:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.no_dead_strip	_mss1_decode_frame
.subsections_via_symbols
