	.file	"657498.c"
	.intel_syntax noprefix
	.text
	.globl	monthDayNum
	.data
	.align 32
	.type	monthDayNum, @object
	.size	monthDayNum, 48
monthDayNum:
	.long	31
	.long	28
	.long	31
	.long	30
	.long	31
	.long	30
	.long	31
	.long	31
	.long	30
	.long	31
	.long	30
	.long	31
	.text
	.globl	flushStdin
	.type	flushStdin, @function
flushStdin:
.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, 16
	mov	BYTE PTR -1[rbp], 0
	nop
.L3:
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 10
	je	.L4
	cmp	BYTE PTR -1[rbp], -1
	jne	.L3
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	flushStdin, .-flushStdin
	.section	.rodata
.LC0:
	.string	"Invalid "
.LC1:
	.string	"day"
.LC2:
	.string	"month"
.LC3:
	.string	"year"
	.align 8
.LC4:
	.string	". Please check your input and try again...\n"
	.text
	.globl	printErrorMsg
	.type	printErrorMsg, @function
printErrorMsg:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 2
	je	.L6
	cmp	DWORD PTR -4[rbp], 2
	jg	.L7
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	cmp	DWORD PTR -4[rbp], 1
	je	.L9
	jmp	.L7
.L6:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L9:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L7:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printErrorMsg, .-printErrorMsg
	.globl	isLeapYear
	.type	isLeapYear, @function
