	.file	"extr_adv_pci_dio.c_pci1760_mbxrequest.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bug! this function should not be used for CMD_ClearIMB2 command"
	.text
	.p2align 4
	.type	pci1760_mbxrequest, @function
pci1760_mbxrequest:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movzx	eax, BYTE PTR CMD_ClearIMB2[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	cmp	BYTE PTR 2[rsi], al
	je	.L8
	mov	rdi, QWORD PTR IMB2[rip]
	mov	rbp, rsi
	add	rdi, QWORD PTR [r12]
	mov	r13, rdx
	call	inb@PLT
	cmp	al, BYTE PTR 2[rbp]
	je	.L4
.L5:
	mov	ecx, DWORD PTR OMBCMD_RETRY[rip]
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	pci1760_unchecked_mbxrequest@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	pci1760_clear_imb2@PLT
	test	eax, eax
	jns	.L5
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	comedi_error@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	pci1760_mbxrequest, .-pci1760_mbxrequest
	.comm	OMBCMD_RETRY,4,4
	.comm	IMB2,8,8
	.comm	EINVAL,4,4
	.comm	CMD_ClearIMB2,1,1
	.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_adv_pci_dio.c_pci1760_mbxrequest.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bug! this function should not be used for CMD_Clear"
	.ascii	"IMB2 command\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci1760_mbxrequest, %function
pci1760_mbxrequest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L9
	mov	r4, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r1, [r1, #2]	@ zero_extendqisi2
	cmp	r1, r3
	beq	.L8
	ldr	r3, .L9+4
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r0]
	mov	r6, r2
	add	r0, r0, r3
	bl	inb
	ldrb	r3, [r4, #2]	@ zero_extendqisi2
	cmp	r3, r0
	beq	.L4
.L5:
	ldr	r3, .L9+8
	mov	r2, r6
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r3, [r3]
	b	pci1760_unchecked_mbxrequest
.L4:
	mov	r0, r5
	bl	pci1760_clear_imb2
	cmp	r0, #0
	bge	.L5
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, .L9+12
	bl	comedi_error
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	CMD_ClearIMB2
	.word	IMB2
	.word	OMBCMD_RETRY
	.word	.LC0
	.word	EINVAL
	.size	pci1760_mbxrequest, .-pci1760_mbxrequest
	.comm	OMBCMD_RETRY,4,4
	.comm	IMB2,4,4
	.comm	EINVAL,4,4
	.comm	CMD_ClearIMB2,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
