	.file	"extr_dt3155.c_dt3155_s_std.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dt3155_s_std, @function
dt3155_s_std:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	video_drvdata@PLT
	mov	rbx, rax
	xor	eax, eax
	cmp	DWORD PTR [rbx], ebp
	je	.L1
	lea	rdi, 16[rbx]
	call	vb2_is_busy@PLT
	test	rax, rax
	jne	.L8
	mov	DWORD PTR [rbx], ebp
	mov	eax, ebp
	and	eax, DWORD PTR V4L2_STD_525_60[rip]
	je	.L4
	mov	eax, DWORD PTR VT_60HZ[rip]
	mov	DWORD PTR 12[rbx], eax
	movabs	rax, 2061584302720
	mov	QWORD PTR 4[rbx], rax
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	movabs	rcx, 2473901163264
	mov	edx, DWORD PTR VT_50HZ[rip]
	mov	QWORD PTR 4[rbx], rcx
	mov	DWORD PTR 12[rbx], edx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dt3155_s_std, .-dt3155_s_std
	.comm	VT_60HZ,4,4
	.comm	VT_50HZ,4,4
	.comm	V4L2_STD_525_60,4,4
	.comm	EBUSY,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_dt3155.c_dt3155_s_std.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dt3155_s_std, %function
dt3155_s_std:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	bl	video_drvdata
	ldr	r3, [r0]
	cmp	r3, r5
	beq	.L5
	mov	r4, r0
	add	r0, r0, #16
	bl	vb2_is_busy
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L9
	str	r5, [r4]
	ldr	r3, [r3]
	tst	r5, r3
	movne	r1, #640
	moveq	r1, #768
	movne	r2, #480
	moveq	r2, #576
	ldrne	r3, .L9+4
	ldreq	r3, .L9+8
	str	r1, [r4, #4]
	ldr	r3, [r3]
	str	r2, [r4, #8]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	V4L2_STD_525_60
	.word	VT_60HZ
	.word	VT_50HZ
	.word	EBUSY
	.size	dt3155_s_std, .-dt3155_s_std
	.comm	VT_60HZ,4,4
	.comm	VT_50HZ,4,4
	.comm	V4L2_STD_525_60,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
