	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvts_activate_dimensions
_nvts_activate_dimensions:              ## @nvts_activate_dimensions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%esi, %esi
	jle	LBB0_4
## %bb.1:
	movq	(%rdi), %rcx
	leal	-1(%rsi), %eax
	movq	(%rcx,%rax,8), %rax
	movq	_WINED3D_TSS_COLOR_OP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	_WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_3
## %bb.2:
	movq	_WINED3D_TOP_BUMPENVMAP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_3
LBB0_4:
	movl	$-2, %eax
	movl	%esi, %ecx
	roll	%cl, %eax
	andl	%eax, (%rdx)
	jmp	LBB0_5
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %r8
	movl	$1, %eax
	movl	%esi, %ecx
	shll	%cl, %eax
	movl	(%r8), %r8d
	orl	%eax, (%rdx)
LBB0_5:
	movq	8(%rdx), %rcx
	movq	8(%rdi), %rax
	movslq	%esi, %rdx
	movq	(%rax,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.6:
	movl	(%rdx), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_17
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_12:
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edx
	testl	%r8d, %r8d
	jne	LBB0_10
	jmp	LBB0_11
LBB0_15:
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*(%rcx)
	leaq	L_.str.3(%rip), %rdi
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_17:
	popq	%rbp
	retq
LBB0_14:
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$129, %edx
	callq	*(%rcx)
	leaq	L_.str.2(%rip), %rdi
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_13:
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$130, %edx
	callq	*(%rcx)
	leaq	L_.str.1(%rip), %rdi
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
LBB0_8:
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$131, %edx
	testl	%r8d, %r8d
	je	LBB0_11
LBB0_10:
	movq	_GL_OFFSET_TEXTURE_2D_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_11:
	callq	*(%rcx)
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_checkGLcall                    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_TSS_COLOR_OP,8,3       ## @WINED3D_TSS_COLOR_OP
	.comm	_WINED3D_TOP_BUMPENVMAP_LUMINANCE,8,3 ## @WINED3D_TOP_BUMPENVMAP_LUMINANCE
	.comm	_WINED3D_TOP_BUMPENVMAP,8,3     ## @WINED3D_TOP_BUMPENVMAP
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GL_TEXTURE_SHADER_NV,4,2       ## @GL_TEXTURE_SHADER_NV
	.comm	_GL_SHADER_OPERATION_NV,4,2     ## @GL_SHADER_OPERATION_NV
	.comm	_GL_OFFSET_TEXTURE_2D_NV,4,2    ## @GL_OFFSET_TEXTURE_2D_NV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, ...)"

L_.str.1:                               ## @.str.1
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_3D)"

L_.str.2:                               ## @.str.2
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_GL_NONE,4,2                    ## @GL_NONE
L_.str.3:                               ## @.str.3
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_NONE)"

	.no_dead_strip	_nvts_activate_dimensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvts_activate_dimensions
_nvts_activate_dimensions:              ; @nvts_activate_dimensions
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x2, #8]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	subs	w10, w1, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x11, [x0]
	ldr	x10, [x11, w10, uxtw #3]
Lloh3:
	adrp	x11, _WINED3D_TSS_COLOR_OP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WINED3D_TSS_COLOR_OP@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
Lloh6:
	adrp	x11, _WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _WINED3D_TOP_BUMPENVMAP@GOTPAGE
Lloh10:
	ldr	x12, [x12, _WINED3D_TOP_BUMPENVMAP@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w10, #1
	lsl	w10, w10, w1
	ldr	w11, [x2]
	orr	w10, w11, w10
	b	LBB0_4
LBB0_3:
	mov	w10, #1
	lsl	w10, w10, w1
	ldr	w11, [x2]
	bic	w10, w11, w10
LBB0_4:
	str	w10, [x2]
	ldr	x10, [x0, #8]
	ldr	x10, [x10, w1, sxtw #3]
	cbz	x10, LBB0_8
; %bb.5:
	ldr	w10, [x10]
	sub	w10, w10, #128
	cmp	w10, #3
	b.hi	LBB0_9
; %bb.6:
Lloh15:
	adrp	x11, lJTI0_0@PAGE
Lloh16:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_7
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_7:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x10]
Lloh20:
	adrp	x10, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh21:
	ldr	x10, [x10, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x10]
Lloh23:
	adrp	x10, _GL_OFFSET_TEXTURE_2D_NV@GOTPAGE
Lloh24:
	ldr	x10, [x10, _GL_OFFSET_TEXTURE_2D_NV@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	mov	w11, #128
	b	LBB0_13
LBB0_8:
	ldr	x8, [x9]
Lloh26:
	adrp	x9, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
Lloh29:
	adrp	x9, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x9]
Lloh32:
	adrp	x9, _GL_NONE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _GL_NONE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x9]
	blr	x8
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x9]
Lloh37:
	adrp	x9, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh38:
	ldr	x9, [x9, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x9]
Lloh40:
	adrp	x9, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh41:
	ldr	x9, [x9, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
	mov	w2, #129
	blr	x8
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_11:
	ldr	x8, [x9]
Lloh45:
	adrp	x9, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh46:
	ldr	x9, [x9, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x9]
Lloh48:
	adrp	x9, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh49:
	ldr	x9, [x9, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x9]
	mov	w2, #130
	blr	x8
Lloh51:
	adrp	x0, l_.str.1@PAGE
Lloh52:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_checkGLcall
LBB0_12:
	ldr	x9, [x9]
Lloh53:
	adrp	x10, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh54:
	ldr	x10, [x10, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x10]
Lloh56:
	adrp	x10, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh57:
	ldr	x10, [x10, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x10]
Lloh59:
	adrp	x10, _GL_OFFSET_TEXTURE_2D_NV@GOTPAGE
Lloh60:
	ldr	x10, [x10, _GL_OFFSET_TEXTURE_2D_NV@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x10]
	mov	w11, #131
LBB0_13:
	cmp	w8, #0
	csel	w2, w11, w10, eq
	blr	x9
Lloh62:
	adrp	x0, l_.str@PAGE
Lloh63:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_checkGLcall
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_TSS_COLOR_OP,8,3       ; @WINED3D_TSS_COLOR_OP
	.comm	_WINED3D_TOP_BUMPENVMAP_LUMINANCE,8,3 ; @WINED3D_TOP_BUMPENVMAP_LUMINANCE
	.comm	_WINED3D_TOP_BUMPENVMAP,8,3     ; @WINED3D_TOP_BUMPENVMAP
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GL_TEXTURE_SHADER_NV,4,2       ; @GL_TEXTURE_SHADER_NV
	.comm	_GL_SHADER_OPERATION_NV,4,2     ; @GL_SHADER_OPERATION_NV
	.comm	_GL_OFFSET_TEXTURE_2D_NV,4,2    ; @GL_OFFSET_TEXTURE_2D_NV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, ...)"

l_.str.1:                               ; @.str.1
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_3D)"

l_.str.2:                               ; @.str.2
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_GL_NONE,4,2                    ; @GL_NONE
l_.str.3:                               ; @.str.3
	.asciz	"glTexEnvi(GL_TEXTURE_SHADER_NV, GL_SHADER_OPERATION_NV, GL_NONE)"

	.no_dead_strip	_nvts_activate_dimensions
.subsections_via_symbols
