	.file	"extr_mailbox-sti.c_sti_mbox_shutdown_chan.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Request to free non-existent channel\n"
	.text
	.p2align 4
	.type	sti_mbox_shutdown_chan, @function
sti_mbox_shutdown_chan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR [rdi]
	mov	rbx, rdi
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rsi]
	test	ecx, ecx
	jle	.L2
	mov	rax, QWORD PTR 8[rsi]
	cmp	rdi, rax
	je	.L3
	xor	edx, edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	add	rax, 8
	cmp	rbx, rax
	je	.L3
.L4:
	add	edx, 1
	cmp	ecx, edx
	jne	.L5
.L6:
	mov	edi, DWORD PTR 4[rsi]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	lea	rsi, .LC0[rip]
	jmp	dev_warn@PLT
.L2:
	.cfi_restore_state
	je	.L6
.L3:
	mov	rdi, rbx
	call	sti_mbox_disable_channel@PLT
	mov	rdi, rbx
	call	sti_mbox_clear_irq@PLT
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sti_mbox_shutdown_chan, .-sti_mbox_shutdown_chan
	.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_mailbox-sti.c_sti_mbox_shutdown_chan.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Request to free non-existent channel\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_mbox_shutdown_chan, %function
sti_mbox_shutdown_chan:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	ldr	r3, [r3]
	mov	r4, r0
	ldr	r0, [r3]
	ldr	r1, [r0]
	cmp	r1, #0
	ble	.L2
	ldr	r3, [r0, #8]
	cmp	r4, r3
	beq	.L3
	mov	r2, #0
	b	.L4
.L5:
	cmp	r4, r3
	beq	.L3
.L4:
	add	r2, r2, #1
	cmp	r1, r2
	add	r3, r3, #4
	bne	.L5
.L6:
	ldr	r0, [r0, #4]
	ldr	r1, .L9
	pop	{r4, lr}
	b	dev_warn
.L2:
	beq	.L6
.L3:
	mov	r0, r4
	bl	sti_mbox_disable_channel
	mov	r0, r4
	bl	sti_mbox_clear_irq
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.size	sti_mbox_shutdown_chan, .-sti_mbox_shutdown_chan
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
