	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function RB_CalcTurbulentTexCoords
LCPI0_0:
	.quad	0x3f80000000000000              ## double 0.0078125
LCPI0_1:
	.quad	0x3fc0000000000000              ## double 0.125
LCPI0_2:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RB_CalcTurbulentTexCoords
	.p2align	4, 0x90
_RB_CalcTurbulentTexCoords:             ## @RB_CalcTurbulentTexCoords
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tess@GOTPCREL(%rip), %rax
	movl	8(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.1:
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	8(%rdi), %xmm0
	addsd	(%rdi), %xmm0
	movq	_tr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	16(%rax), %r9
	movq	_FUNCTABLE_SIZE@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_FUNCTABLE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%edx, %edx
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm4            ## xmm4 = mem[0],zero
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rdx,8), %r14
	movsd	(%r14), %xmm5                   ## xmm5 = mem[0],zero
	addsd	16(%r14), %xmm5
	mulsd	%xmm2, %xmm5
	mulsd	%xmm3, %xmm5
	addsd	%xmm0, %xmm5
	mulsd	%xmm1, %xmm5
	cvttsd2si	%xmm5, %rax
	movq	%rax, %rbx
	sarq	$63, %rbx
	subsd	%xmm4, %xmm5
	cvttsd2si	%xmm5, %rcx
	andq	%rbx, %rcx
	orq	%rax, %rcx
	andq	%r11, %rcx
	movss	(%r10,%rcx,4), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	mulss	16(%rdi), %xmm5
	addss	(%rsi,%rdx,8), %xmm5
	movss	%xmm5, (%rsi,%rdx,8)
	movsd	8(%r14), %xmm5                  ## xmm5 = mem[0],zero
	mulsd	%xmm2, %xmm5
	mulsd	%xmm3, %xmm5
	addsd	%xmm0, %xmm5
	mulsd	%xmm1, %xmm5
	cvttsd2si	%xmm5, %rax
	movq	%rax, %rcx
	sarq	$63, %rcx
	subsd	%xmm4, %xmm5
	cvttsd2si	%xmm5, %rbx
	andq	%rcx, %rbx
	orq	%rax, %rbx
	andq	%r11, %rbx
	movss	(%r10,%rbx,4), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	mulss	16(%rdi), %xmm5
	addss	4(%rsi,%rdx,8), %xmm5
	movss	%xmm5, 4(%rsi,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tess,24,3                      ## @tess
	.comm	_tr,8,3                         ## @tr
	.comm	_FUNCTABLE_SIZE,8,3             ## @FUNCTABLE_SIZE
	.comm	_FUNCTABLE_MASK,8,3             ## @FUNCTABLE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_CalcTurbulentTexCoords      ; -- Begin function RB_CalcTurbulentTexCoords
	.p2align	2
_RB_CalcTurbulentTexCoords:             ; @RB_CalcTurbulentTexCoords
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x10, _tess@GOTPAGE
Lloh1:
	ldr	x10, [x10, _tess@GOTPAGEOFF]
	ldr	w8, [x10, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	d0, [x10]
	ldp	d1, d2, [x0]
	fmadd	d0, d0, d2, d1
Lloh2:
	adrp	x9, _tr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tr@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x10, #16]
Lloh5:
	adrp	x11, _FUNCTABLE_SIZE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _FUNCTABLE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	d1, [x11]
Lloh8:
	adrp	x11, _FUNCTABLE_MASK@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FUNCTABLE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	mov	x12, #4575657221408423936
	fmov	d2, #0.12500000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10], #8
	ldp	d5, d3, [x13, #8]
	ldr	d4, [x13]
	fadd	d3, d4, d3
	fmov	d4, x12
	fmul	d3, d3, d4
	fmadd	d3, d3, d2, d0
	fmul	d3, d1, d3
	fcvtzu	x13, d3
	and	x13, x11, x13
	ldr	s3, [x9, x13, lsl #2]
	ldp	s6, s7, [x1]
	ldr	s16, [x0, #16]
	fmadd	s3, s3, s16, s6
	str	s3, [x1]
	fmul	d3, d5, d4
	fmadd	d3, d3, d2, d0
	fmul	d3, d1, d3
	fcvtzu	x13, d3
	and	x13, x11, x13
	ldr	s3, [x9, x13, lsl #2]
	ldr	s4, [x0, #16]
	fmadd	s3, s3, s4, s7
	str	s3, [x1, #4]
	add	x1, x1, #8
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tess,24,3                      ; @tess
	.comm	_tr,8,3                         ; @tr
	.comm	_FUNCTABLE_SIZE,8,3             ; @FUNCTABLE_SIZE
	.comm	_FUNCTABLE_MASK,8,3             ; @FUNCTABLE_MASK
.subsections_via_symbols
