	.file	"extr_pmemcached-index-disk.c_onload_metafile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"onload_metafile(%p,%d)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"assertion (meta->aio == a) will fail\n"
	.section	.rodata.str1.1
.LC2:
	.string	"%p != %p\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"ERROR reading metafile: read %d bytes out of %d: %m\n"
	.align 8
.LC4:
	.string	"*** Read metafile: read %d bytes\n"
	.text
	.p2align 4
	.globl	onload_metafile
	.type	onload_metafile, @function
onload_metafile:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR verbosity[rip], 2
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jg	.L15
.L2:
	mov	rbx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR ct_aio[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	sete	dil
	call	assert@PLT
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	assert@PLT
	mov	rax, rbp
	cmp	QWORD PTR 16[rbx], rbp
	je	.L3
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, rbp
	xor	eax, eax
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	call	fprintf@PLT
	mov	rax, QWORD PTR 16[rbx]
.L3:
	xor	edi, edi
	cmp	rbp, rax
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rax]
	cmp	esi, r12d
	je	.L4
	mov	eax, DWORD PTR verbosity[rip]
	test	eax, eax
	jg	.L16
.L5:
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, QWORD PTR 8[rbx]
	mov	QWORD PTR 24[rbx], 0
	call	zzfree@PLT
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, DWORD PTR [rax]
	pop	r12
	.cfi_def_cfa_offset 8
	sub	DWORD PTR allocated_metafile_bytes[rip], eax
	mov	eax, 1
	add	DWORD PTR metafiles_load_errors[rip], 1
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, esi
	xor	eax, eax
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	call	fprintf@PLT
	cmp	DWORD PTR verbosity[rip], 2
	jg	.L10
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rax]
	cmp	esi, r12d
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	movsx	rax, DWORD PTR metafiles[rip]
	mov	QWORD PTR 16[rbx], 0
	mov	rdi, rbx
	add	DWORD PTR metafiles_loaded[rip], 1
	sal	rax, 5
	sub	rdi, rax
	call	add_use@PLT
	add	DWORD PTR metafiles_load_success[rip], 1
	cmp	QWORD PTR use_metafile_crc32[rip], 0
	jne	.L17
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	DWORD PTR tot_aio_loaded_bytes[rip], r12d
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	DWORD PTR verbosity[rip], 2
	jle	.L7
.L10:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	edx, r12d
	xor	eax, eax
	call	fprintf@PLT
	mov	rax, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rax]
	cmp	esi, r12d
	jne	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, rdi
	mov	edi, DWORD PTR stderr[rip]
	mov	ecx, esi
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR 8[rbx]
	mov	ecx, 1
	mov	esi, DWORD PTR [rax]
	lea	rdx, 4[rax]
	call	crc32_check_and_repair@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	onload_metafile, .-onload_metafile
	.comm	verbosity,4,4
	.comm	use_metafile_crc32,8,8
	.comm	tot_aio_loaded_bytes,4,4
	.comm	stderr,4,4
	.comm	metafiles_loaded,4,4
	.comm	metafiles_load_success,4,4
	.comm	metafiles_load_errors,4,4
	.comm	metafiles,4,4
	.comm	ct_aio,8,8
	.comm	allocated_metafile_bytes,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_pmemcached-index-disk.c_onload_metafile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"onload_metafile(%p,%d)\012\000"
	.align	2
.LC1:
	.ascii	"assertion (meta->aio == a) will fail\012\000"
	.align	2
.LC2:
	.ascii	"%p != %p\012\000"
	.align	2
.LC3:
	.ascii	"ERROR reading metafile: read %d bytes out of %d: %m"
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"*** Read metafile: read %d bytes\012\000"
	.text
	.align	2
	.global	onload_metafile
	.syntax unified
	.arm
	.fpu softvfp
	.type	onload_metafile, %function
onload_metafile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L22
	mov	r5, r0
	ldr	r3, [r7]
	mov	r6, r1
	cmp	r3, #2
	bgt	.L19
