	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_set_render_offscreen
_context_set_render_offscreen:          ## @context_set_render_offscreen
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	%rsi, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_STATE_VIEWPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_context_invalidate_state
	movq	_STATE_SCISSORRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_context_invalidate_state
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_ARB_CLIP_CONTROL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_3
## %bb.2:
	movq	_STATE_FRONTFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_context_invalidate_state
	movq	_STATE_POINTSPRITECOORDORIGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_context_invalidate_state
	movq	_WINED3D_TS_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_TRANSFORM
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
LBB0_3:
	movq	_WINED3D_SHADER_TYPE_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_SHADER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_ARB_FRAGMENT_COORD_CONVENTIONS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.4:
	movq	_WINED3D_SHADER_TYPE_PIXEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STATE_SHADER
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_context_invalidate_state
LBB0_5:
	movq	%r14, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATE_VIEWPORT,4,2             ## @STATE_VIEWPORT
	.comm	_STATE_SCISSORRECT,4,2          ## @STATE_SCISSORRECT
	.comm	_ARB_CLIP_CONTROL,8,3           ## @ARB_CLIP_CONTROL
	.comm	_STATE_FRONTFACE,4,2            ## @STATE_FRONTFACE
	.comm	_STATE_POINTSPRITECOORDORIGIN,4,2 ## @STATE_POINTSPRITECOORDORIGIN
	.comm	_WINED3D_TS_PROJECTION,4,2      ## @WINED3D_TS_PROJECTION
	.comm	_WINED3D_SHADER_TYPE_DOMAIN,4,2 ## @WINED3D_SHADER_TYPE_DOMAIN
	.comm	_ARB_FRAGMENT_COORD_CONVENTIONS,8,3 ## @ARB_FRAGMENT_COORD_CONVENTIONS
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ## @WINED3D_SHADER_TYPE_PIXEL
	.no_dead_strip	_context_set_render_offscreen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_set_render_offscreen
_context_set_render_offscreen:          ; @context_set_render_offscreen
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STATE_VIEWPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATE_VIEWPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_context_invalidate_state
Lloh3:
	adrp	x8, _STATE_SCISSORRECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATE_SCISSORRECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_context_invalidate_state
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ARB_CLIP_CONTROL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARB_CLIP_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _STATE_FRONTFACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STATE_FRONTFACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_context_invalidate_state
Lloh12:
	adrp	x8, _STATE_POINTSPRITECOORDORIGIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATE_POINTSPRITECOORDORIGIN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_context_invalidate_state
Lloh15:
	adrp	x8, _WINED3D_TS_PROJECTION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WINED3D_TS_PROJECTION@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_STATE_TRANSFORM
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
LBB0_3:
Lloh18:
	adrp	x8, _WINED3D_SHADER_TYPE_DOMAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_DOMAIN@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_STATE_SHADER
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _ARB_FRAGMENT_COORD_CONVENTIONS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ARB_FRAGMENT_COORD_CONVENTIONS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WINED3D_SHADER_TYPE_PIXEL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_STATE_SHADER
	mov	x1, x0
	mov	x0, x20
	bl	_context_invalidate_state
LBB0_5:
	str	x19, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STATE_VIEWPORT,4,2             ; @STATE_VIEWPORT
	.comm	_STATE_SCISSORRECT,4,2          ; @STATE_SCISSORRECT
	.comm	_ARB_CLIP_CONTROL,8,3           ; @ARB_CLIP_CONTROL
	.comm	_STATE_FRONTFACE,4,2            ; @STATE_FRONTFACE
	.comm	_STATE_POINTSPRITECOORDORIGIN,4,2 ; @STATE_POINTSPRITECOORDORIGIN
	.comm	_WINED3D_TS_PROJECTION,4,2      ; @WINED3D_TS_PROJECTION
	.comm	_WINED3D_SHADER_TYPE_DOMAIN,4,2 ; @WINED3D_SHADER_TYPE_DOMAIN
	.comm	_ARB_FRAGMENT_COORD_CONVENTIONS,8,3 ; @ARB_FRAGMENT_COORD_CONVENTIONS
	.comm	_WINED3D_SHADER_TYPE_PIXEL,4,2  ; @WINED3D_SHADER_TYPE_PIXEL
	.no_dead_strip	_context_set_render_offscreen
.subsections_via_symbols
