	.file	"extr_timestamp.c_tm2timestamp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tm2timestamp
	.type	tm2timestamp, @function
tm2timestamp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edx, DWORD PTR 12[rdi]
	mov	esi, DWORD PTR 16[rdi]
	mov	edi, DWORD PTR 20[rdi]
	call	IS_VALID_JULIAN@PLT
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 20[rbx]
	call	date2j@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	ecx, r14d
	mov	esi, DWORD PTR 4[rbx]
	sub	rax, QWORD PTR POSTGRES_EPOCH_JDATE[rip]
	mov	r13, rax
	call	time2t@PLT
	mov	r8, rax
	mov	rax, QWORD PTR USECS_PER_DAY[rip]
	imul	rax, r13
	lea	rdi, [rax+r8]
	cqo
	mov	QWORD PTR 0[rbp], rdi
	idiv	QWORD PTR USECS_PER_DAY[rip]
	cmp	rax, r13
	jne	.L4
	test	rdi, rdi
	js	.L20
	cmp	rax, -1
	jge	.L6
	test	rdi, rdi
	jg	.L4
.L6:
	test	r12, r12
	je	.L8
	mov	esi, DWORD PTR [r12]
	neg	esi
	call	dt2local@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
.L8:
	call	IS_VALID_TIMESTAMP@PLT
	test	eax, eax
	je	.L4
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L20:
	.cfi_restore_state
	test	rax, rax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR 0[rbp], 0
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tm2timestamp, .-tm2timestamp
	.comm	USECS_PER_DAY,8,8
	.comm	POSTGRES_EPOCH_JDATE,8,8
	.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_timestamp.c_tm2timestamp.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.global	tm2timestamp
	.syntax unified
	.arm
	.fpu softvfp
	.type	tm2timestamp, %function
tm2timestamp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r8, r1
	mov	r7, r2
	ldr	r1, [r0, #16]
	ldr	r2, [r0, #12]
	ldr	r0, [r0, #20]
	mov	r6, r3
	bl	IS_VALID_JULIAN
	cmp	r0, #0
	beq	.L4
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #20]
	bl	date2j
	mov	r5, r0
	ldr	r2, .L17
	ldr	r1, [r4, #4]
	ldr	ip, [r2]
	mov	r3, r8
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	sub	r5, r5, ip
	bl	time2t
	mov	r4, r0
	ldr	r3, .L17+4
	ldr	r0, [r3]
	mul	r0, r5, r0
	add	r4, r0, r4
	str	r4, [r6]
	ldr	r1, [r3]
	bl	__aeabi_idiv
	cmp	r0, r5
	bne	.L4
	cmp	r4, #0
	blt	.L16
	cmp	r4, #0
	movle	r3, #0
	movgt	r3, #1
	cmn	r0, #1
	movge	r3, #0
	cmp	r3, #0
	bne	.L4
.L6:
	cmp	r7, #0
	beq	.L7
	ldr	r1, [r7]
	mov	r0, r4
	rsb	r1, r1, #0
	bl	dt2local
	mov	r4, r0
	str	r0, [r6]
.L7:
	mov	r0, r4
	bl	IS_VALID_TIMESTAMP
	cmp	r0, #0
	beq	.L4
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	cmp	r0, #0
	ble	.L6
.L4:
	mov	r3, #0
	mvn	r0, #0
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	POSTGRES_EPOCH_JDATE
	.word	USECS_PER_DAY
	.size	tm2timestamp, .-tm2timestamp
	.comm	USECS_PER_DAY,4,4
	.comm	POSTGRES_EPOCH_JDATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
