	.file	"extr_addi-dataAPCI1710_INCCPT.c_i_APCI1710_ReadFrequencyMeasurement.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Frequency measurement logic not initialised\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Counter not initialised\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"The selected module number parameter is wrong\n"
	.text
	.p2align 4
	.globl	i_APCI1710_ReadFrequencyMeasurement
	.type	i_APCI1710_ReadFrequencyMeasurement, @function
i_APCI1710_ReadFrequencyMeasurement:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	sil, 3
	ja	.L2
	mov	r13, rdx
	mov	rdx, QWORD PTR devpriv[rip]
	movzx	ebp, sil
	sal	rbp, 4
	mov	rax, QWORD PTR [rdx]
	add	rax, rbp
	cmp	DWORD PTR 4[rax], 1
	jne	.L3
	cmp	DWORD PTR 8[rax], 1
	jne	.L4
	cmp	DWORD PTR 12[rax], 1
	mov	r12, rcx
	je	.L30
	mov	BYTE PTR 0[r13], 0
	xor	eax, eax
	mov	BYTE PTR [rcx], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	sal	rsi, 6
	mov	rax, QWORD PTR 8[rdx]
	mov	r14, r8
	mov	rbx, rsi
	and	ebx, 16320
	lea	rdi, 32[rbx+rax]
	call	inl@PLT
	test	al, 1
	jne	.L31
	mov	BYTE PTR 0[r13], 1
	xor	eax, eax
	mov	BYTE PTR [r12], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	shr	eax
	mov	BYTE PTR 0[r13], 2
	and	eax, 3
	mov	BYTE PTR [r12], al
	mov	rax, QWORD PTR devpriv[rip]
	mov	rax, QWORD PTR 8[rax]
	lea	rdi, 28[rbx+rax]
	call	inl@PLT
	mov	DWORD PTR [r14], eax
	movzx	edx, BYTE PTR [r12]
	test	dl, dl
	jne	.L7
	mov	rcx, QWORD PTR devpriv[rip]
	mov	edx, DWORD PTR APCI1710_16BIT_COUNTER[rip]
	mov	rcx, QWORD PTR [rcx]
	mov	edi, DWORD PTR [rcx+rbp]
	and	edi, edx
	cmp	edx, edi
	je	.L32
	test	eax, eax
	je	.L27
	not	eax
	mov	DWORD PTR [r14], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	dl, 1
	je	.L28
	cmp	dl, 2
	je	.L33
.L27:
	xor	eax, eax
	jmp	.L1
.L33:
	test	ax, ax
	je	.L27
	xor	eax, 65535
	mov	DWORD PTR [r14], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	test	ax, ax
	je	.L28
	xor	eax, 65535
	mov	DWORD PTR [r14], eax
.L28:
	test	eax, -65536
	je	.L27
	mov	edx, eax
	movzx	eax, ax
	not	edx
	xor	dx, dx
	or	eax, edx
	mov	DWORD PTR [r14], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC1[rip]
	call	DPRINTK@PLT
	mov	eax, -3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC0[rip]
	call	DPRINTK@PLT
	mov	eax, -4
	jmp	.L1
.L2:
	lea	rdi, .LC2[rip]
	call	DPRINTK@PLT
	mov	eax, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i_APCI1710_ReadFrequencyMeasurement, .-i_APCI1710_ReadFrequencyMeasurement
	.comm	devpriv,8,8
	.comm	APCI1710_16BIT_COUNTER,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_addi-dataAPCI1710_INCCPT.c_i_APCI1710_ReadFrequencyMeasurement.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Frequency measurement logic not initialised\012\000"
	.align	2
.LC1:
	.ascii	"Counter not initialised\012\000"
	.align	2
.LC2:
	.ascii	"The selected module number parameter is wrong\012\000"
	.text
	.align	2
	.global	i_APCI1710_ReadFrequencyMeasurement
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI1710_ReadFrequencyMeasurement, %function
i_APCI1710_ReadFrequencyMeasurement:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #3
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	bhi	.L2
	ldr	r6, .L35
	mov	r5, r3
	ldr	r3, [r6]
	mov	r8, r2
	ldr	r0, [r3]
	mov	r4, r1
	add	r0, r0, r1, lsl #4
	ldr	r2, [r0, #4]
	cmp	r2, #1
	bne	.L3
	ldr	r2, [r0, #8]
	cmp	r2, #1
	bne	.L4
	ldr	r7, [r0, #12]
	cmp	r7, #1
	beq	.L31
	mov	r3, #0
	strb	r3, [r8]
	mov	r0, r3
	strb	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L31:
	ldr	r0, [r3, #4]
	lsl	r9, r1, #6
	add	r0, r0, #32
	add	r0, r0, r1, lsl #6
	bl	inl
	ands	r3, r0, #1
	bne	.L32
	strb	r7, [r8]
	mov	r0, r3
	strb	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L32:
	mov	r3, #2
	lsr	r0, r0, #1
	and	r0, r0, #3
	strb	r3, [r8]
	strb	r0, [r5]
	ldr	r3, [r6]
	ldr	r0, [r3, #4]
	add	r0, r0, #28
	add	r0, r0, r9
	bl	inl
	ldr	r3, [sp, #32]
	mov	r2, r0
	str	r0, [r3]
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	cmp	r3, #1
	beq	.L29
	cmp	r3, #2
	bne	.L27
	ldr	r3, .L35+4
	tst	r0, r3
	eorne	r2, r2, r3
	ldrne	r3, [sp, #32]
	strne	r2, [r3]
.L27:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L33:
	ldr	r0, [r6]
	ldr	r1, .L35+8
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r0, [r0, r4, lsl #4]
	bics	r1, r1, r0
	beq	.L34
	cmp	r2, #0
	beq	.L27
	mvn	r2, r2
	mov	r0, r3
	ldr	r3, [sp, #32]
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L34:
	ldr	r3, .L35+4
	tst	r2, r3
	eorne	r2, r2, r3
	ldrne	r3, [sp, #32]
	strne	r2, [r3]
.L29:
	lsr	r3, r2, #16
	lsl	r3, r3, #16
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L35+4
	mov	r0, #0
	sub	r1, r3, r2, lsr #16
	and	r3, r3, r2
	ldr	r2, [sp, #32]
	orr	r3, r3, r1, lsl #16
	str	r3, [r2]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r0, .L35+12
	bl	DPRINTK
	mvn	r0, #2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r0, .L35+16
	bl	DPRINTK
	mvn	r0, #3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r0, .L35+20
	bl	DPRINTK
	mvn	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L36:
	.align	2
.L35:
	.word	devpriv
	.word	65535
	.word	APCI1710_16BIT_COUNTER
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	i_APCI1710_ReadFrequencyMeasurement, .-i_APCI1710_ReadFrequencyMeasurement
	.comm	devpriv,4,4
	.comm	APCI1710_16BIT_COUNTER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
