	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_get_write_mask_size
_shader_glsl_get_write_mask_size:       ## @shader_glsl_get_write_mask_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%edi, (%rax)
	setne	%cl
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %rdx
	leal	1(%rcx), %eax
	testl	%edi, (%rdx)
	cmovel	%ecx, %eax
	movq	_WINED3DSP_WRITEMASK_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %eax
	movq	_WINED3DSP_WRITEMASK_3@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	cmpl	$1, %edi
	sbbl	$-1, %eax
	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_WRITEMASK_3,4,2      ## @WINED3DSP_WRITEMASK_3
	.no_dead_strip	_shader_glsl_get_write_mask_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_get_write_mask_size
_shader_glsl_get_write_mask_size:       ; @shader_glsl_get_write_mask_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
Lloh3:
	adrp	x9, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	cinc	w10, w10, ne
	tst	w9, w0
	csel	w8, w8, w10, eq
Lloh6:
	adrp	x9, _WINED3DSP_WRITEMASK_2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w0
	cinc	w8, w8, ne
Lloh9:
	adrp	x9, _WINED3DSP_WRITEMASK_3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3DSP_WRITEMASK_3@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w0
	cinc	w0, w8, ne
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_WRITEMASK_3,4,2      ; @WINED3DSP_WRITEMASK_3
	.no_dead_strip	_shader_glsl_get_write_mask_size
.subsections_via_symbols
