	.file	"469056.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter first date (yyyy/mm/dd): "
.LC1:
	.string	"%d /%d /%d"
	.align 8
.LC2:
	.string	"Enter second date (yyyy/mm/dd): "
	.align 8
.LC3:
	.string	"\n%d/%d/%d comes before %d/%d/%d\n"
	.align 8
.LC4:
	.string	"%d/%d/%d and %d/%d/%d are equal\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@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
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	lea	rcx, 8[rax]
	lea	rax, -20[rbp]
	lea	rdx, 4[rax]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	rdx, rcx
	mov	rdi, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	compare_dates
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jle	.L2
	mov	esi, DWORD PTR -24[rbp]
	mov	r8d, DWORD PTR -28[rbp]
	mov	edi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	jmp	.L3
.L2:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L4
	mov	esi, DWORD PTR -12[rbp]
	mov	r8d, DWORD PTR -16[rbp]
	mov	edi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	jmp	.L3
.L4:
	mov	esi, DWORD PTR -12[rbp]
	mov	r8d, DWORD PTR -16[rbp]
	mov	edi, DWORD PTR -20[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
.L3:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	compare_dates
	.type	compare_dates, @function
compare_dates:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdx
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 0
	or	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -16[rbp]
	cmp	edx, eax
	jle	.L8
	mov	eax, -1
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -32[rbp]
	cmp	edx, eax
	jle	.L10
	mov	eax, 1
	jmp	.L9
.L10:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	jle	.L11
	mov	eax, -1
	jmp	.L9
.L11:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cmp	edx, eax
	jle	.L12
	mov	eax, 1
	jmp	.L9
.L12:
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	cmp	edx, eax
	jle	.L13
	mov	eax, -1
	jmp	.L9
.L13:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	cmp	edx, eax
	jle	.L14
	mov	eax, 1
	jmp	.L9
.L14:
	mov	eax, 0
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	compare_dates, .-compare_dates
	.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	"469056.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter first date (yyyy/mm/dd): \000"
	.align	2
.LC1:
	.ascii	"%d /%d /%d\000"
	.align	2
.LC2:
	.ascii	"Enter second date (yyyy/mm/dd): \000"
	.align	2
.LC3:
	.ascii	"\012%d/%d/%d comes before %d/%d/%d\012\000"
	.align	2
.LC4:
	.ascii	"%d/%d/%d and %d/%d/%d are equal\012\000"
	.align	2
.LC5:
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	sub	r3, fp, #32
	add	r0, r3, #8
	sub	r3, fp, #32
	add	r2, r3, #4
	sub	r1, fp, #32
	mov	r3, r0
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r0, .L7+12
	bl	printf
	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, .L7+8
	bl	__isoc99_scanf
	mov	r2, sp
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, [fp, #-20]
	sub	r2, fp, #32
	ldm	r2, {r0, r1, r2}
	bl	compare_dates
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L2
	ldr	r0, [fp, #-20]
	ldr	ip, [fp, #-16]
	ldr	lr, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L7+16
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L4
	ldr	r0, [fp, #-32]
	ldr	ip, [fp, #-28]
	ldr	lr, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L7+16
	bl	printf
	b	.L3
.L4:
	ldr	r0, [fp, #-32]
	ldr	ip, [fp, #-28]
	ldr	lr, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L7+20
	bl	printf
.L3:
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.align	2
	.global	compare_dates
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_dates, %function
compare_dates:
	@ args = 16, pretend = 8, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #8
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	sub	ip, fp, #16
	stm	ip, {r0, r1, r2}
	str	r3, [fp, #8]
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L10
	mvn	r3, #0
	b	.L11
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	ble	.L12
	mov	r3, #1
	b	.L11
.L12:
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L13
	mvn	r3, #0
	b	.L11
.L13:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	ble	.L14
	mov	r3, #1
	b	.L11
.L14:
	ldr	r2, [fp, #16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L15
	mvn	r3, #0
	b	.L11
.L15:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #16]
	cmp	r2, r3
	ble	.L16
	mov	r3, #1
	b	.L11
.L16:
	mov	r3, #0
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #8
	bx	lr
	.size	compare_dates, .-compare_dates
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
