	.file	"extr_pcmuio.c_pcmuio_detach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"comedi%d: %s: remove\n"
	.text
	.p2align 4
	.type	pcmuio_detach, @function
pcmuio_detach:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR 8[rdi]
	mov	edx, DWORD PTR driver[rip]
	lea	rdi, .LC0[rip]
	call	printk@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	jne	.L22
.L2:
	mov	eax, DWORD PTR MAX_ASICS[rip]
	mov	rdx, QWORD PTR devpriv[rip]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR MAX_ASICS[rip], ebx
	jle	.L3
.L5:
	mov	rax, QWORD PTR 8[rdx]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	je	.L4
	mov	rsi, rbp
	add	rbx, 1
	call	free_irq@PLT
	cmp	DWORD PTR MAX_ASICS[rip], ebx
	mov	rdx, QWORD PTR devpriv[rip]
	jg	.L5
.L3:
	test	rdx, rdx
	je	.L6
	mov	rdi, QWORD PTR [rdx]
	test	rdi, rdi
	jne	.L23
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rax, QWORD PTR thisboard[rip]
	mov	esi, DWORD PTR [rax]
	imul	esi, DWORD PTR ASIC_IOSIZE[rip]
	call	release_region@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pcmuio_detach, .-pcmuio_detach
	.comm	thisboard,8,8
	.comm	driver,4,4
	.comm	devpriv,8,8
	.comm	MAX_ASICS,4,4
	.comm	ASIC_IOSIZE,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_pcmuio.c_pcmuio_detach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"comedi%d: %s: remove\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcmuio_detach, %function
pcmuio_detach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r3, .L24
	ldr	r1, [r0, #4]
	ldr	r2, [r3]
	ldr	r0, .L24+4
	bl	printk
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L22
.L2:
	ldr	r5, .L24+8
	ldr	r7, .L24+12
	ldr	r3, [r5]
	ldr	r2, [r7]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
	b	.L5
.L4:
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L3
.L5:
	ldr	r3, [r2, #4]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r0, #0
	beq	.L4
	mov	r1, r6
	bl	free_irq
	ldr	r3, [r5]
	ldr	r2, [r7]
	cmp	r3, r4
	bgt	.L5
.L3:
	cmp	r2, #0
	beq	.L6
	ldr	r0, [r2]
	cmp	r0, #0
	bne	.L23
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r3, .L24+16
	ldr	r2, .L24+20
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r3, [r3]
	mul	r1, r3, r1
	bl	release_region
	b	.L2
.L25:
	.align	2
.L24:
	.word	driver
	.word	.LC0
	.word	MAX_ASICS
	.word	devpriv
	.word	thisboard
	.word	ASIC_IOSIZE
	.size	pcmuio_detach, .-pcmuio_detach
	.comm	thisboard,4,4
	.comm	driver,4,4
	.comm	devpriv,4,4
	.comm	MAX_ASICS,4,4
	.comm	ASIC_IOSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
