	.file	"25136861.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Enter number of processes: "
.LC1:
	.string	"%d"
	.align 8
.LC2:
	.string	"Enter arrival time for process%d: "
	.align 8
.LC3:
	.string	"Enter burst time for process%d: "
	.align 8
.LC4:
	.string	"Process\tBurst Time\tArrival Time\tWaiting Time\tTurn-Around Time"
.LC5:
	.string	"%d\t\t%d\t\t%d\t\t%d\t\t%d\n"
.LC6:
	.string	"Average waiting time: %f\n"
.LC7:
	.string	"Average turn around time: %f\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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 1
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ecx, DWORD PTR -136[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -96[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 160
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 160
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 160
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 160
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -132[rbp], 0
	jmp	.L5
.L6:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -88[rbp]
	add	rax, rdx
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -88[rbp]
	add	rax, rdx
	add	rax, 8
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -132[rbp]
	lea	ecx, 1[rax]
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	mov	DWORD PTR [rax], ecx
	add	DWORD PTR -132[rbp], 1
.L5:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L6
	mov	DWORD PTR -132[rbp], 0
	jmp	.L7
.L11:
	mov	DWORD PTR -128[rbp], 0
	jmp	.L8
.L10:
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 4
	mov	ecx, DWORD PTR [rax]
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	ecx, eax
	jge	.L9
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	eax, DWORD PTR 16[rcx]
	mov	DWORD PTR -64[rbp], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rsi, rax
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 16[rcx], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR 16[rcx], eax
.L9:
	add	DWORD PTR -128[rbp], 1
.L8:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L10
	add	DWORD PTR -132[rbp], 1
.L7:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L11
	mov	DWORD PTR -132[rbp], 0
	jmp	.L12
.L16:
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -124[rbp], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -128[rbp], eax
	jmp	.L13
.L15:
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L14
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -100[rbp], eax
	jle	.L14
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	eax, DWORD PTR 16[rcx]
	mov	DWORD PTR -64[rbp], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rsi, rax
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 16[rcx], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rcx, rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR 16[rcx], eax
.L14:
	add	DWORD PTR -128[rbp], 1
.L13:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L15
	add	DWORD PTR -120[rbp], 1
	add	DWORD PTR -132[rbp], 1
.L12:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L16
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 12[rax], 0
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	DWORD PTR -132[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, 1
	mov	rcx, QWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -112[rbp], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -112[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, 12
	mov	DWORD PTR [rax], ecx
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 12
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -108[rbp], eax
	add	DWORD PTR -132[rbp], 1
.L17:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L18
	mov	DWORD PTR -132[rbp], 0
	jmp	.L19
.L20:
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -116[rbp], eax
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, 16
	mov	DWORD PTR [rax], ecx
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 16
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -104[rbp], eax
	add	DWORD PTR -132[rbp], 1
.L19:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L20
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -132[rbp], 0
	jmp	.L21
.L22:
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 16
	mov	r8d, DWORD PTR [rax]
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 12
	mov	edi, DWORD PTR [rax]
	mov	rcx, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 4
	mov	ecx, DWORD PTR [rax]
	mov	rsi, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rsi
	add	rax, 8
	mov	edx, DWORD PTR [rax]
	mov	r9, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR -132[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 2
	add	rax, rsi
	sal	rax, 2
	add	rax, r9
	mov	eax, DWORD PTR [rax]
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -132[rbp], 1
.L21:
	mov	eax, DWORD PTR -136[rbp]
	cmp	DWORD PTR -132[rbp], eax
	jl	.L22
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -136[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -104[rbp]
	mov	eax, DWORD PTR -136[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, eax
	divss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rsp, rbx
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"25136861.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number of processes: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter arrival time for process%d: \000"
	.align	2
.LC3:
	.ascii	"Enter burst time for process%d: \000"
	.align	2
.LC4:
	.ascii	"Process\011Burst Time\011Arrival Time\011Waiting Ti"
	.ascii	"me\011Turn-Around Time\000"
	.align	2
.LC5:
	.ascii	"%d\011\011%d\011\011%d\011\011%d\011\011%d\012\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC6:
	.ascii	"Average waiting time: %f\012\000"
	.align	2
.LC7:
	.ascii	"Average turn around time: %f\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #84
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, sp
	mov	r6, r3
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r0, .L22+4
	bl	printf
	sub	r3, fp, #92
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	ip, [fp, #-92]
	sub	r3, ip, #1
	str	r3, [fp, #-56]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L2
.L3:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+12
	bl	printf
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, #8
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-88]
	add	r1, r3, #1
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	str	r1, [r3]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L2:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L4
.L8:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L5
.L7:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r1, r3
	bge	.L6
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r1, r3
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	ip, r0
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #44
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
.L6:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L5:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L4:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L9
.L13:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-84]
	b	.L10
.L12:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L11
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	ble	.L11
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-76]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r0, r1, r3
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	ip, r0
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-84]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	lr, r3
	sub	ip, fp, #44
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
.L11:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L10:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L9:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L14
.L15:
	ldr	r3, [fp, #-88]
	sub	r2, r3, #1
	ldr	r1, [fp, #-52]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	sub	r1, r2, r3
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #12
	str	r1, [r3]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L14:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L16
.L17:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-72]
	sub	r1, r2, r3
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	str	r1, [r3]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L16:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L17
	ldr	r0, .L22+20
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L18
.L19:
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	ip, [r3]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	lr, [r3]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r1, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldr	r1, [r3]
	ldr	r0, [fp, #-52]
	ldr	r2, [fp, #-88]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	str	r3, [sp, #4]
	str	r1, [sp]
	mov	r3, r4
	mov	r2, lr
	mov	r1, ip
	ldr	r0, .L22+24
	bl	printf
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L18:
	ldr	r3, [fp, #-92]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L19
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L22+28
	bl	printf
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2f
	mov	r4, r0
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L22+32
	bl	printf
	mov	sp, r6
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
