	.file	"175142001.c"
	.intel_syntax noprefix
	.text
	.globl	upyear
	.type	upyear, @function
upyear:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1282606671
	shr	rdx, 32
	add	edx, eax
	sar	edx, 8
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	cmp	DWORD PTR -4[rbp], eax
	jge	.L2
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1282606671
	shr	rdx, 32
	add	edx, eax
	sar	edx, 8
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	jmp	.L1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 19[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 76[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	upyear
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	upyear, .-upyear
	.globl	downyear
	.type	downyear, @function
downyear:
.LFB1:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 76
	movsx	rdi, eax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 3234497591006606311
	mov	rax, rcx
	imul	rdx
	sar	rdx, 6
	mov	rax, rcx
	sar	rax, 63
	sub	rax, rdx
	add	rax, rdi
	cmp	rsi, rax
	jl	.L5
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 3234497591006606311
	mov	rax, rcx
	imul	rdx
	sar	rdx, 6
	mov	rax, rcx
	sar	rax, 63
	sub	rax, rdx
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, -76[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	downyear
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	downyear, .-downyear
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1986
	jle	.L8
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	esi, 1986
	mov	edi, eax
	call	upyear
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 0
	mov	esi, 1986
	mov	edi, eax
	call	downyear
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"175142001.c"
	.text
	.align	2
	.global	upyear
	.syntax unified
	.arm
	.fpu softvfp
	.type	upyear, %function
upyear:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #8
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L2
	ldr	r3, [fp, #-16]
	ldr	r2, .L4
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #8
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	b	.L1
.L2:
	ldr	r3, [fp, #-12]
	add	r1, r3, #76
	ldr	r3, [fp, #-16]
	add	r3, r3, #19
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	upyear
.L1:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	-1282606671
	.size	upyear, .-upyear
	.align	2
	.global	downyear
	.syntax unified
	.arm
	.fpu softvfp
	.type	downyear, %function
downyear:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r2, r3, #76
	ldr	r3, [fp, #-16]
	ldr	r1, .L9
	smull	r0, r1, r3, r1
	add	r1, r1, r3
	asr	r1, r1, #8
	asr	r3, r3, #31
	sub	r3, r3, r1
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-16]
	ldr	r2, .L9
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #8
	asr	r3, r3, #31
	sub	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	sub	r1, r3, #76
	ldr	r3, [fp, #-16]
	add	r3, r3, #19
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	downyear
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	-1282606671
	.size	downyear, .-downyear
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L16+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+8
	cmp	r3, r2
	ble	.L12
	ldr	r3, [fp, #-12]
	mov	r2, #0
	ldr	r1, .L16+8
	mov	r0, r3
	bl	upyear
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
	b	.L13
.L12:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	ldr	r1, .L16+8
	mov	r0, r3
	bl	downyear
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
.L13:
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.word	1986
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
