	.file	"379653.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter a 24-hour time: "
.LC1:
	.string	"%d :%d"
.LC2:
	.string	"Closest departure time is "
	.align 8
.LC3:
	.string	"%d:%.2d %c.m., arriving at %d:%.2d %c.m.\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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -80[rbp], 480
	mov	DWORD PTR -76[rbp], 616
	mov	DWORD PTR -72[rbp], 583
	mov	DWORD PTR -68[rbp], 712
	mov	DWORD PTR -64[rbp], 679
	mov	DWORD PTR -60[rbp], 811
	mov	DWORD PTR -56[rbp], 767
	mov	DWORD PTR -52[rbp], 900
	mov	DWORD PTR -48[rbp], 840
	mov	DWORD PTR -44[rbp], 968
	mov	DWORD PTR -40[rbp], 945
	mov	DWORD PTR -36[rbp], 1075
	mov	DWORD PTR -32[rbp], 1140
	mov	DWORD PTR -28[rbp], 1280
	mov	DWORD PTR -24[rbp], 1305
	mov	DWORD PTR -20[rbp], 1438
	mov	DWORD PTR -88[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -92[rbp]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -96[rbp]
	imul	edx, eax, 60
	mov	eax, DWORD PTR -92[rbp]
	add	eax, edx
	mov	DWORD PTR -84[rbp], eax
	jmp	.L2
.L3:
	add	DWORD PTR -88[rbp], 1
.L2:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*8]
	cmp	DWORD PTR -84[rbp], eax
	jg	.L3
	cmp	DWORD PTR -88[rbp], 0
	jle	.L4
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	cdqe
	mov	edx, DWORD PTR -80[rbp+rax*8]
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, edx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	ecx, DWORD PTR -80[rbp+rax*8]
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, ecx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L4
	sub	DWORD PTR -88[rbp], 1
.L4:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -76[rbp+rax*8]
	cmp	eax, 719
	jle	.L5
	mov	r8d, 112
	jmp	.L6
.L5:
	mov	r8d, 97
.L6:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -76[rbp+rax*8]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	esi, eax
	sar	esi, 31
	mov	ecx, edx
	sub	ecx, esi
	imul	edx, ecx, 60
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -76[rbp+rax*8]
	cmp	eax, 779
	jle	.L7
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -76[rbp+rax*8]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	lea	edi, -12[rax]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -76[rbp+rax*8]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	sar	eax, 31
	mov	edi, edx
	sub	edi, eax
.L8:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	eax, DWORD PTR -80[rbp+rax*8]
	cmp	eax, 719
	jle	.L9
	mov	r10d, 112
	jmp	.L10
.L9:
	mov	r10d, 97
.L10:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	mov	edx, DWORD PTR -80[rbp+rax*8]
	movsx	rax, edx
	imul	rax, rax, -2004318071
	shr	rax, 32
	add	eax, edx
	sar	eax, 5
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	imul	esi, eax, 60
	mov	eax, edx
	sub	eax, esi
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -80[rbp+rdx*8]
	cmp	edx, 779
	jle	.L11
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -80[rbp+rdx*8]
	movsx	rsi, edx
	imul	rsi, rsi, -2004318071
	shr	rsi, 32
	add	esi, edx
	sar	esi, 5
	sar	edx, 31
	mov	r9d, edx
	sub	esi, r9d
	mov	edx, esi
	lea	esi, -12[rdx]
	jmp	.L12
.L11:
	mov	edx, DWORD PTR -88[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR -80[rbp+rdx*8]
	movsx	rsi, edx
	imul	rsi, rsi, -2004318071
	shr	rsi, 32
	add	esi, edx
	sar	esi, 5
	sar	edx, 31
	sub	esi, edx
.L12:
	sub	rsp, 8
	push	r8
	mov	r9d, ecx
	mov	r8d, edi
	mov	ecx, r10d
	mov	edx, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	"379653.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Enter a 24-hour time: \000"
	.align	2
.LC2:
	.ascii	"%d :%d\000"
	.align	2
.LC3:
	.ascii	"Closest departure time is \000"
	.align	2
.LC4:
	.ascii	"%d:%.2d %c.m., arriving at %d:%.2d %c.m.\012\000"
	.align	2
.LC0:
	.word	480
	.word	616
	.word	583
	.word	712
	.word	679
	.word	811
	.word	767
	.word	900
	.word	840
	.word	968
	.word	945
	.word	1075
	.word	1140
	.word	1280
	.word	1305
	.word	1438
	.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 = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L15+4
	sub	ip, fp, #80
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r0, .L15+8
	bl	printf
	sub	r2, fp, #92
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	ldr	r2, [fp, #-96]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-92]
	add	r3, r2, r3
	str	r3, [fp, #-84]
	b	.L2
.L3:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L2:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bgt	.L3
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [fp, #-88]
	sub	r3, r3, #1
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	ldr	r2, [fp, #-84]
	sub	r3, r2, r3
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-68]
	ldr	r1, [fp, #-84]
	sub	r3, r1, r3
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L4
	ldr	r3, [fp, #-88]
	sub	r3, r3, #1
	str	r3, [fp, #-88]
.L4:
	ldr	r0, .L15+16
	bl	printf
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	cmp	r3, #780
	blt	.L5
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	ldr	r2, .L15+20
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	sub	lr, r3, #12
	b	.L6
.L5:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	ldr	r2, .L15+20
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	lr, r2, r3
.L6:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-68]
	ldr	r3, .L15+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r0, r1, r3
	mov	r3, r0
	lsl	r3, r3, #4
	sub	r3, r3, r0
	lsl	r3, r3, #2
	sub	r0, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-68]
	cmp	r3, #720
	blt	.L7
	mov	r4, #112
	b	.L8
.L7:
	mov	r4, #97
.L8:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	cmp	r3, #780
	blt	.L9
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	ldr	r2, .L15+20
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	sub	ip, r3, #12
	b	.L10
.L9:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	ldr	r2, .L15+20
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	ip, r2, r3
.L10:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-64]
	ldr	r3, .L15+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-64]
	cmp	r3, #720
	blt	.L11
	mov	r3, #112
	b	.L12
.L11:
	mov	r3, #97
.L12:
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	ip, [sp]
	mov	r3, r4
	mov	r2, r0
	mov	r1, lr
	ldr	r0, .L15+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-2004318071
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
