	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pixelshader_init               ## -- Begin function pixelshader_init
	.p2align	4, 0x90
_pixelshader_init:                      ## @pixelshader_init
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, (%rdi)
	movq	_d3d9_pixelshader_vtbl@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	%rdx, -32(%rbp)
	movq	$-1, -80(%rbp)
	movq	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movl	$3, -72(%rbp)
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	movl	4(%r14), %edi
	leaq	16(%r15), %r8
	movq	_d3d9_pixelshader_wined3d_parent_ops@GOTPCREL(%rip), %rcx
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdx
	callq	_wined3d_shader_create_ps
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_wined3d_mutex_unlock
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_WARN
	jmp	LBB0_3
LBB0_2:
	movq	%r14, 8(%r15)
	movq	%r14, %rdi
	callq	_IDirect3DDevice9Ex_AddRef
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_d3d9_pixelshader_vtbl,4,2      ## @d3d9_pixelshader_vtbl
	.comm	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1,4,2 ## @WINED3D_SHADER_BYTE_CODE_FORMAT_SM1
	.comm	_d3d9_pixelshader_wined3d_parent_ops,4,2 ## @d3d9_pixelshader_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to created wined3d pixel shader, hr %#x.\n"

	.comm	_D3D_OK,4,2                     ## @D3D_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pixelshader_init               ; -- Begin function pixelshader_init
	.p2align	2
_pixelshader_init:                      ; @pixelshader_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _d3d9_pixelshader_vtbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _d3d9_pixelshader_vtbl@GOTPAGEOFF]
	str	x8, [x0, #24]
	str	x2, [sp, #56]
	mov	x8, #-1
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
	mov	w8, #3
	str	w8, [sp, #16]
	bl	_wined3d_mutex_lock
	ldr	w0, [x19, #4]
	add	x4, x20, #16
Lloh5:
	adrp	x3, _d3d9_pixelshader_wined3d_parent_ops@GOTPAGE
Lloh6:
	ldr	x3, [x3, _d3d9_pixelshader_wined3d_parent_ops@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x2, x20
	bl	_wined3d_shader_create_ps
	mov	x21, x0
	bl	_wined3d_mutex_unlock
	mov	x0, x21
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_WARN
	b	LBB0_3
LBB0_2:
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_IDirect3DDevice9Ex_AddRef
Lloh9:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_d3d9_pixelshader_vtbl,4,2      ; @d3d9_pixelshader_vtbl
	.comm	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1,4,2 ; @WINED3D_SHADER_BYTE_CODE_FORMAT_SM1
	.comm	_d3d9_pixelshader_wined3d_parent_ops,4,2 ; @d3d9_pixelshader_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to created wined3d pixel shader, hr %#x.\n"

	.comm	_D3D_OK,4,2                     ; @D3D_OK
.subsections_via_symbols
