	.file	"extr_chan_kern.c_close_one_chan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	close_one_chan, @function
close_one_chan:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rdi], 0
	je	.L12
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	esi, esi
	jne	.L16
	cmp	QWORD PTR 56[rdi], 0
	jne	.L17
	cmp	QWORD PTR 48[rbx], 0
	jne	.L18
.L6:
	mov	QWORD PTR 32[rbx], 0
.L4:
	mov	rax, QWORD PTR 24[rbx]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rbx]
	call	rax
.L7:
	mov	QWORD PTR 8[rbx], 0
	mov	DWORD PTR [rbx], -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	ebp, ebp
	lea	rdi, irqs_to_free_lock[rip]
	mov	rsi, rbp
	call	spin_lock_irqsave@PLT
	lea	rdi, 64[rbx]
	lea	rsi, irqs_to_free[rip]
	call	list_add@PLT
	mov	rsi, rbp
	lea	rdi, irqs_to_free_lock[rip]
	call	spin_unlock_irqrestore@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	rax, QWORD PTR 40[rdi]
	mov	rsi, rbx
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 4[rax]
	call	free_irq@PLT
	cmp	QWORD PTR 48[rbx], 0
	je	.L6
.L18:
	mov	rax, QWORD PTR 40[rbx]
	mov	rsi, rbx
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	free_irq@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	close_one_chan, .-close_one_chan
	.comm	irqs_to_free_lock,4,4
	.comm	irqs_to_free,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_chan_kern.c_close_one_chan.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_one_chan, %function
close_one_chan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bxeq	lr
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bne	.L25
	ldr	r3, [r0, #28]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L27
.L6:
	mov	r3, #0
	str	r3, [r4, #16]
.L4:
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [r4, #8]
	ldr	r0, [r4]
	blx	r3
.L7:
	mvn	r2, #0
	mov	r3, #0
	stm	r4, {r2, r3}
	pop	{r4, r5, r6, pc}
.L25:
	mov	r5, #0
	ldr	r0, .L28
	mov	r1, r5
	bl	spin_lock_irqsave
	ldr	r1, .L28+4
	add	r0, r4, #32
	bl	list_add
	mov	r1, r5
	ldr	r0, .L28
	bl	spin_unlock_irqrestore
	b	.L4
.L26:
	ldr	r3, [r0, #20]
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, [r3, #4]
	bl	free_irq
	ldr	r3, [r4, #24]
	cmp	r3, #0
	beq	.L6
.L27:
	ldr	r3, [r4, #20]
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	free_irq
	b	.L6
.L29:
	.align	2
.L28:
	.word	irqs_to_free_lock
	.word	irqs_to_free
	.size	close_one_chan, .-close_one_chan
	.comm	irqs_to_free_lock,4,4
	.comm	irqs_to_free,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
