	.file	"extr_hwdrv_apci1032.c_i_APCI1032_ConfigDigitalInput.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i_APCI1032_ConfigDigitalInput
	.type	i_APCI1032_ConfigDigitalInput, @function
i_APCI1032_ConfigDigitalInput:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR devpriv[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	mov	edx, DWORD PTR current[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], edx
	add	rsi, QWORD PTR APCI1032_DIGITAL_IP_INTERRUPT_MODE1[rip]
	mov	eax, DWORD PTR ADDIDATA_ENABLE[rip]
	cmp	DWORD PTR [rcx], eax
	je	.L7
	xor	edi, edi
	call	outl@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI1032_DIGITAL_IP_INTERRUPT_MODE2[rip]
	xor	edi, edi
	add	rsi, QWORD PTR [rax]
	call	outl@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI1032_DIGITAL_IP_IRQ[rip]
	xor	edi, edi
	add	rsi, QWORD PTR [rax]
	call	outl@PLT
	mov	eax, DWORD PTR 0[rbp]
	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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rcx]
	mov	r12d, DWORD PTR 12[rcx]
	mov	rbx, rcx
	call	outl@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR APCI1032_DIGITAL_IP_INTERRUPT_MODE2[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR [rax]
	call	outl@PLT
	mov	eax, DWORD PTR ADDIDATA_OR[rip]
	cmp	DWORD PTR 4[rbx], eax
	mov	rsi, QWORD PTR APCI1032_DIGITAL_IP_IRQ[rip]
	mov	rax, QWORD PTR devpriv[rip]
	je	.L8
	add	rsi, QWORD PTR [rax]
	mov	edi, 6
	call	outl@PLT
	mov	eax, DWORD PTR 0[rbp]
	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
.L8:
	.cfi_restore_state
	add	rsi, QWORD PTR [rax]
	mov	edi, 4
	call	outl@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rdi, QWORD PTR APCI1032_DIGITAL_IP_IRQ[rip]
	add	rdi, QWORD PTR [rax]
	call	inl@PLT
	mov	eax, DWORD PTR 0[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i_APCI1032_ConfigDigitalInput, .-i_APCI1032_ConfigDigitalInput
	.comm	devpriv,8,8
	.comm	current,4,4
	.comm	APCI1032_DIGITAL_IP_IRQ,8,8
	.comm	APCI1032_DIGITAL_IP_INTERRUPT_MODE2,8,8
	.comm	APCI1032_DIGITAL_IP_INTERRUPT_MODE1,8,8
	.comm	ADDIDATA_OR,4,4
	.comm	ADDIDATA_ENABLE,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_hwdrv_apci1032.c_i_APCI1032_ConfigDigitalInput.c"
	.text
	.align	2
	.global	i_APCI1032_ConfigDigitalInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	i_APCI1032_ConfigDigitalInput, %function
i_APCI1032_ConfigDigitalInput:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	ldr	r5, .L9
	ldr	r1, .L9+4
	ldr	r3, [r5]
	ldr	r1, [r1]
	ldr	r0, .L9+8
	str	r1, [r3, #4]
	ldr	r1, .L9+12
	ldr	r0, [r0]
	ldr	ip, [r4]
	ldr	r3, [r3]
	ldr	r1, [r1]
	cmp	ip, r0
	mov	r6, r2
	add	r1, r1, r3
	beq	.L7
	mov	r0, #0
	bl	outl
	ldr	r2, [r5]
	ldr	r3, .L9+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	outl
	ldr	r2, [r5]
	ldr	r3, .L9+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, #0
	add	r1, r1, r3
	bl	outl
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r4, #8]
	ldr	r7, [r4, #12]
	bl	outl
	ldr	r2, [r5]
	ldr	r3, .L9+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r7
	add	r1, r1, r3
	bl	outl
	ldr	r3, .L9+24
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	ldr	r2, [r5]
	ldr	r3, .L9+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, #6
	add	r1, r1, r3
	bl	outl
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, [r5]
	ldr	r4, .L9+20
	ldr	r1, [r3]
	ldr	r3, [r4]
	mov	r0, #4
	add	r1, r1, r3
	bl	outl
	ldr	r2, [r5]
	ldr	r3, [r4]
	ldr	r0, [r2]
	add	r0, r0, r3
	bl	inl
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	devpriv
	.word	current
	.word	ADDIDATA_ENABLE
	.word	APCI1032_DIGITAL_IP_INTERRUPT_MODE1
	.word	APCI1032_DIGITAL_IP_INTERRUPT_MODE2
	.word	APCI1032_DIGITAL_IP_IRQ
	.word	ADDIDATA_OR
	.size	i_APCI1032_ConfigDigitalInput, .-i_APCI1032_ConfigDigitalInput
	.comm	devpriv,4,4
	.comm	current,4,4
	.comm	APCI1032_DIGITAL_IP_IRQ,4,4
	.comm	APCI1032_DIGITAL_IP_INTERRUPT_MODE2,4,4
	.comm	APCI1032_DIGITAL_IP_INTERRUPT_MODE1,4,4
	.comm	ADDIDATA_OR,4,4
	.comm	ADDIDATA_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
