	.file	"extr_storage-data.c_md5_doc_lookup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"md5_doc_idx_lookup returns exit code %d.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"pos = %llx\n"
	.text
	.p2align 4
	.type	md5_doc_lookup, @function
md5_doc_lookup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	md5_doc_idx_lookup@PLT
	test	eax, eax
	je	.L1
	cmp	DWORD PTR STORAGE_ERR_WRONG_SECRET[rip], eax
	je	.L1
	lea	rsi, .LC0[rip]
	mov	edi, 3
	movsx	rdx, eax
	call	vkprintf@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r13
	call	md5_tree_lookup@PLT
	test	rax, rax
	je	.L10
	mov	rbp, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	edi, 4
	mov	rdx, rbp
	xor	rbx, rbp
	call	vkprintf@PLT
	mov	eax, DWORD PTR STORAGE_ERR_WRONG_SECRET[rip]
	test	QWORD PTR STORAGE_SECRET_MASK[rip], rbx
	jne	.L1
	and	rbp, QWORD PTR FILE_OFFSET_MASK[rip]
	xor	eax, eax
	mov	QWORD PTR [r12], rbp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR STORAGE_ERR_DOC_NOT_FOUND[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	md5_doc_lookup, .-md5_doc_lookup
	.comm	STORAGE_SECRET_MASK,8,8
	.comm	STORAGE_ERR_WRONG_SECRET,4,4
	.comm	STORAGE_ERR_DOC_NOT_FOUND,4,4
	.comm	FILE_OFFSET_MASK,8,8
	.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_storage-data.c_md5_doc_lookup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"md5_doc_idx_lookup returns exit code %d.\012\000"
	.align	2
.LC1:
	.ascii	"pos = %llx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	md5_doc_lookup, %function
md5_doc_lookup:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	ldr	r8, [sp, #40]
	mov	r6, r0
	str	r8, [sp]
	mov	r7, r1
	mov	r5, r2
	mov	r4, r3
	bl	md5_doc_idx_lookup
	cmp	r0, #0
	beq	.L1
	ldr	r9, .L11
	ldr	r3, [r9]
	cmp	r3, r0
	beq	.L1
	mov	r2, r0
	asr	r3, r0, #31
	ldr	r1, .L11+4
	mov	r0, #3
	bl	vkprintf
	mov	r1, r7
	ldr	r0, [r6]
	bl	md5_tree_lookup
	cmp	r0, #0
	beq	.L10
	ldm	r0, {r6, r7}
	ldr	r1, .L11+8
	mov	r2, r6
	mov	r3, r7
	mov	r0, #4
	bl	vkprintf
	ldr	r3, .L11+12
	eor	r5, r5, r6
	eor	r4, r4, r7
	ldm	r3, {r2, r3}
	and	r0, r5, r2
	and	r1, r4, r3
	orrs	r3, r0, r1
	moveq	r0, #0
	ldreq	r3, .L11+16
	ldrne	r0, [r9]
	ldmeq	r3, {r2, r3}
	andeq	r2, r2, r6
	andeq	r3, r3, r7
	stmeq	r8, {r2, r3}
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	.align	2
.L11:
	.word	STORAGE_ERR_WRONG_SECRET
	.word	.LC0
	.word	.LC1
	.word	STORAGE_SECRET_MASK
	.word	FILE_OFFSET_MASK
	.word	STORAGE_ERR_DOC_NOT_FOUND
	.size	md5_doc_lookup, .-md5_doc_lookup
	.comm	STORAGE_SECRET_MASK,8,8
	.comm	STORAGE_ERR_WRONG_SECRET,4,4
	.comm	STORAGE_ERR_DOC_NOT_FOUND,4,4
	.comm	FILE_OFFSET_MASK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
