	.file	"extr_cpia_pp.c_cpia_pp_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CPIA_1"
	.text
	.p2align 4
	.type	cpia_pp_attach, @function
cpia_pp_attach:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR parport_nr[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edx, DWORD PTR [rax]
	lea	ecx, -128[rdx]
	cmp	ecx, 1
	jbe	.L2
	mov	esi, DWORD PTR PARPORT_MAX[rip]
	test	esi, esi
	je	.L1
	add	rax, 4
	sub	esi, 1
	mov	ecx, DWORD PTR [rdi]
	lea	rsi, [rax+rsi*4]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	rax, rsi
	je	.L1
	mov	edx, DWORD PTR [rax]
	add	rax, 4
.L6:
	cmp	ecx, edx
	jne	.L12
.L5:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	cpia_pp_register@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR PARPORT_CLASS_MEDIA[rip]
	cmp	DWORD PTR 8[rax], edi
	jne	.L1
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L1
	mov	edx, 6
	lea	rsi, .LC0[rip]
	call	strncmp@PLT
	test	eax, eax
	je	.L5
.L1:
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cpia_pp_attach, .-cpia_pp_attach
	.comm	parport_nr,8,8
	.comm	PARPORT_MAX,4,4
	.comm	PARPORT_CLASS_MEDIA,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_cpia_pp.c_cpia_pp_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CPIA_1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpia_pp_attach, %function
cpia_pp_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, lr}
	ldr	r2, [r3]
	mov	r4, r0
	ldr	r1, [r2]
	sub	r3, r1, #128
	cmp	r3, #1
	bls	.L2
	ldr	r3, .L15+4
	ldr	ip, [r3]
	cmp	ip, #0
	popeq	{r4, pc}
	mov	r3, #0
	ldr	lr, [r0]
	b	.L6
.L14:
	cmp	r3, ip
	popeq	{r4, pc}
	ldr	r1, [r2, #4]!
.L6:
	cmp	lr, r1
	add	r3, r3, #1
	bne	.L14
.L5:
	mov	r0, r4
	pop	{r4, lr}
	b	cpia_pp_register
.L2:
	ldr	r3, [r0, #4]
	ldr	r2, .L15+8
	ldr	r1, [r3, #4]
	ldr	r2, [r2]
	cmp	r1, r2
	popne	{r4, pc}
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, pc}
	mov	r2, #6
	ldr	r1, .L15+12
	bl	strncmp
	cmp	r0, #0
	popne	{r4, pc}
	b	.L5
.L16:
	.align	2
.L15:
	.word	parport_nr
	.word	PARPORT_MAX
	.word	PARPORT_CLASS_MEDIA
	.word	.LC0
	.size	cpia_pp_attach, .-cpia_pp_attach
	.comm	parport_nr,4,4
	.comm	PARPORT_MAX,4,4
	.comm	PARPORT_CLASS_MEDIA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
