	.file	"extr_device.c_fz_drop_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dropping unclosed device"
	.text
	.p2align 4
	.globl	fz_drop_device
	.type	fz_drop_device, @function
fz_drop_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, 24[rsi]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	fz_drop_imp@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR 16[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L4
.L11:
	mov	rsi, rbp
	mov	rdi, r12
	call	rax
.L4:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, r12
	call	fz_free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fz_free@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	fz_warn@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	jne	.L11
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	fz_drop_device, .-fz_drop_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_device.c_fz_drop_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dropping unclosed device\000"
	.text
	.align	2
	.global	fz_drop_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_drop_device, %function
fz_drop_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	r2, r1, #12
	mov	r4, r1
	mov	r5, r0
	bl	fz_drop_imp
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L4
.L14:
	mov	r1, r4
	mov	r0, r5
	blx	r3
.L4:
	ldr	r1, [r4]
	mov	r0, r5
	bl	fz_free
	mov	r1, r4
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	fz_free
.L13:
	mov	r0, r5
	ldr	r1, .L15
	bl	fz_warn
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L14
	b	.L4
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	fz_drop_device, .-fz_drop_device
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
