	.file	"extr_stv090x.c_stv090x_get_std.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stv090x_get_std, @function
stv090x_get_std:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR DMDSTATE[rip]
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR HEADER_MODE_FIELD[rip]
	mov	edi, eax
	mov	ebp, eax
	call	STV090x_GETFIELD_Px@PLT
	cmp	eax, 2
	jne	.L2
	mov	eax, DWORD PTR STV090x_DVBS2[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR HEADER_MODE_FIELD[rip]
	mov	edi, ebp
	call	STV090x_GETFIELD_Px@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR STV090x_ERROR[rip]
	cmp	r8d, 3
	jne	.L1
	mov	esi, DWORD PTR FECM[rip]
	mov	rdi, r12
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR DSS_DVB_FIELD[rip]
	mov	edi, eax
	call	STV090x_GETFIELD_Px@PLT
	cmp	eax, 1
	mov	eax, DWORD PTR STV090x_DSS[rip]
	cmovne	eax, DWORD PTR STV090x_DVBS1[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	stv090x_get_std, .-stv090x_get_std
	.comm	STV090x_ERROR,4,4
	.comm	STV090x_DVBS2,4,4
	.comm	STV090x_DVBS1,4,4
	.comm	STV090x_DSS,4,4
	.comm	HEADER_MODE_FIELD,4,4
	.comm	FECM,4,4
	.comm	DSS_DVB_FIELD,4,4
	.comm	DMDSTATE,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_stv090x.c_stv090x_get_std.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv090x_get_std, %function
stv090x_get_std:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	STV090x_READ_DEMOD
	ldr	r6, .L9+4
	mov	r4, r0
	ldr	r1, [r6]
	bl	STV090x_GETFIELD_Px
	cmp	r0, #2
	bne	.L2
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	ldr	r1, [r6]
	bl	STV090x_GETFIELD_Px
	cmp	r0, #3
	beq	.L8
	ldr	r3, .L9+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	STV090x_READ_DEMOD
	ldr	r3, .L9+20
	ldr	r1, [r3]
	bl	STV090x_GETFIELD_Px
	cmp	r0, #1
	ldreq	r3, .L9+24
	ldrne	r3, .L9+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	DMDSTATE
	.word	HEADER_MODE_FIELD
	.word	STV090x_DVBS2
	.word	STV090x_ERROR
	.word	FECM
	.word	DSS_DVB_FIELD
	.word	STV090x_DSS
	.word	STV090x_DVBS1
	.size	stv090x_get_std, .-stv090x_get_std
	.comm	STV090x_ERROR,4,4
	.comm	STV090x_DVBS2,4,4
	.comm	STV090x_DVBS1,4,4
	.comm	STV090x_DSS,4,4
	.comm	HEADER_MODE_FIELD,4,4
	.comm	FECM,4,4
	.comm	DSS_DVB_FIELD,4,4
	.comm	DMDSTATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
