	.file	"extr_amplc_dio200_common.c_dio200_subdev_8255_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dio200_subdev_8255_init, @function
dio200_subdev_8255_init:
.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
	mov	rbp, rsi
	mov	esi, 4
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, rbp
	mov	ebx, edx
	call	comedi_alloc_spriv@PLT
	test	rax, rax
	je	.L6
	mov	DWORD PTR [rax], ebx
	mov	eax, DWORD PTR COMEDI_SUBD_DIO[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR SDF_READABLE[rip]
	or	eax, DWORD PTR SDF_WRITABLE[rip]
	mov	DWORD PTR 0[rbp], eax
	lea	rax, range_digital[rip]
	mov	QWORD PTR 24[rbp], rax
	movabs	rax, 4294967320
	mov	QWORD PTR 4[rbp], rax
	mov	eax, DWORD PTR dio200_subdev_8255_bits[rip]
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR dio200_subdev_8255_config[rip]
	mov	DWORD PTR 12[rbp], eax
	call	dio200_subdev_8255_set_dir@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	dio200_subdev_8255_init, .-dio200_subdev_8255_init
	.comm	range_digital,4,4
	.comm	dio200_subdev_8255_config,4,4
	.comm	dio200_subdev_8255_bits,4,4
	.comm	SDF_WRITABLE,4,4
	.comm	SDF_READABLE,4,4
	.comm	ENOMEM,4,4
	.comm	COMEDI_SUBD_DIO,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_amplc_dio200_common.c_dio200_subdev_8255_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dio200_subdev_8255_init, %function
dio200_subdev_8255_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r6, r0
	mov	r0, r1
	mov	r1, #4
	mov	r5, r2
	bl	comedi_alloc_spriv
	subs	r3, r0, #0
	beq	.L6
	mov	r2, #1
	mov	r1, #24
	str	r5, [r3]
	ldr	r0, .L7
	ldr	r3, .L7+4
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	ip, .L7+8
	orr	r3, r3, r0
	ldr	r5, [ip]
	ldr	r0, .L7+12
	ldr	ip, .L7+16
	ldr	lr, [r0]
	ldr	ip, [ip]
	str	r3, [r4]
	ldr	r3, .L7+20
	stmib	r4, {r1, r2, ip}
	mov	r0, r6
	mov	r1, r4
	str	r5, [r4, #24]
	str	lr, [r4, #16]
	str	r3, [r4, #20]
	bl	dio200_subdev_8255_set_dir
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L7+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	SDF_WRITABLE
	.word	SDF_READABLE
	.word	COMEDI_SUBD_DIO
	.word	dio200_subdev_8255_bits
	.word	dio200_subdev_8255_config
	.word	range_digital
	.word	ENOMEM
	.size	dio200_subdev_8255_init, .-dio200_subdev_8255_init
	.comm	range_digital,4,4
	.comm	dio200_subdev_8255_config,4,4
	.comm	dio200_subdev_8255_bits,4,4
	.comm	SDF_WRITABLE,4,4
	.comm	SDF_READABLE,4,4
	.comm	ENOMEM,4,4
	.comm	COMEDI_SUBD_DIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
