	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pshader_hw_bem
_pshader_hw_bem:                        ## @pshader_hw_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %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	8(%rdi), %rax
	movq	16(%rdi), %rsi
	movq	(%rax), %r15
	movq	(%rsi), %rax
	movslq	(%rax), %r12
	leaq	-112(%rbp), %r14
	movq	%r14, %rdx
	callq	_shader_arb_get_dst_param
	movq	(%rbx), %rsi
	addq	$4, %rsi
	leaq	-174(%rbp), %r13
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_shader_arb_get_src_param
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	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
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_shader_addline
	movq	(%rbx), %rsi
	leaq	-224(%rbp), %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_shader_arb_get_src_param
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_shader_addline
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SWZ TA, bumpenvmat%d, x, z, 0, 0;\n"

L_.str.1:                               ## @.str.1
	.asciz	"DP3 TC.r, TA, %s;\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"DP3 TC.g, TA, %s;\n"

L_.str.4:                               ## @.str.4
	.asciz	"ADD %s, %s, TC;\n"

	.no_dead_strip	_pshader_hw_bem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pshader_hw_bem
_pshader_hw_bem:                        ; @pshader_hw_bem
	.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	x8, x1, [x0, #8]
	ldr	x19, [x8]
	ldr	x8, [x1]
	ldrsw	x21, [x8]
	sub	x2, x29, #106
	bl	_shader_arb_get_dst_param
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x23, sp, #18
	add	x22, x23, #50
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	bl	_shader_arb_get_src_param
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_shader_addline
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_shader_addline
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_shader_addline
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_shader_addline
	ldr	x1, [x20]
	add	x3, sp, #18
	mov	x0, x20
	mov	w2, #0
	bl	_shader_arb_get_src_param
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #106
	mov	x0, x19
	bl	_shader_addline
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	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_2:
	bl	___stack_chk_fail
	.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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SWZ TA, bumpenvmat%d, x, z, 0, 0;\n"

l_.str.1:                               ; @.str.1
	.asciz	"DP3 TC.r, TA, %s;\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"DP3 TC.g, TA, %s;\n"

l_.str.4:                               ; @.str.4
	.asciz	"ADD %s, %s, TC;\n"

	.no_dead_strip	_pshader_hw_bem
.subsections_via_symbols
