	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_setup_target
_context_setup_target:                  ## @context_setup_target
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	leaq	8(%rsi), %r13
	movq	%r13, %rdi
	callq	_wined3d_resource_is_offscreen
	movq	16(%rbx), %rdi
	cmpq	%r15, %rdi
	je	LBB0_1
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	16(%rdi), %rcx
	movq	16(%r15), %rdx
	movq	(%rcx), %rsi
	cmpq	(%rdx), %rsi
	je	LBB0_13
## %bb.6:
	cmpq	$0, 8(%rcx)
	movq	8(%rdx), %rcx
	je	LBB0_8
## %bb.7:
	testq	%rcx, %rcx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	cmpl	%r14d, 8(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	%r12, %rax
	jne	LBB0_3
## %bb.21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_WINED3D_RS_ALPHABLENDENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %r12
	callq	_STATE_RENDER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	%r12, %rax
	jmp	LBB0_20
LBB0_8:
	testq	%rcx, %rcx
	jne	LBB0_10
LBB0_9:
	movl	(%r13), %ecx
	movq	_WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_11
LBB0_10:
	movq	_WINED3D_RS_ALPHABLENDENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_STATE_RENDER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rbx), %rdi
	movl	(%r13), %ecx
LBB0_11:
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rdx
	xorl	8(%rdi), %ecx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	_WINED3D_RS_SRGBWRITEENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %r13
	callq	_STATE_RENDER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	%r13, %rax
LBB0_13:
	movq	_wined3d_settings@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_ORM_FBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_20
## %bb.14:
	testq	%r12, %r12
	je	LBB0_20
## %bb.15:
	movq	16(%rbx), %r13
	movl	8(%rbx), %r12d
	cmpq	%r15, %r13
	jne	LBB0_17
## %bb.16:
	cmpl	%r14d, %r12d
	je	LBB0_20
LBB0_17:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%r13)
	je	LBB0_19
## %bb.18:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_wined3d_texture_load
LBB0_19:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_wined3d_texture_load
	movq	_WINED3D_LOCATION_DRAWABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_wined3d_texture_invalidate_location
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_20:
	movq	%r15, 16(%rbx)
	movl	%r14d, 8(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_set_render_offscreen   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_RS_ALPHABLENDENABLE,4,2 ## @WINED3D_RS_ALPHABLENDENABLE
	.comm	_WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING,4,2 ## @WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ## @WINED3DFMT_FLAG_SRGB_WRITE
	.comm	_WINED3D_RS_SRGBWRITEENABLE,4,2 ## @WINED3D_RS_SRGBWRITEENABLE
	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_LOCATION_DRAWABLE,4,2  ## @WINED3D_LOCATION_DRAWABLE
	.no_dead_strip	_context_setup_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_setup_target
_context_setup_target:                  ; @context_setup_target
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x24, [x0]
	add	x23, x1, #8
	mov	x0, x23
	bl	_wined3d_resource_is_offscreen
	mov	x22, x0
	ldr	x8, [x20, #16]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x20, #8]
	cmp	w9, w19
	ccmp	x22, x24, #0, eq
	b.eq	LBB0_7
LBB0_2:
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x8, #16]
	ldr	x10, [x21, #16]
	ldr	x11, [x9]
	ldr	x12, [x10]
	cmp	x11, x12
	b.eq	LBB0_13
; %bb.4:
	ldr	x11, [x9, #8]
	ldr	x9, [x10, #8]
	cbz	x11, LBB0_8
; %bb.5:
	cbnz	x9, LBB0_9
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _WINED3D_RS_ALPHABLENDENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WINED3D_RS_ALPHABLENDENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
	b	LBB0_19
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbnz	x9, LBB0_10
LBB0_9:
	ldr	w9, [x23]
Lloh3:
	adrp	x10, _WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _WINED3D_RS_ALPHABLENDENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WINED3D_RS_ALPHABLENDENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
	ldr	x8, [x20, #16]
	ldr	w9, [x23]
LBB0_11:
	ldr	w8, [x8, #8]
Lloh9:
	adrp	x10, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	eor	w8, w9, w8
	tst	w8, w10
	b.eq	LBB0_13
; %bb.12:
Lloh12:
	adrp	x8, _WINED3D_RS_SRGBWRITEENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WINED3D_RS_SRGBWRITEENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_STATE_RENDER
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
LBB0_13:
Lloh15:
	adrp	x8, _wined3d_settings@GOTPAGE
Lloh16:
	ldr	x8, [x8, _wined3d_settings@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _ORM_FBO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ORM_FBO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x24, #0, #4, ne
	b.eq	LBB0_19
; %bb.14:
	ldr	x23, [x20, #16]
	ldr	w24, [x20, #8]
	cmp	x23, x21
	b.ne	LBB0_16
; %bb.15:
	cmp	w24, w19
	b.eq	LBB0_19
LBB0_16:
	ldr	x8, [x23]
	cbz	x8, LBB0_18
; %bb.17:
Lloh21:
	adrp	x8, _TRUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x20
	bl	_wined3d_texture_load
LBB0_18:
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x20
	bl	_wined3d_texture_load
Lloh27:
	adrp	x8, _WINED3D_LOCATION_DRAWABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WINED3D_LOCATION_DRAWABLE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_wined3d_texture_invalidate_location
LBB0_19:
	str	x21, [x20, #16]
	str	w19, [x20, #8]
	mov	x0, x20
	mov	x1, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_context_set_render_offscreen
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_RS_ALPHABLENDENABLE,4,2 ; @WINED3D_RS_ALPHABLENDENABLE
	.comm	_WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING,4,2 ; @WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ; @WINED3DFMT_FLAG_SRGB_WRITE
	.comm	_WINED3D_RS_SRGBWRITEENABLE,4,2 ; @WINED3D_RS_SRGBWRITEENABLE
	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_LOCATION_DRAWABLE,4,2  ; @WINED3D_LOCATION_DRAWABLE
	.no_dead_strip	_context_setup_target
.subsections_via_symbols
