	.file	"333197.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Normalized form is "
.LC1:
	.string	"%5c %f"
	.text
	.globl	print_vector
	.type	print_vector, @function
print_vector:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	mov	esi, 32
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_vector, .-print_vector
	.section	.rodata
.LC3:
	.string	"sum is %f\n"
	.text
	.globl	normalize_vector
	.type	normalize_vector, @function
normalize_vector:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	DWORD PTR -220[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -192[rbp], xmm0
	mov	DWORD PTR -196[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -192[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -192[rbp], xmm0
	mov	rax, QWORD PTR -192[rbp]
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR -184[rbp], rax
	add	DWORD PTR -196[rbp], 1
.L5:
	mov	eax, DWORD PTR -196[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jl	.L6
	mov	rax, QWORD PTR -192[rbp]
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	mov	DWORD PTR -196[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	divsd	xmm0, QWORD PTR -184[rbp]
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	movsd	QWORD PTR -176[rbp+rax*8], xmm0
	add	DWORD PTR -196[rbp], 1
.L7:
	mov	eax, DWORD PTR -196[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jl	.L8
	mov	edx, DWORD PTR -220[rbp]
	lea	rax, -176[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_vector
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	normalize_vector, .-normalize_vector
	.section	.rodata
	.align 8
.LC4:
	.string	"Please enter the vector element[%d]\n"
.LC5:
	.string	"%lf"
	.text
	.globl	scan_vector
	.type	scan_vector, @function
scan_vector:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -180[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -180[rbp], 1
.L11:
	mov	eax, DWORD PTR -180[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L12
	mov	edx, DWORD PTR -196[rbp]
	lea	rax, -176[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	normalize_vector
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	scan_vector, .-scan_vector
	.section	.rodata
.LC6:
	.string	"Please enter the limit"
.LC7:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	scan_vector
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"333197.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Normalized form is \000"
	.align	2
.LC1:
	.ascii	"%5c %f\000"
	.text
	.align	2
	.global	print_vector
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_vector, %function
print_vector:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r1, #32
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	print_vector, .-print_vector
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC2:
	.ascii	"sum is %f\012\000"
	.global	__aeabi_ddiv
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	normalize_vector
	.syntax unified
	.arm
	.fpu softvfp
	.type	normalize_vector, %function
normalize_vector:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L7
.L8:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #188
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-188]
	str	r3, [fp, #-184]
	sub	r1, fp, #188
	ldmia	r1, {r0-r1}
	bl	sqrt
	str	r0, [fp, #-180]
	str	r1, [fp, #-176]
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L7:
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-204]
	cmp	r2, r3
	blt	.L8
	sub	r3, fp, #188
	ldmia	r3, {r2-r3}
	ldr	r0, .L12+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L9
.L10:
	ldr	r3, [fp, #-192]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #180
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-192]
	lsl	r1, r1, #3
	sub	r0, fp, #4
	add	r1, r0, r1
	sub	r1, r1, #168
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
.L9:
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-204]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #172
	ldr	r1, [fp, #-204]
	mov	r0, r3
	bl	print_vector
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC2
	.size	normalize_vector, .-normalize_vector
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Please enter the vector element[%d]\012\000"
	.align	2
.LC5:
	.ascii	"%lf\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scan_vector
	.syntax unified
	.arm
	.fpu softvfp
	.type	scan_vector, %function
scan_vector:
	@ args = 0, pretend = 0, frame = 184
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #184
	str	r0, [fp, #-184]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L15
.L16:
	ldr	r1, [fp, #-176]
	ldr	r0, .L18+4
	bl	printf
	sub	r2, fp, #172
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L15:
	ldr	r2, [fp, #-176]
	ldr	r3, [fp, #-184]
	cmp	r2, r3
	blt	.L16
	sub	r3, fp, #172
	ldr	r1, [fp, #-184]
	mov	r0, r3
	bl	normalize_vector
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC4
	.word	.LC5
	.size	scan_vector, .-scan_vector
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Please enter the limit\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L23+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	scan_vector
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
