	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ComputeTexMods
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.space	4
	.space	4
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_2:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ComputeTexMods:                        ## @ComputeTexMods
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	$0, -64(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,0.0E+0,0.0E+0,1.0E+0]
	movaps	%xmm0, -80(%rbp)
	movups	%xmm0, (%rdx)
	shlq	$4, %rcx
	xorps	%xmm1, %xmm1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movups	%xmm1, (%r14)
	cmpl	$0, (%rax,%rcx)
	jle	LBB0_18
## %bb.1:
	movq	%rdx, %rbx
	leaq	8(%r14), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	8(%rax,%rcx), %r12
	movq	8(%rax,%rcx), %rax
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = <0.0E+0,1.0E+0,u,u>
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tess@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	_ri@GOTPCREL(%rip), %rax
	callq	*(%rax)
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	leaq	(%r15,%r15,4), %rcx
	movl	(%rax,%rcx,4), %ecx
	leal	-129(%rcx), %edx
	cmpl	$5, %edx
	jae	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movaps	-128(%rbp), %xmm6               ## 16-byte Reload
	unpcklps	%xmm6, %xmm6                    ## xmm6 = xmm6[0,0,1,1]
	movaps	-144(%rbp), %xmm5               ## 16-byte Reload
	unpcklps	%xmm5, %xmm5                    ## xmm5 = xmm5[0,0,1,1]
	movaps	-160(%rbp), %xmm4               ## 16-byte Reload
	movshdup	%xmm4, %xmm0                    ## xmm0 = xmm4[1,1,3,3]
	movsd	-80(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	-72(%rbp), %xmm2                ## xmm2 = mem[0],zero
	movsd	-64(%rbp), %xmm3                ## xmm3 = mem[0],zero
	mulps	%xmm2, %xmm0
	movsldup	%xmm4, %xmm4                    ## xmm4 = xmm4[0,0,2,2]
	mulps	%xmm1, %xmm4
	addps	%xmm0, %xmm4
	addps	%xmm3, %xmm4
	movddup	%xmm2, %xmm0                    ## xmm0 = xmm2[0,0]
	mulps	%xmm6, %xmm0
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	mulps	%xmm5, %xmm1
	addps	%xmm0, %xmm1
	movups	%xmm1, (%rbx)
	movss	%xmm4, (%r14)
	movaps	%xmm4, -160(%rbp)               ## 16-byte Spill
	extractps	$1, %xmm4, 4(%r14)
	movups	(%rbx), %xmm0
	insertps	$16, 8(%rbx), %xmm0             ## xmm0 = xmm0[0],mem[0],xmm0[2,3]
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movss	4(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	insertps	$16, 12(%rbx), %xmm0            ## xmm0 = xmm0[0],mem[0],xmm0[2,3]
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpl	(%rcx), %r13d
	jge	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r15
	leaq	(%r15,%r15,4), %rcx
	movl	(%rax,%rcx,4), %edx
	leal	-128(%rdx), %esi
	cmpl	$7, %esi
	ja	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rdx
	addq	%rdi, %rdx
	jmpq	*%rdx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_RB_CalcTurbulentFactors
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$135, %ecx
	je	LBB0_16
	jmp	LBB0_17
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rcx,4), %rdi
	leaq	-80(%rbp), %rsi
	callq	_RB_CalcTransformTexMatrix
	jmp	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	leaq	-80(%rbp), %rsi
	callq	_RB_CalcStretchTexMatrix
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rax,%rcx,4), %edi
	jmp	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rax,%rcx,4), %edi
	leaq	-80(%rbp), %rsi
	callq	_RB_CalcScaleTexMatrix
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rax,%rcx,4), %edi
	leaq	-80(%rbp), %rsi
	callq	_RB_CalcRotateTexMatrix
	jmp	LBB0_14
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TR_MAX_TEXMODS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movslq	%r13d, %r15
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_backEnd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-80(%rbp), %rsi
	callq	_RB_CalcScrollTexMatrix
	jmp	LBB0_14
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_TR_MAX_TEXMODS,4,2             ## @TR_MAX_TEXMODS
	.comm	_backEnd,8,3                    ## @backEnd
	.comm	_ri,8,3                         ## @ri
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: unknown texmod '%d' in shader '%s'"

	.comm	_tess,8,3                       ## @tess
	.no_dead_strip	_ComputeTexMods
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ComputeTexMods
lCPI0_0:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ComputeTexMods:                        ; @ComputeTexMods
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	str	xzr, [sp, #16]
	str	q0, [x2]
	mov	x21, x3
	str	xzr, [x21, #8]!
	add	x24, x8, w1, sxtw #4
	str	xzr, [x3]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	w26, #0
	sxtw	x9, w1
	add	x22, x3, #12
	add	x25, x8, x9, lsl #4
	ldr	x8, [x25, #8]!
	movi	d9, #0000000000000000
	fmov	s8, #1.00000000
	mov	w27, #20
Lloh5:
	adrp	x28, lJTI0_0@PAGE
Lloh6:
	add	x28, x28, lJTI0_0@PAGEOFF
	movi	d12, #0000000000000000
	fmov	s13, #1.00000000
	movi	d11, #0000000000000000
	movi	d10, #0000000000000000
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh7:
	adrp	x8, _ri@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _ERR_DROP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ERR_DROP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
Lloh13:
	adrp	x9, _tess@GOTPAGE
Lloh14:
	ldr	x9, [x9, _tess@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w3, [x9]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	mul	x9, x23, x27
	ldr	w9, [x8, x9]
	sub	w10, w9, #129
	cmp	w10, #5
	b.hs	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	s0, s1, [sp, #8]
	fmul	s2, s9, s0
	ldp	s3, s4, [sp]
	fmadd	s2, s3, s8, s2
	str	s2, [x20]
	fmul	s2, s9, s1
	fmadd	s2, s4, s8, s2
	str	s2, [x20, #4]
	fmul	s2, s13, s0
	fmadd	s2, s3, s12, s2
	str	s2, [x20, #8]
	fmul	s2, s13, s1
	fmadd	s2, s4, s12, s2
	str	s2, [x20, #12]
	fmul	s0, s10, s0
	fmadd	s0, s3, s11, s0
	fmul	s1, s10, s1
	fmadd	s1, s4, s11, s1
	ldp	s2, s3, [sp, #16]
	fadd	s11, s0, s2
	str	s11, [x19]
	fadd	s10, s1, s3
	str	s10, [x19, #4]
	ldp	s8, s9, [x20]
	ldp	s12, s13, [x20, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w26, w26, #1
	ldr	w9, [x24]
	cmp	w26, w9
	b.ge	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x23, w26
	smaddl	x0, w26, w27, x8
	ldr	w2, [x0]
	sub	w9, w2, #128
	cmp	w9, #7
	b.hi	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x10, LBB0_8
	ldrb	w11, [x28, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x27, x8
	add	x0, x8, #8
	mov	x1, x21
	mov	x2, x22
	bl	_RB_CalcTurbulentFactors
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #135
	b.eq	LBB0_4
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, sp
	bl	_RB_CalcTransformTexMatrix
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x27, x8
	add	x0, x8, #8
	mov	x1, sp
	bl	_RB_CalcStretchTexMatrix
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x27, x8
	ldr	w0, [x8, #16]
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x27, x8
	ldr	w0, [x8, #12]
	mov	x1, sp
	bl	_RB_CalcScaleTexMatrix
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	madd	x8, x23, x27, x8
	ldr	w0, [x8, #4]
	mov	x1, sp
	bl	_RB_CalcRotateTexMatrix
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh18:
	adrp	x8, _TR_MAX_TEXMODS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TR_MAX_TEXMODS@GOTPAGEOFF]
Lloh20:
	ldr	w26, [x8]
	sxtw	x23, w26
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	b	LBB0_3
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh21:
	adrp	x8, _backEnd@GOTPAGE
Lloh22:
	ldr	x8, [x8, _backEnd@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	w0, [x8]
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, sp
	bl	_RB_CalcScrollTexMatrix
	b	LBB0_3
LBB0_18:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
                                        ; -- End function
	.comm	_TR_MAX_TEXMODS,4,2             ; @TR_MAX_TEXMODS
	.comm	_backEnd,8,3                    ; @backEnd
	.comm	_ri,8,3                         ; @ri
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: unknown texmod '%d' in shader '%s'"

	.comm	_tess,8,3                       ; @tess
	.no_dead_strip	_ComputeTexMods
.subsections_via_symbols
