	.file	"extr_parport_serial.c_parport_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"only %zu parallel ports supported (%d reported)\n"
	.align 8
.LC1:
	.string	"PCI parallel port detected: I/O at %#lx(%#lx)\n"
	.align 8
.LC2:
	.string	"PCI parallel port detected: I/O at %#lx(%#lx), IRQ %d\n"
	.text
	.p2align 4
	.type	parport_register, @function
parport_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	call	pci_get_drvdata@PLT
	mov	r15, rax
	mov	rax, QWORD PTR [rbx]
	sal	rax, 5
	add	rax, QWORD PTR cards[rip]
	movdqu	xmm0, XMMWORD PTR [rax]
	movups	XMMWORD PTR 16[r15], xmm0
	movdqu	xmm1, XMMWORD PTR 16[rax]
	lea	rax, 16[r15]
	mov	QWORD PTR 24[rsp], rax
	movups	XMMWORD PTR 32[r15], xmm1
	mov	rax, QWORD PTR 40[r15]
	test	rax, rax
	je	.L5
	mov	ecx, DWORD PTR PARPORT_DMA_NONE[rip]
	mov	edx, DWORD PTR PARPORT_IRQ_NONE[rip]
	lea	rsi, 16[r15]
	mov	rdi, r12
	call	rax
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
	test	rax, rax
	jne	.L1
.L5:
	mov	eax, DWORD PTR 16[r15]
	mov	DWORD PTR 20[rsp], 0
	lea	r13, 4[r12]
	xor	ebx, ebx
	test	eax, eax
	jg	.L13
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rcx, r11
	mov	r8d, ebp
	mov	rdx, r14
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r11
	call	dev_dbg@PLT
	mov	r11, QWORD PTR 8[rsp]
.L11:
	mov	r9d, DWORD PTR IRQF_SHARED[rip]
	mov	r8, r13
	mov	edx, ebp
	mov	rsi, r11
	mov	ecx, DWORD PTR PARPORT_DMA_NONE[rip]
	mov	rdi, r14
	call	parport_pc_probe_port@PLT
	test	rax, rax
	je	.L12
	mov	rdx, QWORD PTR [r15]
	mov	rcx, QWORD PTR 8[r15]
	mov	DWORD PTR 20[rsp], 1
	lea	rsi, 1[rdx]
	mov	QWORD PTR [r15], rsi
	mov	QWORD PTR [rcx+rdx*8], rax
.L12:
	add	rbx, 1
	cmp	DWORD PTR 16[r15], ebx
	jle	.L4
.L13:
	mov	rax, QWORD PTR 32[r15]
	mov	rdi, QWORD PTR 8[r15]
	mov	r14, QWORD PTR [r15]
	lea	rax, [rax+rbx*8]
	mov	esi, DWORD PTR [rax]
	movsx	rbp, DWORD PTR 4[rax]
	mov	DWORD PTR 8[rsp], esi
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR 8[rsp]
	cmp	r14, rax
	je	.L27
	mov	rdi, r12
	call	pci_resource_start@PLT
	mov	r14, rax
	cmp	ebp, 6
	jbe	.L28
	mov	r11d, 0
	jle	.L9
	add	r14, rbp
