	.file	"190077.c"
	.intel_syntax noprefix
	.text
	.globl	ns_datetosecs
	.type	ns_datetosecs, @function
ns_datetosecs:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 14
	je	.L2
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, 0
	jmp	.L15
.L2:
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], 0
	lea	rax, -64[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, rdx
	mov	ecx, 9999
	mov	edx, 1990
	mov	esi, 4
	mov	rdi, rax
	call	datepart
	sub	eax, 1900
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 4
	mov	rdx, QWORD PTR -96[rbp]
	mov	r8, rdx
	mov	ecx, 12
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	datepart
	sub	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 6
	mov	rdx, QWORD PTR -96[rbp]
	mov	r8, rdx
	mov	ecx, 31
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	datepart
	mov	DWORD PTR -52[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR -96[rbp]
	mov	r8, rdx
	mov	ecx, 23
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	datepart
	mov	DWORD PTR -56[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 10
	mov	rdx, QWORD PTR -96[rbp]
	mov	r8, rdx
	mov	ecx, 59
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	datepart
	mov	DWORD PTR -60[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 12
	mov	rdx, QWORD PTR -96[rbp]
	mov	r8, rdx
	mov	ecx, 59
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	datepart
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L4
	mov	eax, 0
	jmp	.L15
.L4:
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, eax, 60
	add	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, eax, 3600
	add	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	imul	eax, eax, 86400
	add	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, days_per_month.0[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -72[rbp], eax
	add	DWORD PTR -68[rbp], 1
.L5:
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L6
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, eax, 86400
	add	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 1
	jle	.L7
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1900
	and	eax, 3
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1900[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L9
.L8:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1900[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L7
.L9:
	add	DWORD PTR -76[rbp], 86400
.L7:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, 70
	imul	eax, eax, 31536000
	add	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -68[rbp], 70
	jmp	.L10
.L14:
	mov	eax, DWORD PTR -68[rbp]
	add	eax, 1900
	and	eax, 3
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1900[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L12
.L11:
	mov	eax, DWORD PTR -68[rbp]
	lea	edx, 1900[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 400
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L13
.L12:
	add	DWORD PTR -76[rbp], 86400
.L13:
	add	DWORD PTR -68[rbp], 1
.L10:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -68[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -76[rbp]
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ns_datetosecs, .-ns_datetosecs
	.type	datepart, @function
datepart:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	QWORD PTR -48[rbp], r8
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L20:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
.L19:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, ecx
	sub	eax, 48
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L20
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L21
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
.L21:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L22
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
.L22:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	datepart, .-datepart
	.section	.rodata
	.align 32
	.type	days_per_month.0, @object
	.size	days_per_month.0, 48
days_per_month.0:
	.long	31
	.long	28
	.long	31
	.long	30
	.long	31
	.long	30
	.long	31
	.long	31
	.long	30
	.long	31
	.long	30
	.long	31
	.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	"190077.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ns_datetosecs
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns_datetosecs, %function
ns_datetosecs:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-72]
	bl	strlen
	mov	r3, r0
	cmp	r3, #14
	beq	.L2
	ldr	r3, [fp, #-76]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	b	.L15
.L2:
	ldr	r3, [fp, #-76]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #52
	mov	r2, #44
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	ldr	r3, .L17+4
	ldr	r2, .L17+8
	mov	r1, #4
	ldr	r0, [fp, #-72]
	bl	datepart
	mov	r3, r0
	sub	r3, r3, #1888
	sub	r3, r3, #12
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-72]
	add	r0, r3, #4
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #12
	mov	r2, #1
	mov	r1, #2
	bl	datepart
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-72]
	add	r0, r3, #6
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #31
	mov	r2, #1
	mov	r1, #2
	bl	datepart
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-72]
	add	r0, r3, #8
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #23
	mov	r2, #0
	mov	r1, #2
	bl	datepart
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-72]
	add	r0, r3, #10
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #59
	mov	r2, #0
	mov	r1, #2
	bl	datepart
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-72]
	add	r0, r3, #12
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	mov	r3, #59
	mov	r2, #0
	mov	r1, #2
	bl	datepart
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	b	.L15
.L4:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	mov	r2, r3
	mov	r3, r2
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L5
.L6:
	ldr	r2, .L17+12
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L5:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L6
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #7
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	ble	.L7
	ldr	r3, [fp, #-32]
	add	r3, r3, #1888
	add	r3, r3, #12
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-32]
	add	r2, r3, #1888
	add	r2, r2, #12
	ldr	r3, .L17+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	cmp	r1, #0
	bne	.L9
.L8:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1888
	add	r2, r2, #12
	ldr	r3, .L17+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	sub	r1, r2, r3
	cmp	r1, #0
	bne	.L7
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #86016
	add	r3, r3, #384
	str	r3, [fp, #-64]
.L7:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #70
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #9
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #7
	mov	r2, r3
	ldr	r3, [fp, #-64]
	add	r3, r3, r2
	str	r3, [fp, #-64]
	mov	r3, #70
	str	r3, [fp, #-56]
	b	.L10
.L14:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1888
	add	r3, r3, #12
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-56]
	add	r2, r3, #1888
	add	r2, r2, #12
	ldr	r3, .L17+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	cmp	r1, #0
	bne	.L12
.L11:
	ldr	r3, [fp, #-56]
	add	r2, r3, #1888
	add	r2, r2, #12
	ldr	r3, .L17+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	sub	r1, r2, r3
	cmp	r1, #0
	bne	.L13
.L12:
	ldr	r3, [fp, #-64]
	add	r3, r3, #86016
	add	r3, r3, #384
	str	r3, [fp, #-64]
.L13:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L10:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-64]
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	9999
	.word	1990
	.word	days_per_month.5877
	.word	1374389535
	.size	ns_datetosecs, .-ns_datetosecs
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	datepart, %function
datepart:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L22:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L21
	ldr	r3, [fp, #4]
	mov	r2, #1
	str	r2, [r3]
.L21:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r1, r3
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L22
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #4]
	mov	r2, #1
	str	r2, [r3]
.L23:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L24
	ldr	r3, [fp, #4]
	mov	r2, #1
	str	r2, [r3]
.L24:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	datepart, .-datepart
	.section	.rodata
	.align	2
	.type	days_per_month.5877, %object
	.size	days_per_month.5877, 48
days_per_month.5877:
	.word	31
	.word	28
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
