	.file	"extr_mailbox.c_mbox_free_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbox_free_channel
	.type	mbox_free_channel, @function
mbox_free_channel:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	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
	cmp	QWORD PTR 32[rdi], 0
	je	.L1
	mov	rax, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L3
	call	rax
.L3:
	lea	rbp, 8[rbx]
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	QWORD PTR 32[rbx], 0
	mov	rax, QWORD PTR TXDONE_BY_ACK[rip]
	mov	QWORD PTR 24[rbx], 0
	cmp	QWORD PTR [rbx], rax
	je	.L16
.L4:
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	module_put@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rax, QWORD PTR TXDONE_BY_POLL[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.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
.L12:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	mbox_free_channel, .-mbox_free_channel
	.comm	TXDONE_BY_POLL,8,8
	.comm	TXDONE_BY_ACK,8,8
	.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.c_mbox_free_channel.c"
	.text
	.align	2
	.global	mbox_free_channel
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbox_free_channel, %function
mbox_free_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #16]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	blx	r3
.L3:
	add	r5, r4, #4
	mov	r0, r5
	mov	r1, #0
	bl	spin_lock_irqsave
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r4]
	ldr	r2, [r2]
	str	r3, [r4, #16]
	cmp	r1, r2
	str	r3, [r4, #12]
	ldreq	r3, .L16+4
	ldreq	r3, [r3]
	streq	r3, [r4]
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	module_put
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L17:
	.align	2
.L16:
	.word	TXDONE_BY_ACK
	.word	TXDONE_BY_POLL
	.size	mbox_free_channel, .-mbox_free_channel
	.comm	TXDONE_BY_POLL,4,4
	.comm	TXDONE_BY_ACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
