	.file	"extr_me4000.c_me4000_detach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"In me4000_detach()\n"
	.text
	.p2align 4
	.type	me4000_detach, @function
me4000_detach:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	call	CALL_PDEBUG@PLT
	mov	rax, QWORD PTR info[rip]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	jne	.L9
.L2:
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	reset_board@PLT
	mov	rax, QWORD PTR info[rip]
	cmp	QWORD PTR 8[rax], 0
	jne	.L10
.L3:
	mov	rdi, QWORD PTR [rax]
	call	pci_dev_put@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rax]
	call	comedi_pci_disable@PLT
	mov	rax, QWORD PTR info[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	me4000_detach, .-me4000_detach
	.comm	info,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_me4000.c_me4000_detach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"In me4000_detach()\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	me4000_detach, %function
me4000_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L17
	mov	r4, r0
	ldr	r0, .L17+4
	bl	CALL_PDEBUG
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r4
	bl	reset_board
	ldr	r3, [r5]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L16
.L3:
	ldr	r0, [r3]
	bl	pci_dev_put
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r0, [r3]
	bl	comedi_pci_disable
	ldr	r3, [r5]
	b	.L3
.L18:
	.align	2
.L17:
	.word	info
	.word	.LC0
	.size	me4000_detach, .-me4000_detach
	.comm	info,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
