	.file	"extr_addi-datahwdrv_apci3120.c_i_APCI3120_InsnConfigTimer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"config:No timer constant !"
.LC1:
	.string	"apci3001"
	.text
	.p2align 4
	.globl	i_APCI3120_InsnConfigTimer
	.type	i_APCI3120_InsnConfigTimer, @function
i_APCI3120_InsnConfigTimer:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 4[rcx]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	test	eax, eax
	je	.L13
.L2:
	mov	rax, QWORD PTR devpriv[rip]
	mov	edx, DWORD PTR 8[r12]
	mov	BYTE PTR [rax], dl
	mov	rdi, QWORD PTR APCI3120_RD_STATUS[rip]
	add	rdi, QWORD PTR 24[rax]
	mov	ebp, DWORD PTR 4[r12]
	call	inw@PLT
	and	ax, 176
	cmp	ax, 176
	jne	.L3
.L5:
	shr	ebp, 4
	imul	rbp, rbp, 175921861
	shr	rbp, 39
.L4:
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI3120_WR_ADDRESS[rip]
	mov	edi, DWORD PTR 4[rax]
	and	edi, DWORD PTR APCI3120_DISABLE_TIMER2[rip]
	mov	DWORD PTR 4[rax], edi
	add	rsi, QWORD PTR 24[rax]
	call	outw@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, DWORD PTR APCI3120_DISABLE_TIMER_INT[rip]
	and	edi, DWORD PTR APCI3120_DISABLE_EOC_INT[rip]
	mov	rsi, QWORD PTR APCI3120_WRITE_MODE_SELECT[rip]
	and	edi, DWORD PTR 8[rax]
	and	edi, DWORD PTR APCI3120_DISABLE_EOS_INT[rip]
	and	edi, 239
	add	rsi, QWORD PTR 24[rax]
	mov	DWORD PTR 8[rax], edi
	call	outb@PLT
	mov	eax, DWORD PTR APCI3120_TIMER[rip]
	cmp	DWORD PTR [r12], eax
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, DWORD PTR 12[rax]
	je	.L14
	and	edi, 15
	or	edi, DWORD PTR APCI3120_TIMER_2_MODE_5[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT1[rip]
	mov	DWORD PTR 12[rax], edi
	add	rsi, QWORD PTR 24[rax]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT0[rip]
	mov	edi, DWORD PTR 16[rax]
	add	rsi, QWORD PTR 24[rax]
	and	edi, -16
	or	dil, BYTE PTR APCI3120_SELECT_TIMER_2_LOW_WORD[rip]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, ebp
	mov	r12, QWORD PTR APCI3120_TIMER_VALUE[rip]
	add	r12, QWORD PTR 24[rax]
	call	LOWORD@PLT
	mov	rsi, r12
	mov	edi, eax
	call	outw@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT0[rip]
	mov	edi, DWORD PTR 16[rax]
	add	rsi, QWORD PTR 24[rax]
	and	edi, -16
	or	dil, BYTE PTR APCI3120_SELECT_TIMER_2_HIGH_WORD[rip]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, ebp
	mov	r12, QWORD PTR APCI3120_TIMER_VALUE[rip]
	add	r12, QWORD PTR 24[rax]
	call	HIWORD@PLT
	mov	rsi, r12
	mov	edi, eax
	call	outw@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edx, DWORD PTR APCI3120_WATCHDOG[rip]
	mov	DWORD PTR 20[rax], edx
	mov	eax, DWORD PTR [rbx]
	pop	rbx
	.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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR this_board[rip]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	call	strcmp@PLT
	test	eax, eax
	je	.L5
	imul	rbp, rbp, 502633887
	shr	rbp, 45
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	and	edi, 15
	or	edi, DWORD PTR APCI3120_TIMER_2_MODE_2[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT1[rip]
	mov	DWORD PTR 12[rax], edi
	add	rsi, QWORD PTR 24[rax]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT0[rip]
	mov	edi, DWORD PTR 16[rax]
	add	rsi, QWORD PTR 24[rax]
	and	edi, -16
	or	dil, BYTE PTR APCI3120_SELECT_TIMER_2_LOW_WORD[rip]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, ebp
	mov	r12, QWORD PTR APCI3120_TIMER_VALUE[rip]
	add	r12, QWORD PTR 24[rax]
	call	LOWORD@PLT
	mov	rsi, r12
	mov	edi, eax
	call	outw@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI3120_TIMER_CRT0[rip]
	mov	edi, DWORD PTR 16[rax]
	add	rsi, QWORD PTR 24[rax]
	and	edi, -16
	or	dil, BYTE PTR APCI3120_SELECT_TIMER_2_HIGH_WORD[rip]
	movzx	edi, dil
	call	outb@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, ebp
	mov	r12, QWORD PTR APCI3120_TIMER_VALUE[rip]
	add	r12, QWORD PTR 24[rax]
	call	HIWORD@PLT
	mov	rsi, r12
	mov	edi, eax
	call	outw@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edx, DWORD PTR APCI3120_TIMER[rip]
	mov	DWORD PTR 20[rax], edx
	mov	eax, DWORD PTR [rbx]
	pop	rbx
	.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
.L13:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	comedi_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	i_APCI3120_InsnConfigTimer, .-i_APCI3120_InsnConfigTimer
	.comm	this_board,8,8
	.comm	devpriv,8,8
	.comm	APCI3120_WR_ADDRESS,8,8
	.comm	APCI3120_WRITE_MODE_SELECT,8,8
	.comm	APCI3120_WATCHDOG,4,4
	.comm	APCI3120_TIMER_VALUE,8,8
	.comm	APCI3120_TIMER_CRT1,8,8
	.comm	APCI3120_TIMER_CRT0,8,8
	.comm	APCI3120_TIMER_2_MODE_5,4,4
	.comm	APCI3120_TIMER_2_MODE_2,4,4
	.comm	APCI3120_TIMER,4,4
	.comm	APCI3120_SELECT_TIMER_2_LOW_WORD,4,4
	.comm	APCI3120_SELECT_TIMER_2_HIGH_WORD,4,4
	.comm	APCI3120_RD_STATUS,8,8
	.comm	APCI3120_DISABLE_TIMER_INT,4,4
	.comm	APCI3120_DISABLE_TIMER2,4,4
	.comm	APCI3120_DISABLE_EOS_INT,4,4
	.comm	APCI3120_DISABLE_EOC_INT,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-datahwdrv_apci3120.c_i_APCI3120_InsnConfigTimer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"config:No timer constant !\000"
	.align	2
.LC1:
	.ascii	"apci3001\000"
	.text
	.align	2
	.global	i_APCI3120_InsnConfigTimer
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI3120_InsnConfigTimer, %function
i_APCI3120_InsnConfigTimer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r3
	ldr	r3, [r3, #4]
	mov	r6, r2
	cmp	r3, #0
	beq	.L13
.L2:
	ldr	r4, .L15
	ldr	r1, [r7, #8]
	ldr	r3, [r4]
	ldr	r2, .L15+4
	strb	r1, [r3]
	ldr	r0, [r3, #24]
	ldr	r3, [r2]
	ldr	r5, [r7, #4]
	add	r0, r0, r3
	bl	inw
	and	r0, r0, #176
	cmp	r0, #176
	bne	.L3
.L5:
	ldr	r3, .L15+8
	lsr	r5, r5, #4
	umull	r2, r5, r3, r5
	lsr	r5, r5, #7
.L4:
	ldr	r3, [r4]
	ldr	r1, .L15+12
	ldr	r0, [r3, #4]
	ldr	r1, [r1]
	ldr	r2, .L15+16
	and	r0, r0, r1
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	str	r0, [r3, #4]
	add	r1, r1, r2
	bl	outw
	ldr	r1, .L15+20
	ldr	r2, .L15+24
	ldr	r3, [r4]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L15+28
	and	r0, r0, r2
	ldr	r2, [r3, #8]
	ldr	r1, [r1]
	and	r0, r0, r2
	ldr	r2, .L15+32
	and	r0, r0, r1
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	and	r0, r0, #239
	ldr	r8, .L15+36
	str	r0, [r3, #8]
	add	r1, r1, r2
	bl	outb
	ldr	r3, [r8]
	ldr	r2, [r7]
	cmp	r2, r3
	ldr	r3, [r4]
	beq	.L14
	ldr	r1, .L15+40
	ldr	r0, [r3, #12]
	ldr	r2, .L15+44
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	and	r0, r0, #15
	orr	r0, r0, ip
	str	r0, [r3, #12]
	add	r1, r1, r2
	and	r0, r0, #255
	bl	outb
	ldr	r3, [r4]
	ldr	r2, .L15+48
	ldr	r0, [r3, #16]
	ldr	r8, .L15+52
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	bic	r0, r0, #15
	ldr	r3, [r8]
	orr	r0, r0, r2
	add	r1, r1, r3
	and	r0, r0, #255
	bl	outb
	mov	r0, r5
	bl	LOWORD
	ldr	r7, .L15+56
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r1, [r2, #24]
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r4]
	ldr	r2, .L15+60
	ldr	r0, [r3, #16]
	ldr	ip, [r2]
	ldr	r1, [r3, #24]
	ldr	r2, [r8]
	bic	r0, r0, #15
	orr	r0, r0, ip
	add	r1, r1, r2
	and	r0, r0, #255
	bl	outb
	mov	r0, r5
	bl	HIWORD
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r1, [r2, #24]
	add	r1, r1, r3
	bl	outw
	ldr	r2, .L15+64
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r2, [r3, #20]
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, .L15+68
	ldr	r1, .L15+72
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	strcmp
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L15+76
	umull	r2, r5, r3, r5
	lsr	r5, r5, #13
	b	.L4
.L14:
	ldr	r1, .L15+80
	ldr	r0, [r3, #12]
	ldr	r2, .L15+44
	ldr	ip, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	and	r0, r0, #15
	orr	r0, r0, ip
	str	r0, [r3, #12]
	add	r1, r1, r2
	and	r0, r0, #255
	bl	outb
	ldr	r3, [r4]
	ldr	r2, .L15+48
	ldr	r0, [r3, #16]
	ldr	r9, .L15+52
	ldr	r2, [r2]
	ldr	r1, [r3, #24]
	bic	r0, r0, #15
	ldr	r3, [r9]
	orr	r0, r0, r2
	add	r1, r1, r3
	and	r0, r0, #255
	bl	outb
	mov	r0, r5
	bl	LOWORD
	ldr	r7, .L15+56
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r1, [r2, #24]
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r4]
	ldr	r2, .L15+60
	ldr	r0, [r3, #16]
	ldr	ip, [r2]
	ldr	r1, [r3, #24]
	ldr	r2, [r9]
	bic	r0, r0, #15
	orr	r0, r0, ip
	add	r1, r1, r2
	and	r0, r0, #255
	bl	outb
	mov	r0, r5
	bl	HIWORD
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r1, [r2, #24]
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r4]
	ldr	r2, [r8]
	str	r2, [r3, #20]
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r1, .L15+84
	bl	comedi_error
	b	.L2
.L16:
	.align	2
.L15:
	.word	devpriv
	.word	APCI3120_RD_STATUS
	.word	175921861
	.word	APCI3120_DISABLE_TIMER2
	.word	APCI3120_WR_ADDRESS
	.word	APCI3120_DISABLE_TIMER_INT
	.word	APCI3120_DISABLE_EOC_INT
	.word	APCI3120_DISABLE_EOS_INT
	.word	APCI3120_WRITE_MODE_SELECT
	.word	APCI3120_TIMER
	.word	APCI3120_TIMER_2_MODE_5
	.word	APCI3120_TIMER_CRT1
	.word	APCI3120_SELECT_TIMER_2_LOW_WORD
	.word	APCI3120_TIMER_CRT0
	.word	APCI3120_TIMER_VALUE
	.word	APCI3120_SELECT_TIMER_2_HIGH_WORD
	.word	APCI3120_WATCHDOG
	.word	this_board
	.word	.LC1
	.word	502633887
	.word	APCI3120_TIMER_2_MODE_2
	.word	.LC0
	.size	i_APCI3120_InsnConfigTimer, .-i_APCI3120_InsnConfigTimer
	.comm	this_board,4,4
	.comm	devpriv,4,4
	.comm	APCI3120_WR_ADDRESS,4,4
	.comm	APCI3120_WRITE_MODE_SELECT,4,4
	.comm	APCI3120_WATCHDOG,4,4
	.comm	APCI3120_TIMER_VALUE,4,4
	.comm	APCI3120_TIMER_CRT1,4,4
	.comm	APCI3120_TIMER_CRT0,4,4
	.comm	APCI3120_TIMER_2_MODE_5,4,4
	.comm	APCI3120_TIMER_2_MODE_2,4,4
	.comm	APCI3120_TIMER,4,4
	.comm	APCI3120_SELECT_TIMER_2_LOW_WORD,4,4
	.comm	APCI3120_SELECT_TIMER_2_HIGH_WORD,4,4
	.comm	APCI3120_RD_STATUS,4,4
	.comm	APCI3120_DISABLE_TIMER_INT,4,4
	.comm	APCI3120_DISABLE_TIMER2,4,4
	.comm	APCI3120_DISABLE_EOS_INT,4,4
	.comm	APCI3120_DISABLE_EOC_INT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
