	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_texdp3
_shader_glsl_texdp3:                    ## @shader_glsl_texdp3
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_shader_glsl_append_dst
	movl	%eax, %edi
	callq	_shader_glsl_get_write_mask_size
	movl	%eax, %r15d
	movq	8(%rbx), %rsi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_shader_glsl_add_src_param
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	-40(%rbp), %r8d
	cmpl	$2, %r15d
	jb	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vec%d(dot(T%u.xyz, %s)));\n"

L_.str.1:                               ## @.str.1
	.asciz	"dot(T%u.xyz, %s));\n"

	.no_dead_strip	_shader_glsl_texdp3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_texdp3
_shader_glsl_texdp3:                    ; @shader_glsl_texdp3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x0
Lloh0:
	adrp	x8, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
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	w22, w8, w9
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w19, [x8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_shader_glsl_append_dst
	bl	_shader_glsl_get_write_mask_size
	mov	x20, x0
	ldr	x1, [x21, #8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, x22
	bl	_shader_glsl_add_src_param
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w3, [sp, #8]
	cmp	w20, #2
	b.lo	LBB0_2
; %bb.1:
	str	x3, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_3:
	bl	_shader_addline
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vec%d(dot(T%u.xyz, %s)));\n"

l_.str.1:                               ; @.str.1
	.asciz	"dot(T%u.xyz, %s));\n"

	.no_dead_strip	_shader_glsl_texdp3
.subsections_via_symbols
