	.file	"extr_svg-device.c_svg_dev_close_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"</g>\n"
.LC1:
	.string	"</svg>\n"
	.text
	.p2align 4
	.type	svg_dev_close_device, @function
svg_dev_close_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR [rsi], 0
	mov	r12, QWORD PTR 24[rsi]
	jle	.L2
	lea	r13, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	fz_write_printf@PLT
	mov	rax, QWORD PTR [rbx]
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	jg	.L3
.L2:
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR 8[rbx]
	mov	DWORD PTR [rax], edx
.L4:
	mov	rsi, r12
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	call	fz_write_printf@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rdx, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	fz_write_printf@PLT
	.cfi_endproc
.LFE0:
	.size	svg_dev_close_device, .-svg_dev_close_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_svg-device.c_svg_dev_close_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"</g>\012\000"
	.align	2
.LC1:
	.ascii	"</svg>\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	svg_dev_close_device, %function
svg_dev_close_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r1
	mov	r5, r0
	ldr	r6, [r1, #12]
	ble	.L2
	ldr	r7, .L11
.L3:
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	fz_write_printf
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	bgt	.L3
.L2:
	ldr	r3, [r4, #8]
	mov	r1, r6
	cmp	r3, #0
	ldrne	r2, [r4, #4]
	mov	r0, r5
	strne	r2, [r3]
	ldr	r2, .L11
	bl	fz_write_printf
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L11+4
	b	fz_write_printf
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	.LC1
	.size	svg_dev_close_device, .-svg_dev_close_device
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
