	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_cs_exec_set_depth_stencil_view
_wined3d_cs_exec_set_depth_stencil_view: ## @wined3d_cs_exec_set_depth_stencil_view
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	callq	_wined3d_rendertarget_view_get_surface
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%rax), %rdi
	testl	%edx, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_WINED3D_TEXTURE_DISCARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
LBB0_4:
	movl	8(%r15), %esi
	movq	_WINED3D_LOCATION_DISCARDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wined3d_texture_validate_location
LBB0_5:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	cmpq	(%rax), %rcx
	je	LBB0_11
## %bb.7:
	movq	_WINED3D_RS_DEPTHBIAS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	_WINED3D_RS_ZENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_RENDER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_device_invalidate_state
	movq	_WINED3D_RS_STENCILENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_RENDER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_device_invalidate_state
	movq	_WINED3D_RS_STENCILWRITEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_RENDER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_device_invalidate_state
	movq	_WINED3D_RS_DEPTHBIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_RENDER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_device_invalidate_state
	movq	_WINED3D_RS_DEPTHBIASCLAMP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_STATE_RENDER
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_device_invalidate_state
LBB0_11:
	movq	_STATE_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_invalidate_state        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL,4,2 ## @WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL
	.comm	_WINED3D_TEXTURE_DISCARD,4,2    ## @WINED3D_TEXTURE_DISCARD
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ## @WINED3D_LOCATION_DISCARDED
	.comm	_WINED3D_RS_ZENABLE,4,2         ## @WINED3D_RS_ZENABLE
	.comm	_WINED3D_RS_STENCILENABLE,4,2   ## @WINED3D_RS_STENCILENABLE
	.comm	_WINED3D_RS_STENCILWRITEMASK,4,2 ## @WINED3D_RS_STENCILWRITEMASK
	.comm	_WINED3D_RS_DEPTHBIAS,4,2       ## @WINED3D_RS_DEPTHBIAS
	.comm	_WINED3D_RS_DEPTHBIASCLAMP,4,2  ## @WINED3D_RS_DEPTHBIASCLAMP
	.comm	_STATE_FRAMEBUFFER,4,2          ## @STATE_FRAMEBUFFER
	.no_dead_strip	_wined3d_cs_exec_set_depth_stencil_view
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_cs_exec_set_depth_stencil_view
_wined3d_cs_exec_set_depth_stencil_view: ; @wined3d_cs_exec_set_depth_stencil_view
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldp	x8, x19, [x0, #8]
	ldr	x22, [x8]
	cbz	x22, LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_wined3d_rendertarget_view_get_surface
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x0, [x0]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _WINED3D_TEXTURE_DISCARD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3D_TEXTURE_DISCARD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	ldr	w1, [x22, #8]
Lloh6:
	adrp	x8, _WINED3D_LOCATION_DISCARDED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINED3D_LOCATION_DISCARDED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_wined3d_texture_validate_location
LBB0_5:
	ldr	x8, [x21]
	str	x8, [x20]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x22]
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_11
; %bb.7:
Lloh9:
	adrp	x8, _WINED3D_RS_DEPTHBIAS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3D_RS_DEPTHBIAS@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x21]
	str	x8, [x20]
	cbz	x8, LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _WINED3D_RS_ZENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3D_RS_ZENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x19
	bl	_device_invalidate_state
Lloh14:
	adrp	x8, _WINED3D_RS_STENCILENABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WINED3D_RS_STENCILENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x19
	bl	_device_invalidate_state
Lloh17:
	adrp	x8, _WINED3D_RS_STENCILWRITEMASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WINED3D_RS_STENCILWRITEMASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x19
	bl	_device_invalidate_state
Lloh20:
	adrp	x8, _WINED3D_RS_DEPTHBIAS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WINED3D_RS_DEPTHBIAS@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x19
	bl	_device_invalidate_state
Lloh23:
	adrp	x8, _WINED3D_RS_DEPTHBIASCLAMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WINED3D_RS_DEPTHBIASCLAMP@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x19
	bl	_device_invalidate_state
LBB0_11:
Lloh25:
	adrp	x8, _STATE_FRAMEBUFFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STATE_FRAMEBUFFER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_device_invalidate_state
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL,4,2 ; @WINED3D_SWAPCHAIN_DISCARD_DEPTHSTENCIL
	.comm	_WINED3D_TEXTURE_DISCARD,4,2    ; @WINED3D_TEXTURE_DISCARD
	.comm	_WINED3D_LOCATION_DISCARDED,4,2 ; @WINED3D_LOCATION_DISCARDED
	.comm	_WINED3D_RS_ZENABLE,4,2         ; @WINED3D_RS_ZENABLE
	.comm	_WINED3D_RS_STENCILENABLE,4,2   ; @WINED3D_RS_STENCILENABLE
	.comm	_WINED3D_RS_STENCILWRITEMASK,4,2 ; @WINED3D_RS_STENCILWRITEMASK
	.comm	_WINED3D_RS_DEPTHBIAS,4,2       ; @WINED3D_RS_DEPTHBIAS
	.comm	_WINED3D_RS_DEPTHBIASCLAMP,4,2  ; @WINED3D_RS_DEPTHBIASCLAMP
	.comm	_STATE_FRAMEBUFFER,4,2          ; @STATE_FRAMEBUFFER
	.no_dead_strip	_wined3d_cs_exec_set_depth_stencil_view
.subsections_via_symbols
