	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glsl_vertex_pipe_texmatrix_np2
_glsl_vertex_pipe_texmatrix_np2:        ## @glsl_vertex_pipe_texmatrix_np2
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_STATE_SAMPLER
	subq	%rax, %rbx
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_MAX_TEXTURES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jae	LBB0_6
## %bb.2:
	movq	_WINED3D_TEXTURE_POW2_MAT_IDENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.3:
	movl	(%r14), %eax
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	btl	%ebx, %eax
	jae	LBB0_6
## %bb.4:
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_5
LBB0_7:
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, (%r14)
LBB0_5:
	movq	_WINED3D_SHADER_CONST_FFP_TEXMATRIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TEXTURES,8,3               ## @MAX_TEXTURES
	.comm	_WINED3D_TEXTURE_POW2_MAT_IDENT,4,2 ## @WINED3D_TEXTURE_POW2_MAT_IDENT
	.comm	_WINED3D_SHADER_CONST_FFP_TEXMATRIX,4,2 ## @WINED3D_SHADER_CONST_FFP_TEXMATRIX
	.no_dead_strip	_glsl_vertex_pipe_texmatrix_np2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glsl_vertex_pipe_texmatrix_np2
_glsl_vertex_pipe_texmatrix_np2:        ; @glsl_vertex_pipe_texmatrix_np2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w0, #0
	bl	_STATE_SAMPLER
	sub	x8, x20, x0
	ldr	x9, [x21]
	ldr	x9, [x9, x8, lsl #3]
Lloh0:
	adrp	x10, _MAX_TEXTURES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_TEXTURES@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, #0
	ccmp	x8, x10, #2, ne
	b.hs	LBB0_6
; %bb.1:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _WINED3D_TEXTURE_POW2_MAT_IDENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WINED3D_TEXTURE_POW2_MAT_IDENT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w9, [x19]
	mov	w10, #1
	lsl	w8, w10, w8
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	bic	w8, w9, w8
	b	LBB0_5
LBB0_4:
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w9, w8
LBB0_5:
	str	w8, [x19]
Lloh6:
	adrp	x8, _WINED3D_SHADER_CONST_FFP_TEXMATRIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINED3D_SHADER_CONST_FFP_TEXMATRIX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TEXTURES,8,3               ; @MAX_TEXTURES
	.comm	_WINED3D_TEXTURE_POW2_MAT_IDENT,4,2 ; @WINED3D_TEXTURE_POW2_MAT_IDENT
	.comm	_WINED3D_SHADER_CONST_FFP_TEXMATRIX,4,2 ; @WINED3D_SHADER_CONST_FFP_TEXMATRIX
	.no_dead_strip	_glsl_vertex_pipe_texmatrix_np2
.subsections_via_symbols
