	.file	"extr_pwc-uncompress.c_pwc_decompress.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"This chipset is not supported for now\n"
	.text
	.p2align 4
	.globl	pwc_decompress
	.type	pwc_decompress, @function
pwc_decompress:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, r14
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	vb2_plane_vaddr@PLT
	movsx	rbp, DWORD PTR 0[r13]
	add	rbp, QWORD PTR 8[r14]
	mov	r12, rax
	mov	rax, QWORD PTR V4L2_PIX_FMT_YUV420[rip]
	cmp	QWORD PTR 8[r13], rax
	je	.L2
	mov	rdi, QWORD PTR 16[r13]
	call	cpu_to_le16@PLT
	mov	rdi, QWORD PTR 24[r13]
	mov	QWORD PTR 16[r12], rax
	call	cpu_to_le16@PLT
	mov	rsi, QWORD PTR 32[r13]
	mov	rdi, QWORD PTR [r12]
	mov	edx, 4
	mov	QWORD PTR 8[r12], rax
	call	memcpy@PLT
	mov	edx, DWORD PTR 40[r13]
	lea	rdi, 24[r12]
	mov	rsi, rbp
	call	memcpy@PLT
	mov	edx, DWORD PTR 40[r13]
	xor	esi, esi
	mov	rdi, r14
	add	edx, 24
	call	vb2_set_plane_payload@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 44[r13]
	imul	eax, DWORD PTR 48[r13]
	xor	esi, esi
	mov	rdi, r14
	lea	eax, [rax+rax*2]
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	vb2_set_plane_payload@PLT
	cmp	QWORD PTR 24[r13], 0
	jne	.L4
	mov	edx, DWORD PTR 44[r13]
	mov	edi, DWORD PTR 48[r13]
	mov	eax, edx
	imul	eax, edi
	test	eax, eax
	lea	ecx, 3[rax]
	movsx	r8, eax
	cmovns	ecx, eax
	lea	rsi, [r12+r8]
	sar	ecx, 2
	movsx	rcx, ecx
	add	rcx, r8
	xor	r8d, r8d
	add	rcx, r12
	test	edi, edi
	jle	.L18
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, r8d
	xor	eax, eax
	and	edi, 1
	test	edx, edx
	jg	.L8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR [rcx], edx
	add	eax, 4
	add	rcx, 4
	cmp	DWORD PTR 44[r13], eax
	jle	.L11
.L8:
	mov	edx, DWORD PTR 0[rbp]
	add	r12, 8
	add	rbp, 12
	mov	DWORD PTR -8[r12], edx
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[r12], edx
	mov	edx, DWORD PTR -4[rbp]
	test	edi, edi
	jne	.L20
	mov	DWORD PTR [rsi], edx
	add	eax, 4
	add	rsi, 4
	cmp	DWORD PTR 44[r13], eax
	jg	.L8
.L11:
	add	r8d, 1
	cmp	DWORD PTR 48[r13], r8d
	jle	.L18
	mov	edx, DWORD PTR 44[r13]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR 16[r13]
	call	DEVICE_USE_CODEC1@PLT
	test	rax, rax
	jne	.L21
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	pwc_dec23_decompress@PLT
.L18:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	PWC_ERROR@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pwc_decompress, .-pwc_decompress
	.comm	V4L2_PIX_FMT_YUV420,8,8
	.comm	ENXIO,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_pwc-uncompress.c_pwc_decompress.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"This chipset is not supported for now\012\000"
	.text
	.align	2
	.global	pwc_decompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	pwc_decompress, %function
pwc_decompress:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r7, r1
	mov	r0, r1
	mov	r1, #0
	bl	vb2_plane_vaddr
	ldr	r3, .L18
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r6, [r7, #4]
	cmp	r2, r3
	ldr	r3, [r4]
	mov	r5, r0
	add	r6, r6, r3
	beq	.L2
	ldr	r0, [r4, #8]
	bl	cpu_to_le16
	str	r0, [r5, #8]
	ldr	r0, [r4, #12]
	bl	cpu_to_le16
	mov	r8, r5
	mov	r3, r0
	ldr	r0, [r8], #12
	mov	r2, #4
	str	r3, [r5, #4]
	ldr	r1, [r4, #16]
	bl	memcpy
	mov	r1, r6
	ldr	r2, [r4, #20]
	mov	r0, r8
	bl	memcpy
	ldr	r2, [r4, #20]
	mov	r0, r7
	mov	r1, #0
	add	r2, r2, #12
	bl	vb2_set_plane_payload
	mov	r7, #0
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #28]
	mov	r0, r7
	mul	r2, r3, r2
	add	r2, r2, r2, lsl #1
	add	r2, r2, r2, lsr #31
	mov	r1, #0
	asr	r2, r2, #1
	bl	vb2_set_plane_payload
	ldr	r7, [r4, #12]
	cmp	r7, #0
	bne	.L4
	ldr	r3, [r4, #28]
	ldr	ip, [r4, #24]
	mul	r0, r3, ip
	cmp	r0, #0
	add	lr, r0, #3
	movge	lr, r0
	cmp	r3, #0
	add	lr, r0, lr, asr #2
	movgt	r9, r7
	add	lr, r5, lr
	add	r0, r5, r0
	ble	.L1
.L5:
	cmp	ip, #0
	movgt	r1, #0
	addgt	r2, r5, #8
	addgt	r3, r6, #12
	andgt	r8, r9, #1
	ble	.L11
.L8:
	ldr	ip, [r3, #-12]
	cmp	r8, #0
	str	ip, [r2, #-8]
	ldr	ip, [r3, #-8]
	add	r1, r1, #4
	str	ip, [r2, #-4]
	movne	ip, lr
	moveq	ip, r0
	ldrne	lr, [r3, #-4]
	ldreq	r0, [r3, #-4]
	strne	lr, [ip], #4
	streq	r0, [ip], #4
	movne	lr, ip
	moveq	r0, ip
	ldr	ip, [r4, #24]
	mov	r6, r3
	cmp	ip, r1
	mov	r5, r2
	add	r3, r3, #12
	add	r2, r2, #8
	bgt	.L8
	ldr	r3, [r4, #28]
.L11:
	add	r9, r9, #1
	cmp	r3, r9
	bgt	.L5
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r0, [r4, #8]
	bl	DEVICE_USE_CODEC1
	subs	r7, r0, #0
	bne	.L17
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	pwc_dec23_decompress
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r0, .L18+4
	bl	PWC_ERROR
	ldr	r3, .L18+8
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L19:
	.align	2
.L18:
	.word	V4L2_PIX_FMT_YUV420
	.word	.LC0
	.word	ENXIO
	.size	pwc_decompress, .-pwc_decompress
	.comm	V4L2_PIX_FMT_YUV420,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