.L9:
	mov	ebp, DWORD PTR [r12]
	cmp	DWORD PTR IRQ_NONE[rip], ebp
	jne	.L10
	mov	rcx, r11
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r11
	call	dev_dbg@PLT
	mov	ebp, DWORD PTR PARPORT_IRQ_NONE[rip]
	mov	r11, QWORD PTR 8[rsp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, QWORD PTR 8[r15]
	mov	r14d, DWORD PTR 16[r15]
	call	ARRAY_SIZE@PLT
	mov	ecx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	rdx, rax
	call	dev_warn@PLT
.L4:
	mov	rax, QWORD PTR 24[r15]
	xor	r13d, r13d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r12
	xor	edx, 1
	call	rax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r12
	call	pci_resource_start@PLT
	mov	r11, rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	parport_register, .-parport_register
	.comm	cards,8,8
	.comm	PARPORT_IRQ_NONE,4,4
	.comm	PARPORT_DMA_NONE,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ENODEV,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_serial.c_parport_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"only %zu parallel ports supported (%d reported)\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"PCI parallel port detected: I/O at %#lx(%#lx)\012\000"
	.align	2
.LC2:
	.ascii	"PCI parallel port detected: I/O at %#lx(%#lx), IRQ "
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parport_register, %function
parport_register:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r5, r1
	mov	r8, r0
	bl	pci_get_drvdata
	mov	r4, r0
	ldr	r3, .L28
	ldr	r2, [r5]
	ldr	r3, [r3]
	add	ip, r0, #8
	add	r3, r3, r2, lsl #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r5, [r4, #20]
	str	ip, [sp, #20]
	cmp	r5, #0
	beq	.L5
	ldr	r3, .L28+4
	ldr	r2, .L28+8
	mov	r0, r8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [sp, #20]
	blx	r5
	cmp	r0, #0
	bne	.L25
.L5:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	mov	r3, #0
	str	r3, [sp, #16]
	ble	.L4
	mov	r6, r3
	ldr	fp, .L28+12
	ldr	r10, .L28+16
	add	r9, r8, #4
	b	.L13
.L10:
	mov	r2, r5
	mov	r0, r9
	ldr	r1, .L28+20
	str	r7, [sp]
	str	r3, [sp, #12]
	bl	dev_dbg
	ldr	r3, [sp, #12]
.L11:
	ldr	ip, [r10]
	mov	r1, r3
	ldr	r3, .L28+4
	str	r9, [sp]
	str	ip, [sp, #4]
	mov	r2, r7
	mov	r0, r5
	ldr	r3, [r3]
	bl	parport_pc_probe_port
	cmp	r0, #0
	beq	.L12
	mov	r3, #1
	str	r3, [sp, #16]
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	add	r1, r3, #1
	str	r1, [r4]
	str	r0, [r2, r3, lsl #2]
.L12:
	ldr	r3, [r4, #8]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L4
.L13:
	ldr	r3, [r4, #16]
	ldr	r0, [r4, #4]
	ldr	r1, [r3, r6, lsl #3]
	add	r2, r3, r6, lsl #3
	ldr	r5, [r4]
	str	r1, [sp, #12]
	ldr	r7, [r2, #4]
	bl	ARRAY_SIZE
	cmp	r5, r0
	ldr	r1, [sp, #12]
	beq	.L26
	mov	r0, r8
	bl	pci_resource_start
	cmp	r7, #6
	mov	r5, r0
	bls	.L27
	mov	r3, #0
	addgt	r5, r0, r7
.L9:
	ldr	r7, [r8]
	ldr	r2, [fp]
	cmp	r2, r7
	bne	.L10
	mov	r2, r5
	mov	r0, r9
	ldr	r1, .L28+24
	str	r3, [sp, #12]
	bl	dev_dbg
	ldr	r3, .L28+8
	ldr	r7, [r3]
	ldr	r3, [sp, #12]
	b	.L11
.L27:
	mov	r1, r7
	mov	r0, r8
	bl	pci_resource_start
	mov	r3, r0
	b	.L9
.L26:
	ldr	r0, [r4, #4]
	bl	ARRAY_SIZE
	ldr	r3, [r4, #8]
	mov	r2, r0
	ldr	r1, .L28+28
	mov	r0, r9
	bl	dev_warn
.L4:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	moveq	r0, r3
	beq	.L1
	ldr	r2, [sp, #16]
	mov	r0, r8
	ldr	r1, [sp, #20]
	eor	r2, r2, #1
	blx	r3
	mov	r0, #0
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	ldr	r3, .L28+32
	ldr	r3, [r3]
	rsb	r0, r3, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	.align	2
.L28:
	.word	cards
	.word	PARPORT_DMA_NONE
	.word	PARPORT_IRQ_NONE
	.word	IRQ_NONE
	.word	IRQF_SHARED
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	ENODEV
	.size	parport_register, .-parport_register
	.comm	cards,4,4
	.comm	PARPORT_IRQ_NONE,4,4
	.comm	PARPORT_DMA_NONE,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
