	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_texdp3tex
_shader_glsl_texdp3tex:                 ## @shader_glsl_texdp3tex
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rdi, %rbx
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	8(%rdi), %rsi
	leaq	-32(%rbp), %rcx
	callq	_shader_glsl_add_src_param
	movl	(%rbx), %edi
	leaq	-24(%rbp), %r8
	movl	%r14d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_shader_glsl_get_sample_function
	movl	-24(%rbp), %edi
	callq	_shader_glsl_get_write_mask_size
	cmpl	$3, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-32(%rbp), %eax
	movl	%eax, 32(%rsp)
	movl	%r14d, 24(%rsp)
	leaq	L_.str(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-32(%rbp), %eax
	movl	%eax, 32(%rsp)
	movl	%r14d, 24(%rsp)
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_WINED3DSP_NOSWIZZLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-32(%rbp), %eax
	movl	%eax, 32(%rsp)
	movl	%r14d, 24(%rsp)
	leaq	L_.str.1(%rip), %rax
LBB0_4:
	movq	%rax, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_shader_glsl_gen_sample_code
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_8:
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_shader_glsl_release_sample_function
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ## @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ## @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ## @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ## @WINED3DSP_NOSWIZZLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dot(ffp_texcoord[%u].xyz, %s)"

L_.str.1:                               ## @.str.1
	.asciz	"vec2(dot(ffp_texcoord[%u].xyz, %s), 0.0)"

L_.str.2:                               ## @.str.2
	.asciz	"vec3(dot(ffp_texcoord[%u].xyz, %s), 0.0, 0.0)"

L_.str.3:                               ## @.str.3
	.asciz	"Unexpected mask size %u\n"

	.no_dead_strip	_shader_glsl_texdp3tex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_texdp3tex
_shader_glsl_texdp3tex:                 ; @shader_glsl_texdp3tex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldp	x1, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w20, [x8]
	add	x3, sp, #16
	bl	_shader_glsl_add_src_param
	ldr	w0, [x19]
	add	x4, sp, #24
	mov	x1, x20
	mov	x2, x20
	mov	w3, #0
	bl	_shader_glsl_get_sample_function
	ldr	w0, [sp, #24]
	bl	_shader_glsl_get_write_mask_size
	cmp	w0, #3
	b.eq	LBB0_4
; %bb.1:
	mov	x1, x0
	cmp	w0, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w1, #1
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w8, [sp, #16]
	stp	w20, w8, [sp, #8]
Lloh12:
	adrp	x8, l_.str@PAGE
Lloh13:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	ldr	w8, [sp, #16]
	stp	w20, w8, [sp, #8]
Lloh17:
	adrp	x8, l_.str.2@PAGE
Lloh18:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _WINED3DSP_NOSWIZZLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WINED3DSP_NOSWIZZLE@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	ldr	w8, [sp, #16]
	stp	w20, w8, [sp, #8]
Lloh22:
	adrp	x8, l_.str.1@PAGE
Lloh23:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_6:
	str	x8, [sp]
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_shader_glsl_gen_sample_code
	b	LBB0_8
LBB0_7:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
LBB0_8:
	ldr	w0, [x19]
	add	x1, sp, #24
	bl	_shader_glsl_release_sample_function
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
	.comm	_WINED3DSP_WRITEMASK_2,4,2      ; @WINED3DSP_WRITEMASK_2
	.comm	_WINED3DSP_NOSWIZZLE,4,2        ; @WINED3DSP_NOSWIZZLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dot(ffp_texcoord[%u].xyz, %s)"

l_.str.1:                               ; @.str.1
	.asciz	"vec2(dot(ffp_texcoord[%u].xyz, %s), 0.0)"

l_.str.2:                               ; @.str.2
	.asciz	"vec3(dot(ffp_texcoord[%u].xyz, %s), 0.0, 0.0)"

l_.str.3:                               ; @.str.3
	.asciz	"Unexpected mask size %u\n"

	.no_dead_strip	_shader_glsl_texdp3tex
.subsections_via_symbols
