	.file	"extr_saa7127.c_saa7127_set_wss.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"WSS mode: %s\n"
.LC1:
	.string	"on"
.LC2:
	.string	"Turn WSS %s\n"
.LC3:
	.string	"off"
	.text
	.p2align 4
	.type	saa7127_set_wss, @function
saa7127_set_wss:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	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
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_state@PLT
	mov	r12d, DWORD PTR [rbx]
	mov	rbp, rax
	test	r12d, r12d
	je	.L2
	cmp	QWORD PTR 8[rbx], 0
	jne	.L9
	cmp	r12d, 23
	je	.L3
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR debug[rip]
	lea	r8, .LC3[rip]
	mov	rdx, r13
	mov	edi, 1
	lea	rcx, .LC2[rip]
	call	v4l2_dbg@PLT
	xor	edx, edx
	mov	esi, 39
	mov	rdi, r13
	call	saa7127_write@PLT
	mov	DWORD PTR 0[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR [rax], 1
	je	.L8
	mov	esi, DWORD PTR debug[rip]
	lea	r8, .LC1[rip]
	mov	rdx, r13
	mov	edi, 1
	lea	rcx, .LC2[rip]
	call	v4l2_dbg@PLT
	mov	edx, 128
	mov	esi, 39
	mov	rdi, r13
	call	saa7127_write@PLT
	mov	DWORD PTR 0[rbp], 1
.L8:
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, r13
	mov	esi, 38
	xor	r12d, r12d
	mov	edx, DWORD PTR [rax]
	call	saa7127_write@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdi, r13
	mov	esi, 39
	mov	edx, DWORD PTR 4[rax]
	and	edx, 63
	or	dl, -128
	call	saa7127_write@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR wss_strs[rip]
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR debug[rip]
	mov	edi, 1
	mov	eax, DWORD PTR [rax]
	and	eax, 15
	mov	r8, QWORD PTR [rdx+rax*8]
	mov	rdx, r13
	call	v4l2_dbg@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR 4[rdx]
	sal	eax, 8
	and	eax, 16128
	or	eax, DWORD PTR [rdx]
	mov	DWORD PTR 4[rbp], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	ret
	.cfi_endproc
.LFE0:
	.size	saa7127_set_wss, .-saa7127_set_wss
	.comm	wss_strs,8,8
	.comm	debug,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_saa7127.c_saa7127_set_wss.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Turn WSS %s\012\000"
	.align	2
.LC1:
	.ascii	"on\000"
	.align	2
.LC2:
	.ascii	"WSS mode: %s\012\000"
	.align	2
.LC3:
	.ascii	"off\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	saa7127_set_wss, %function
saa7127_set_wss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	sub	sp, sp, #12
	mov	r5, r0
	bl	to_state
	ldr	r6, [r4]
	mov	r7, r0
	cmp	r6, #0
	beq	.L2
	ldr	r3, [r4, #4]
	cmp	r6, #23
	cmpeq	r3, #0
	beq	.L3
	ldr	r3, .L11
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L1
	ldr	r2, .L11+4
	ldr	r3, .L11+8
	ldr	r1, [r2]
	mov	r0, #1
	mov	r2, r5
	str	r3, [sp]
	ldr	r3, .L11+12
	bl	v4l2_dbg
	mov	r2, r6
	mov	r0, r5
	mov	r1, #39
	bl	saa7127_write
	mov	r0, r6
	str	r6, [r7]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, [r0]
	ldr	r6, .L11+4
	cmp	r3, #1
	beq	.L5
	ldr	r3, .L11+16
	ldr	r1, [r6]
	mov	r2, r5
	str	r3, [sp]
	mov	r0, #1
	ldr	r3, .L11+12
	bl	v4l2_dbg
	mov	r2, #128
	mov	r1, #39
	mov	r0, r5
	bl	saa7127_write
	mov	r3, #1
	str	r3, [r7]
.L5:
	ldr	r3, [r4, #8]
	mov	r1, #38
	ldr	r2, [r3]
	mov	r0, r5
	bl	saa7127_write
	ldr	r3, [r4, #8]
	mov	r1, #39
	ldr	r2, [r3, #4]
	mov	r0, r5
	and	r2, r2, #63
	orr	r2, r2, #128
	bl	saa7127_write
	ldr	r1, [r6]
	mov	r6, #0
	ldr	r3, [r4, #8]
	ldr	r2, .L11+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, #15
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, #1
	mov	r2, r5
	str	r3, [sp]
	ldr	r3, .L11+24
	bl	v4l2_dbg
	mov	r0, r6
	ldr	r2, [r4, #8]
	ldm	r2, {r2, r3}
	lsl	r3, r3, #8
	and	r3, r3, #16128
	orr	r3, r3, r2
	str	r3, [r7, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	EINVAL
	.word	debug
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	wss_strs
	.word	.LC2
	.size	saa7127_set_wss, .-saa7127_set_wss
	.comm	wss_strs,4,4
	.comm	debug,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
