	.file	"extr_ves1x93.c_ves1x93_get_frontend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ves1x93_get_frontend, @function
ves1x93_get_frontend:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	mov	esi, 10
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	rdi, rbp
	call	ves1x93_readreg@PLT
	mov	rcx, QWORD PTR 8[rbp]
	mov	r8d, eax
	movsx	rax, DWORD PTR [rbx]
	mov	rdx, rax
	imul	rax, rax, 274877907
	sar	edx, 31
	sar	rax, 41
	sub	eax, edx
	lea	edx, [r8+r8]
	sar	dl
	movsx	edx, dl
	imul	eax, edx
	test	eax, eax
	lea	edx, 15[rax]
	cmovs	eax, edx
	sar	eax, 4
	cdqe
	sub	rcx, rax
	mov	rax, QWORD PTR INVERSION_AUTO[rip]
	mov	QWORD PTR 16[rbx], rcx
	cmp	QWORD PTR 0[rbp], rax
	je	.L7
.L2:
	mov	rdi, rbp
	call	ves1x93_get_fec@PLT
	mov	DWORD PTR 4[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, 15
	mov	rdi, rbp
	call	ves1x93_readreg@PLT
	test	al, 2
	mov	eax, DWORD PTR INVERSION_OFF[rip]
	cmove	eax, DWORD PTR INVERSION_ON[rip]
	mov	DWORD PTR 8[rbx], eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ves1x93_get_frontend, .-ves1x93_get_frontend
	.comm	INVERSION_ON,4,4
	.comm	INVERSION_OFF,4,4
	.comm	INVERSION_AUTO,8,8
	.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_ves1x93.c_ves1x93_get_frontend.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ves1x93_get_frontend, %function
ves1x93_get_frontend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r1
	mov	r0, r5
	mov	r1, #10
	bl	ves1x93_readreg
	ldr	r3, [r4]
	ldr	r1, .L8
	and	r2, r0, #127
	smull	r0, r1, r3, r1
	asr	r0, r3, #31
	rsb	r0, r0, r1, asr #9
	mul	r0, r2, r0
	add	r3, r0, #15
	cmp	r0, #0
	movlt	r0, r3
	ldr	r2, .L8+4
	ldr	r3, [r5, #4]
	ldr	r1, [r5]
	ldr	r2, [r2]
	sub	r0, r3, r0, asr #4
	cmp	r1, r2
	str	r0, [r4, #12]
	beq	.L7
.L2:
	mov	r0, r5
	bl	ves1x93_get_fec
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r1, #15
	mov	r0, r5
	bl	ves1x93_readreg
	tst	r0, #2
	ldrne	r3, .L8+8
	ldreq	r3, .L8+12
	ldr	r3, [r3]
	str	r3, [r4, #8]
	b	.L2
.L9:
	.align	2
.L8:
	.word	274877907
	.word	INVERSION_AUTO
	.word	INVERSION_OFF
	.word	INVERSION_ON
	.size	ves1x93_get_frontend, .-ves1x93_get_frontend
	.comm	INVERSION_ON,4,4
	.comm	INVERSION_OFF,4,4
	.comm	INVERSION_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
