	.file	"extr_parport_ip32.c_parport_ip32_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	parport_ip32_set_mode, @function
parport_ip32_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebx, DWORD PTR ECR_MODE_MASK[rip]
	and	ebx, esi
	call	parport_ip32_read_econtrol@PLT
	mov	edx, DWORD PTR ECR_MODE_SPP[rip]
	cmp	edx, ebx
	je	.L11
	mov	ecx, DWORD PTR ECR_MODE_PS2[rip]
	and	eax, DWORD PTR ECR_MODE_MASK[rip]
	mov	esi, DWORD PTR ECR_nERRINTR[rip]
	mov	edi, DWORD PTR ECR_SERVINTR[rip]
	cmp	ecx, eax
	setne	r8b
	cmp	edx, eax
	setne	al
	test	r8b, al
	je	.L3
	cmp	ecx, ebx
	jne	.L13
.L3:
	or	esi, edi
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	or	esi, ebx
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	parport_ip32_write_econtrol@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	or	ecx, esi
	or	ecx, edi
	mov	rdi, rbp
	mov	esi, ecx
	call	parport_ip32_write_econtrol@PLT
.L11:
	mov	esi, DWORD PTR ECR_nERRINTR[rip]
	mov	edi, DWORD PTR ECR_SERVINTR[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	parport_ip32_set_mode, .-parport_ip32_set_mode
	.comm	ECR_nERRINTR,4,4
	.comm	ECR_SERVINTR,4,4
	.comm	ECR_MODE_SPP,4,4
	.comm	ECR_MODE_PS2,4,4
	.comm	ECR_MODE_MASK,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_parport_ip32.c_parport_ip32_set_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parport_ip32_set_mode, %function
parport_ip32_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L11
	mov	r5, r0
	ldr	r3, [r6]
	and	r4, r1, r3
	bl	parport_ip32_read_econtrol
	ldr	r3, .L11+4
	ldr	r2, [r3]
	cmp	r2, r4
	beq	.L9
	ldr	r1, .L11+8
	ldr	r3, [r6]
	ldr	ip, [r1]
	and	r3, r3, r0
	cmp	ip, r3
	cmpne	r2, r3
	movne	r3, #1
	moveq	r3, #0
	cmp	ip, r4
	moveq	r3, #0
	andne	r3, r3, #1
	ldr	r7, .L11+12
	ldr	r6, .L11+16
	cmp	r3, #0
	ldr	r1, [r7]
	ldr	r3, [r6]
	bne	.L10
.L3:
	orr	r1, r1, r3
	mov	r0, r5
	orr	r1, r1, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	parport_ip32_write_econtrol
.L9:
	ldr	r2, .L11+12
	ldr	r3, .L11+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	b	.L3
.L10:
	orr	r1, ip, r1
	orr	r1, r1, r3
	mov	r0, r5
	bl	parport_ip32_write_econtrol
	ldr	r1, [r7]
	ldr	r3, [r6]
	b	.L3
.L12:
	.align	2
.L11:
	.word	ECR_MODE_MASK
	.word	ECR_MODE_SPP
	.word	ECR_MODE_PS2
	.word	ECR_nERRINTR
	.word	ECR_SERVINTR
	.size	parport_ip32_set_mode, .-parport_ip32_set_mode
	.comm	ECR_nERRINTR,4,4
	.comm	ECR_SERVINTR,4,4
	.comm	ECR_MODE_SPP,4,4
	.comm	ECR_MODE_PS2,4,4
	.comm	ECR_MODE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
