	.file	"127854.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: %s dbfile last_modified_str\n"
	.align 8
.LC1:
	.string	"failed to open database for writing - gdbm_errno %d\n"
.LC2:
	.string	"lmf"
.LC3:
	.string	"failed to (un)lock database"
.LC4:
	.string	"%d"
.LC5:
	.string	"mod"
	.align 8
.LC6:
	.string	"failed to update database modification time"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1264
	mov	DWORD PTR -1252[rbp], edi
	mov	QWORD PTR -1264[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -1252[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -1264[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1232[rbp], rax
	lea	rdx, -1184[rbp]
	mov	rax, QWORD PTR -1232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L3
	mov	eax, 0
	jmp	.L8
.L3:
	mov	rax, QWORD PTR -1232[rbp]
	mov	r8d, 0
	mov	ecx, 420
	mov	edx, 1
	mov	esi, 1024
	mov	rdi, rax
	call	gdbm_open@PLT
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	jne	.L5
	call	gdbm_errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L8
.L5:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -1216[rbp], rax
	mov	DWORD PTR -1208[rbp], 7
	mov	rax, QWORD PTR -1264[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1200[rbp], rax
	mov	rax, QWORD PTR -1264[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1192[rbp], eax
	mov	rcx, QWORD PTR -1200[rbp]
	mov	rdi, QWORD PTR -1192[rbp]
	mov	rsi, QWORD PTR -1216[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	rax, QWORD PTR -1224[rbp]
	mov	r9d, 1
	mov	r8, rdi
	mov	rdi, rax
	call	gdbm_store@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	gdbm_close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 3
	jmp	.L8
.L6:
	lea	rax, -1240[rbp]
	mov	rdi, rax
	call	time@PLT
	mov	rdx, QWORD PTR -1240[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, .LC5[rip]
	mov	QWORD PTR -1216[rbp], rax
	mov	DWORD PTR -1208[rbp], 7
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1200[rbp], rax
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1192[rbp], eax
	mov	rcx, QWORD PTR -1200[rbp]
	mov	rdi, QWORD PTR -1192[rbp]
	mov	rsi, QWORD PTR -1216[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	rax, QWORD PTR -1224[rbp]
	mov	r9d, 1
	mov	r8, rdi
	mov	rdi, rax
	call	gdbm_store@PLT
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	gdbm_close@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, 4
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdi, rax
	call	gdbm_close@PLT
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"127854.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s dbfile last_modified_str\012\000"
	.align	2
.LC1:
	.ascii	"failed to open database for writing - gdbm_errno %d"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"lmf\000"
	.align	2
.LC3:
	.ascii	"failed to (un)lock database\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"mod\000"
	.align	2
.LC6:
	.ascii	"failed to update database modification time\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1168
	sub	sp, sp, #4
	str	r0, [fp, #-1168]
	str	r1, [fp, #-1172]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1168]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L10+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1172]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-1172]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1156]
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1156]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	mov	r3, #0
	b	.L8
.L3:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #420
	mov	r2, #1
	mov	r1, #1024
	ldr	r0, [fp, #-1156]
	bl	gdbm_open
	str	r0, [fp, #-1152]
	ldr	r3, [fp, #-1152]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L10+4
	ldr	r4, [r3]
	bl	gdbm_errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L10+12
	mov	r0, r4
	bl	fprintf
	mov	r3, #2
	b	.L8
.L5:
	ldr	r3, .L10+16
	str	r3, [fp, #-1148]
	mov	r3, #3
	str	r3, [fp, #-1144]
	ldr	r3, [fp, #-1172]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1172]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1136]
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1136]
	str	r3, [sp]
	ldr	r3, [fp, #-1140]
	sub	r2, fp, #1136
	sub	r2, r2, #12
	ldm	r2, {r1, r2}
	ldr	r0, [fp, #-1152]
	bl	gdbm_store
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r0, [fp, #-1152]
	bl	gdbm_close
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L10+20
	bl	fwrite
	mov	r3, #3
	b	.L8
.L6:
	sub	r3, fp, #1136
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	ldr	r2, [fp, #-1160]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L10+24
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L10+28
	str	r3, [fp, #-1148]
	mov	r3, #3
	str	r3, [fp, #-1144]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1140]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1136]
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1136]
	str	r3, [sp]
	ldr	r3, [fp, #-1140]
	sub	r2, fp, #1136
	sub	r2, r2, #12
	ldm	r2, {r1, r2}
	ldr	r0, [fp, #-1152]
	bl	gdbm_store
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, [fp, #-1152]
	bl	gdbm_close
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L10+32
	bl	fwrite
	mov	r3, #4
	b	.L8
.L7:
	ldr	r0, [fp, #-1152]
	bl	gdbm_close
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
