	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msvideo1_decode_16bit
_msvideo1_decode_16bit:                 ## @msvideo1_decode_16bit
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	leal	3(%rcx), %esi
	testl	%ecx, %ecx
	movq	%rcx, -184(%rbp)                ## 8-byte Spill
	cmovnsl	%ecx, %esi
	cmpl	$4, %eax
	jl	LBB0_18
## %bb.1:
	movq	%rax, %rdx
	movq	16(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	(%rcx), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	sarl	$2, %esi
	movl	%edx, %ecx
	shrl	$2, %ecx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx killed $rcx
	imull	%esi, %ecx
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	andl	$-4, %edx
	leal	-1(%rdx), %ecx
	imull	%eax, %ecx
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	leal	-4(%rdx), %ecx
	imull	%eax, %ecx
	movl	%ecx, -100(%rbp)                ## 4-byte Spill
	leal	(,%rax,4), %ecx
	movl	%ecx, -152(%rbp)                ## 4-byte Spill
	leal	-3(%rdx), %ecx
	imull	%eax, %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	addl	$-2, %edx
	imull	%eax, %edx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	leal	1(%rsi), %eax
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%r8d, %r8d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	leal	-1(%rsi), %ecx
	movl	-152(%rbp), %ebx                ## 4-byte Reload
	subl	%ebx, -100(%rbp)                ## 4-byte Folded Spill
	subl	%ebx, -96(%rbp)                 ## 4-byte Folded Spill
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	subl	%ebx, %edx
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	subl	%ebx, -104(%rbp)                ## 4-byte Folded Spill
	cmpl	$1, %esi
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	jle	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$4, -184(%rbp)                  ## 4-byte Folded Reload
	jl	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-104(%rbp), %rcx                ## 4-byte Folded Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rcx,2), %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	movq	%rdx, -208(%rbp)                ## 8-byte Spill
	subl	-176(%rbp), %ecx                ## 4-byte Folded Reload
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	-148(%rbp), %r15d               ## 4-byte Reload
	xorl	%r12d, %r12d
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, %ebx
	movl	-96(%rbp), %r14d                ## 4-byte Reload
	movl	-100(%rbp), %r13d               ## 4-byte Reload
	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, %r13d
	addl	$4, %r14d
	addl	$4, %ebx
	incq	%r12
	decl	%r15d
	cmpl	$1, %r15d
	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	%r13d, -108(%rbp)               ## 4-byte Spill
	movl	%r14d, %r13d
	movq	%rdi, %r14
	movl	$2, %edi
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	callq	_CHECK_STREAM_PTR
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %rdi
	movq	(%r14), %rax
	movslq	%ecx, %rsi
	movzbl	(%rax,%rsi), %r8d
	movzbl	1(%rax,%rsi), %eax
	testl	%r8d, %r8d
	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	%r12d, -208(%rbp)               ## 4-byte Folded Reload
	je	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	leal	2(%rcx), %r9d
	movzbl	%al, %edx
	movl	%edx, %ecx
	andl	$-4, %ecx
	cmpl	$132, %ecx
	movl	%r13d, %r14d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	shll	$8, %edx
	leal	(%r8,%rdx), %eax
	addl	$-33793, %eax                   ## imm = 0xFFFF7BFF
	movl	%r9d, %r8d
	movl	-108(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_16
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%edx, %ecx
	shll	$8, %ecx
	orl	%r8d, %ecx
	testb	%al, %al
	movl	-108(%rbp), %r13d               ## 4-byte Reload
	js	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r8, -192(%rbp)                 ## 8-byte Spill
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movl	$4, %edi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	callq	_CHECK_STREAM_PTR
	movslq	-68(%rbp), %rdi                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_AV_RL16
	movw	%ax, -68(%rbp)                  ## 2-byte Spill
	movw	%ax, -64(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$4, %rdi
	callq	_AV_RL16
	movw	%ax, -62(%rbp)
	movq	-144(%rbp), %rax                ## 8-byte Reload
	leal	6(%rax), %r8d
	cmpw	$0, -68(%rbp)                   ## 2-byte Folded Reload
	js	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%edi, %eax
	notl	%eax
	movl	%eax, %ecx
	andl	$1, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movw	%cx, (%rdx,%r12,8)
	xorl	%ecx, %ecx
	testb	$2, %dil
	sete	%cl
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 2(%rdx,%r12,8)
	xorl	%ecx, %ecx
	testb	$4, %dil
	sete	%cl
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 4(%rdx,%r12,8)
	xorl	%ecx, %ecx
	testb	$8, %dil
	sete	%cl
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 6(%rdx,%r12,8)
	movslq	%ebx, %rcx
	xorl	%edx, %edx
	testb	$16, %dil
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movw	%dx, (%rsi,%rcx,2)
	xorl	%edx, %edx
	testb	$32, %dil
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 2(%rsi,%rcx,2)
	xorl	%edx, %edx
	testb	$64, %dil
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 4(%rsi,%rcx,2)
	xorl	%edx, %edx
	testb	$-128, %dil
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 6(%rsi,%rcx,2)
	movslq	%r14d, %rcx
	xorl	%edx, %edx
	testl	$256, %edi                      ## imm = 0x100
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, (%rsi,%rcx,2)
	xorl	%edx, %edx
	testl	$512, %edi                      ## imm = 0x200
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 2(%rsi,%rcx,2)
	xorl	%edx, %edx
	testl	$1024, %edi                     ## imm = 0x400
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 4(%rsi,%rcx,2)
	xorl	%edx, %edx
	testl	$2048, %edi                     ## imm = 0x800
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 6(%rsi,%rcx,2)
	movslq	%r13d, %rcx
	xorl	%edx, %edx
	testl	$4096, %edi                     ## imm = 0x1000
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, (%rsi,%rcx,2)
	xorl	%edx, %edx
	testl	$8192, %edi                     ## imm = 0x2000
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 2(%rsi,%rcx,2)
	xorl	%edx, %edx
	testl	$16384, %edi                    ## imm = 0x4000
	sete	%dl
	movzwl	-64(%rbp,%rdx,2), %edx
	movw	%dx, 4(%rsi,%rcx,2)
	shrl	$14, %eax
	andl	$2, %eax
	movzwl	-64(%rbp,%rax), %eax
	movw	%ax, 6(%rsi,%rcx,2)
	xorl	%eax, %eax
                                        ## kill: def $r8d killed $r8d def $r8
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=2
	movw	%cx, -64(%rbp)
	movd	%ecx, %xmm0
	pshuflw	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0,4,5,6,7]
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	%xmm0, (%rax,%r12,8)
	movslq	%ebx, %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	%xmm0, (%rcx,%rax,2)
	movslq	%r14d, %rax
	movq	%xmm0, (%rcx,%rax,2)
	movslq	%r13d, %rax
	movq	%xmm0, (%rcx,%rax,2)
	xorl	%eax, %eax
	movl	%r9d, %r8d
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	$12, %edi
	movl	%r8d, -68(%rbp)                 ## 4-byte Spill
	callq	_CHECK_STREAM_PTR
	movslq	-68(%rbp), %rdi                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_AV_RL16
	movw	%ax, -60(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$8, %rdi
	callq	_AV_RL16
	movw	%ax, -58(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$10, %rdi
	callq	_AV_RL16
	movw	%ax, -56(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$12, %rdi
	callq	_AV_RL16
	movw	%ax, -54(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$14, %rdi
	callq	_AV_RL16
	movw	%ax, -52(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rdi
	addq	$16, %rdi
	callq	_AV_RL16
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	movw	%ax, -50(%rbp)
	movq	-192(%rbp), %rax                ## 8-byte Reload
	notl	%eax
	andl	$1, %eax
	movzwl	-64(%rbp,%rax,2), %eax
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movw	%ax, (%rcx,%r12,8)
	xorl	%eax, %eax
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	testb	$2, %sil
	sete	%al
	movzwl	-64(%rbp,%rax,2), %eax
	movw	%ax, 2(%rcx,%r12,8)
	movl	%esi, %eax
	shrl	$2, %eax
	andl	$1, %eax
	xorl	$3, %eax
	movzwl	-64(%rbp,%rax,2), %eax
	movw	%ax, 4(%rcx,%r12,8)
	movl	%esi, %eax
	shrl	$3, %eax
	andl	$1, %eax
	xorl	$3, %eax
	movzwl	-64(%rbp,%rax,2), %eax
	movw	%ax, 6(%rcx,%r12,8)
	movslq	%ebx, %rax
	xorl	%ecx, %ecx
	testb	$16, %sil
	sete	%cl
	movzwl	-64(%rbp,%rcx,2), %ecx
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movw	%cx, (%rdx,%rax,2)
	xorl	%ecx, %ecx
	testb	$32, %sil
	sete	%cl
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 2(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	xorl	$3, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 4(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$7, %ecx
	andl	$1, %ecx
	xorl	$3, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 6(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$8, %ecx
	movslq	%r14d, %rax
	andl	$1, %ecx
	xorl	$5, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, (%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$9, %ecx
	andl	$1, %ecx
	xorl	$5, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 2(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$10, %ecx
	andl	$1, %ecx
	xorl	$7, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 4(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$11, %ecx
	andl	$1, %ecx
	xorl	$7, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 6(%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$12, %ecx
	movslq	%r13d, %rax
	andl	$1, %ecx
	xorl	$5, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, (%rdx,%rax,2)
	movl	%esi, %ecx
	shrl	$13, %ecx
	andl	$1, %ecx
	xorl	$5, %ecx
	movzwl	-64(%rbp,%rcx,2), %ecx
	movw	%cx, 2(%rdx,%rax,2)
	shrl	$14, %esi
	andl	$1, %esi
	xorl	$7, %esi
	movzwl	-64(%rbp,%rsi,2), %ecx
	movw	%cx, 4(%rdx,%rax,2)
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	shrq	$6, %rcx
	andl	$-2, %ecx
	xorq	$14, %rcx
	movzwl	-64(%rbp,%rcx), %ecx
	movw	%cx, 6(%rdx,%rax,2)
	addl	$18, %r8d
	xorl	%eax, %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_msvideo1_decode_16bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msvideo1_decode_16bit
_msvideo1_decode_16bit:                 ; @msvideo1_decode_16bit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x8, x9, [x0, #8]
	ldr	x10, [x9]
	ldr	w10, [x10]
	cmp	w10, #0
	cinc	w11, w10, lt
	ldp	w12, w10, [x8]
	add	w8, w12, #3
	cmp	w12, #0
	str	w12, [sp, #40]                  ; 4-byte Folded Spill
	csel	w12, w8, w12, lt
	cmp	w10, #4
	b.lt	LBB0_18
; %bb.1:
	mov	x24, x0
	mov	w8, #0
	mov	w21, #0
	ldr	x9, [x9, #8]
	asr	w11, w11, #1
	asr	w13, w12, #2
	lsr	w12, w10, #2
	str	w12, [sp, #44]                  ; 4-byte Folded Spill
	mul	w25, w12, w13
	and	w10, w10, #0xfffffffc
	sub	w12, w10, #1
	mul	w12, w11, w12
	stp	w12, wzr, [sp, #72]             ; 8-byte Folded Spill
	sub	w12, w10, #4
	mul	w14, w11, w12
	lsl	w12, w11, #2
	str	w12, [sp, #36]                  ; 4-byte Folded Spill
	sub	w12, w10, #3
	mul	w12, w11, w12
	stp	w12, w14, [sp, #64]             ; 8-byte Folded Spill
	sub	w10, w10, #2
	mul	w10, w11, w10
	str	w10, [sp, #60]                  ; 4-byte Folded Spill
	add	w10, w13, #1
	stp	w10, w13, [sp, #12]             ; 8-byte Folded Spill
	ldr	x9, [x9]
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	add	x9, x9, #4
	str	x9, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [sp, #20]                  ; 4-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #36]                  ; 4-byte Folded Reload
	sub	w9, w9, w10
	str	w9, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	sub	w9, w9, w10
	str	w9, [sp, #72]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	subs	w9, w9, #1
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	b.le	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	cmp	w9, #4
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w28, w9, [sp, #12]              ; 8-byte Folded Reload
	sub	w9, w25, w9
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	ldp	w9, w22, [sp, #72]              ; 8-byte Folded Reload
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	add	x26, x10, w9, sxtw #1
	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	w25, w25, #1
	add	w22, w22, #4
	sub	w28, w28, #1
	add	x26, x26, #8
	cmp	w28, #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
	ldr	x8, [x24]
	sxtw	x27, w21
	add	x8, x8, x27
	ldrb	w19, [x8]
	ldrb	w23, [x8, #1]
	cmp	w19, #0
	ccmp	w23, #0, #0, eq
	ccmp	w25, #0, #0, eq
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x20, x27, #2
	and	w8, w23, #0xfc
	cmp	w8, #132
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	bfi	w19, w23, #8, #8
	mov	w8, #-33793
	add	w8, w19, w8
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	str	x21, [sp, #80]                  ; 8-byte Folded Spill
	mov	x21, x19
	bfi	w21, w23, #8, #8
	tbnz	w23, #7, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #4
	bl	_CHECK_STREAM_PTR
	ldr	x8, [x24]
	add	x0, x8, x20
	bl	_AV_RL16
	mov	x20, x0
	strh	w0, [sp, #88]
	ldr	x8, [x24]
	add	x8, x27, x8
	add	x0, x8, #4
	bl	_AV_RL16
	strh	w0, [sp, #90]
	mov	w14, #1
	bic	w12, w14, w21, lsr #1
	mov	x15, x24
	add	x24, x27, #6
	bic	w11, w14, w21, lsr #4
	bic	w16, w14, w21, lsr #5
	tbnz	w20, #15, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #0
	mvn	w9, w21
	and	w10, w9, #0x1
	add	x13, sp, #88
	ldrh	w10, [x13, w10, uxtw #1]
	sturh	w10, [x26, #-4]
	ldrh	w10, [x13, w12, uxtw #1]
	sturh	w10, [x26, #-2]
	bic	w10, w14, w21, lsr #2
	ldrh	w10, [x13, w10, uxtw #1]
	strh	w10, [x26]
	bic	w10, w14, w21, lsr #3
	ldrh	w10, [x13, w10, uxtw #1]
	strh	w10, [x26, #2]
	ldr	w10, [sp, #60]                  ; 4-byte Folded Reload
	add	w10, w10, w22
	ldrh	w11, [x13, w11, uxtw #1]
	ldr	x12, [sp, #48]                  ; 8-byte Folded Reload
	add	x10, x12, w10, sxtw #1
	strh	w11, [x10]
	ldrh	w11, [x13, w16, uxtw #1]
	strh	w11, [x10, #2]
	bic	w11, w14, w21, lsr #6
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #4]
	bic	w11, w14, w21, lsr #7
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #6]
	ldr	w10, [sp, #64]                  ; 4-byte Folded Reload
	add	w10, w10, w22
	bic	w11, w14, w21, lsr #8
	ldrh	w11, [x13, w11, uxtw #1]
	add	x10, x12, w10, sxtw #1
	strh	w11, [x10]
	bic	w11, w14, w21, lsr #9
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #2]
	bic	w11, w14, w21, lsr #10
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #4]
	bic	w11, w14, w21, lsr #11
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #6]
	ldr	w10, [sp, #68]                  ; 4-byte Folded Reload
	add	w10, w10, w22
	bic	w11, w14, w21, lsr #12
	ldrh	w11, [x13, w11, uxtw #1]
	add	x10, x12, w10, sxtw #1
	strh	w11, [x10]
	bic	w11, w14, w21, lsr #13
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #2]
	bic	w11, w14, w21, lsr #14
	ldrh	w11, [x13, w11, uxtw #1]
	strh	w11, [x10, #4]
	ubfx	w9, w9, #15, #1
	ldrh	w9, [x13, w9, uxtw #1]
	strh	w9, [x10, #6]
	mov	x21, x24
	mov	x24, x15
	b	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #0
	dup.4h	v0, w21
	stur	d0, [x26, #-4]
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	add	w9, w9, w22
	sbfiz	x9, x9, #1, #32
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	str	d0, [x10, x9]
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	add	w9, w9, w22
	sbfiz	x9, x9, #1, #32
	str	d0, [x10, x9]
	strh	w21, [sp, #88]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	add	w9, w9, w22
	sbfiz	x9, x9, #1, #32
	str	d0, [x10, x9]
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x21, x20
	b	LBB0_7
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #12
	mov	x20, x15
	stp	w11, w16, [sp, #28]             ; 8-byte Folded Spill
	str	w12, [sp, #24]                  ; 4-byte Folded Spill
	bl	_CHECK_STREAM_PTR
	ldr	x8, [x20]
	add	x0, x8, x24
	bl	_AV_RL16
	strh	w0, [sp, #92]
	ldr	x8, [x20]
	add	x8, x27, x8
	add	x0, x8, #8
	bl	_AV_RL16
	strh	w0, [sp, #94]
	ldr	x8, [x20]
	add	x8, x27, x8
	add	x0, x8, #10
	bl	_AV_RL16
	strh	w0, [sp, #96]
	ldr	x8, [x20]
	add	x8, x27, x8
	add	x0, x8, #12
	bl	_AV_RL16
	strh	w0, [sp, #98]
	ldr	x8, [x20]
	add	x8, x27, x8
	add	x0, x8, #14
	bl	_AV_RL16
	strh	w0, [sp, #100]
	ldr	x8, [x20]
	add	x8, x27, x8
	add	x0, x8, #16
	bl	_AV_RL16
	mov	w8, #0
	mvn	w9, w19
	and	x9, x9, #0x1
	add	x14, sp, #88
	ldrh	w9, [x14, x9, lsl #1]
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	ldrh	w10, [x14, w10, uxtw #1]
	strh	w0, [sp, #102]
	ubfx	w11, w21, #2, #1
	eor	w11, w11, #0x3
	ldrh	w11, [x14, w11, uxtw #1]
	sturh	w9, [x26, #-4]
	sturh	w10, [x26, #-2]
	ubfx	w9, w21, #3, #1
	eor	w9, w9, #0x3
	ldrh	w9, [x14, w9, uxtw #1]
	ldp	w10, w12, [sp, #28]             ; 8-byte Folded Reload
	ldrh	w10, [x14, w10, uxtw #1]
	ldrh	w12, [x14, w12, uxtw #1]
	strh	w11, [x26]
	ldr	w11, [sp, #60]                  ; 4-byte Folded Reload
	add	w11, w11, w22
	ldr	x13, [sp, #48]                  ; 8-byte Folded Reload
	add	x11, x13, w11, sxtw #1
	strh	w9, [x26, #2]
	ubfx	w9, w21, #6, #1
	eor	w9, w9, #0x3
	ldrh	w9, [x14, w9, uxtw #1]
	strh	w10, [x11]
	ubfx	w10, w21, #7, #1
	eor	w10, w10, #0x3
	ldrh	w10, [x14, w10, uxtw #1]
	strh	w12, [x11, #2]
	ubfx	w12, w21, #8, #1
	mov	w15, #5
	eor	w12, w12, w15
	ldrh	w12, [x14, w12, uxtw #1]
	strh	w9, [x11, #4]
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	add	w9, w9, w22
	strh	w10, [x11, #6]
	add	x9, x13, w9, sxtw #1
	ubfx	w10, w21, #9, #1
	eor	w10, w10, w15
	ldrh	w10, [x14, w10, uxtw #1]
	strh	w12, [x9]
	strh	w10, [x9, #2]
	ubfx	w10, w21, #10, #1
	eor	w10, w10, #0x7
	ldrh	w10, [x14, w10, uxtw #1]
	strh	w10, [x9, #4]
	ubfx	w10, w21, #11, #1
	eor	w10, w10, #0x7
	ldrh	w10, [x14, w10, uxtw #1]
	ldr	w11, [sp, #68]                  ; 4-byte Folded Reload
	add	w11, w11, w22
	strh	w10, [x9, #6]
	ubfx	w9, w21, #12, #1
	eor	w9, w9, w15
	ldrh	w9, [x14, w9, uxtw #1]
	add	x10, x13, w11, sxtw #1
	strh	w9, [x10]
	ubfx	w9, w21, #13, #1
	eor	w9, w9, w15
	ldrh	w9, [x14, w9, uxtw #1]
	strh	w9, [x10, #2]
	ubfx	w9, w21, #14, #1
	eor	w9, w9, #0x7
	ldrh	w9, [x14, w9, uxtw #1]
	strh	w9, [x10, #4]
	lsr	x9, x23, #6
	and	x9, x9, #0x2
	eor	x9, x9, #0xe
	ldrh	w9, [x14, x9]
	strh	w9, [x10, #6]
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	add	w21, w21, #18
	mov	x24, x20
	b	LBB0_7
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_msvideo1_decode_16bit
.subsections_via_symbols