isLeapYear:
.LFB8:
	.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	eax, DWORD PTR -4[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L11
	mov	edx, DWORD PTR -4[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	.L12
.L11:
	mov	edx, DWORD PTR -4[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	.L13
.L12:
	mov	eax, 1
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isLeapYear, .-isLeapYear
	.globl	isNumber
	.type	isNumber, @function
isNumber:
.LFB9:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	je	.L17
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L17
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L18
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L17
.L18:
	mov	eax, 0
	jmp	.L19
.L17:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L21
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L22
.L21:
	mov	eax, 0
	jmp	.L19
.L22:
	add	DWORD PTR -20[rbp], 1
.L20:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L23
	mov	eax, 1
.L19:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isNumber, .-isNumber
	.globl	isZero
	.type	isZero, @function
isZero:
.LFB10:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	je	.L25
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L25
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	je	.L25
	mov	eax, 0
	jmp	.L26
.L25:
	mov	DWORD PTR -20[rbp], 1
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	je	.L28
	mov	eax, 0
	jmp	.L26
.L28:
	add	DWORD PTR -20[rbp], 1
.L27:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L29
	mov	eax, 1
.L26:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	isZero, .-isZero
	.globl	isPositive
	.type	isPositive, @function
isPositive:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L31
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, 0
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L33:
	mov	eax, 1
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	isPositive, .-isPositive
	.section	.rodata
.LC5:
	.string	"%s%s%s"
	.text
	.globl	getInput
	.type	getInput, @function
getInput:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 400
	mov	QWORD PTR -376[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, -112[rbp]
	lea	rcx, -224[rbp]
	lea	rdx, -336[rbp]
	mov	rax, QWORD PTR -376[rbp]
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	isNumber
	test	al, al
	je	.L35
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	isZero
	test	al, al
	je	.L36
	mov	DWORD PTR -360[rbp], -1
	jmp	.L37
.L36:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	isPositive
	test	al, al
	je	.L38
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 4
	ja	.L39
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -360[rbp], eax
	jmp	.L37
.L39:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -4[rax]
	lea	rax, -336[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -360[rbp], eax
	jmp	.L37
.L38:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 4
	ja	.L40
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	atoi@PLT
	sub	eax, 1
	mov	DWORD PTR -360[rbp], eax
	jmp	.L37
.L40:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -4[rax]
	lea	rax, -336[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	atoi@PLT
	sub	eax, 1
	mov	DWORD PTR -360[rbp], eax
	mov	eax, DWORD PTR -360[rbp]
	cmp	eax, -1
	jne	.L37
	mov	DWORD PTR -360[rbp], 3
	jmp	.L37
.L35:
	mov	DWORD PTR -360[rbp], -1
.L37:
	lea	rax, -224[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L41
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	ja	.L41
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	isNumber
	test	al, al
	je	.L41
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -356[rbp], eax
	jmp	.L42
.L41:
	mov	DWORD PTR -356[rbp], -1
.L42:
	lea	rax, -224[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L43
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 2
	ja	.L43
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	isNumber
	test	al, al
	je	.L43
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -352[rbp], eax
	jmp	.L44
.L43:
	mov	DWORD PTR -352[rbp], -1
.L44:
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR -348[rbp], rax
	mov	eax, DWORD PTR -352[rbp]
	mov	DWORD PTR -340[rbp], eax
	mov	rax, QWORD PTR -348[rbp]
	mov	ecx, DWORD PTR -340[rbp]
	mov	rdx, rcx
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getInput, .-getInput
	.globl	validateInput
	.type	validateInput, @function
validateInput:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rdx, rdi
	mov	eax, esi
	mov	QWORD PTR -16[rbp], rdx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jns	.L48
	mov	edi, 0
	call	printErrorMsg
	mov	eax, 0
	jmp	.L49
.L48:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	js	.L50
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 12
	jle	.L51
.L50:
	mov	edi, 1
	call	printErrorMsg
	mov	eax, 0
	jmp	.L49
.L51:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	isLeapYear
	test	al, al
	je	.L52
	mov	DWORD PTR monthDayNum[rip+4], 29
	jmp	.L53
.L52:
	mov	DWORD PTR monthDayNum[rip+4], 28
.L53:
	mov	eax, DWORD PTR -8[rbp]
	test	eax, eax
	js	.L54
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, monthDayNum[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jle	.L55
.L54:
	mov	edi, 2
	call	printErrorMsg
	mov	eax, 0
	jmp	.L49
.L55:
	mov	eax, 1
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	validateInput, .-validateInput
	.section	.rodata
.LC6:
	.string	"th"
.LC7:
	.string	"st"
.LC8:
	.string	"nd"
.LC9:
	.string	"rd"
	.text
	.globl	getSuffix
	.type	getSuffix, @function
getSuffix:
.LFB14:
	.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 -20[rbp], edi
	lea	rax, .LC6[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 10
	jle	.L57
	cmp	DWORD PTR -20[rbp], 19
	jle	.L64
.L57:
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edx, ecx
	sar	edx, 31
	sub	eax, edx
	mov	edx, eax
	sal	edx, 2
	add	edx, eax
	lea	eax, [rdx+rdx]
	mov	edx, eax
	mov	eax, ecx
	sub	eax, edx
	cmp	eax, 3
	je	.L59
	cmp	eax, 3
	jg	.L65
	cmp	eax, 1
	je	.L61
	cmp	eax, 2
	je	.L62
	jmp	.L65
.L61:
	lea	rax, .LC7[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L58
.L62:
	lea	rax, .LC8[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L58
.L59:
	lea	rax, .LC9[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L58
.L64:
	nop
	jmp	.L58
.L65:
	nop
.L58:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getSuffix, .-getSuffix
	.globl	getAnswer
	.type	getAnswer, @function
getAnswer:
.LFB15:
	.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 -32[rbp], rdx
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L67
.L68:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, monthDayNum[rip]
	mov	eax, DWORD PTR [rdx+rax]
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L67:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jl	.L68
	mov	eax, DWORD PTR -24[rbp]
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	getAnswer, .-getAnswer
	.section	.rodata
	.align 8
.LC10:
	.string	"title Day Checker by codgician"
.LC11:
	.string	"Day Checker by codgician"
	.align 8
.LC12:
	.string	"=============================="
	.align 8
.LC13:
	.string	"Please input Date using the following format: YYYY MM DD (e.g. 2017 12 01):\nPress Ctrl + C to exit the program."
.LC14:
	.string	"This is the %d%s day.\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC10[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L71
.L76:
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 10
	je	.L79
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 99
	jne	.L74
	mov	eax, 0
	call	flushStdin
.L74:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	getInput
	mov	QWORD PTR -124[rbp], rax
	mov	eax, DWORD PTR -116[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -116[rbp], eax
	mov	rdx, QWORD PTR -124[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	validateInput
	xor	eax, 1
	test	al, al
	jne	.L80
	mov	rdx, QWORD PTR -124[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	rdi, rdx
	mov	esi, eax
	call	getAnswer
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	getSuffix
	mov	rdx, rax
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L71
.L79:
	nop
	jmp	.L71
.L80:
	nop
.L71:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L76
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"657498.c"
	.text
	.global	monthDayNum
	.data
	.align	2
	.type	monthDayNum, %object
	.size	monthDayNum, 48
monthDayNum:
	.word	31
	.word	28
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.word	31
	.word	30
	.word	31
	.word	30
	.word	31
	.text
	.align	2
	.global	flushStdin
	.syntax unified
	.arm
	.fpu softvfp
	.type	flushStdin, %function
flushStdin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	strb	r3, [fp, #-5]
	nop
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	flushStdin, .-flushStdin
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid \000"
	.align	2
.LC1:
	.ascii	"day\000"
	.align	2
.LC2:
	.ascii	"month\000"
	.align	2
.LC3:
	.ascii	"year\000"
	.align	2
.LC4:
	.ascii	". Please check your input and try again...\012\000"
	.text
	.align	2
	.global	printErrorMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	printErrorMsg, %function
printErrorMsg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L8
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L7
	b	.L5
.L4:
	ldr	r0, .L8+4
	bl	printf
	b	.L5
.L7:
	ldr	r0, .L8+8
	bl	printf
	b	.L5
.L6:
	ldr	r0, .L8+12
	bl	printf
	nop
.L5:
	ldr	r0, .L8+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	printErrorMsg, .-printErrorMsg
	.align	2
	.global	isLeapYear
	.syntax unified
	.arm
	.fpu softvfp
	.type	isLeapYear, %function
isLeapYear:
	@ 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]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L11
	ldr	r1, [fp, #-8]
	ldr	r3, .L16
	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	.L12
.L11:
	ldr	r1, [fp, #-8]
	ldr	r3, .L16
	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	.L13
.L12:
	mov	r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	1374389535
	.size	isLeapYear, .-isLeapYear
	.align	2
	.global	isNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	isNumber, %function
isNumber:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L19
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L19
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L20
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L19
.L20:
	mov	r3, #0
	b	.L21
.L19:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L25:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L23
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L24
.L23:
	mov	r3, #0
	b	.L21
.L24:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L25
	mov	r3, #1
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isNumber, .-isNumber
	.align	2
	.global	isZero
	.syntax unified
	.arm
	.fpu softvfp
	.type	isZero, %function
isZero:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L27
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L27
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L27
	mov	r3, #0
	b	.L28
.L27:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L29
.L31:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L30
	mov	r3, #0
	b	.L28
.L30:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L31
	mov	r3, #1
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isZero, .-isZero
	.align	2
	.global	isPositive
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPositive, %function
isPositive:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L33
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcpy
	mov	r3, #0
	b	.L34
.L33:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L35
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strcpy
.L35:
	mov	r3, #1
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isPositive, .-isPositive
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s%s%s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInput, %function
getInput:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #336
	str	r0, [fp, #-328]
	str	r1, [fp, #-332]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #208
	sub	r2, fp, #308
	sub	r3, fp, #108
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L49+4
	ldr	r0, [fp, #-332]
	bl	__isoc99_sscanf
	sub	r3, fp, #308
	mov	r0, r3
	bl	isNumber
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	sub	r3, fp, #308
	mov	r0, r3
	bl	isZero
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	mvn	r3, #0
	str	r3, [fp, #-320]
	b	.L39
.L38:
	sub	r3, fp, #308
	mov	r0, r3
	bl	isPositive
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #4
	bhi	.L41
	sub	r3, fp, #308
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-320]
	b	.L39
.L41:
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #4
	sub	r2, fp, #308
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-320]
	b	.L39
.L40:
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #4
	bhi	.L42
	sub	r3, fp, #308
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-320]
	b	.L39
.L42:
	sub	r3, fp, #308
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #4
	sub	r2, fp, #308
	add	r3, r2, r3
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmn	r3, #1
	bne	.L39
	mov	r3, #3
	str	r3, [fp, #-320]
	b	.L39
.L37:
	mvn	r3, #0
	str	r3, [fp, #-320]
.L39:
	sub	r3, fp, #208
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	bhi	.L43
	sub	r3, fp, #208
	mov	r0, r3
	bl	isNumber
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	sub	r3, fp, #208
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-316]
	b	.L44
.L43:
	mvn	r3, #0
	str	r3, [fp, #-316]
.L44:
	sub	r3, fp, #208
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #2
	bhi	.L45
	sub	r3, fp, #108
	mov	r0, r3
	bl	isNumber
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	sub	r3, fp, #108
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-312]
	b	.L46
.L45:
	mvn	r3, #0
	str	r3, [fp, #-312]
.L46:
	ldr	r3, [fp, #-328]
	mov	ip, r3
	sub	r3, fp, #320
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	ldr	r0, [fp, #-328]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC6
	.word	.LC5
	.size	getInput, .-getInput
	.align	2
	.global	validateInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	validateInput, %function
validateInput:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	r3, fp, #16
	stm	r3, {r0, r1, r2}
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L52
	mov	r0, #0
	bl	printErrorMsg
	mov	r3, #0
	b	.L53
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L54
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	ble	.L55
.L54:
	mov	r0, #1
	bl	printErrorMsg
	mov	r3, #0
	b	.L53
.L55:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	isLeapYear
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r3, .L60
	mov	r2, #29
	str	r2, [r3, #4]
	b	.L57
.L56:
	ldr	r3, .L60
	mov	r2, #28
	str	r2, [r3, #4]
.L57:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L58
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r1, .L60
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	ble	.L59
.L58:
	mov	r0, #2
	bl	printErrorMsg
	mov	r3, #0
	b	.L53
.L59:
	mov	r3, #1
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	monthDayNum
	.size	validateInput, .-validateInput
	.section	.rodata
	.align	2
.LC7:
	.ascii	"th\000"
	.align	2
.LC8:
	.ascii	"st\000"
	.align	2
.LC9:
	.ascii	"nd\000"
	.align	2
.LC10:
	.ascii	"rd\000"
	.text
	.align	2
	.global	getSuffix
	.syntax unified
	.arm
	.fpu softvfp
	.type	getSuffix, %function
getSuffix:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, .L72
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	ble	.L63
	ldr	r3, [fp, #-16]
	cmp	r3, #19
	ble	.L70
.L63:
	ldr	r1, [fp, #-16]
	ldr	r3, .L72+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r3, r2, r3
	mov	r2, r3
	lsl	r2, r2, #2
	add	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	sub	r3, r1, r2
	cmp	r3, #3
	beq	.L65
	cmp	r3, #3
	bgt	.L71
	cmp	r3, #1
	beq	.L67
	cmp	r3, #2
	beq	.L68
	b	.L71
.L67:
	ldr	r3, .L72+8
	str	r3, [fp, #-8]
	b	.L64
.L68:
	ldr	r3, .L72+12
	str	r3, [fp, #-8]
	b	.L64
.L65:
	ldr	r3, .L72+16
	str	r3, [fp, #-8]
	b	.L64
.L70:
	nop
	b	.L64
.L71:
	nop
.L64:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L73:
	.align	2
.L72:
	.word	.LC7
	.word	1717986919
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	getSuffix, .-getSuffix
	.align	2
	.global	getAnswer
	.syntax unified
	.arm
	.fpu softvfp
	.type	getAnswer, %function
getAnswer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	sub	r3, fp, #24
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L75
.L76:
	ldr	r2, .L78
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L75:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L76
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L79:
	.align	2
.L78:
	.word	monthDayNum
	.size	getAnswer, .-getAnswer
	.section	.rodata
	.align	2
.LC11:
	.ascii	"title Day Checker by codgician\000"
	.align	2
.LC12:
	.ascii	"Day Checker by codgician\000"
	.align	2
.LC13:
	.ascii	"==============================\000"
	.align	2
.LC14:
	.ascii	"Please input Date using the following format: YYYY "
	.ascii	"MM DD (e.g. 2017 12 01):\012Press Ctrl + C to exit "
	.ascii	"the program.\000"
	.align	2
.LC15:
	.ascii	"This is the %d%s day.\012\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L91
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L91+4
	bl	system
	ldr	r0, .L91+8
	bl	puts
	ldr	r0, .L91+12
	bl	puts
	ldr	r0, .L91+16
	bl	puts
	b	.L81
.L86:
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L89
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #99
	bne	.L84
	bl	flushStdin
.L84:
	sub	r3, fp, #120
	sub	r2, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	getInput
	sub	r3, fp, #120
	ldm	r3, {r0, r1, r2}
	bl	validateInput
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L90
	sub	r3, fp, #120
	ldm	r3, {r0, r1, r2}
	bl	getAnswer
	str	r0, [fp, #-124]
	ldr	r0, [fp, #-124]
	bl	getSuffix
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-124]
	ldr	r0, .L91+20
	bl	printf
	b	.L81
.L89:
	nop
	b	.L81
.L90:
	nop
.L81:
	ldr	r3, .L91+24
	ldr	r2, [r3]
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L86
	mov	r3, #0
	ldr	r2, .L91
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L92:
	.align	2
.L91:
	.word	.LC16
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
