	.file	"extr_journalfile.c_close_journal_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"uv_fs_close(%s): %s"
	.text
	.p2align 4
	.globl	close_journal_file
	.type	close_journal_file, @function
close_journal_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 16
	mov	r13, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR RRDENG_PATH_MAX[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L12:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L12
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L13
.L4:
	mov	edx, r8d
	mov	rsi, rsp
	lea	r14, -44[rbp]
	call	generate_journalfilepath@PLT
	mov	edx, DWORD PTR [rbx]
	xor	ecx, ecx
	mov	rsi, r14
	xor	edi, edi
	call	uv_fs_close@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L5
	mov	edi, eax
	call	uv_strerror@PLT
	mov	rsi, rsp
	lea	rdi, .LC0[rip]
	mov	rdx, rax
	call	error@PLT
	add	DWORD PTR 0[r13], 1
	mov	esi, 1
	lea	rdi, global_fs_errors[rip]
	call	rrd_stat_atomic_add@PLT
.L5:
	mov	rdi, r14
	call	uv_fs_req_cleanup@PLT
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	lea	rsp, -32[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	close_journal_file, .-close_journal_file
	.comm	global_fs_errors,4,4
	.comm	RRDENG_PATH_MAX,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_journalfile.c_close_journal_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uv_fs_close(%s): %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	close_journal_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_journal_file, %function
close_journal_file:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	mov	r3, r1
	ldr	r2, .L8
	mov	r4, r0
	ldr	r2, [r2]
	mov	r0, r1
	add	r1, r2, #7
	bic	r1, r1, #7
	ldr	ip, .L8+4
	sub	sp, sp, r1
	mov	r1, sp
	ldr	ip, [ip]
	str	ip, [fp, #-16]
	mov	ip,#0
	ldr	r5, [r3]
	bl	generate_journalfilepath
	mov	r3, #0
	ldr	r2, [r4]
	mov	r0, r3
	sub	r1, fp, #20
	bl	uv_fs_close
	subs	r4, r0, #0
	blt	.L6
.L2:
	sub	r0, fp, #20
	bl	uv_fs_req_cleanup
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	bl	uv_strerror
	mov	r1, sp
	mov	r2, r0
	ldr	r0, .L8+8
	bl	error
	mov	r1, #1
	ldr	r3, [r5]
	ldr	r0, .L8+12
	add	r3, r3, r1
	str	r3, [r5]
	bl	rrd_stat_atomic_add
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	RRDENG_PATH_MAX
	.word	.LC1
	.word	.LC0
	.word	global_fs_errors
	.size	close_journal_file, .-close_journal_file
	.comm	global_fs_errors,4,4
	.comm	RRDENG_PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
