	.file	"extr_tape_core.c_tape_put_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tape_put_device(%p) -> %i\n"
.LC1:
	.string	"put device without reference\n"
.LC2:
	.string	"tape_free_device(%p)\n"
	.text
	.p2align 4
	.globl	tape_put_device
	.type	tape_put_device, @function
tape_put_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	add	rdi, 8
	call	atomic_dec_return@PLT
	test	eax, eax
	jg	.L7
	jne	.L8
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	mov	edi, 4
	xor	eax, eax
	call	DBF_EVENT@PLT
	mov	rdi, QWORD PTR [r12]
	call	kfree@PLT
	mov	rdi, r12
	call	kfree@PLT
	xor	eax, eax
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 4
	xor	eax, eax
	call	DBF_EVENT@PLT
	xor	eax, eax
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	ecx, eax
	mov	rdx, r12
	mov	edi, 4
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	DBF_EVENT@PLT
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tape_put_device, .-tape_put_device
	.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_tape_core.c_tape_put_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tape_put_device(%p) -> %i\012\000"
	.align	2
.LC1:
	.ascii	"put device without reference\012\000"
	.align	2
.LC2:
	.ascii	"tape_free_device(%p)\012\000"
	.text
	.align	2
	.global	tape_put_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	tape_put_device, %function
tape_put_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	add	r0, r0, #4
	bl	atomic_dec_return
	subs	r3, r0, #0
	bgt	.L7
	bne	.L8
	mov	r2, r4
	ldr	r1, .L9
	mov	r0, #4
	bl	DBF_EVENT
	ldr	r0, [r4]
	bl	kfree
	mov	r0, r4
	bl	kfree
	mov	r0, #0
	pop	{r4, pc}
.L8:
	ldr	r1, .L9+4
	mov	r0, #4
	bl	DBF_EVENT
	mov	r0, #0
	pop	{r4, pc}
.L7:
	mov	r2, r4
	ldr	r1, .L9+8
	mov	r0, #4
	bl	DBF_EVENT
	mov	r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	tape_put_device, .-tape_put_device
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
