	.file	"extr_graphicsvec4.h_vec4_norm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vec4_norm, @function
vec4_norm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	call	vec4_dot@PLT
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L7
	ucomiss	xmm1, xmm0
	movaps	xmm2, xmm0
	sqrtss	xmm2, xmm2
	ja	.L10
.L4:
	movss	xmm0, DWORD PTR .LC1[rip]
	divss	xmm0, xmm2
	call	_mm_set1_ps@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	call	_mm_mul_ps@PLT
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	eax, eax
	call	_mm_setzero_ps@PLT
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	movss	DWORD PTR 12[rsp], xmm2
	call	sqrtf@PLT
	movss	xmm2, DWORD PTR 12[rsp]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	vec4_norm, .-vec4_norm
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	1065353216
	.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_graphicsvec4.h_vec4_norm.c"
	.text
	.global	__aeabi_fcmpgt
	.global	__aeabi_fdiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vec4_norm, %function
vec4_norm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	bl	vec4_dot
	mov	r1, #0
	mov	r6, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	ldr	r4, [r4]
	bl	sqrtf
	mov	r1, r0
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	bl	_mm_set1_ps
	mov	r1, r0
	mov	r0, r4
	bl	_mm_mul_ps
	str	r0, [r5]
	pop	{r4, r5, r6, pc}
.L6:
	bl	_mm_setzero_ps
	str	r0, [r5]
	pop	{r4, r5, r6, pc}
	.size	vec4_norm, .-vec4_norm
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
