	.file	"extr_i2c.c_poison_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	poison_channel, @function
poison_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_hdm@PLT
	mov	edi, 1
	mov	rbp, rax
	test	ebx, ebx
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR NUM_CHANNELS[rip], ebx
	setle	dil
.L2:
	call	BUG_ON@PLT
	cmp	DWORD PTR CH_RX[rip], ebx
	je	.L13
	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
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR polling_rate[rip]
	test	eax, eax
	je	.L14
.L4:
	lea	rdi, 4[rbp]
	call	cancel_delayed_work_sync@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	list_first_mbo@PLT
	lea	rdi, 24[rax]
	mov	rbx, rax
	call	list_del@PLT
	mov	eax, DWORD PTR MBO_E_CLOSE[rip]
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, rbx
	mov	DWORD PTR 8[rbx], eax
	call	[QWORD PTR [rbx]]
.L5:
	mov	rdi, rbp
	call	list_empty@PLT
	test	eax, eax
	je	.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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	free_irq@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	poison_channel, .-poison_channel
	.comm	polling_rate,4,4
	.comm	NUM_CHANNELS,4,4
	.comm	MBO_E_CLOSE,4,4
	.comm	CH_RX,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_i2c.c_poison_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	poison_channel, %function
poison_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	bl	to_hdm
	cmp	r4, #0
	mov	r6, r0
	movlt	r0, #1
	blt	.L2
	ldr	r3, .L14
	ldr	r0, [r3]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
.L2:
	bl	BUG_ON
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L12
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
.L4:
	add	r0, r6, #4
	bl	cancel_delayed_work_sync
	ldr	r7, .L14+12
	b	.L5
.L6:
	mov	r0, r6
	bl	list_first_mbo
	mov	r4, r0
	add	r0, r0, #12
	bl	list_del
	ldr	r3, [r7]
	mov	r0, r4
	stmib	r4, {r3, r5}
	ldr	r3, [r4]
	blx	r3
.L5:
	mov	r0, r6
	bl	list_empty
	subs	r5, r0, #0
	beq	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, [r6, #8]
	mov	r1, r6
	ldr	r0, [r3]
	bl	free_irq
	b	.L4
.L15:
	.align	2
.L14:
	.word	NUM_CHANNELS
	.word	CH_RX
	.word	polling_rate
	.word	MBO_E_CLOSE
	.size	poison_channel, .-poison_channel
	.comm	polling_rate,4,4
	.comm	NUM_CHANNELS,4,4
	.comm	MBO_E_CLOSE,4,4
	.comm	CH_RX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
