	.file	"extr_citrus_lookup.c_seq_open_db.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s.db"
	.text
	.p2align 4
	.type	seq_open_db, @function
seq_open_db:
.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
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	mov	rcx, rsi
	mov	rdi, rsp
	lea	r13, -44[rbp]
	mov	esi, r8d
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	rsi, rsp
	mov	rdi, r13
	call	_map_file@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -24[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	ecx, DWORD PTR _db_hash_std[rip]
	lea	rdi, 48[rbx]
	xor	r8d, r8d
	mov	rsi, r13
	mov	edx, DWORD PTR _CITRUS_LOOKUP_MAGIC[rip]
	call	_db_open@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, DWORD PTR 48[rbx]
	mov	DWORD PTR 56[rbx], eax
	call	_db_get_num_entries@PLT
	mov	QWORD PTR 40[rbx], 0
	mov	DWORD PTR 52[rbx], eax
	lea	rax, seq_lookup_db[rip]
	mov	QWORD PTR 32[rbx], rax
	lea	rax, seq_next_db[rip]
	mov	QWORD PTR 24[rbx], rax
	lea	rax, seq_get_num_entries_db[rip]
	mov	QWORD PTR 16[rbx], rax
	lea	rax, seq_close_db[rip]
	mov	DWORD PTR [rbx], 1
	mov	QWORD PTR 8[rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	_unmap_file@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	seq_open_db, .-seq_open_db
	.comm	seq_next_db,4,4
	.comm	seq_lookup_db,4,4
	.comm	seq_get_num_entries_db,4,4
	.comm	seq_close_db,4,4
	.comm	_db_hash_std,4,4
	.comm	_CITRUS_LOOKUP_MAGIC,4,4
	.comm	PATH_MAX,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_citrus_lookup.c_seq_open_db.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s.db\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	seq_open_db, %function
seq_open_db:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	ldr	r2, .L10
	mov	r3, r1
	ldr	r1, [r2]
	mov	r5, r0
	add	r0, r1, #7
	bic	r0, r0, #7
	sub	sp, sp, r0
	ldr	ip, .L10+4
	add	r4, sp, #8
	mov	r0, r4
	ldr	r2, .L10+8
	ldr	ip, [ip]
	str	ip, [fp, #-16]
	mov	ip,#0
	bl	snprintf
	mov	r1, r4
	sub	r0, fp, #20
	bl	_map_file
	subs	r4, r0, #0
	beq	.L7
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	str	r4, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	sub	r1, fp, #20
	add	r0, r5, #24
	bl	_db_open
	subs	r4, r0, #0
	bne	.L9
	ldr	r3, [fp, #-20]
	ldr	r0, [r5, #24]
	str	r3, [r5, #32]
	bl	_db_get_num_entries
	mov	lr, #1
	ldr	ip, .L10+20
	ldr	r1, .L10+24
	ldr	r2, .L10+28
	ldr	r3, .L10+32
	str	r0, [r5, #28]
	str	r4, [r5, #20]
	str	lr, [r5]
	str	ip, [r5, #16]
	str	r1, [r5, #12]
	str	r2, [r5, #8]
	str	r3, [r5, #4]
	b	.L1
.L9:
	sub	r0, fp, #20
	bl	_unmap_file
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	PATH_MAX
	.word	.LC1
	.word	.LC0
	.word	_db_hash_std
	.word	_CITRUS_LOOKUP_MAGIC
	.word	seq_lookup_db
	.word	seq_next_db
	.word	seq_get_num_entries_db
	.word	seq_close_db
	.size	seq_open_db, .-seq_open_db
	.comm	seq_next_db,4,4
	.comm	seq_lookup_db,4,4
	.comm	seq_get_num_entries_db,4,4
	.comm	seq_close_db,4,4
	.comm	_db_hash_std,4,4
	.comm	_CITRUS_LOOKUP_MAGIC,4,4
	.comm	PATH_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
