	.file	"extr_context.c_context_set_render_offscreen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	context_set_render_offscreen, @function
context_set_render_offscreen:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdi], rsi
	je	.L6
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR STATE_VIEWPORT[rip]
	call	context_invalidate_state@PLT
	mov	esi, DWORD PTR STATE_SCISSORRECT[rip]
	mov	rdi, rbx
	call	context_invalidate_state@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR ARB_CLIP_CONTROL[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L10
.L3:
	mov	edi, DWORD PTR WINED3D_SHADER_TYPE_DOMAIN[rip]
	call	STATE_SHADER@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	context_invalidate_state@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR ARB_FRAGMENT_COORD_CONVENTIONS[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax+rdx*8], 0
	jne	.L11
	mov	QWORD PTR [rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR WINED3D_SHADER_TYPE_PIXEL[rip]
	call	STATE_SHADER@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	context_invalidate_state@PLT
	mov	QWORD PTR [rbx], rbp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR STATE_FRONTFACE[rip]
	mov	rdi, rbx
	call	context_invalidate_state@PLT
	mov	esi, DWORD PTR STATE_POINTSPRITECOORDORIGIN[rip]
	mov	rdi, rbx
	call	context_invalidate_state@PLT
	mov	edi, DWORD PTR WINED3D_TS_PROJECTION[rip]
	call	STATE_TRANSFORM@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	context_invalidate_state@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	context_set_render_offscreen, .-context_set_render_offscreen
	.comm	WINED3D_TS_PROJECTION,4,4
	.comm	WINED3D_SHADER_TYPE_PIXEL,4,4
	.comm	WINED3D_SHADER_TYPE_DOMAIN,4,4
	.comm	STATE_VIEWPORT,4,4
	.comm	STATE_SCISSORRECT,4,4
	.comm	STATE_POINTSPRITECOORDORIGIN,4,4
	.comm	STATE_FRONTFACE,4,4
	.comm	ARB_FRAGMENT_COORD_CONVENTIONS,8,8
	.comm	ARB_CLIP_CONTROL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_context.c_context_set_render_offscreen.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	context_set_render_offscreen, %function
context_set_render_offscreen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, r1
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L15
	mov	r5, r1
	ldr	r1, [r3]
	bl	context_invalidate_state
	ldr	r3, .L15+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	context_invalidate_state
	ldr	r3, [r4, #4]
	ldr	r2, .L15+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L13
.L3:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	bl	STATE_SHADER
	mov	r1, r0
	mov	r0, r4
	bl	context_invalidate_state
	ldr	r3, [r4, #4]
	ldr	r2, .L15+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L14
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, .L15+20
	ldr	r0, [r3]
	bl	STATE_SHADER
	mov	r1, r0
	mov	r0, r4
	bl	context_invalidate_state
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L15+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	context_invalidate_state
	ldr	r3, .L15+28
	mov	r0, r4
	ldr	r1, [r3]
	bl	context_invalidate_state
	ldr	r3, .L15+32
	ldr	r0, [r3]
	bl	STATE_TRANSFORM
	mov	r1, r0
	mov	r0, r4
	bl	context_invalidate_state
	b	.L3
.L16:
	.align	2
.L15:
	.word	STATE_VIEWPORT
	.word	STATE_SCISSORRECT
	.word	ARB_CLIP_CONTROL
	.word	WINED3D_SHADER_TYPE_DOMAIN
	.word	ARB_FRAGMENT_COORD_CONVENTIONS
	.word	WINED3D_SHADER_TYPE_PIXEL
	.word	STATE_FRONTFACE
	.word	STATE_POINTSPRITECOORDORIGIN
	.word	WINED3D_TS_PROJECTION
	.size	context_set_render_offscreen, .-context_set_render_offscreen
	.comm	WINED3D_TS_PROJECTION,4,4
	.comm	WINED3D_SHADER_TYPE_PIXEL,4,4
	.comm	WINED3D_SHADER_TYPE_DOMAIN,4,4
	.comm	STATE_VIEWPORT,4,4
	.comm	STATE_SCISSORRECT,4,4
	.comm	STATE_POINTSPRITECOORDORIGIN,4,4
	.comm	STATE_FRONTFACE,4,4
	.comm	ARB_FRAGMENT_COORD_CONVENTIONS,4,4
	.comm	ARB_CLIP_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
