	.file	"extr_rm_lnkcnt_zero_file.c_writer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"refreshing file"
.LC1:
	.string	"test\n"
	.text
	.p2align 4
	.type	writer, @function
writer:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR TRUE[rip], 0
	je	.L9
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, 5
	lea	rsi, .LC1[rip]
	call	write@PLT
	cmp	QWORD PTR TRUE[rip], 0
	je	.L13
.L2:
	mov	edi, DWORD PTR [rbx]
	call	close@PLT
	mov	edi, DWORD PTR filebase[rip]
	mov	esi, DWORD PTR O_APPEND[rip]
	mov	edx, 420
	or	esi, DWORD PTR O_RDWR[rip]
	or	esi, DWORD PTR O_CREAT[rip]
	call	open@PLT
	mov	DWORD PTR [rbx], eax
	mov	edi, eax
	test	eax, eax
	jns	.L3
	mov	rdi, rbp
	call	perror@PLT
	mov	edi, DWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	writer, .-writer
	.comm	filebase,4,4
	.comm	TRUE,8,8
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,4,4
	.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_rm_lnkcnt_zero_file.c_writer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"refreshing file\000"
	.align	2
.LC1:
	.ascii	"test\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	writer, %function
writer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L10
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L7
	mov	r4, r0
	ldr	r10, .L10+4
	ldr	r9, .L10+8
	ldr	r8, .L10+12
	ldr	r7, .L10+16
	ldr	fp, .L10+20
	ldr	r6, .L10+24
	b	.L2
.L3:
	mov	r2, #5
	mov	r1, r6
	bl	write
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L7
.L2:
	ldr	r0, [r4]
	bl	close
	ldr	r2, [r9]
	ldr	r3, [r10]
	ldr	r1, [r8]
	orr	r3, r3, r2
	ldr	r0, [r7]
	mov	r2, #420
	orr	r1, r3, r1
	bl	open
	cmp	r0, #0
	str	r0, [r4]
	bge	.L3
	mov	r0, fp
	bl	perror
	ldr	r0, [r4]
	b	.L3
.L7:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	TRUE
	.word	O_APPEND
	.word	O_RDWR
	.word	O_CREAT
	.word	filebase
	.word	.LC0
	.word	.LC1
	.size	writer, .-writer
	.comm	filebase,4,4
	.comm	TRUE,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
