	.file	"3261644.c"
	.intel_syntax noprefix
	.text
	.globl	ftime
	.type	ftime, @function
ftime:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -68[rbp], eax
	mov	edi, 0
	mov	eax, 0
	call	__set_errno@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	time@PLT
	cmp	rax, -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	mov	eax, -1
	jmp	.L5
.L2:
	mov	rax, QWORD PTR -88[rbp]
	mov	WORD PTR 8[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	__localtime_r@PLT
	test	eax, eax
	jne	.L4
	mov	eax, -1
	jmp	.L5
.L4:
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, -8608480567731124087
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 5
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	WORD PTR 10[rax], dx
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	WORD PTR 12[rax], dx
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, 0
.L5:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ftime, .-ftime
	.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	"3261644.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ftime
	.syntax unified
	.arm
	.fpu softvfp
	.type	ftime, %function
ftime:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	mov	r0, #0
	bl	__set_errno
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	time
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mvn	r3, #0
	b	.L5
.L2:
	ldr	r3, [fp, #-64]
	mov	r2, #0
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-64]
	sub	r2, fp, #52
	mov	r1, r2
	mov	r0, r3
	bl	__localtime_r
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	ldr	r2, .L7+4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-64]
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-64]
	strh	r2, [r3, #8]	@ movhi
	ldr	r0, [fp, #-56]
	bl	__set_errno
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	-2004318071
	.size	ftime, .-ftime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
