	.file	"95907.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Route D, Walk. Start time %d minutes over hour "
	.align 8
.LC1:
	.string	"-> duration %d minutes, no cost.\n"
	.align 8
.LC2:
	.string	"You should take the route A = train.\n"
	.align 8
.LC3:
	.string	"You should take the route B = bus + train.\n"
	.align 8
.LC4:
	.string	"Go ahead and walk to the office taking the route D.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 120
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L6:
	lea	rdx, -32[rbp]
	lea	rcx, -36[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	routeA
	lea	rdx, -24[rbp]
	lea	rcx, -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	routeB
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	selectRoute
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 1
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L4
.L5:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L4:
	add	DWORD PTR -20[rbp], 2
.L2:
	cmp	DWORD PTR -20[rbp], 59
	jle	.L6
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"route A. Start time %d minutes after hour "
	.align 8
.LC6:
	.string	"-> total duration = %d minutes, cost = $%d.\n"
	.text
	.globl	routeA
	.type	routeA, @function
routeA:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, 60
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 30[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 50
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	routeA, .-routeA
	.section	.rodata
	.align 8
.LC7:
	.string	"route B. Start time %d minutes after hour "
	.text
	.globl	routeB
	.type	routeB, @function
routeB:
.LFB8:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -20[rbp], 15
	jg	.L12
	mov	eax, 15
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L12:
	cmp	DWORD PTR -20[rbp], 30
	jg	.L14
	mov	eax, 30
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L14:
	cmp	DWORD PTR -20[rbp], 45
	jg	.L15
	mov	eax, 45
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L15:
	mov	eax, 60
	sub	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -12[rbp], eax
.L13:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	add	eax, 20
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 59
	jle	.L16
	sub	DWORD PTR -8[rbp], 60
.L16:
	cmp	DWORD PTR -8[rbp], 15
	jg	.L17
	mov	eax, 15
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L18
.L17:
	cmp	DWORD PTR -8[rbp], 30
	jg	.L19
	mov	eax, 30
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L18
.L19:
	cmp	DWORD PTR -8[rbp], 45
	jg	.L20
	mov	eax, 45
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L18
.L20:
	mov	eax, 60
	sub	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
.L18:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 20[rax]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	lea	edx, 10[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 55
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	routeB, .-routeB
	.globl	selectRoute
	.type	selectRoute, @function
selectRoute:
.LFB9:
	.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	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L23
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
.L23:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L24
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L25
	mov	eax, 1
	jmp	.L26
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jne	.L27
	mov	eax, 2
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L28
	mov	eax, 3
	jmp	.L26
.L28:
	mov	eax, 0
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	selectRoute, .-selectRoute
	.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	"95907.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Route D, Walk. Start time %d minutes over hour \000"
	.align	2
.LC1:
	.ascii	"-> duration %d minutes, no cost.\012\000"
	.align	2
.LC2:
	.ascii	"You should take the route A = train.\012\000"
	.align	2
.LC3:
	.ascii	"You should take the route B = bus + train.\012\000"
	.align	2
.LC4:
	.ascii	"Go ahead and walk to the office taking the route D."
	.ascii	"\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, #32
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #120
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L6:
	sub	r2, fp, #32
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	routeA
	sub	r2, fp, #24
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	routeB
	ldr	r1, [fp, #-20]
	ldr	r0, .L9+4
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L9+8
	bl	printf
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	selectRoute
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L3
	ldr	r0, .L9+12
	bl	puts
	b	.L4
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L5
	ldr	r0, .L9+16
	bl	puts
	b	.L4
.L5:
	ldr	r0, .L9+20
	bl	puts
.L4:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #59
	ble	.L6
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"route A. Start time %d minutes after hour \000"
	.align	2
.LC7:
	.ascii	"-> total duration = %d minutes, cost = $%d.\012\000"
	.text
	.align	2
	.global	routeA
	.syntax unified
	.arm
	.fpu softvfp
	.type	routeA, %function
routeA:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #60
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r2, r3, #30
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r2, #50
	str	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r0, .L13
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L13+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC7
	.size	routeA, .-routeA
	.section	.rodata
	.align	2
.LC8:
	.ascii	"route B. Start time %d minutes after hour \000"
	.text
	.align	2
	.global	routeB
	.syntax unified
	.arm
	.fpu softvfp
	.type	routeB, %function
routeB:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	bgt	.L16
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #15
	str	r3, [fp, #-16]
	b	.L17
.L16:
	ldr	r3, [fp, #-24]
	cmp	r3, #30
	bgt	.L18
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #30
	str	r3, [fp, #-16]
	b	.L17
.L18:
	ldr	r3, [fp, #-24]
	cmp	r3, #45
	bgt	.L19
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #45
	str	r3, [fp, #-16]
	b	.L17
.L19:
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #60
	str	r3, [fp, #-16]
.L17:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #20
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #59
	ble	.L20
	ldr	r3, [fp, #-12]
	sub	r3, r3, #60
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	bgt	.L21
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #15
	str	r3, [fp, #-8]
	b	.L22
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #30
	bgt	.L23
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #30
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #45
	bgt	.L24
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #45
	str	r3, [fp, #-8]
	b	.L22
.L24:
	ldr	r3, [fp, #-12]
	rsb	r3, r3, #60
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-16]
	add	r2, r3, #20
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r2, r3, #10
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #55
	str	r2, [r3]
	ldr	r1, [fp, #-24]
	ldr	r0, .L26
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L26+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC8
	.word	.LC7
	.size	routeB, .-routeB
	.align	2
	.global	selectRoute
	.syntax unified
	.arm
	.fpu softvfp
	.type	selectRoute, %function
selectRoute:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L29
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
.L29:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L30
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
.L30:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L31
	mov	r3, #1
	b	.L32
.L31:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L33
	mov	r3, #2
	b	.L32
.L33:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L34
	mov	r3, #3
	b	.L32
.L34:
	mov	r3, #0
.L32:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	selectRoute, .-selectRoute
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
