	.file	"extr_42271.c_ttime.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttime, @function
ttime:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	rdi, rbp
	call	time@PLT
	cmp	rax, -1
	je	.L4
	mov	rdi, rbp
	call	localtime@PLT
	mov	r13, rax
	test	rax, rax
	je	.L4
.L3:
	movzx	edi, BYTE PTR [r12]
	test	dil, dil
	je	.L5
	mov	rbx, r12
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	call	isdigit@PLT
	test	eax, eax
	je	.L8
	movzx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L47
.L9:
	test	rbp, rbp
	jne	.L23
	cmp	dil, 46
	jne	.L23
	mov	rbp, rbx
	movzx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L47:
	test	rbp, rbp
	je	.L5
	mov	BYTE PTR 0[rbp], 0
	lea	r14, 1[rbp]
	mov	rdi, r14
	call	strlen@PLT
	cmp	eax, 2
	je	.L48
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	mov	r12, -1
	call	die@PLT
.L19:
	cmp	QWORD PTR [rsp], r12
	jg	.L49
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	eax, eax
	xor	r13d, r13d
	call	die@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 0[r13], 0
.L11:
	mov	rdi, r12
	call	strlen@PLT
	cmp	eax, 10
	je	.L13
	cmp	eax, 12
	je	.L14
	cmp	eax, 8
	jne	.L8
.L15:
	mov	rdi, r12
	call	ATOI2@PLT
	cmp	eax, 12
	jg	.L24
	test	eax, eax
	je	.L24
	sub	eax, 1
	mov	rdi, r12
	mov	DWORD PTR 8[r13], eax
	call	ATOI2@PLT
	mov	DWORD PTR 12[r13], eax
	cmp	eax, 31
	jg	.L8
	test	eax, eax
	je	.L8
	mov	rdi, r12
	call	ATOI2@PLT
	mov	DWORD PTR 16[r13], eax
	cmp	eax, 23
	jg	.L8
	mov	rdi, r12
	call	ATOI2@PLT
	mov	DWORD PTR 20[r13], eax
	cmp	eax, 59
	jg	.L8
	mov	DWORD PTR 24[r13], -1
	mov	rdi, r13
	call	mktime@PLT
	mov	r12, rax
	cmp	rax, -1
	jne	.L19
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L49:
	xor	eax, eax
	call	die@PLT
	jmp	.L1
.L48:
	mov	rdi, r14
	call	ATOI2@PLT
	mov	DWORD PTR 0[r13], eax
	cmp	eax, 61
	jle	.L11
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	DWORD PTR 8[r13], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	call	ATOI2@PLT
	mov	rdi, r12
	imul	eax, eax, 100
	sub	eax, 1900
	mov	DWORD PTR 4[r13], eax
	call	ATOI2@PLT
	add	DWORD PTR 4[r13], eax
	jmp	.L15
.L13:
	mov	rdi, r12
	call	ATOI2@PLT
	lea	edx, 100[rax]
	cmp	eax, 68
	cmovle	eax, edx
	mov	DWORD PTR 4[r13], eax
	jmp	.L15
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ttime, .-ttime
	.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_42271.c_ttime.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttime, %function
ttime:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L46
	sub	sp, sp, #12
	mov	r6, r0
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	time
	cmn	r0, #1
	beq	.L4
	mov	r0, sp
	bl	localtime
	subs	r7, r0, #0
	beq	.L4
.L3:
	ldrb	r0, [r6]	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L5
	mov	r4, r6
	mov	r5, #0
	b	.L8
.L42:
	bl	isdigit
	cmp	r0, #0
	beq	.L7
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L41
.L8:
	cmp	r5, #0
	cmpeq	r0, #46
	bne	.L42
	mov	r5, r4
	ldrb	r0, [r4, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L8
.L41:
	cmp	r5, #0
	beq	.L5
	strb	r0, [r5], #1
	mov	r0, r5
	bl	strlen
	cmp	r0, #2
	beq	.L43
.L7:
	bl	die
	mvn	r4, #0
.L17:
	ldr	r3, [sp]
	cmp	r3, r4
	bgt	.L44
.L1:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	bl	die
	mov	r7, #0
	b	.L3
.L44:
	bl	die
	b	.L1
.L43:
	mov	r0, r5
	bl	ATOI2
	cmp	r0, #61
	str	r0, [r7]
	bgt	.L7
.L10:
	mov	r0, r6
	bl	strlen
	cmp	r0, #10
	beq	.L12
	cmp	r0, #12
	beq	.L13
	cmp	r0, #8
	bne	.L7
.L14:
	mov	r0, r6
	bl	ATOI2
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r0, #12
	orrgt	r3, r3, #1
	cmp	r3, #0
	strne	r0, [r7, #8]
	bne	.L7
	sub	r0, r0, #1
	str	r0, [r7, #8]
	mov	r0, r6
	bl	ATOI2
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r0, #31
	orrgt	r3, r3, #1
	cmp	r3, #0
	str	r0, [r7, #12]
	bne	.L7
	mov	r0, r6
	bl	ATOI2
	cmp	r0, #23
	str	r0, [r7, #16]
	bgt	.L7
	mov	r0, r6
	bl	ATOI2
	cmp	r0, #59
	str	r0, [r7, #20]
	bgt	.L7
	mvn	r3, #0
	mov	r0, r7
	str	r3, [r7, #24]
	bl	mktime
	cmn	r0, #1
	mov	r4, r0
	bne	.L17
	b	.L7
.L5:
	mov	r3, #0
	str	r3, [r7]
	b	.L10
.L13:
	mov	r0, r6
	bl	ATOI2
	add	r0, r0, r0, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r3, r0, #2
	sub	r3, r3, #1888
	sub	r3, r3, #12
	str	r3, [r7, #4]
	mov	r0, r6
	bl	ATOI2
	ldr	r3, [r7, #4]
	add	r3, r3, r0
	str	r3, [r7, #4]
	b	.L14
.L12:
	mov	r0, r6
	bl	ATOI2
	cmp	r0, #68
	addle	r0, r0, #100
	str	r0, [r7, #4]
	b	.L14
.L45:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	.LC0
	.size	ttime, .-ttime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
