	.file	"extr_me_daq.c_me_detach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	me_detach, @function
me_detach:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR dev_private[rip]
	test	rax, rax
	je	.L15
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR 24[rax], 0
	jne	.L19
	mov	rdi, QWORD PTR 16[rax]
	test	rdi, rdi
	jne	.L20
.L5:
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L3
.L22:
	cmp	QWORD PTR 8[rax], 0
	jne	.L21
.L7:
	call	pci_dev_put@PLT
.L3:
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	iounmap@PLT
	mov	rax, QWORD PTR dev_private[rip]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L3
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L19:
	call	me_reset@PLT
	mov	rax, QWORD PTR dev_private[rip]
	mov	rdi, QWORD PTR 24[rax]
	call	iounmap@PLT
	mov	rax, QWORD PTR dev_private[rip]
	mov	rdi, QWORD PTR 16[rax]
	test	rdi, rdi
	je	.L5
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_def_cfa_offset 8
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 16
	call	comedi_pci_disable@PLT
	mov	rax, QWORD PTR dev_private[rip]
	mov	rdi, QWORD PTR [rax]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	me_detach, .-me_detach
	.comm	dev_private,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_me_daq.c_me_detach.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	me_detach, %function
me_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L26
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r3, #12]
	cmp	r2, #0
	bne	.L22
	ldr	r0, [r3, #8]
	cmp	r0, #0
	bne	.L23
.L5:
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L3
.L25:
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L24
.L7:
	bl	pci_dev_put
.L3:
	mov	r0, #0
	pop	{r4, pc}
.L23:
	bl	iounmap
	ldr	r3, [r4]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L3
	b	.L25
.L22:
	bl	me_reset
	ldr	r3, [r4]
	ldr	r0, [r3, #12]
	bl	iounmap
	ldr	r3, [r4]
	ldr	r0, [r3, #8]
	cmp	r0, #0
	beq	.L5
	b	.L23
.L24:
	bl	comedi_pci_disable
	ldr	r3, [r4]
	ldr	r0, [r3]
	b	.L7
.L27:
	.align	2
.L26:
	.word	dev_private
	.size	me_detach, .-me_detach
	.comm	dev_private,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
