	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvrc_colorop
_nvrc_colorop:                          ## @nvrc_colorop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_STATE_TEXTURESTAGE
	subl	%eax, %ebx
	movq	_WINED3D_HIGHEST_TEXTURE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	andl	(%r15), %ebx
	movslq	%eax, %r13
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r13,4), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_use_ps
	testq	%rax, %rax
	je	LBB0_1
LBB0_27:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r12d, %r14d
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_3:
	movq	_WINED3D_UNMAPPED_STAGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	32(%rax), %r12d
	jge	LBB0_28
LBB0_6:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_context_active_texture
LBB0_7:
	cmpl	$0, 16(%r14)
	jle	LBB0_9
## %bb.8:
	movq	_GL_REGISTER_COMBINERS_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*24(%rax)
	movq	_GL_NUM_GENERAL_COMBINERS_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	_glCombinerParameteriNV
	movl	%eax, %edi
	callq	_GL_EXTCALL
	jmp	LBB0_10
LBB0_9:
	movq	_GL_REGISTER_COMBINERS_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
LBB0_10:
	movq	%r15, %r12
	cmpl	16(%r14), %r13d
	jge	LBB0_11
## %bb.19:
	movl	%r13d, %edi
	callq	_STATE_SAMPLER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_isStateDirty
	testl	%eax, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_25
## %bb.20:
	testl	%ebx, %ebx
	je	LBB0_25
## %bb.21:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	_NV_TEXTURE_SHADER2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_23
## %bb.22:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvts_activate_dimensions
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_WINED3D_UNMAPPED_STAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_27
## %bb.12:
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	callq	*16(%rbx)
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	_GL_TEXTURE_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*16(%rbx)
	leaq	L_.str.5(%rip), %rdi
	callq	_checkGLcall
	movq	(%rbx), %rax
	movq	_ARB_TEXTURE_CUBE_MAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_14
## %bb.13:
	movq	_GL_TEXTURE_CUBE_MAP_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*16(%rbx)
	leaq	L_.str.6(%rip), %rdi
	callq	_checkGLcall
	movq	(%rbx), %rax
LBB0_14:
	movq	_ARB_TEXTURE_RECTANGLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_16
## %bb.15:
	movq	_GL_TEXTURE_RECTANGLE_ARB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*16(%rbx)
	leaq	L_.str.7(%rip), %rdi
	callq	_checkGLcall
	movq	(%rbx), %rax
LBB0_16:
	movq	_NV_TEXTURE_SHADER2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_27
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	32(%rax), %ecx
	jge	LBB0_27
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_GL_TEXTURE_SHADER_NV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_GL_SHADER_OPERATION_NV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GL_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_28:
	leaq	L_.str.2(%rip), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FIXME                          ## TAILCALL
LBB0_23:
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edi
	callq	_texture_activate_dimensions
LBB0_24:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_25:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rax
	movq	(%rax,%rsi,8), %rax
	movq	_WINED3D_TSS_COLOR_OP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r8
	movq	_WINED3D_TSS_COLOR_ARG1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r9
	movq	_WINED3D_TSS_COLOR_ARG2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_WINED3D_TSS_COLOR_ARG0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	movq	_WINED3D_TSS_RESULT_ARG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rsi, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %ecx
	pushq	(%rax,%r10,8)
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	(%rax,%r11,8)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	pushq	(%rax,%rbx,8)
	callq	_set_tex_op_nvrc
	addq	$32, %rsp
	movq	(%r15), %rax
	movq	_NV_TEXTURE_SHADER2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_27
## %bb.26:
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rax
	movq	_WINED3D_TSS_COLOR_OP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_WINED3D_TOP_BUMPENVMAP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movl	20(%rbx), %ecx
	incl	%r13d
	btl	%r13d, %ecx
	setae	%cl
	xorb	%al, %cl
	jne	LBB0_27
## %bb.29:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leal	1(%r15), %edx
	movq	%rbx, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_context_active_texture
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_nvts_activate_dimensions
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_active_texture         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_HIGHEST_TEXTURE_STATE,4,2 ## @WINED3D_HIGHEST_TEXTURE_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting color op for stage %u.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Using non 1:1 mapping: %d -> %d!\n"

	.comm	_WINED3D_UNMAPPED_STAGE,4,2     ## @WINED3D_UNMAPPED_STAGE
L_.str.2:                               ## @.str.2
	.asciz	"Attempt to enable unsupported stage!\n"

	.comm	_GL_REGISTER_COMBINERS_NV,4,2   ## @GL_REGISTER_COMBINERS_NV
	.comm	_GL_NUM_GENERAL_COMBINERS_NV,4,2 ## @GL_NUM_GENERAL_COMBINERS_NV
