	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3d8_pixel_shader_init         ## -- Begin function d3d8_pixel_shader_init
	.p2align	4, 0x90
_d3d8_pixel_shader_init:                ## @d3d8_pixel_shader_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%ecx, 4(%rdi)
	movq	%rdx, -24(%rbp)
	movq	$-1, -72(%rbp)
	movq	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -56(%rbp)
	movq	$0, -40(%rbp)
	movl	$1, -64(%rbp)
	xorl	%eax, %eax
	callq	_wined3d_mutex_lock
	movl	(%r14), %edi
	movq	_d3d8_pixelshader_wined3d_parent_ops@GOTPCREL(%rip), %rcx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%rbx, %r8
	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	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1,4,2 ## @WINED3D_SHADER_BYTE_CODE_FORMAT_SM1
	.comm	_d3d8_pixelshader_wined3d_parent_ops,4,2 ## @d3d8_pixelshader_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create 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	_d3d8_pixel_shader_init         ; -- Begin function d3d8_pixel_shader_init
	.p2align	2
_d3d8_pixel_shader_init:                ; @d3d8_pixel_shader_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	str	w3, [x0, #4]
	str	x2, [sp, #56]
	mov	x8, #-1
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_SHADER_BYTE_CODE_FORMAT_SM1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #16]
	bl	_wined3d_mutex_lock
	ldr	w0, [x19]
Lloh3:
	adrp	x3, _d3d8_pixelshader_wined3d_parent_ops@GOTPAGE
Lloh4:
	ldr	x3, [x3, _d3d8_pixelshader_wined3d_parent_ops@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x2, x20
	mov	x4, x20
	bl	_wined3d_shader_create_ps
	mov	x19, x0
	bl	_wined3d_mutex_unlock
	mov	x0, x19
	bl	_FAILED
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_WARN
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SHADER_BYTE_CODE_FORMAT_SM1,4,2 ; @WINED3D_SHADER_BYTE_CODE_FORMAT_SM1
	.comm	_d3d8_pixelshader_wined3d_parent_ops,4,2 ; @d3d8_pixelshader_wined3d_parent_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create wined3d pixel shader, hr %#x.\n"

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