	.file	"extr_cpfile.c_nilfs_cpfile_is_snapshot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nilfs_cpfile_is_snapshot
	.type	nilfs_cpfile_is_snapshot, @function
nilfs_cpfile_is_snapshot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	jne	.L2
.L4:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, rsi
	mov	r13, rdi
	call	nilfs_mdt_cno@PLT
	cmp	rax, rbp
	jle	.L4
	mov	rdi, r13
	call	NILFS_MDT@PLT
	mov	rdi, rax
	call	down_read@PLT
	mov	rcx, rsp
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, r13
	call	nilfs_cpfile_get_checkpoint_block@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR [rax]
	call	kmap_atomic@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, rbp
	mov	rdi, r13
	mov	rcx, rax
	mov	r14, rax
	call	nilfs_cpfile_block_get_checkpoint@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	nilfs_checkpoint_invalid@PLT
	test	rax, rax
	je	.L6
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
.L7:
	mov	rdi, r14
	call	kunmap_atomic@PLT
	mov	rdi, QWORD PTR [rsp]
	call	brelse@PLT
.L5:
	mov	rdi, r13
	call	NILFS_MDT@PLT
	mov	rdi, rax
	call	up_read@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	nilfs_checkpoint_snapshot@PLT
	mov	r12d, eax
	jmp	.L7
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nilfs_cpfile_is_snapshot, .-nilfs_cpfile_is_snapshot
	.comm	ENOENT,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_cpfile.c_nilfs_cpfile_is_snapshot.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	nilfs_cpfile_is_snapshot
	.syntax unified
	.arm
	.fpu softvfp
	.type	nilfs_cpfile_is_snapshot, %function
nilfs_cpfile_is_snapshot:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #12
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L2
.L4:
	ldr	r3, .L12+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r6, r0
	bl	nilfs_mdt_cno
	cmp	r0, r4
	ble	.L4
	mov	r0, r6
	bl	NILFS_MDT
	bl	down_read
	mov	r3, sp
	mov	r2, #0
	mov	r1, r4
	mov	r0, r6
	bl	nilfs_cpfile_get_checkpoint_block
	subs	r5, r0, #0
	blt	.L5
	ldr	r3, [sp]
	ldr	r0, [r3]
	bl	kmap_atomic
	mov	r1, r4
	mov	r3, r0
	ldr	r2, [sp]
	mov	r7, r0
	mov	r0, r6
	bl	nilfs_cpfile_block_get_checkpoint
	mov	r4, r0
	bl	nilfs_checkpoint_invalid
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L12+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L7:
	mov	r0, r7
	bl	kunmap_atomic
	ldr	r0, [sp]
	bl	brelse
.L5:
	mov	r0, r6
	bl	NILFS_MDT
	bl	up_read
	b	.L1
.L6:
	mov	r0, r4
	bl	nilfs_checkpoint_snapshot
	mov	r5, r0
	b	.L7
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	ENOENT
	.size	nilfs_cpfile_is_snapshot, .-nilfs_cpfile_is_snapshot
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