L_.str.3:                               ## @.str.3
	.asciz	"Stage disabled\n"

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
L_.str.4:                               ## @.str.4
	.asciz	"glDisable(GL_TEXTURE_2D)"

	.comm	_GL_TEXTURE_3D,4,2              ## @GL_TEXTURE_3D
L_.str.5:                               ## @.str.5
	.asciz	"glDisable(GL_TEXTURE_3D)"

	.comm	_ARB_TEXTURE_CUBE_MAP,8,3       ## @ARB_TEXTURE_CUBE_MAP
	.comm	_GL_TEXTURE_CUBE_MAP_ARB,4,2    ## @GL_TEXTURE_CUBE_MAP_ARB
L_.str.6:                               ## @.str.6
	.asciz	"glDisable(GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ## @ARB_TEXTURE_RECTANGLE
	.comm	_GL_TEXTURE_RECTANGLE_ARB,4,2   ## @GL_TEXTURE_RECTANGLE_ARB
L_.str.7:                               ## @.str.7
	.asciz	"glDisable(GL_TEXTURE_RECTANGLE_ARB)"

	.comm	_NV_TEXTURE_SHADER2,8,3         ## @NV_TEXTURE_SHADER2
	.comm	_GL_TEXTURE_SHADER_NV,4,2       ## @GL_TEXTURE_SHADER_NV
	.comm	_GL_SHADER_OPERATION_NV,4,2     ## @GL_SHADER_OPERATION_NV
	.comm	_GL_NONE,4,2                    ## @GL_NONE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_TSS_COLOR_OP,8,3       ## @WINED3D_TSS_COLOR_OP
	.comm	_WINED3D_TSS_COLOR_ARG1,8,3     ## @WINED3D_TSS_COLOR_ARG1
	.comm	_WINED3D_TSS_COLOR_ARG2,8,3     ## @WINED3D_TSS_COLOR_ARG2
	.comm	_WINED3D_TSS_COLOR_ARG0,8,3     ## @WINED3D_TSS_COLOR_ARG0
	.comm	_WINED3D_TSS_RESULT_ARG,8,3     ## @WINED3D_TSS_RESULT_ARG
	.comm	_WINED3D_TOP_BUMPENVMAP_LUMINANCE,8,3 ## @WINED3D_TOP_BUMPENVMAP_LUMINANCE
	.comm	_WINED3D_TOP_BUMPENVMAP,8,3     ## @WINED3D_TOP_BUMPENVMAP
	.no_dead_strip	_nvrc_colorop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvrc_colorop
_nvrc_colorop:                          ; @nvrc_colorop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #0
	mov	w1, #0
	bl	_STATE_TEXTURESTAGE
	sub	w8, w19, w0
