	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_dot
_shader_glsl_dot:                       ## @shader_glsl_dot
	.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	16(%rdi), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_shader_glsl_append_dst
	movl	%eax, %edi
	callq	_shader_glsl_get_write_mask_size
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	_WINED3DSIH_DP4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_WINED3DSP_WRITEMASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_4
LBB0_2:
	movq	_WINED3DSIH_DP3@GOTPCREL(%rip), %rcx
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rdx
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
	orl	(%rdx), %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_4:
	movq	8(%rbx), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_shader_glsl_add_src_param
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_shader_glsl_add_src_param
	movl	-48(%rbp), %ecx
	movl	-40(%rbp), %r8d
	cmpl	$2, %r14d
	jb	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DSIH_DP4,8,3             ## @WINED3DSIH_DP4
	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ## @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSIH_DP3,8,3             ## @WINED3DSIH_DP3
	.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(%s, %s)));\n"

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

	.no_dead_strip	_shader_glsl_dot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_dot
_shader_glsl_dot:                       ; @shader_glsl_dot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_shader_glsl_append_dst
	bl	_shader_glsl_get_write_mask_size
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _WINED3DSIH_DP4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3DSIH_DP4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WINED3DSP_WRITEMASK_ALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _WINED3DSIH_DP3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSIH_DP3@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w22, w11, w10
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w22, w22, w8
LBB0_4:
	ldr	x1, [x21, #8]
	add	x3, sp, #24
	mov	x0, x21
	mov	x2, x22
	bl	_shader_glsl_add_src_param
	ldr	x8, [x21, #8]
	add	x1, x8, #4
	add	x3, sp, #16
	mov	x0, x21
	mov	x2, x22
	bl	_shader_glsl_add_src_param
	ldr	w8, [sp, #24]
	ldr	w3, [sp, #16]
	cmp	w20, #2
	b.lo	LBB0_6
; %bb.5:
	str	x3, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x8
	b	LBB0_7
LBB0_6:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x8
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_7:
	bl	_shader_addline
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSIH_DP4,8,3             ; @WINED3DSIH_DP4
	.comm	_WINED3DSP_WRITEMASK_ALL,4,2    ; @WINED3DSP_WRITEMASK_ALL
	.comm	_WINED3DSIH_DP3,8,3             ; @WINED3DSIH_DP3
	.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(%s, %s)));\n"

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

	.no_dead_strip	_shader_glsl_dot
.subsections_via_symbols
