	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pshader_hw_texbem
_pshader_hw_texbem:                     ## @pshader_hw_texbem
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rsi
	movq	24(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r13
	movq	(%rsi), %rax
	movl	(%rax), %r14d
	leaq	-160(%rbp), %rdx
	callq	_shader_arb_get_dst_param
	movq	8(%rbx), %rsi
	leaq	-224(%rbp), %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_shader_arb_get_src_param
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdi
	movl	%r14d, %edx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	movq	(%r13), %rax
	movl	(%rax), %eax
	movq	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%r14d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	movq	_WINED3D_PSARGS_PROJECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.5(%rip), %rsi
	leaq	-96(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.8(%rip), %rsi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_3:
	movq	$0, (%rsp)
	leaq	L_.str.9(%rip), %rcx
	leaq	-160(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_shader_hw_sample
	movq	(%rbx), %rax
	movq	_WINED3DSIH_TEXBEML@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.10(%rip), %rsi
	leaq	-224(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.11(%rip), %rsi
	leaq	-160(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fragment.texcoord[%u]"

L_.str.1:                               ## @.str.1
	.asciz	"SWZ TB, bumpenvmat%d, x, z, 0, 0;\n"

L_.str.2:                               ## @.str.2
	.asciz	"DP3 TA.x, TB, %s;\n"

L_.str.3:                               ## @.str.3
	.asciz	"SWZ TB, bumpenvmat%d, y, w, 0, 0;\n"

L_.str.4:                               ## @.str.4
	.asciz	"DP3 TA.y, TB, %s;\n"

	.comm	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT,4,2 ## @WINED3D_PSARGS_TEXTRANSFORM_SHIFT
	.comm	_WINED3D_PSARGS_PROJECTED,4,2   ## @WINED3D_PSARGS_PROJECTED
L_.str.5:                               ## @.str.5
	.asciz	"RCP TB.w, %s.w;\n"

L_.str.6:                               ## @.str.6
	.asciz	"MUL TB.xy, %s, TB.w;\n"

L_.str.7:                               ## @.str.7
	.asciz	"ADD TA.xy, TA, TB;\n"

L_.str.8:                               ## @.str.8
	.asciz	"ADD TA.xy, TA, %s;\n"

L_.str.9:                               ## @.str.9
	.asciz	"TA"

	.comm	_WINED3DSIH_TEXBEML,8,3         ## @WINED3DSIH_TEXBEML
L_.str.10:                              ## @.str.10
	.asciz	"MAD TA, %s.z, luminance%d.x, luminance%d.y;\n"

L_.str.11:                              ## @.str.11
	.asciz	"MUL %s, %s, TA;\n"

	.no_dead_strip	_pshader_hw_texbem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pshader_hw_texbem
_pshader_hw_texbem:                     ; @pshader_hw_texbem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldp	x1, x8, [x0, #16]
	ldp	x19, x22, [x8]
	ldr	x8, [x1]
	ldr	w21, [x8]
	add	x2, sp, #78
	bl	_shader_arb_get_dst_param
	ldr	x1, [x20, #8]
	add	x24, sp, #28
	add	x3, sp, #28
	mov	x0, x20
	mov	w2, #0
	bl	_shader_arb_get_src_param
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x23, x29, #96
	sub	x0, x29, #96
	mov	x2, x21
	bl	_sprintf
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x24, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	ldr	x8, [x22]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WINED3D_PSARGS_TEXTRANSFORM_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	mul	w9, w9, w21
	asr	w8, w8, w9
Lloh16:
	adrp	x9, _WINED3D_PSARGS_PROJECTED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WINED3D_PSARGS_PROJECTED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	str	x23, [sp]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	str	x23, [sp]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_3
LBB0_2:
	str	x23, [sp]
Lloh25:
	adrp	x1, l_.str.8@PAGE
Lloh26:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_shader_addline
Lloh27:
	adrp	x3, l_.str.9@PAGE
Lloh28:
	add	x3, x3, l_.str.9@PAGEOFF
	add	x22, sp, #78
	add	x2, sp, #78
	mov	x0, x20
	mov	x1, x21
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_shader_hw_sample
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _WINED3DSIH_TEXBEML@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WINED3DSIH_TEXBEML@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x21, [sp, #8]
	add	x8, sp, #28
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
	stp	x22, x22, [sp]
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_shader_addline
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fragment.texcoord[%u]"

l_.str.1:                               ; @.str.1
	.asciz	"SWZ TB, bumpenvmat%d, x, z, 0, 0;\n"

l_.str.2:                               ; @.str.2
	.asciz	"DP3 TA.x, TB, %s;\n"

l_.str.3:                               ; @.str.3
	.asciz	"SWZ TB, bumpenvmat%d, y, w, 0, 0;\n"

l_.str.4:                               ; @.str.4
	.asciz	"DP3 TA.y, TB, %s;\n"

	.comm	_WINED3D_PSARGS_TEXTRANSFORM_SHIFT,4,2 ; @WINED3D_PSARGS_TEXTRANSFORM_SHIFT
	.comm	_WINED3D_PSARGS_PROJECTED,4,2   ; @WINED3D_PSARGS_PROJECTED
l_.str.5:                               ; @.str.5
	.asciz	"RCP TB.w, %s.w;\n"

l_.str.6:                               ; @.str.6
	.asciz	"MUL TB.xy, %s, TB.w;\n"

l_.str.7:                               ; @.str.7
	.asciz	"ADD TA.xy, TA, TB;\n"

l_.str.8:                               ; @.str.8
	.asciz	"ADD TA.xy, TA, %s;\n"

l_.str.9:                               ; @.str.9
	.asciz	"TA"

	.comm	_WINED3DSIH_TEXBEML,8,3         ; @WINED3DSIH_TEXBEML
l_.str.10:                              ; @.str.10
	.asciz	"MAD TA, %s.z, luminance%d.x, luminance%d.y;\n"

l_.str.11:                              ; @.str.11
	.asciz	"MUL %s, %s, TA;\n"

	.no_dead_strip	_pshader_hw_texbem
.subsections_via_symbols
