	.file	"extr_l_math.c_VectorNormalize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	VectorNormalize
	.type	VectorNormalize, @function
VectorNormalize:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	movsd	xmm1, QWORD PTR [rdi]
	movsd	xmm2, QWORD PTR 8[rdi]
	movsd	xmm0, QWORD PTR 16[rdi]
	mulsd	xmm2, xmm2
	mulsd	xmm1, xmm1
	mulsd	xmm0, xmm0
	addsd	xmm1, xmm2
	pxor	xmm2, xmm2
	addsd	xmm0, xmm1
	ucomisd	xmm2, xmm0
	movapd	xmm1, xmm0
	sqrtsd	xmm1, xmm1
	ja	.L9
.L2:
	ucomisd	xmm1, xmm2
	jnp	.L10
.L3:
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	xmm2, QWORD PTR [rdi]
	divsd	xmm0, xmm1
	mulsd	xmm2, xmm0
	movsd	QWORD PTR [rdi], xmm2
	movsd	xmm2, QWORD PTR 8[rdi]
	mulsd	xmm2, xmm0
	mulsd	xmm0, QWORD PTR 16[rdi]
	movsd	QWORD PTR 8[rdi], xmm2
	movsd	QWORD PTR 16[rdi], xmm0
	movapd	xmm0, xmm1
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	jne	.L3
	call	VectorClear@PLT
	pxor	xmm2, xmm2
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movapd	xmm1, xmm2
	movapd	xmm0, xmm1
	ret
.L9:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdi
	movsd	QWORD PTR [rsp], xmm1
	call	sqrt@PLT
	mov	rdi, QWORD PTR 8[rsp]
	movsd	xmm1, QWORD PTR [rsp]
	pxor	xmm2, xmm2
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	VectorNormalize, .-VectorNormalize
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_l_math.c_VectorNormalize.c"
	.text
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmpeq
	.global	__aeabi_ddiv
	.align	2
	.global	VectorNormalize
	.syntax unified
	.arm
	.fpu softvfp
	.type	VectorNormalize, %function
VectorNormalize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldmia	r0, {r2-r3}
	add	r5, r0, #8
	ldmia	r5, {r4-r5}
	mov	r10, r0
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_dmul
	mov	r2, r4
	mov	r3, r5
	mov	r4, r0
	mov	r5, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	add	r5, r10, #16
	ldmia	r5, {r4-r5}
	bl	__aeabi_dadd
	mov	r2, r4
	mov	r3, r5
	mov	r4, r0
	mov	r5, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	bl	sqrt
	mov	r2, #0
	mov	r3, #0
	mov	r4, r0
	mov	r5, r1
	bl	__aeabi_dcmpeq
	cmp	r0, #0
	bne	.L9
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	ldr	r1, .L10
	bl	__aeabi_ddiv
	mov	r6, r0
	mov	r7, r1
	ldmia	r10, {r0-r1}
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	add	r1, r10, #8
	ldmia	r1, {r0-r1}
	stm	r10, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dmul
	mov	r8, r0
	mov	r9, r1
	add	r1, r10, #16
	ldmia	r1, {r0-r1}
	mov	r2, r6
	mov	r3, r7
	str	r8, [r10, #8]
	str	r9, [r10, #12]
	bl	__aeabi_dmul
	str	r0, [r10, #16]
	str	r1, [r10, #20]
.L1:
	mov	r0, r4
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, r10
	bl	VectorClear
	mov	r4, #0
	mov	r5, #0
	b	.L1
.L11:
	.align	2
.L10:
	.word	1072693248
	.size	VectorNormalize, .-VectorNormalize
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
