	.file	"extr_common.c_lpd_gettime.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	lpd_gettime
	.type	lpd_gettime, @function
lpd_gettime:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR TIMESTR_SIZE[rip]
	mov	rcx, rsp
	mov	r15, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L22:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L22
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L23
.L4:
	test	rbx, rbx
	lea	rax, -72[rbp]
	mov	edx, 8
	mov	r14, rsp
	cmove	rbx, rax
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	edi, DWORD PTR CLOCK_REALTIME[rip]
	mov	rsi, rbx
	call	clock_gettime@PLT
	test	rax, rax
	je	.L6
	mov	edx, 8
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	lea	rdi, -64[rbp]
	xor	esi, esi
	call	gettimeofday@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR 4[rbx], eax
	imul	eax, DWORD PTR -64[rbp], 1000
	mov	DWORD PTR [rbx], eax
.L6:
	test	r13, r13
	je	.L20
	test	r12, r12
	je	.L20
	lea	rdi, 4[rbx]
	call	localtime@PLT
	mov	edx, DWORD PTR LPD_TIMESTAMP_PATTERN[rip]
	mov	esi, DWORD PTR TIMESTR_SIZE[rip]
	mov	rdi, r14
	mov	ecx, eax
	call	strftime@PLT
	movsx	rax, DWORD PTR TIMESTR_SIZE[rip]
	cmp	rax, r12
	jnb	.L10
	mov	BYTE PTR 1[r13+rax], 0
	mov	r12, rax
.L10:
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, r13
	call	strlcpy@PLT
.L20:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, r15
	jne	.L24
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lpd_gettime, .-lpd_gettime
	.comm	timezone,4,4
	.comm	daylight,8,8
	.comm	TIMESTR_SIZE,4,4
	.comm	LPD_TIMESTAMP_PATTERN,4,4
	.comm	CLOCK_REALTIME,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_common.c_lpd_gettime.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lpd_gettime
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpd_gettime, %function
lpd_gettime:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	ldr	r5, .L16
	subs	r4, r0, #0
	ldr	r3, [r5]
	subeq	r4, fp, #56
	add	r3, r3, #7
	bic	r3, r3, #7
	mov	r6, sp
	sub	sp, sp, r3
	ldr	r3, .L16+4
	mov	r8, r1
	mov	r7, r2
	mov	r1, #0
	mov	r2, #8
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	memset
	ldr	r3, .L16+8
	mov	r1, r4
	ldr	r0, [r3]
	bl	clock_gettime
	cmp	r0, #0
	mov	r9, sp
	bne	.L14
.L3:
	clz	r3, r7
	cmp	r8, #0
	lsr	r3, r3, #5
	movne	r10, r3
	moveq	r10, #1
	cmp	r10, #0
	bne	.L12
	ldr	r3, .L16+12
	add	r0, r4, #4
	ldr	r2, [r3]
	ldr	r4, [r5]
	str	r2, [fp, #-64]
	bl	localtime
	mov	r1, r4
	mov	r3, r0
	ldr	r2, [fp, #-64]
	mov	r0, r9
	bl	strftime
	ldr	r3, [r5]
	mov	r1, r9
	cmp	r3, r7
	movcc	r7, r3
	addcc	r3, r8, r3
	mov	r2, r7
	mov	r0, r8
	strbcc	r10, [r3, #1]
	bl	strlcpy
.L12:
	ldr	r3, .L16+4
	mov	sp, r6
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r2, #8
	mov	r1, #0
	mov	r0, r4
	bl	memset
	mov	r1, #0
	sub	r0, fp, #48
	bl	gettimeofday
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	rsb	r1, r3, r3, lsl #5
	add	r3, r3, r1, lsl #2
	lsl	r3, r3, #3
	str	r3, [r4]
	str	r2, [r4, #4]
	b	.L3
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	TIMESTR_SIZE
	.word	.LC0
	.word	CLOCK_REALTIME
	.word	LPD_TIMESTAMP_PATTERN
	.size	lpd_gettime, .-lpd_gettime
	.comm	timezone,4,4
	.comm	daylight,4,4
	.comm	TIMESTR_SIZE,4,4
	.comm	LPD_TIMESTAMP_PATTERN,4,4
	.comm	CLOCK_REALTIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
