	.file	"extr_dm-cache-metadata.c___open_metadata.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"couldn't read lock superblock"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"changing the data block size (from %u to %llu) is not supported"
	.section	.rodata.str1.1
.LC2:
	.string	"tm_open_with_sm failed"
	.text
	.p2align 4
	.type	__open_metadata, @function
__open_metadata:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	call	superblock_read_lock@PLT
	test	eax, eax
	js	.L10
	mov	rdi, QWORD PTR 8[rsp]
	call	dm_block_data@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	rbp, rax
	call	le32_to_cpu@PLT
	mov	r12, QWORD PTR [rbx]
	cmp	rax, r12
	je	.L4
	mov	edi, DWORD PTR 8[rbp]
	call	le32_to_cpu@PLT
	mov	rdx, r12
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	DMERR@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	call	dm_bm_unlock@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.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
.L4:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	call	__check_incompat_features@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	edx, DWORD PTR 4[rbp]
	mov	edi, DWORD PTR 28[rbx]
	lea	r9, 24[rbx]
	lea	r8, 16[rbx]
	mov	esi, DWORD PTR CACHE_SUPERBLOCK_LOCATION[rip]
	mov	ecx, 4
	call	dm_tm_open_with_sm@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	rdi, rbx
	xor	r12d, r12d
	call	__setup_mapping_info@PLT
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, 20[rbx]
	call	dm_disk_bitset_init@PLT
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, 12[rbx]
	call	dm_disk_bitset_init@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR CLEAN_SHUTDOWN[rip]
	lea	rsi, 16[rsp]
	mov	QWORD PTR 16[rsp], rax
	call	test_bit@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	DWORD PTR 8[rbx], eax
	call	dm_bm_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DMERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DMERR@PLT
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__open_metadata, .-__open_metadata
	.comm	EINVAL,4,4
	.comm	CLEAN_SHUTDOWN,4,4
	.comm	CACHE_SUPERBLOCK_LOCATION,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_dm-cache-metadata.c___open_metadata.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"couldn't read lock superblock\000"
	.align	2
.LC1:
	.ascii	"changing the data block size (from %u to %llu) is n"
	.ascii	"ot supported\000"
	.align	2
.LC2:
	.ascii	"tm_open_with_sm failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__open_metadata, %function
__open_metadata:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	sub	sp, sp, #24
	add	r1, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	superblock_read_lock
	subs	r4, r0, #0
	blt	.L10
	ldr	r0, [sp, #12]
	bl	dm_block_data
	mov	r6, r0
	ldr	r0, [r0, #8]
	bl	le32_to_cpu
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L4
	ldr	r0, [r6, #8]
	bl	le32_to_cpu
	mov	r3, #0
	mov	r1, r0
	ldr	r2, [r5]
	ldr	r0, .L13+4
	bl	DMERR
	ldr	r3, .L13+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L5:
	ldr	r0, [sp, #12]
	bl	dm_bm_unlock
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	__check_incompat_features
	subs	r4, r0, #0
	blt	.L5
	ldr	r1, .L13+12
	add	r0, r5, #20
	add	r3, r5, #12
	ldr	r2, [r6, #4]
	ldr	r1, [r1]
	str	r3, [sp]
	str	r0, [sp, #4]
	mov	r3, #4
	ldr	r0, [r5, #24]
	bl	dm_tm_open_with_sm
	subs	r4, r0, #0
	blt	.L12
	mov	r0, r5
	bl	__setup_mapping_info
	add	r1, r5, #16
	ldr	r0, [r5, #12]
	bl	dm_disk_bitset_init
	add	r1, r5, #8
	ldr	r0, [r5, #12]
	bl	dm_disk_bitset_init
	ldr	r0, [r6]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r2, .L13+16
	add	r1, sp, #16
	ldr	r0, [r2]
	str	r3, [sp, #16]
	bl	test_bit
	mov	r3, r0
	ldr	r0, [sp, #12]
	str	r3, [r5, #4]
	bl	dm_bm_unlock
	mov	r4, #0
	b	.L1
.L10:
	ldr	r0, .L13+20
	bl	DMERR
	b	.L1
.L12:
	ldr	r0, .L13+24
	bl	DMERR
	b	.L5
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC1
	.word	EINVAL
	.word	CACHE_SUPERBLOCK_LOCATION
	.word	CLEAN_SHUTDOWN
	.word	.LC0
	.word	.LC2
	.size	__open_metadata, .-__open_metadata
	.comm	EINVAL,4,4
	.comm	CLEAN_SHUTDOWN,4,4
	.comm	CACHE_SUPERBLOCK_LOCATION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