Lloh0:
	adrp	x9, _WINED3D_HIGHEST_TEXTURE_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_HIGHEST_TEXTURE_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w9, w9, #1
	sdiv	w23, w8, w9
	ldr	w24, [x21]
	ldr	x8, [x21, #8]
	ldr	w20, [x8, w23, sxtw #2]
	ldr	x19, [x21, #24]
	str	x23, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x22
	bl	_use_ps
	cbz	x0, LBB0_2
LBB0_1:
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	w8, #1
	lsl	w25, w8, w23
	sxtw	x23, w23
	cmp	w23, w20
	b.eq	LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x20
	bl	_WARN
LBB0_4:
	and	w24, w24, w25
Lloh7:
	adrp	x25, _WINED3D_UNMAPPED_STAGE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _WINED3D_UNMAPPED_STAGE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.5:
	cbz	w24, LBB0_7
; %bb.6:
	ldr	w8, [x19, #32]
	cmp	w20, w8
	b.ge	LBB0_23
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_context_active_texture
LBB0_8:
	ldr	w8, [x21, #16]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _GL_REGISTER_COMBINERS_NV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GL_REGISTER_COMBINERS_NV@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	blr	x8
Lloh12:
	adrp	x8, _GL_NUM_GENERAL_COMBINERS_NV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_NUM_GENERAL_COMBINERS_NV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	_glCombinerParameteriNV
	bl	_GL_EXTCALL
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _GL_REGISTER_COMBINERS_NV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GL_REGISTER_COMBINERS_NV@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
	blr	x8
LBB0_11:
	ldr	w8, [x21, #16]
	cmp	w23, w8
	b.ge	LBB0_15
; %bb.12:
	mov	x0, x23
	bl	_STATE_SAMPLER
	mov	x1, x0
	mov	x0, x21
	bl	_isStateDirty
	cmp	w0, #0
	ccmp	w24, #0, #4, eq
	b.eq	LBB0_25
; %bb.13:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _NV_TEXTURE_SHADER2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NV_TEXTURE_SHADER2@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_24
; %bb.14:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_nvts_activate_dimensions
	b	LBB0_25
LBB0_15:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [x25]
	cmp	w20, w8
	b.eq	LBB0_1
; %bb.16:
	ldr	x8, [x19, #16]
Lloh23:
	adrp	x9, _GL_TEXTURE_2D@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	blr	x8
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19, #16]
Lloh28:
	adrp	x9, _GL_TEXTURE_3D@GOTPAGE
Lloh29:
	ldr	x9, [x9, _GL_TEXTURE_3D@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x9]
	blr	x8
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
Lloh33:
	adrp	x9, _ARB_TEXTURE_CUBE_MAP@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ARB_TEXTURE_CUBE_MAP@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_18
; %bb.17:
	ldr	x8, [x19, #16]
Lloh36:
	adrp	x9, _GL_TEXTURE_CUBE_MAP_ARB@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GL_TEXTURE_CUBE_MAP_ARB@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x9]
	blr	x8
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
LBB0_18:
Lloh41:
	adrp	x9, _ARB_TEXTURE_RECTANGLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ARB_TEXTURE_RECTANGLE@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	cbz	x9, LBB0_20
; %bb.19:
	ldr	x8, [x19, #16]
Lloh44:
	adrp	x9, _GL_TEXTURE_RECTANGLE_ARB@GOTPAGE
Lloh45:
	ldr	x9, [x9, _GL_TEXTURE_RECTANGLE_ARB@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x9]
	blr	x8
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
LBB0_20:
Lloh49:
	adrp	x9, _NV_TEXTURE_SHADER2@GOTPAGE
Lloh50:
	ldr	x9, [x9, _NV_TEXTURE_SHADER2@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_1
; %bb.21:
	ldr	w8, [x19, #32]
	cmp	w20, w8
	b.ge	LBB0_1
; %bb.22:
	ldr	x3, [x19, #8]
Lloh52:
	adrp	x8, _GL_TEXTURE_SHADER_NV@GOTPAGE
Lloh53:
	ldr	x8, [x8, _GL_TEXTURE_SHADER_NV@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x8, _GL_SHADER_OPERATION_NV@GOTPAGE
Lloh56:
	ldr	x8, [x8, _GL_SHADER_OPERATION_NV@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, _GL_NONE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _GL_NONE@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	br	x3
LBB0_23:
Lloh61:
	adrp	x0, l_.str.2@PAGE
Lloh62:
	add	x0, x0, l_.str.2@PAGEOFF
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_FIXME
LBB0_24:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x23, lsl #2]
	mov	x1, x19
	bl	_texture_activate_dimensions
LBB0_25:
Lloh63:
	adrp	x8, _FALSE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x9, [x9, x23, lsl #3]
Lloh65:
	adrp	x24, _WINED3D_TSS_COLOR_OP@GOTPAGE
Lloh66:
	ldr	x24, [x24, _WINED3D_TSS_COLOR_OP@GOTPAGEOFF]
	ldr	x10, [x24]
	ldr	x4, [x9, x10, lsl #3]
Lloh67:
	adrp	x10, _WINED3D_TSS_COLOR_ARG1@GOTPAGE
Lloh68:
	ldr	x10, [x10, _WINED3D_TSS_COLOR_ARG1@GOTPAGEOFF]
Lloh69:
	ldr	x10, [x10]
	ldr	x5, [x9, x10, lsl #3]
Lloh70:
	adrp	x10, _WINED3D_TSS_COLOR_ARG2@GOTPAGE
Lloh71:
	ldr	x10, [x10, _WINED3D_TSS_COLOR_ARG2@GOTPAGEOFF]
Lloh72:
	ldr	x10, [x10]
	ldr	x6, [x9, x10, lsl #3]
Lloh73:
	adrp	x10, _WINED3D_TSS_COLOR_ARG0@GOTPAGE
Lloh74:
	ldr	x10, [x10, _WINED3D_TSS_COLOR_ARG0@GOTPAGEOFF]
Lloh75:
	ldr	x10, [x10]
	ldr	x7, [x9, x10, lsl #3]
Lloh76:
	ldr	w2, [x8]
Lloh77:
	adrp	x8, _WINED3D_TSS_RESULT_ARG@GOTPAGE
Lloh78:
	ldr	x8, [x8, _WINED3D_TSS_RESULT_ARG@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [sp, #8]
	str	w20, [sp]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x23
	bl	_set_tex_op_nvrc
	ldr	x8, [x19]
Lloh80:
	adrp	x9, _NV_TEXTURE_SHADER2@GOTPAGE
Lloh81:
	ldr	x9, [x9, _NV_TEXTURE_SHADER2@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_1
; %bb.26:
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
Lloh83:
	adrp	x9, _WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPAGE
Lloh84:
	ldr	x9, [x9, _WINED3D_TOP_BUMPENVMAP_LUMINANCE@GOTPAGEOFF]
Lloh85:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh86:
	adrp	x9, _WINED3D_TOP_BUMPENVMAP@GOTPAGE
Lloh87:
	ldr	x9, [x9, _WINED3D_TOP_BUMPENVMAP@GOTPAGEOFF]
Lloh88:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	ldr	w9, [x21, #20]
	add	w23, w23, #1
	lsr	w9, w9, w23
	tst	w9, #0x1
	cset	w9, eq
	eor	w8, w8, w9
	tbnz	w8, #0, LBB0_1
; %bb.27:
	add	w2, w20, #1
	mov	x0, x21
	mov	x1, x19
	bl	_context_active_texture
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	bl	_nvts_activate_dimensions
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_context_active_texture
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh76
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_HIGHEST_TEXTURE_STATE,4,2 ; @WINED3D_HIGHEST_TEXTURE_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting color op for stage %u.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Using non 1:1 mapping: %d -> %d!\n"

	.comm	_WINED3D_UNMAPPED_STAGE,4,2     ; @WINED3D_UNMAPPED_STAGE
l_.str.2:                               ; @.str.2
	.asciz	"Attempt to enable unsupported stage!\n"

	.comm	_GL_REGISTER_COMBINERS_NV,4,2   ; @GL_REGISTER_COMBINERS_NV
	.comm	_GL_NUM_GENERAL_COMBINERS_NV,4,2 ; @GL_NUM_GENERAL_COMBINERS_NV
l_.str.3:                               ; @.str.3
	.asciz	"Stage disabled\n"

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
l_.str.4:                               ; @.str.4
	.asciz	"glDisable(GL_TEXTURE_2D)"

	.comm	_GL_TEXTURE_3D,4,2              ; @GL_TEXTURE_3D
l_.str.5:                               ; @.str.5
	.asciz	"glDisable(GL_TEXTURE_3D)"

	.comm	_ARB_TEXTURE_CUBE_MAP,8,3       ; @ARB_TEXTURE_CUBE_MAP
	.comm	_GL_TEXTURE_CUBE_MAP_ARB,4,2    ; @GL_TEXTURE_CUBE_MAP_ARB
l_.str.6:                               ; @.str.6
	.asciz	"glDisable(GL_TEXTURE_CUBE_MAP_ARB)"

	.comm	_ARB_TEXTURE_RECTANGLE,8,3      ; @ARB_TEXTURE_RECTANGLE
	.comm	_GL_TEXTURE_RECTANGLE_ARB,4,2   ; @GL_TEXTURE_RECTANGLE_ARB
l_.str.7:                               ; @.str.7
	.asciz	"glDisable(GL_TEXTURE_RECTANGLE_ARB)"

	.comm	_NV_TEXTURE_SHADER2,8,3         ; @NV_TEXTURE_SHADER2
	.comm	_GL_TEXTURE_SHADER_NV,4,2       ; @GL_TEXTURE_SHADER_NV
	.comm	_GL_SHADER_OPERATION_NV,4,2     ; @GL_SHADER_OPERATION_NV
	.comm	_GL_NONE,4,2                    ; @GL_NONE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_TSS_COLOR_OP,8,3       ; @WINED3D_TSS_COLOR_OP
	.comm	_WINED3D_TSS_COLOR_ARG1,8,3     ; @WINED3D_TSS_COLOR_ARG1
	.comm	_WINED3D_TSS_COLOR_ARG2,8,3     ; @WINED3D_TSS_COLOR_ARG2
	.comm	_WINED3D_TSS_COLOR_ARG0,8,3     ; @WINED3D_TSS_COLOR_ARG0
	.comm	_WINED3D_TSS_RESULT_ARG,8,3     ; @WINED3D_TSS_RESULT_ARG
	.comm	_WINED3D_TOP_BUMPENVMAP_LUMINANCE,8,3 ; @WINED3D_TOP_BUMPENVMAP_LUMINANCE
	.comm	_WINED3D_TOP_BUMPENVMAP,8,3     ; @WINED3D_TOP_BUMPENVMAP
	.no_dead_strip	_nvrc_colorop
.subsections_via_symbols
