	.file	"extr_xlogarchive.c_XLogArchiveIsReadyOrDone.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".done"
.LC1:
	.string	".ready"
	.text
	.p2align 4
	.globl	XLogArchiveIsReadyOrDone
	.type	XLogArchiveIsReadyOrDone, @function
XLogArchiveIsReadyOrDone:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rdi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPGPATH[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	mov	rsi, r12
	mov	rdi, rsp
	lea	rdx, .LC0[rip]
	call	StatusFilePath@PLT
	lea	r13, -28[rbp]
	mov	rdi, rsp
	mov	rsi, r13
	call	stat@PLT
	test	rax, rax
	jne	.L5
.L7:
	mov	eax, 1
.L1:
	mov	rsi, QWORD PTR -24[rbp]
	xor	rsi, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rsp
	lea	rdx, .LC1[rip]
	call	StatusFilePath@PLT
	mov	rsi, r13
	mov	rdi, rsp
	call	stat@PLT
	test	rax, rax
	je	.L7
	lea	rdx, .LC0[rip]
	mov	rsi, r12
	mov	rdi, rsp
	call	StatusFilePath@PLT
	mov	rsi, r13
	mov	rdi, rsp
	call	stat@PLT
	test	rax, rax
	sete	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	XLogArchiveIsReadyOrDone, .-XLogArchiveIsReadyOrDone
	.comm	MAXPGPATH,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_xlogarchive.c_XLogArchiveIsReadyOrDone.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".done\000"
	.align	2
.LC1:
	.ascii	".ready\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XLogArchiveIsReadyOrDone
	.syntax unified
	.arm
	.fpu softvfp
	.type	XLogArchiveIsReadyOrDone, %function
XLogArchiveIsReadyOrDone:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r3, .L12
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r2, .L12+4
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L12+8
	mov	r4, r0
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	StatusFilePath
	mov	r0, sp
	sub	r1, fp, #20
	bl	stat
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r0, #1
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L2:
	mov	r1, r4
	ldr	r2, .L12+12
	mov	r0, sp
	bl	StatusFilePath
	mov	r0, sp
	sub	r1, fp, #20
	bl	stat
	cmp	r0, #0
	beq	.L4
	mov	r1, r4
	ldr	r2, .L12+4
	mov	r0, sp
	bl	StatusFilePath
	mov	r0, sp
	sub	r1, fp, #20
	bl	stat
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	MAXPGPATH
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	XLogArchiveIsReadyOrDone, .-XLogArchiveIsReadyOrDone
	.comm	MAXPGPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
