	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_bem
_shader_glsl_bem:                       ## @shader_glsl_bem
	.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), %rax
	movl	(%rax), %r14d
	movq	8(%rdi), %rsi
	movq	_WINED3DSP_WRITEMASK_0@GOTPCREL(%rip), %r15
	movq	_WINED3DSP_WRITEMASK_1@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	leaq	-48(%rbp), %rcx
	callq	_shader_glsl_add_src_param
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movl	(%r12), %edx
	orl	(%r15), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_shader_glsl_add_src_param
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_shader_glsl_append_dst
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	callq	_shader_addline
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s + bumpenv_mat%u * %s);\n"

	.no_dead_strip	_shader_glsl_bem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_bem
_shader_glsl_bem:                       ; @shader_glsl_bem
	.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	x19, x0
	ldp	x1, x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _WINED3DSP_WRITEMASK_0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WINED3DSP_WRITEMASK_0@GOTPAGEOFF]
	ldr	w20, [x8]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _WINED3DSP_WRITEMASK_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WINED3DSP_WRITEMASK_1@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
	add	x3, sp, #8
	bl	_shader_glsl_add_src_param
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x3, sp
	mov	x0, x19
	bl	_shader_glsl_add_src_param
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_shader_glsl_append_dst
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
	ldr	w4, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DSP_WRITEMASK_0,4,2      ; @WINED3DSP_WRITEMASK_0
	.comm	_WINED3DSP_WRITEMASK_1,4,2      ; @WINED3DSP_WRITEMASK_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s + bumpenv_mat%u * %s);\n"

	.no_dead_strip	_shader_glsl_bem
.subsections_via_symbols
