	.file	"extr_drivers.c_comedi_device_detach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	comedi_device_detach
	.type	comedi_device_detach, @function
comedi_device_detach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	add	rdi, 20
	lea	r12, 4[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	lockdep_assert_held@PLT
	mov	rdi, rbp
	call	comedi_device_cancel_all@PLT
	mov	rdi, r12
	call	down_write@PLT
	mov	rax, QWORD PTR 8[rbp]
	add	DWORD PTR 16[rbp], 1
	mov	DWORD PTR 0[rbp], 0
	test	rax, rax
	je	.L2
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
.L2:
	mov	rdi, rbp
	call	comedi_device_detach_cleanup@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	up_write@PLT
	.cfi_endproc
.LFE0:
	.size	comedi_device_detach, .-comedi_device_detach
	.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_drivers.c_comedi_device_detach.c"
	.text
	.align	2
	.global	comedi_device_detach
	.syntax unified
	.arm
	.fpu softvfp
	.type	comedi_device_detach, %function
comedi_device_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r0, r0, #16
	bl	lockdep_assert_held
	add	r5, r4, #4
	mov	r0, r4
	bl	comedi_device_cancel_all
	mov	r0, r5
	bl	down_write
	mov	r1, #0
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	add	r3, r3, #1
	cmp	r2, r1
	str	r1, [r4]
	str	r3, [r4, #12]
	beq	.L2
	mov	r0, r4
	ldr	r3, [r2]
	blx	r3
.L2:
	mov	r0, r4
	bl	comedi_device_detach_cleanup
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	up_write
	.size	comedi_device_detach, .-comedi_device_detach
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
