	.file	"extr_adv_pci1723.c_pci1723_detach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"comedi%d: pci1723: remove\n"
	.text
	.p2align 4
	.type	pci1723_detach, @function
pci1723_detach:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR 16[rdi]
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	printk@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L3
	mov	rax, QWORD PTR devpriv[rip]
	cmp	QWORD PTR 8[rax], 0
	jne	.L12
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L3
.L14:
	cmp	QWORD PTR [rbx], 0
	jne	.L13
.L6:
	call	pci_dev_put@PLT
.L3:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbx
	call	pci1723_reset@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L3
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	call	comedi_pci_disable@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rdi, QWORD PTR [rax]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	pci1723_detach, .-pci1723_detach
	.comm	devpriv,8,8
	.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_pci1723.c_pci1723_detach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"comedi%d: pci1723: remove\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci1723_detach, %function
pci1723_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L21
	ldr	r1, [r4, #8]
	bl	printk
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r5, .L21+4
	ldr	r3, [r5]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L18
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L3
.L20:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L19
.L6:
	bl	pci_dev_put
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L18:
	mov	r0, r4
	bl	pci1723_reset
	ldr	r3, [r5]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L3
	b	.L20
.L19:
	bl	comedi_pci_disable
	ldr	r3, [r5]
	ldr	r0, [r3]
	b	.L6
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	devpriv
	.size	pci1723_detach, .-pci1723_detach
	.comm	devpriv,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
