	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msvideo1_decode_8bit
_msvideo1_decode_8bit:                  ## @msvideo1_decode_8bit
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %esi
	leal	3(%r9), %r8d
	testl	%r9d, %r9d
	cmovnsl	%r9d, %r8d
	cmpl	$4, %esi
	jl	LBB0_20
## %bb.1:
	movq	16(%r13), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %r11
	movl	(%rax), %eax
	sarl	$2, %r8d
	movl	%esi, %edx
	shrl	$2, %edx
	movl	%edx, %r10d
	imull	%r8d, %r10d
	andl	$-4, %esi
	leal	-1(%rsi), %edi
	imull	%eax, %edi
	leal	-4(%rsi), %ebx
	imull	%eax, %ebx
	leal	(,%rax,4), %r14d
	leal	-3(%rsi), %ecx
	imull	%eax, %ecx
	addl	$-2, %esi
	imull	%eax, %esi
	movq	%r11, -96(%rbp)                 ## 8-byte Spill
	leaq	3(%r11), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	leal	1(%r8), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r9, -168(%rbp)                 ## 8-byte Spill
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movl	%r14d, -132(%rbp)               ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-168(%rbp), %r9                 ## 8-byte Reload
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	movq	-160(%rbp), %r8                 ## 8-byte Reload
	movl	-152(%rbp), %r10d               ## 4-byte Reload
	movl	-148(%rbp), %edi                ## 4-byte Reload
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movl	-144(%rbp), %ebx                ## 4-byte Reload
	movl	-132(%rbp), %r14d               ## 4-byte Reload
	movl	-140(%rbp), %ecx                ## 4-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rdx), %r11d
	subl	%r14d, %ebx
	subl	%r14d, %ecx
	subl	%r14d, %esi
	subl	%r14d, %edi
	cmpl	$1, %edx
	movl	%r11d, %edx
	jle	LBB0_19
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$4, %r9d
	jl	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movl	%edi, -148(%rbp)                ## 4-byte Spill
	movslq	%edi, %rdx
	addq	-176(%rbp), %rdx                ## 8-byte Folded Reload
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r10d, %edx
	movq	%rdx, -208(%rbp)                ## 8-byte Spill
	subl	%r8d, %r10d
	movl	%r10d, -152(%rbp)               ## 4-byte Spill
	movl	%ebx, %edx
	movl	-136(%rbp), %r12d               ## 4-byte Reload
	xorl	%ebx, %ebx
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ecx, -140(%rbp)                ## 4-byte Spill
	movl	%ecx, %edi
	movl	%edx, -144(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=2
	decl	%eax
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=2
	addl	$4, %edx
	addl	$4, %edi
	addl	$4, %esi
	incq	%rbx
	decl	%r12d
	cmpl	$1, %r12d
	jle	LBB0_17
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	$2, %edi
	callq	_CHECK_STREAM_PTR
	movq	(%r13), %rax
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movslq	%r15d, %r14
	movzbl	(%rax,%r14), %r15d
	movzbl	1(%rax,%r14), %eax
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	testb	%al, %al
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	%ebx, -208(%rbp)                ## 4-byte Folded Reload
	je	LBB0_22
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	2(%r14), %r11
	movzbl	%al, %ebx
	movl	%ebx, %ecx
	andl	$-4, %ecx
	cmpl	$132, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	shll	$8, %ebx
	leal	(%r15,%rbx), %eax
	addl	$-33793, %eax                   ## imm = 0xFFFF7BFF
	movl	%r11d, %r15d
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movslq	%esi, %r10
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movslq	%edi, %r9
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movslq	%edx, %r8
	testb	%bl, %bl
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	shll	$8, %ebx
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	leal	(%rbx,%r15), %r13d
	notl	%r15d
	movl	$2, %edi
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r10, -200(%rbp)                ## 8-byte Spill
	movq	%r11, %rbx
	callq	_CHECK_STREAM_PTR
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movzbl	(%rax,%rbx), %ecx
	movb	%cl, -56(%rbp)
	movzbl	3(%r14,%rax), %eax
	movb	%al, -55(%rbp)
	andl	$1, %r15d
	movzbl	-56(%rbp,%r15), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movb	%al, -3(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	%eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, -2(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$2, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, -1(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$3, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, (%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$4, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%r8,%rcx)
	movl	%r13d, %eax
	shrl	$5, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 1(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$6, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 2(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$7, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$8, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%r8,%rcx)
	movl	%r13d, %eax
	shrl	$9, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 1(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$10, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 2(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$11, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$12, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%r8,%rcx)
	movl	%r13d, %eax
	shrl	$13, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 1(%r8,%rcx)
	shrl	$14, %r13d
	andl	$1, %r13d
	xorq	$1, %r13
	movzbl	-56(%rbp,%r13), %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movb	%al, 2(%r8,%rcx)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	notl	%eax
	movzwl	%ax, %eax
	shrq	$15, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%rcx)
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	addl	$4, %r15d
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$-112, %al
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	%ebx, %r13d
	shll	$8, %r13d
	orl	%r15d, %r13d
	movl	$8, %edi
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r10, %r14
	movq	%r11, %rbx
	callq	_CHECK_STREAM_PTR
	movslq	%ebx, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	leaq	-56(%rbp), %rdi
	movl	$8, %edx
	callq	_memcpy
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	notl	%r15d
	andl	$1, %r15d
	movzbl	-56(%rbp,%r15), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movb	%al, -3(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	%eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, -2(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$2, %eax
	andl	$1, %eax
	xorq	$3, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, -1(%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$3, %eax
	andl	$1, %eax
	xorq	$3, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, (%rcx,%rbx,4)
	movl	%r13d, %eax
	shrl	$4, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movb	%al, (%r8,%r14)
	movl	%r13d, %eax
	shrl	$5, %eax
	andl	$1, %eax
	xorq	$1, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 1(%r8,%r14)
	movl	%r13d, %eax
	shrl	$6, %eax
	andl	$1, %eax
	xorq	$3, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 2(%r8,%r14)
	movl	%r13d, %eax
	shrl	$7, %eax
	andl	$1, %eax
	xorq	$3, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%r14)
	movl	%r13d, %eax
	shrl	$8, %eax
	andl	$1, %eax
	xorq	$5, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%r8,%rcx)
	movl	%r13d, %eax
	shrl	$9, %eax
	andl	$1, %eax
	xorq	$5, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 1(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$10, %eax
	andl	$1, %eax
	xorq	$7, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 2(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$11, %eax
	andl	$1, %eax
	xorq	$7, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%rcx)
	movl	%r13d, %eax
	shrl	$12, %eax
	andl	$1, %eax
	xorq	$5, %rax
	movzbl	-56(%rbp,%rax), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movb	%al, (%r8,%rcx)
	shrl	$13, %r13d
	andl	$1, %r13d
	xorq	$5, %r13
	movzbl	-56(%rbp,%r13), %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movb	%al, 1(%r8,%rcx)
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	movl	%r9d, %eax
	shrl	$6, %eax
	andl	$1, %eax
	xorq	$7, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 2(%r8,%rcx)
	movq	%r9, %rax
	shrq	$7, %rax
	xorq	$7, %rax
	movzbl	-56(%rbp,%rax), %eax
	movb	%al, 3(%r8,%rcx)
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	addl	$10, %r15d
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movb	%r15b, -56(%rbp)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movb	%r15b, -3(%rcx,%rbx,4)
	movzbl	-56(%rbp), %eax
	movb	%al, -2(%rcx,%rbx,4)
	movzbl	-56(%rbp), %eax
	movb	%al, -1(%rcx,%rbx,4)
	movzbl	-56(%rbp), %eax
	movb	%al, (%rcx,%rbx,4)
	movzbl	-56(%rbp), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%r10)
	movzbl	-56(%rbp), %eax
	movb	%al, 1(%rcx,%r10)
	movzbl	-56(%rbp), %eax
	movb	%al, 2(%rcx,%r10)
	movzbl	-56(%rbp), %eax
	movb	%al, 3(%rcx,%r10)
	movzbl	-56(%rbp), %eax
	movb	%al, (%rcx,%r9)
	movzbl	-56(%rbp), %eax
	movb	%al, 1(%rcx,%r9)
	movzbl	-56(%rbp), %eax
	movb	%al, 2(%rcx,%r9)
	movzbl	-56(%rbp), %eax
	movb	%al, 3(%rcx,%r9)
	movzbl	-56(%rbp), %eax
	movb	%al, (%rcx,%r8)
	movzbl	-56(%rbp), %eax
	movb	%al, 1(%rcx,%r8)
	movzbl	-56(%rbp), %eax
	movb	%al, 2(%rcx,%r8)
	movzbl	-56(%rbp), %eax
	movb	%al, 3(%rcx,%r8)
	xorl	%eax, %eax
	movl	%r11d, %r15d
	jmp	LBB0_16
LBB0_19:
	movq	24(%r13), %rax
LBB0_20:
	movq	8(%rax), %rax
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:
	movq	8(%r13), %rsi
	movq	16(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	_AVPALETTE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AVPALETTE_SIZE,4,2             ## @AVPALETTE_SIZE
	.no_dead_strip	_msvideo1_decode_8bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msvideo1_decode_8bit
_msvideo1_decode_8bit:                  ; @msvideo1_decode_8bit
	.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	x8, [x0, #24]
	ldp	w13, w9, [x8]
	add	w10, w13, #3
	cmp	w13, #0
	csel	w10, w10, w13, lt
	cmp	w9, #4
	b.lt	LBB0_19
; %bb.1:
	mov	w8, #0
	mov	w19, #0
	ldr	x11, [x20, #16]
	ldp	x12, x11, [x11]
	ldr	w11, [x11]
	asr	w14, w10, #2
	lsr	w15, w9, #2
	mul	w23, w15, w14
	and	w9, w9, #0xfffffffc
	sub	w10, w9, #1
	mul	w16, w11, w10
	sub	w10, w9, #4
	mul	w25, w11, w10
	lsl	w17, w11, #2
	sub	w10, w9, #3
	mul	w27, w11, w10
	sub	w9, w9, #2
	mul	w28, w11, w9
	add	w9, w14, #1
	stp	w9, w14, [sp, #24]              ; 8-byte Folded Spill
	ldr	x9, [x12]
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	add	x9, x9, #1
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	stp	w17, w13, [sp, #8]              ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	w23, w28, [sp, #32]             ; 8-byte Folded Reload
	ldp	w17, w13, [sp, #8]              ; 8-byte Folded Reload
	ldp	w16, w15, [sp, #48]             ; 8-byte Folded Reload
	ldp	w27, w25, [sp, #40]             ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w25, w25, w17
	sub	w27, w27, w17
	sub	w28, w28, w17
	sub	w16, w16, w17
	subs	w15, w15, #1
	b.le	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w13, #4
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	w16, w15, [sp, #48]             ; 8-byte Folded Spill
	ldp	w22, w9, [sp, #24]              ; 8-byte Folded Reload
	sub	w9, w23, w9
	stp	w9, w28, [sp, #32]              ; 8-byte Folded Spill
	stp	w27, w25, [sp, #40]             ; 8-byte Folded Spill
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x24, x9, w16, sxtw
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w8, w8, #1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	sub	w23, w23, #1
	add	w25, w25, #4
	add	w27, w27, #4
	add	w28, w28, #4
	sub	w22, w22, #1
	add	x24, x24, #4
	cmp	w22, #1
	b.le	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #2
	bl	_CHECK_STREAM_PTR
	mov	x26, x20
	ldr	x8, [x20]
	str	x19, [sp, #104]                 ; 8-byte Folded Spill
	sxtw	x20, w19
	add	x8, x8, x20
	ldrb	w19, [x8]
	ldrb	w21, [x8, #1]
	cmp	x19, #0
	ccmp	w21, #0, #0, eq
	ccmp	w23, #0, #0, eq
	b.eq	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x13, x20, #2
	and	w8, w21, #0xfc
	cmp	w8, #132
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	bfi	w19, w21, #8, #8
	mov	w8, #-33793
	add	w8, w19, w8
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x19, x13
	mov	x20, x26
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x12, x8, w28, sxtw
	add	x11, x8, w27, sxtw
	add	x10, x8, w25, sxtw
	tbnz	w21, #7, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	mvn	w8, w19
	stp	x8, x13, [sp, #64]              ; 16-byte Folded Spill
	bfi	w19, w21, #8, #8
	mov	w0, #2
	stp	x11, x10, [sp, #88]             ; 16-byte Folded Spill
	str	x12, [sp, #80]                  ; 8-byte Folded Spill
	bl	_CHECK_STREAM_PTR
	mov	w8, #0
	ldr	x9, [x26]
	add	x10, x20, x9
	mov	x20, x26
	ldr	x11, [sp, #72]                  ; 8-byte Folded Reload
	ldrb	w9, [x9, x11]
	sturb	w9, [x29, #-96]
	ldrb	w9, [x10, #3]
	sturb	w9, [x29, #-95]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	and	x9, x9, #0x1
	sub	x10, x29, #96
	ldrb	w9, [x10, x9]
	sturb	w9, [x24, #-1]
	ubfx	w9, w19, #1, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x24]
	ubfx	w9, w19, #2, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x24, #1]
	ubfx	w9, w19, #3, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x24, #2]
	ubfx	w9, w19, #4, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	ldr	x11, [sp, #80]                  ; 8-byte Folded Reload
	strb	w9, [x11]
	ubfx	w9, w19, #5, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #1]
	ubfx	w9, w19, #6, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #2]
	ubfx	w9, w19, #7, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #3]
	ubfx	w9, w19, #8, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	ldr	x11, [sp, #88]                  ; 8-byte Folded Reload
	strb	w9, [x11]
	ubfx	w9, w19, #9, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #1]
	ubfx	w9, w19, #10, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #2]
	ubfx	w9, w19, #11, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #3]
	ubfx	w9, w19, #12, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	ldr	x11, [sp, #96]                  ; 8-byte Folded Reload
	strb	w9, [x11]
	ubfx	w9, w19, #13, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #1]
	ubfx	w9, w19, #14, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #2]
	mov	w9, #-1
	eor	w9, w9, w21, lsl #8
	ubfx	x9, x9, #15, #1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #3]
	ldr	x19, [sp, #104]                 ; 8-byte Folded Reload
	add	w19, w19, #4
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	cmp	w21, #144
	b.lo	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x8, x19
	bfi	w8, w21, #8, #8
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
	mov	w0, #8
	stp	x11, x10, [sp, #88]             ; 16-byte Folded Spill
	stp	x13, x12, [sp, #72]             ; 16-byte Folded Spill
	bl	_CHECK_STREAM_PTR
	mov	x20, x26
	ldr	x8, [x26]
	ldr	x9, [sp, #72]                   ; 8-byte Folded Reload
	add	x1, x8, w9, sxtw
	sub	x0, x29, #96
	mov	w2, #8
	bl	_memcpy
	mov	w8, #0
	mvn	w9, w19
	and	x9, x9, #0x1
	sub	x10, x29, #96
	ldrb	w9, [x10, x9]
	sturb	w9, [x24, #-1]
	ldr	w13, [sp, #64]                  ; 4-byte Folded Reload
	ubfx	w9, w13, #1, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x24]
	ubfx	w9, w13, #2, #1
	eor	x9, x9, #0x3
	ldrb	w9, [x10, x9]
	strb	w9, [x24, #1]
	ubfx	w9, w13, #3, #1
	eor	x9, x9, #0x3
	ldrb	w9, [x10, x9]
	strb	w9, [x24, #2]
	ubfx	w9, w13, #4, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	ldp	x11, x12, [sp, #80]             ; 16-byte Folded Reload
	strb	w9, [x11]
	ubfx	w9, w13, #5, #1
	eor	x9, x9, #0x1
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #1]
	ubfx	w9, w13, #6, #1
	eor	x9, x9, #0x3
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #2]
	ubfx	w9, w13, #7, #1
	eor	x9, x9, #0x3
	ldrb	w9, [x10, x9]
	strb	w9, [x11, #3]
	ubfx	w9, w13, #8, #1
	mov	w11, #5
	eor	x9, x9, x11
	ldrb	w9, [x10, x9]
	strb	w9, [x12]
	ubfx	w9, w13, #9, #1
	eor	x9, x9, x11
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #1]
	ubfx	w9, w13, #10, #1
	eor	x9, x9, #0x7
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #2]
	ubfx	w9, w13, #11, #1
	eor	x9, x9, #0x7
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #3]
	ubfx	w9, w13, #12, #1
	eor	x9, x9, x11
	ldrb	w9, [x10, x9]
	ldp	x12, x19, [sp, #96]             ; 16-byte Folded Reload
	strb	w9, [x12]
	ubfx	w9, w13, #13, #1
	eor	x9, x9, x11
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #1]
	ubfx	w9, w13, #14, #1
	eor	x9, x9, #0x7
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #2]
	lsr	x9, x21, #7
	eor	x9, x9, #0x7
	ldrb	w9, [x10, x9]
	strb	w9, [x12, #3]
	add	w19, w19, #10
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #0
	sturb	w19, [x29, #-96]
	sturb	w19, [x24, #-1]
	ldurb	w9, [x29, #-96]
	strb	w9, [x24]
	ldurb	w9, [x29, #-96]
	strb	w9, [x24, #1]
	ldurb	w9, [x29, #-96]
	strb	w9, [x24, #2]
	ldurb	w9, [x29, #-96]
	strb	w9, [x12]
	ldurb	w9, [x29, #-96]
	strb	w9, [x12, #1]
	ldurb	w9, [x29, #-96]
	strb	w9, [x12, #2]
	ldurb	w9, [x29, #-96]
	strb	w9, [x12, #3]
	ldurb	w9, [x29, #-96]
	strb	w9, [x11]
	ldurb	w9, [x29, #-96]
	strb	w9, [x11, #1]
	ldurb	w9, [x29, #-96]
	strb	w9, [x11, #2]
	ldurb	w9, [x29, #-96]
	strb	w9, [x11, #3]
	ldurb	w9, [x29, #-96]
	strb	w9, [x10]
	ldurb	w9, [x29, #-96]
	strb	w9, [x10, #1]
	ldurb	w9, [x29, #-96]
	strb	w9, [x10, #2]
	ldurb	w9, [x29, #-96]
	strb	w9, [x10, #3]
	b	LBB0_12
LBB0_18:
	ldr	x8, [x20, #24]
LBB0_19:
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:
	ldp	x1, x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
Lloh6:
	adrp	x8, _AVPALETTE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVPALETTE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	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_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AVPALETTE_SIZE,4,2             ; @AVPALETTE_SIZE
	.no_dead_strip	_msvideo1_decode_8bit
.subsections_via_symbols
