	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function vg_mat3x3_rsq
LCPI0_0:
	.long	0x40800000                      ## float 4
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_vg_mat3x3_rsq
	.p2align	4, 0x90
_vg_mat3x3_rsq:                         ## @vg_mat3x3_rsq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movss	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movss	4(%rcx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	mulss	%xmm0, %xmm1
	movaps	%xmm2, %xmm3
	mulss	%xmm2, %xmm3
	addss	%xmm1, %xmm3
	movss	(%rax), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	movss	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	mulss	%xmm4, %xmm2
	addss	%xmm0, %xmm2
	mulss	%xmm1, %xmm1
	mulss	%xmm4, %xmm4
	addss	%xmm1, %xmm4
	movaps	%xmm3, %xmm0
	addss	%xmm4, %xmm0
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	movss	%xmm3, -44(%rbp)                ## 4-byte Spill
	movaps	%xmm3, %xmm0
	movss	%xmm4, -40(%rbp)                ## 4-byte Spill
	subss	%xmm4, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	movss	%xmm2, -48(%rbp)                ## 4-byte Spill
	mulss	%xmm2, %xmm1
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	callq	_sqrt_
	movaps	%xmm0, %xmm2
	movaps	%xmm0, %xmm1
	addss	-32(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	LCPI0_1(%rip), %xmm1
	testq	%rbx, %rbx
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movaps	%xmm1, %xmm0
	movss	%xmm2, -36(%rbp)                ## 4-byte Spill
	callq	_sqrt_
	movss	-36(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, (%rbx)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movss	-32(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	xorps	%xmm1, %xmm1
	callq	__maxf
	mulss	LCPI0_1(%rip), %xmm0
	callq	_sqrt_
	movss	-28(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm0, (%r15)
LBB0_4:
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movaps	%xmm1, %xmm0
	subss	-40(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm2, %xmm0
	subss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	addss	%xmm2, %xmm1
	movss	%xmm1, -28(%rbp)                ## 4-byte Spill
	movss	%xmm0, -32(%rbp)                ## 4-byte Spill
	callq	_absf_
	movq	_EPS@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_7
## %bb.6:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_absf_
	xorps	%xmm0, %xmm0
	cmpq	(%rbx), %rax
	jl	LBB0_8
LBB0_7:
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-32(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	callq	_atan2_
LBB0_8:
	movss	%xmm0, (%r14)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPS,8,3                        ## @EPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vg_mat3x3_rsq                  ; -- Begin function vg_mat3x3_rsq
	.p2align	2
_vg_mat3x3_rsq:                         ; @vg_mat3x3_rsq
	.cfi_startproc
; %bb.0:
	stp	d13, d12, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldp	x9, x8, [x8]
	ldp	s0, s1, [x9]
	fmul	s2, s1, s1
	fmadd	s10, s0, s0, s2
	ldp	s2, s3, [x8]
	fmul	s1, s1, s3
	fmadd	s11, s0, s2, s1
	fmul	s0, s3, s3
	fmadd	s12, s2, s2, s0
	fadd	s13, s10, s12
	fsub	s0, s10, s12
	fmov	s1, #4.00000000
	fmul	s1, s11, s1
	fmul	s1, s11, s1
	fmadd	s0, s0, s0, s1
	bl	_sqrt_
	fmov	s9, s0
	fadd	s0, s0, s13
	fmov	s1, #0.50000000
	fmul	s8, s0, s1
	cbz	x21, LBB0_2
; %bb.1:
	fmov	s0, s8
	bl	_sqrt_
	str	s0, [x21]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	fsub	s0, s13, s9
	movi	d1, #0000000000000000
	bl	__maxf
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	bl	_sqrt_
	str	s0, [x20]
LBB0_4:
	cbz	x19, LBB0_9
; %bb.5:
	fsub	s0, s8, s12
	fadd	s9, s11, s0
	fsub	s0, s8, s10
	fadd	s8, s11, s0
	fmov	s0, s9
	bl	_absf_
Lloh0:
	adrp	x20, _EPS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EPS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.6:
	fmov	s0, s8
	bl	_absf_
	ldr	x8, [x20]
	movi	d0, #0000000000000000
	cmp	x0, x8
	b.lt	LBB0_8
LBB0_7:
	fmov	s0, s8
	fmov	s1, s9
	bl	_atan2_
LBB0_8:
	str	s0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EPS,8,3                        ; @EPS
.subsections_via_symbols
