	.file	"extr_s2255drv.c_planar422p_to_yuv_packed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	planar422p_to_yuv_packed, @function
planar422p_to_yuv_packed:
.LFB0:
	.cfi_startproc
	endbr64
	imul	ecx, edx
	mov	edx, ecx
	movsx	r11, ecx
	shr	edx, 31
	lea	r9, [rdi+r11]
	add	edx, ecx
	sar	edx
	movsx	rdx, edx
	add	rdx, r11
	add	rdx, rdi
	add	r11, r11
	je	.L1
	xor	eax, eax
	xor	ecx, ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	r10d, BYTE PTR [r9]
	add	r9, 1
	mov	BYTE PTR [rsi+rcx], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	je	.L17
.L5:
	movzx	r10d, BYTE PTR [rdi]
	lea	rcx, 1[rdi]
	lea	edi, 1[rax]
	mov	BYTE PTR [rsi+rdi], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	je	.L18
.L7:
	movzx	r10d, BYTE PTR [rdx]
	lea	edi, 2[rax]
	add	rdx, 1
	mov	BYTE PTR [rsi+rdi], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	je	.L19
.L9:
	movzx	r10d, BYTE PTR [rcx]
	lea	rdi, 1[rcx]
.L10:
	lea	ecx, 3[rax]
	mov	BYTE PTR [rsi+rcx], r10b
	lea	ecx, 4[rax]
	mov	rax, rcx
	cmp	rcx, r11
	jnb	.L1
.L11:
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	jne	.L3
	movzx	r10d, BYTE PTR [rdi]
	add	rdi, 1
	mov	BYTE PTR [rsi+rcx], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	jne	.L5
.L17:
	movzx	r10d, BYTE PTR [r9]
	mov	rcx, rdi
	lea	edi, 1[rax]
	add	r9, 1
	mov	BYTE PTR [rsi+rdi], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	jne	.L7
.L18:
	movzx	r10d, BYTE PTR [rcx]
	lea	edi, 2[rax]
	add	rcx, 1
	mov	BYTE PTR [rsi+rdi], r10b
	cmp	DWORD PTR V4L2_PIX_FMT_YUYV[rip], r8d
	jne	.L9
.L19:
	movzx	r10d, BYTE PTR [rdx]
	mov	rdi, rcx
	add	rdx, 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	planar422p_to_yuv_packed, .-planar422p_to_yuv_packed
	.comm	V4L2_PIX_FMT_YUYV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_s2255drv.c_planar422p_to_yuv_packed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	planar422p_to_yuv_packed, %function
planar422p_to_yuv_packed:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mul	r2, r3, r2
	add	r3, r2, r2, lsr #31
	push	{r4, r5, r6, lr}
	add	r3, r2, r3, asr #1
	lsls	r6, r2, #1
	ldr	ip, [sp, #16]
	add	r3, r0, r3
	add	r2, r0, r2
	popeq	{r4, r5, r6, pc}
	mov	r4, #0
	ldr	lr, .L18
.L11:
	ldr	r5, [lr]
	add	r4, r4, #4
	cmp	r5, ip
	ldrbeq	r5, [r0], #1	@ zero_extendqisi2
	ldrbne	r5, [r2], #1	@ zero_extendqisi2
	add	r1, r1, #4
	strb	r5, [r1, #-4]
	ldr	r5, [lr]
	cmp	r5, ip
	ldrbne	r5, [r0], #1	@ zero_extendqisi2
	ldrbeq	r5, [r2], #1	@ zero_extendqisi2
	strb	r5, [r1, #-3]
	ldr	r5, [lr]
	cmp	r5, ip
	ldrbeq	r5, [r0], #1	@ zero_extendqisi2
	ldrbne	r5, [r3], #1	@ zero_extendqisi2
	strb	r5, [r1, #-2]
	ldr	r5, [lr]
	cmp	r5, ip
	ldrbeq	r5, [r3], #1	@ zero_extendqisi2
	ldrbne	r5, [r0], #1	@ zero_extendqisi2
	cmp	r4, r6
	strb	r5, [r1, #-1]
	bcc	.L11
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	V4L2_PIX_FMT_YUYV
	.size	planar422p_to_yuv_packed, .-planar422p_to_yuv_packed
	.comm	V4L2_PIX_FMT_YUYV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
