	.file	"98575756.c"
	.intel_syntax noprefix
	.text
	.globl	appointments
	.bss
	.align 32
	.type	appointments, @object
	.size	appointments, 1600
appointments:
	.zero	1600
	.text
	.globl	time_min
	.type	time_min, @function
time_min:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax, 60
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	time_min, .-time_min
	.globl	min_time
	.type	min_time, @function
min_time:
.LFB7:
	.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
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 60
	sub	eax, ecx
	mov	edx, eax
	mov	DWORD PTR -4[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min_time, .-min_time
	.globl	start_compare
	.type	start_compare, @function
start_compare:
.LFB8:
	.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, 16
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	QWORD PTR -24[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, QWORD PTR [rax]
	call	time_min
	mov	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, QWORD PTR [rax]
	call	time_min
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	start_compare, .-start_compare
	.section	.rodata
.LC0:
	.string	"%d%*c%d"
	.align 8
.LC1:
	.string	"Day #%d: the longest nap starts at %d:%02d and will last for "
.LC2:
	.string	"%d hours and "
.LC3:
	.string	"%d minutes.\n"
.LC4:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 328
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -312[rbp], 1
	jmp	.L8
.L18:
	mov	DWORD PTR -316[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip]
	add	rax, rdx
	lea	rdx, 4[rax]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, appointments[rip]
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip]
	add	rax, rdx
	lea	rdx, 12[rax]
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, appointments[rip]
	add	rax, rcx
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	gets@PLT
	add	DWORD PTR -316[rbp], 1
.L9:
	mov	eax, DWORD PTR -324[rbp]
	cmp	DWORD PTR -316[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	lea	rcx, start_compare[rip]
	mov	edx, 16
	mov	rsi, rax
	lea	rdi, appointments[rip]
	call	qsort@PLT
	mov	DWORD PTR -320[rbp], 0
	mov	eax, DWORD PTR -324[rbp]
	test	eax, eax
	jle	.L11
	mov	rax, QWORD PTR appointments[rip]
	mov	rdi, rax
	call	time_min
	sub	eax, 600
	mov	DWORD PTR -320[rbp], eax
.L11:
	mov	DWORD PTR -304[rbp], 10
	mov	DWORD PTR -300[rbp], 0
	mov	DWORD PTR -316[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -316[rbp]
	add	eax, 1
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	time_min
	mov	ebx, eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	time_min
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -308[rbp], eax
	mov	eax, DWORD PTR -308[rbp]
	cmp	eax, DWORD PTR -320[rbp]
	jle	.L13
	mov	eax, DWORD PTR -308[rbp]
	mov	DWORD PTR -320[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -304[rbp], rax
.L13:
	add	DWORD PTR -316[rbp], 1
.L12:
	mov	eax, DWORD PTR -324[rbp]
	sub	eax, 1
	cmp	DWORD PTR -316[rbp], eax
	jl	.L14
	mov	eax, DWORD PTR -324[rbp]
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	time_min
	mov	edx, eax
	mov	eax, 1080
	sub	eax, edx
	mov	DWORD PTR -308[rbp], eax
	mov	eax, DWORD PTR -308[rbp]
	cmp	eax, DWORD PTR -320[rbp]
	jle	.L16
	mov	eax, DWORD PTR -308[rbp]
	mov	DWORD PTR -320[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, appointments[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -304[rbp], rax
	jmp	.L16
.L15:
	mov	DWORD PTR -320[rbp], 480
.L16:
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	min_time
	mov	QWORD PTR -296[rbp], rax
	mov	ecx, DWORD PTR -300[rbp]
	mov	edx, DWORD PTR -304[rbp]
	mov	eax, DWORD PTR -312[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -296[rbp]
	test	eax, eax
	jle	.L17
	mov	eax, DWORD PTR -296[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L17:
	mov	eax, DWORD PTR -292[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -312[rbp], 1
.L8:
	lea	rax, -324[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L18
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"98575756.c"
	.text
	.comm	appointments,1600,4
	.align	2
	.global	time_min
	.syntax unified
	.arm
	.fpu softvfp
	.type	time_min, %function
time_min:
	@ 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
	sub	r3, fp, #20
	stm	r3, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	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
	.size	time_min, .-time_min
	.align	2
	.global	min_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	min_time, %function
min_time:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L5
	smull	r1, r2, r3, r2
	add	r2, r2, r3
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r3, .L5
	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
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	-2004318071
	.size	min_time, .-min_time
	.align	2
	.global	start_compare
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_compare, %function
start_compare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r3, r0
	sub	r3, r4, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	start_compare, .-start_compare
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%*c%d\000"
	.align	2
.LC1:
	.ascii	"Day #%d: the longest nap starts at %d:%02d and will"
	.ascii	" last for \000"
	.align	2
.LC2:
	.ascii	"%d hours and \000"
	.align	2
.LC3:
	.ascii	"%d minutes.\012\000"
	.align	2
.LC4:
	.ascii	"%d\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 = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #300
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-296]
	b	.L10
.L20:
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L11
.L12:
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	ldr	r2, .L23+4
	add	r1, r3, r2
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	ldr	r2, .L23+4
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, .L23+4
	add	r1, r3, r2
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, .L23+4
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	sub	r3, fp, #272
	mov	r0, r3
	bl	gets
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L11:
	ldr	r3, [fp, #-308]
	ldr	r2, [fp, #-300]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-308]
	mov	r1, r3
	ldr	r3, .L23+12
	mov	r2, #16
	ldr	r0, .L23+4
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	ble	.L13
	ldr	r3, .L23+4
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r3, r0
	sub	r3, r3, #600
	str	r3, [fp, #-304]
.L13:
	mov	r3, #10
	str	r3, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	mov	r3, #0
	str	r3, [fp, #-300]
	b	.L14
.L16:
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	ldr	r2, .L23+4
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r4, r0
	ldr	r2, .L23+4
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-292]
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-292]
	str	r3, [fp, #-304]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	sub	r2, fp, #288
	add	r3, r3, #8
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L15:
	ldr	r3, [fp, #-300]
	add	r3, r3, #1
	str	r3, [fp, #-300]
.L14:
	ldr	r3, [fp, #-308]
	sub	r3, r3, #1
	ldr	r2, [fp, #-300]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-308]
	cmp	r3, #0
	ble	.L17
	ldr	r2, .L23+4
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	add	r3, r3, #8
	ldm	r3, {r0, r1}
	bl	time_min
	mov	r3, r0
	rsb	r3, r3, #1072
	add	r3, r3, #8
	str	r3, [fp, #-292]
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	ble	.L18
	ldr	r3, [fp, #-292]
	str	r3, [fp, #-304]
	ldr	r2, .L23+4
	ldr	r3, [fp, #-300]
	lsl	r3, r3, #4
	add	r3, r2, r3
	sub	r2, fp, #288
	add	r3, r3, #8
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	b	.L18
.L17:
	mov	r3, #480
	str	r3, [fp, #-304]
.L18:
	sub	r3, fp, #280
	ldr	r1, [fp, #-304]
	mov	r0, r3
	bl	min_time
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-284]
	ldr	r1, [fp, #-296]
	ldr	r0, .L23+16
	bl	printf
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	ble	.L19
	ldr	r3, [fp, #-280]
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
.L19:
	ldr	r3, [fp, #-276]
	mov	r1, r3
	ldr	r0, .L23+24
	bl	printf
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
.L10:
	sub	r3, fp, #308
	mov	r1, r3
	ldr	r0, .L23+28
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	appointments
	.word	.LC0
	.word	start_compare
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
