	.file	"extr_ivtv-ioctl.c_ivtv_s_fbuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ivtv_s_fbuf, @function
ivtv_s_fbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rsi]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR V4L2_CAP_VIDEO_OUTPUT_OVERLAY[rip], eax
	je	.L4
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jne	.L8
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdx]
	xor	ecx, ecx
	test	DWORD PTR V4L2_FBUF_FLAG_GLOBAL_ALPHA[rip], eax
	mov	r13, rdx
	setne	cl
	mov	r12, rdi
	mov	rdi, rbx
	mov	rbp, rsi
	mov	DWORD PTR 4[rbx], ecx
	mov	ecx, DWORD PTR V4L2_FBUF_FLAG_LOCAL_ALPHA[rip]
	or	ecx, DWORD PTR V4L2_FBUF_FLAG_LOCAL_INV_ALPHA[rip]
	test	ecx, eax
	setne	cl
	test	DWORD PTR V4L2_FBUF_FLAG_CHROMAKEY[rip], eax
	setne	al
	movzx	ecx, cl
	movzx	eax, al
	mov	DWORD PTR 8[rbx], ecx
	mov	DWORD PTR 12[rbx], eax
	call	ivtv_set_osd_alpha@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	rdx, r13
	mov	rsi, rbp
	test	DWORD PTR V4L2_FBUF_FLAG_OVERLAY[rip], eax
	mov	rdi, r12
	setne	al
	movzx	eax, al
	mov	DWORD PTR 20[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ivtv_g_fbuf@PLT
	.cfi_endproc
.LFE0:
	.size	ivtv_s_fbuf, .-ivtv_s_fbuf
	.comm	V4L2_FBUF_FLAG_OVERLAY,4,4
	.comm	V4L2_FBUF_FLAG_LOCAL_INV_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_LOCAL_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_GLOBAL_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_CHROMAKEY,4,4
	.comm	V4L2_CAP_VIDEO_OUTPUT_OVERLAY,4,4
	.comm	EINVAL,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_ivtv-ioctl.c_ivtv_s_fbuf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_s_fbuf, %function
ivtv_s_fbuf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L12
	ldr	r7, [r1]
	mov	r4, r1
	ldr	r3, [r3]
	ldr	r1, [r7]
	tst	r1, r3
	beq	.L4
	ldr	r3, [r7, #16]
	cmp	r3, #0
	bne	.L11
.L4:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r5, r2
	ldr	r3, .L12+8
	mov	r6, r0
	ldr	r1, [r3]
	ldr	r2, .L12+12
	ldr	r3, [r5]
	ldr	r0, .L12+16
	tst	r3, r1
	ldr	r0, [r0]
	ldr	r1, .L12+20
	ldr	r2, [r2]
	orr	r2, r2, r0
	ldr	r0, [r1]
	movne	r1, #1
	moveq	r1, #0
	tst	r2, r3
	movne	r2, #1
	moveq	r2, #0
	tst	r3, r0
	movne	r3, #1
	moveq	r3, #0
	mov	r0, r7
	stmib	r7, {r1, r2, r3}
	bl	ivtv_set_osd_alpha
	ldr	r3, .L12+24
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r1, r4
	tst	r2, r3
	movne	r3, #1
	moveq	r3, #0
	mov	r0, r6
	mov	r2, r5
	str	r3, [r7, #20]
	pop	{r4, r5, r6, r7, r8, lr}
	b	ivtv_g_fbuf
.L13:
	.align	2
.L12:
	.word	V4L2_CAP_VIDEO_OUTPUT_OVERLAY
	.word	EINVAL
	.word	V4L2_FBUF_FLAG_GLOBAL_ALPHA
	.word	V4L2_FBUF_FLAG_LOCAL_ALPHA
	.word	V4L2_FBUF_FLAG_LOCAL_INV_ALPHA
	.word	V4L2_FBUF_FLAG_CHROMAKEY
	.word	V4L2_FBUF_FLAG_OVERLAY
	.size	ivtv_s_fbuf, .-ivtv_s_fbuf
	.comm	V4L2_FBUF_FLAG_OVERLAY,4,4
	.comm	V4L2_FBUF_FLAG_LOCAL_INV_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_LOCAL_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_GLOBAL_ALPHA,4,4
	.comm	V4L2_FBUF_FLAG_CHROMAKEY,4,4
	.comm	V4L2_CAP_VIDEO_OUTPUT_OVERLAY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
