	.file	"38266.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter the date: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Valid date "
.LC3:
	.string	"Valid date with leap year "
.LC4:
	.string	"Valid date without leap year "
.LC5:
	.string	"Invalid date "
.LC6:
	.string	"Invalid month "
.LC7:
	.string	"Invalid year "
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1849
	jle	.L2
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2050
	jg	.L2
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jle	.L3
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 12
	jg	.L3
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L4
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L4
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 12
	ja	.L36
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L7[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L7[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L36-.L7
	.long	.L18-.L7
	.long	.L17-.L7
	.long	.L16-.L7
	.long	.L15-.L7
	.long	.L14-.L7
	.long	.L13-.L7
	.long	.L12-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
.L18:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L40
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L40
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L40
.L17:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L20
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 28
	jg	.L20
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L21
	mov	edx, DWORD PTR -12[rbp]
	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	.L22
.L21:
	mov	edx, DWORD PTR -12[rbp]
	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	.L23
.L22:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L25
.L23:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L25
.L20:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L5
.L25:
	jmp	.L5
.L16:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L41
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L41
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L41
.L15:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L42
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 30
	jg	.L42
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L42
.L14:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L43
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L43
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L43
.L13:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L44
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 30
	jg	.L44
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L44
.L12:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L45
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L45
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L45
.L11:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L46
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L46
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L46
.L10:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L47
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 30
	jg	.L47
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L47
.L9:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L48
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L48
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L48
.L8:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L49
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 30
	jg	.L49
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L49
.L6:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L50
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 31
	jg	.L50
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L50
.L40:
	nop
	jmp	.L36
.L41:
	nop
	jmp	.L36
.L42:
	nop
	jmp	.L36
.L43:
	nop
	jmp	.L36
.L44:
	nop
	jmp	.L36
.L45:
	nop
	jmp	.L36
.L46:
	nop
	jmp	.L36
.L47:
	nop
	jmp	.L36
.L48:
	nop
	jmp	.L36
.L49:
	nop
	jmp	.L36
.L50:
	nop
.L5:
	jmp	.L36
.L4:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L37
.L36:
	jmp	.L37
.L3:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L38
.L37:
	jmp	.L38
.L2:
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L38:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"38266.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the date: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Valid date \000"
	.align	2
.LC3:
	.ascii	"Valid date with leap year \000"
	.align	2
.LC4:
	.ascii	"Valid date without leap year \000"
	.align	2
.LC5:
	.ascii	"Invalid date \000"
	.align	2
.LC6:
	.ascii	"Invalid month \000"
	.align	2
.LC7:
	.ascii	"Invalid year \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L51+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L51+8
	bl	__isoc99_scanf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L51+8
	bl	__isoc99_scanf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L51+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L51+12
	cmp	r3, r2
	ble	.L2
	ldr	r3, [fp, #-12]
	ldr	r2, .L51+16
	cmp	r3, r2
	bgt	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bgt	.L3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L4
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L36
.L7:
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L18:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L40
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L40
	ldr	r0, .L51+20
	bl	puts
	b	.L40
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #28
	bgt	.L20
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L21
	ldr	r1, [fp, #-12]
	ldr	r3, .L51+24
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L22
.L21:
	ldr	r1, [fp, #-12]
	ldr	r3, .L51+24
	smull	r2, r3, r1, r3
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L23
.L22:
	ldr	r0, .L51+28
	bl	puts
	b	.L25
.L23:
	ldr	r0, .L51+32
	bl	puts
	b	.L25
.L20:
	ldr	r0, .L51+36
	bl	puts
	b	.L5
.L25:
	b	.L5
.L16:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L41
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L41
	ldr	r0, .L51+20
	bl	puts
	b	.L41
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L42
	ldr	r3, [fp, #-20]
	cmp	r3, #30
	bgt	.L42
	ldr	r0, .L51+20
	bl	puts
	b	.L42
.L14:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L43
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L43
	ldr	r0, .L51+20
	bl	puts
	b	.L43
.L13:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L44
	ldr	r3, [fp, #-20]
	cmp	r3, #30
	bgt	.L44
	ldr	r0, .L51+20
	bl	puts
	b	.L44
.L12:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L45
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L45
	ldr	r0, .L51+20
	bl	puts
	b	.L45
.L11:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L46
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L46
	ldr	r0, .L51+20
	bl	puts
	b	.L46
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L47
	ldr	r3, [fp, #-20]
	cmp	r3, #30
	bgt	.L47
	ldr	r0, .L51+20
	bl	puts
	b	.L47
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L48
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L48
	ldr	r0, .L51+20
	bl	puts
	b	.L48
.L8:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L49
	ldr	r3, [fp, #-20]
	cmp	r3, #30
	bgt	.L49
	ldr	r0, .L51+20
	bl	puts
	b	.L49
.L6:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L50
	ldr	r3, [fp, #-20]
	cmp	r3, #31
	bgt	.L50
	ldr	r0, .L51+20
	bl	puts
	b	.L50
.L40:
	nop
	b	.L36
.L41:
	nop
	b	.L36
.L42:
	nop
	b	.L36
.L43:
	nop
	b	.L36
.L44:
	nop
	b	.L36
.L45:
	nop
	b	.L36
.L46:
	nop
	b	.L36
.L47:
	nop
	b	.L36
.L48:
	nop
	b	.L36
.L49:
	nop
	b	.L36
.L50:
	nop
.L5:
	b	.L36
.L4:
	ldr	r0, .L51+36
	bl	puts
	b	.L37
.L36:
	b	.L37
.L3:
	ldr	r0, .L51+40
	bl	puts
	b	.L38
.L37:
	b	.L38
.L2:
	ldr	r0, .L51+44
	bl	puts
.L38:
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	1849
	.word	2050
	.word	.LC2
	.word	1374389535
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
