	.file	"107952933.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter a date (dd mm yyyy) :"
.LC1:
	.string	"%d %d %d"
	.text
	.globl	getDate
	.type	getDate, @function
getDate:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	lea	rcx, 8[rax]
	lea	rax, -32[rbp]
	lea	rdx, 4[rax]
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -20[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rdx, rcx
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getDate, .-getDate
	.globl	f
	.type	f, @function
f:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 2
	jg	.L5
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	jmp	.L7
.L5:
	mov	eax, DWORD PTR -4[rbp]
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	f, .-f
	.globl	g
	.type	g, @function
g:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 2
	jg	.L9
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 13
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	g, .-g
	.globl	getN
	.type	getN, @function
getN:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -48[rbp], rdx
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	f
	imul	eax, eax, 1461
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	ebx, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	g
	imul	eax, eax, 153
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, [rbx+rax]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	whichCentury
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	getN, .-getN
	.globl	whichCentury
	.type	whichCentury, @function
whichCentury:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -16[rbp], rdx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1899
	jle	.L15
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1900
	jne	.L16
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jg	.L16
	mov	eax, 1
	jmp	.L17
.L16:
	mov	eax, 0
	jmp	.L17
.L15:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1799
	jle	.L18
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1800
	jne	.L19
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jg	.L19
	mov	eax, 2
	jmp	.L17
.L19:
	mov	eax, 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1699
	jle	.L20
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, 1700
	jne	.L21
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jg	.L21
	mov	eax, 0
	jmp	.L17
.L21:
	mov	eax, 2
	jmp	.L17
.L20:
	mov	eax, 0
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	whichCentury, .-whichCentury
	.globl	abs
	.type	abs, @function
abs:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jns	.L23
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -4[rbp]
.L24:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	abs, .-abs
	.globl	diff
	.type	diff, @function
diff:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cdq
	xor	eax, edx
	sub	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	diff, .-diff
	.section	.rodata
	.align 8
.LC2:
	.string	"The number of days between the dates is %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	call	getDate
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -32[rbp], eax
	call	getDate
	mov	QWORD PTR -28[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	rdx, QWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	getN
	mov	ebx, eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	getN
	mov	esi, ebx
	mov	edi, eax
	call	diff
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"107952933.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a date (dd mm yyyy) :\000"
	.align	2
.LC1:
	.ascii	"%d %d %d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getDate
	.syntax unified
	.arm
	.fpu softvfp
	.type	getDate, %function
getDate:
	@ args = 0, 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, #-24]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	puts
	sub	r3, fp, #20
	add	r0, r3, #8
	sub	r3, fp, #20
	add	r2, r3, #4
	sub	r1, fp, #20
	mov	r3, r0
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	getDate, .-getDate
	.align	2
	.global	f
	.syntax unified
	.arm
	.fpu softvfp
	.type	f, %function
f:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L7
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	b	.L9
.L7:
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	f, .-f
	.align	2
	.global	g
	.syntax unified
	.arm
	.fpu softvfp
	.type	g, %function
g:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L11
	ldr	r3, [fp, #-8]
	add	r3, r3, #13
	b	.L13
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	g, .-g
	.align	2
	.global	getN
	.syntax unified
	.arm
	.fpu softvfp
	.type	getN, %function
getN:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	sub	r3, fp, #32
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	f
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #2
	sub	r3, r2, r3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	mov	r4, r3
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	g
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r2, r3, #4
	add	r3, r3, r2
	ldr	r2, .L16
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r2, r4, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	sub	r3, fp, #32
	ldm	r3, {r0, r1, r2}
	bl	whichCentury
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	1717986919
	.size	getN, .-getN
	.align	2
	.global	whichCentury
	.syntax unified
	.arm
	.fpu softvfp
	.type	whichCentury, %function
whichCentury:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	r3, fp, #16
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-8]
	ldr	r2, .L26
	cmp	r3, r2
	ble	.L19
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+4
	cmp	r3, r2
	bne	.L20
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
	b	.L21
.L19:
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+8
	cmp	r3, r2
	ble	.L22
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+12
	cmp	r3, r2
	bne	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L23
	mov	r3, #2
	b	.L21
.L23:
	mov	r3, #1
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+16
	cmp	r3, r2
	ble	.L24
	ldr	r3, [fp, #-8]
	ldr	r2, .L26+20
	cmp	r3, r2
	bne	.L25
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bgt	.L25
	mov	r3, #0
	b	.L21
.L25:
	mov	r3, #2
	b	.L21
.L24:
	mov	r3, #0
.L21:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L27:
	.align	2
.L26:
	.word	1899
	.word	1900
	.word	1799
	.word	1800
	.word	1699
	.word	1700
	.size	whichCentury, .-whichCentury
	.align	2
	.global	abs
	.syntax unified
	.arm
	.fpu softvfp
	.type	abs, %function
abs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L29
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	b	.L30
.L29:
	ldr	r3, [fp, #-8]
.L30:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	abs, .-abs
	.align	2
	.global	diff
	.syntax unified
	.arm
	.fpu softvfp
	.type	diff, %function
diff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	diff, .-diff
	.section	.rodata
	.align	2
.LC3:
	.ascii	"The number of days between the dates is %i\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r0, r3
	bl	getDate
	sub	r3, fp, #28
	mov	r0, r3
	bl	getDate
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2}
	bl	getN
	mov	r4, r0
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2}
	bl	getN
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	diff
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L36+4
	bl	printf
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC4
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
