	.file	"extr_comedi_8254.c_comedi_8254_load.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	comedi_8254_load
	.type	comedi_8254_load, @function
comedi_8254_load:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 2
	ja	.L9
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	cmp	edx, 65535
	ja	.L4
	mov	eax, DWORD PTR I8254_MODE5[rip]
	or	eax, DWORD PTR I8254_BCD[rip]
	cmp	eax, ecx
	jb	.L4
	mov	edx, ecx
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR [rsp], rdi
	call	comedi_8254_set_mode@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r12d
	call	comedi_8254_write@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 16
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	comedi_8254_load, .-comedi_8254_load
	.comm	I8254_MODE5,4,4
	.comm	I8254_BCD,4,4
	.comm	EINVAL,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_comedi_8254.c_comedi_8254_load.c"
	.text
	.align	2
	.global	comedi_8254_load
	.syntax unified
	.arm
	.fpu softvfp
	.type	comedi_8254_load, %function
comedi_8254_load:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #2
	bhi	.L9
	cmp	r2, #65536
	push	{r4, r5, r6, lr}
	mov	r6, r2
	bcs	.L4
	ldr	r2, .L10
	ldr	ip, .L10+4
	ldr	r2, [r2]
	ldr	ip, [ip]
	orr	r2, r2, ip
	cmp	r2, r3
	bcc	.L4
	mov	r4, r1
	mov	r5, r0
	mov	r2, r3
	bl	comedi_8254_set_mode
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	bl	comedi_8254_write
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L11:
	.align	2
.L10:
	.word	I8254_MODE5
	.word	I8254_BCD
	.word	EINVAL
	.size	comedi_8254_load, .-comedi_8254_load
	.comm	I8254_MODE5,4,4
	.comm	I8254_BCD,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
