	.file	"extr_syslogger.c_update_metainfo_datafile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not remove file \"%s\": %m"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"w"
.LC2:
	.string	"could not open file \"%s\": %m"
.LC3:
	.string	"stderr %s\n"
.LC4:
	.string	"could not write file \"%s\": %m"
.LC5:
	.string	"csvlog %s\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"could not rename file \"%s\" to \"%s\": %m"
	.text
	.p2align 4
	.type	update_metainfo_datafile, @function
update_metainfo_datafile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR LOG_DESTINATION_STDERR[rip]
	or	eax, DWORD PTR LOG_DESTINATION_CSVLOG[rip]
	test	DWORD PTR Log_destination[rip], eax
	je	.L26
	mov	edi, DWORD PTR pg_mode_mask[rip]
	call	umask@PLT
	mov	edi, DWORD PTR LOG_METAINFO_DATAFILE_TMP[rip]
	lea	rsi, .LC1[rip]
	mov	r12d, eax
	call	fopen@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	umask@PLT
	test	rbp, rbp
	je	.L6
	mov	edx, DWORD PTR PG_IOLBF[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, rbp
	call	setvbuf@PLT
	mov	rdx, QWORD PTR last_file_name[rip]
	test	rdx, rdx
	je	.L8
	mov	eax, DWORD PTR Log_destination[rip]
	test	DWORD PTR LOG_DESTINATION_STDERR[rip], eax
	jne	.L27
.L8:
	mov	rdx, QWORD PTR last_csv_file_name[rip]
	test	rdx, rdx
	je	.L9
	mov	eax, DWORD PTR Log_destination[rip]
	test	DWORD PTR LOG_DESTINATION_CSVLOG[rip], eax
	jne	.L28
.L9:
	mov	rdi, rbp
	call	fclose@PLT
	mov	esi, DWORD PTR LOG_METAINFO_DATAFILE[rip]
	mov	edi, DWORD PTR LOG_METAINFO_DATAFILE_TMP[rip]
	call	rename@PLT
	test	rax, rax
	jne	.L29
.L1:
	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
.L29:
	.cfi_restore_state
	xor	eax, eax
	call	errcode_for_file_access@PLT
	mov	edx, DWORD PTR LOG_METAINFO_DATAFILE[rip]
	mov	esi, DWORD PTR LOG_METAINFO_DATAFILE_TMP[rip]
	xor	eax, eax
	lea	rdi, .LC6[rip]
	call	errmsg@PLT
.L23:
	mov	edi, DWORD PTR LOG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ereport@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	fprintf@PLT
	test	rax, rax
	jns	.L9
.L24:
	xor	eax, eax
	call	errcode_for_file_access@PLT
	mov	esi, DWORD PTR LOG_METAINFO_DATAFILE_TMP[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	errmsg@PLT
	mov	edi, DWORD PTR LOG[rip]
	mov	esi, eax
	call	ereport@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fclose@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	fprintf@PLT
	test	rax, rax
	jns	.L8
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	errcode_for_file_access@PLT
	mov	esi, DWORD PTR LOG_METAINFO_DATAFILE_TMP[rip]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	errmsg@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR LOG_METAINFO_DATAFILE[rip]
	call	unlink@PLT
	test	rax, rax
	jns	.L1
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L1
	xor	eax, eax
	call	errcode_for_file_access@PLT
	mov	esi, DWORD PTR LOG_METAINFO_DATAFILE[rip]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	errmsg@PLT
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	update_metainfo_datafile, .-update_metainfo_datafile
	.comm	pg_mode_mask,4,4
	.comm	last_file_name,8,8
	.comm	last_csv_file_name,8,8
	.comm	errno,8,8
	.comm	_O_TEXT,4,4
	.comm	PG_IOLBF,4,4
	.comm	Log_destination,4,4
	.comm	LOG_METAINFO_DATAFILE_TMP,4,4
	.comm	LOG_METAINFO_DATAFILE,4,4
	.comm	LOG_DESTINATION_STDERR,4,4
	.comm	LOG_DESTINATION_CSVLOG,4,4
	.comm	LOG,4,4
	.comm	ENOENT,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_syslogger.c_update_metainfo_datafile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not remove file \"%s\": %m\000"
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"could not open file \"%s\": %m\000"
	.align	2
.LC3:
	.ascii	"stderr %s\012\000"
	.align	2
.LC4:
	.ascii	"could not write file \"%s\": %m\000"
	.align	2
.LC5:
	.ascii	"csvlog %s\012\000"
	.align	2
.LC6:
	.ascii	"could not rename file \"%s\" to \"%s\": %m\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_metainfo_datafile, %function
update_metainfo_datafile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L28
	ldr	r7, .L28+4
	ldr	r6, .L28+8
	ldr	r3, [r8]
	ldr	r1, [r7]
	ldr	r2, [r6]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L25
	ldr	r3, .L28+12
	ldr	r9, .L28+16
	ldr	r0, [r3]
	bl	umask
	ldr	r1, .L28+20
	mov	r5, r0
	ldr	r0, [r9]
	bl	fopen
	mov	r4, r0
	mov	r0, r5
	bl	umask
	cmp	r4, #0
	beq	.L6
	mov	r3, #0
	ldr	r2, .L28+24
	mov	r1, r3
	ldr	r2, [r2]
	mov	r0, r4
	bl	setvbuf
	ldr	r3, .L28+28
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L8
	ldr	r3, [r8]
	ldr	r1, [r6]
	tst	r1, r3
	bne	.L26
.L8:
	ldr	r3, .L28+32
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L9
	ldr	r1, [r6]
	ldr	r3, [r7]
	tst	r1, r3
	bne	.L27
.L9:
	ldr	r5, .L28+36
	mov	r0, r4
	bl	fclose
	ldr	r1, [r5]
	ldr	r0, [r9]
	bl	rename
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L28+40
	ldr	r4, [r3]
	bl	errcode_for_file_access
	ldr	r1, [r9]
	ldr	r2, [r5]
	ldr	r0, .L28+44
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ereport
.L27:
	mov	r0, r4
	ldr	r1, .L28+48
	bl	fprintf
	cmp	r0, #0
	bge	.L9
.L23:
	ldr	r3, .L28+40
	ldr	r5, [r3]
	bl	errcode_for_file_access
	ldr	r1, [r9]
	ldr	r0, .L28+52
	bl	errmsg
	mov	r1, r0
	mov	r0, r5
	bl	ereport
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	fclose
.L26:
	mov	r0, r4
	ldr	r1, .L28+56
	bl	fprintf
	cmp	r0, #0
	bge	.L8
	b	.L23
.L6:
	ldr	r3, .L28+40
	ldr	r4, [r3]
	bl	errcode_for_file_access
	ldr	r1, [r9]
	ldr	r0, .L28+60
	bl	errmsg
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ereport
.L25:
	ldr	r4, .L28+36
	ldr	r0, [r4]
	bl	unlink
	cmp	r0, #0
	popge	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L28+64
	ldr	r3, .L28+68
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L28+40
	ldr	r5, [r3]
	bl	errcode_for_file_access
	ldr	r1, [r4]
	ldr	r0, .L28+72
	bl	errmsg
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	ereport
.L29:
	.align	2
.L28:
	.word	LOG_DESTINATION_STDERR
	.word	LOG_DESTINATION_CSVLOG
	.word	Log_destination
	.word	pg_mode_mask
	.word	LOG_METAINFO_DATAFILE_TMP
	.word	.LC1
	.word	PG_IOLBF
	.word	last_file_name
	.word	last_csv_file_name
	.word	LOG_METAINFO_DATAFILE
	.word	LOG
	.word	.LC6
	.word	.LC5
	.word	.LC4
	.word	.LC3
	.word	.LC2
	.word	errno
	.word	ENOENT
	.word	.LC0
	.size	update_metainfo_datafile, .-update_metainfo_datafile
	.comm	pg_mode_mask,4,4
	.comm	last_file_name,4,4
	.comm	last_csv_file_name,4,4
	.comm	errno,4,4
	.comm	_O_TEXT,4,4
	.comm	PG_IOLBF,4,4
	.comm	Log_destination,4,4
	.comm	LOG_METAINFO_DATAFILE_TMP,4,4
	.comm	LOG_METAINFO_DATAFILE,4,4
	.comm	LOG_DESTINATION_STDERR,4,4
	.comm	LOG_DESTINATION_CSVLOG,4,4
	.comm	LOG,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