.L2:
	ldr	r3, .L22+4
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r4, [r5, #4]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r4, #8]
	cmp	r3, r5
	moveq	r0, r5
	beq	.L3
	ldr	r8, .L22+8
	ldr	r1, .L22+12
	ldr	r0, [r8]
	bl	fprintf
	mov	r3, r5
	ldr	r0, [r8]
	ldr	r2, [r4, #8]
	ldr	r1, .L22+16
	bl	fprintf
	ldr	r0, [r4, #8]
.L3:
	sub	r0, r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r4]
	ldr	r1, [r3]
	ldr	r3, [r7]
	cmp	r1, r6
	beq	.L4
	cmp	r3, #0
	bgt	.L20
.L5:
	mov	r5, #0
	ldr	r0, [r4, #4]
	str	r5, [r4, #8]
	str	r5, [r4, #12]
	bl	zzfree
	ldr	r3, [r4]
	ldr	r0, .L22+20
	ldr	r1, .L22+24
	ldr	ip, [r3]
	ldr	r2, [r0]
	ldr	r3, [r1]
	sub	r2, r2, ip
	add	r3, r3, #1
	str	r2, [r0]
	str	r5, [r4, #4]
	mov	r0, #1
	str	r3, [r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r8, .L22+8
	mov	r3, r1
	mov	r2, r6
	ldr	r0, [r8]
	ldr	r1, .L22+28
	bl	fprintf
	ldr	r3, [r7]
	cmp	r3, #2
	bgt	.L10
	ldr	r3, [r4]
	ldr	r1, [r3]
	cmp	r1, r6
	bne	.L5
.L7:
	mov	r1, #0
	ldr	r2, .L22+32
	ldr	r0, .L22+36
	ldr	r3, [r2]
	ldr	r0, [r0]
	add	r3, r3, #1
	str	r1, [r4, #8]
	sub	r0, r4, r0, lsl #4
	str	r3, [r2]
	bl	add_use
	ldr	r2, .L22+40
	ldr	r1, .L22+44
	ldr	r3, [r2]
	ldr	r1, [r1]
	add	r3, r3, #1
	cmp	r1, #0
	str	r3, [r2]
	bne	.L21
.L9:
	ldr	r3, .L22+48
	mov	r0, #1
	ldr	r1, [r3]
	add	r6, r1, r6
	str	r6, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	cmp	r3, #2
	ldrgt	r8, .L22+8
	ble	.L7
.L10:
	ldr	r1, .L22+52
	mov	r2, r6
	ldr	r0, [r8]
	bl	fprintf
	ldr	r3, [r4]
	ldr	r1, [r3]
	cmp	r1, r6
	bne	.L5
	b	.L7
.L19:
	ldr	r8, .L22+8
	mov	r3, r1
	mov	r2, r5
	ldr	r0, [r8]
	ldr	r1, .L22+56
	bl	fprintf
	b	.L2
.L21:
	ldr	r2, [r4]
	mov	r3, #1
	ldr	r0, [r4, #4]
	ldr	r1, [r2], #4
	bl	crc32_check_and_repair
	b	.L9
.L23:
	.align	2
.L22:
	.word	verbosity
	.word	ct_aio
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	allocated_metafile_bytes
	.word	metafiles_load_errors
	.word	.LC3
	.word	metafiles_loaded
	.word	metafiles
	.word	metafiles_load_success
	.word	use_metafile_crc32
	.word	tot_aio_loaded_bytes
	.word	.LC4
	.word	.LC0
	.size	onload_metafile, .-onload_metafile
	.comm	verbosity,4,4
	.comm	use_metafile_crc32,4,4
	.comm	tot_aio_loaded_bytes,4,4
	.comm	stderr,4,4
	.comm	metafiles_loaded,4,4
	.comm	metafiles_load_success,4,4
	.comm	metafiles_load_errors,4,4
	.comm	metafiles,4,4
	.comm	ct_aio,4,4
	.comm	allocated_metafile_bytes,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
