	.file	"extr_view.c_create_texture_view.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"OpenGL implementation does not support texture views.\n"
	.align 8
.LC1:
	.string	"Depth slice (%u-%u) not supported.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Create texture view"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"OpenGL implementation does not support stencil texturing.\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Initialize stencil view"
	.text
	.p2align 4
	.type	create_texture_view, @function
create_texture_view:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rdi], rsi
	mov	edi, DWORD PTR [rcx]
	mov	QWORD PTR [rsp], rsi
	xor	esi, esi
	call	context_acquire@PLT
	mov	rdx, QWORD PTR ARB_TEXTURE_VIEW[rip]
	mov	r14, QWORD PTR [rax]
	mov	rbp, rax
	mov	rax, QWORD PTR 24[r14]
	mov	esi, DWORD PTR [rax+rdx*4]
	test	esi, esi
	je	.L15
	mov	edx, DWORD PTR FALSE[rip]
	mov	rdi, r13
	mov	rsi, rbp
	call	wined3d_texture_prepare_texture@PLT
	mov	edx, DWORD PTR FALSE[rip]
	mov	rdi, r13
	mov	rsi, rbp
	call	wined3d_texture_get_texture_name@PLT
	mov	r8d, DWORD PTR [r12]
	mov	edx, DWORD PTR 4[r12]
	mov	r13d, eax
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR GL_TEXTURE_3D[rip], rax
	je	.L16
.L3:
	mov	DWORD PTR 12[rsp], edx
	lea	rsi, 8[rbx]
	mov	edi, 1
	mov	DWORD PTR [rsp], r8d
	call	[QWORD PTR 16[r14]]
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR [r15]
	mov	r9d, DWORD PTR 8[r12]
	mov	rsi, QWORD PTR [rbx]
	push	rdx
	.cfi_def_cfa_offset 88
	mov	r8d, DWORD PTR 8[rsp]
	mov	edx, r13d
	mov	edi, DWORD PTR 8[rbx]
	push	r8
	.cfi_def_cfa_offset 96
	mov	r8d, DWORD PTR 12[r12]
	call	glTextureView@PLT
	mov	edi, eax
	call	GL_EXTCALL@PLT
	lea	rdi, .LC2[rip]
	call	checkGLcall@PLT
	mov	rdi, r15
	call	is_stencil_view_format@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR 24[r14]
	mov	rdx, QWORD PTR ARB_STENCIL_TEXTURING[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	je	.L17
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	context_bind_texture@PLT
	mov	esi, DWORD PTR GL_TEXTURE_SWIZZLE_RGBA[rip]
	mov	rdi, QWORD PTR [rbx]
	lea	rdx, swizzle.2033[rip]
	call	[QWORD PTR 8[r14]]
	mov	edx, DWORD PTR GL_STENCIL_INDEX[rip]
	mov	esi, DWORD PTR GL_DEPTH_STENCIL_TEXTURE_MODE[rip]
	mov	rdi, QWORD PTR [rbx]
	call	[QWORD PTR [r14]]
	lea	rdi, .LC4[rip]
	call	checkGLcall@PLT
	mov	esi, DWORD PTR STATE_COMPUTE_SHADER_RESOURCE_BINDING[rip]
	mov	rdi, rbp
	call	context_invalidate_compute_state@PLT
	mov	esi, DWORD PTR STATE_GRAPHICS_SHADER_RESOURCE_BINDING[rip]
	mov	rdi, rbp
	call	context_invalidate_state@PLT
.L5:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	context_release@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	test	r8d, r8d
	jne	.L8
	cmp	edx, 1
	jne	.L8
	mov	edx, 1
	xor	r8d, r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	context_release@PLT
	lea	rdi, .LC0[rip]
.L13:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	FIXME@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, r8d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	FIXME@PLT
	mov	edx, 1
	xor	r8d, r8d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	context_release@PLT
	lea	rdi, .LC3[rip]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	create_texture_view, .-create_texture_view
	.section	.rodata
	.align 16
	.type	swizzle.2033, @object
	.size	swizzle.2033, 16
swizzle.2033:
	.long	128
	.long	129
	.long	128
	.long	128
	.comm	STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,4
	.comm	STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,4
	.comm	GL_TEXTURE_SWIZZLE_RGBA,4,4
	.comm	GL_TEXTURE_3D,8,8
	.comm	GL_STENCIL_INDEX,4,4
	.comm	GL_DEPTH_STENCIL_TEXTURE_MODE,4,4
	.comm	FALSE,4,4
	.comm	ARB_TEXTURE_VIEW,8,8
	.comm	ARB_STENCIL_TEXTURING,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_view.c_create_texture_view.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"OpenGL implementation does not support texture view"
	.ascii	"s.\012\000"
	.align	2
.LC1:
	.ascii	"Depth slice (%u-%u) not supported.\012\000"
	.align	2
.LC2:
	.ascii	"Create texture view\000"
	.align	2
.LC3:
	.ascii	"OpenGL implementation does not support stencil text"
	.ascii	"uring.\012\000"
	.align	2
.LC4:
	.ascii	"Initialize stencil view\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_texture_view, %function
create_texture_view:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r2
	mov	r2, #0
	str	r1, [r0]
	sub	sp, sp, #20
	mov	r4, r0
	mov	r8, r1
	ldr	r0, [r3]
	mov	r1, r2
	mov	r7, r3
	ldr	r10, [sp, #56]
	bl	context_acquire
	ldr	r3, .L16
	ldr	r9, [r0]
	ldr	r2, [r3]
	ldr	r3, [r9, #12]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L13
	mov	r5, r0
	ldr	fp, .L16+4
	mov	r1, r0
	ldr	r2, [fp]
	mov	r0, r7
	bl	wined3d_texture_prepare_texture
	mov	r0, r7
	ldr	r2, [fp]
	mov	r1, r5
	bl	wined3d_texture_get_texture_name
	ldr	r3, .L16+8
	mov	r7, r0
	ldr	r3, [r3]
	ldr	fp, [r6]
	cmp	r3, r8
	ldr	r8, [r6, #4]
	beq	.L14
.L3:
	ldr	r3, [r9, #8]
	add	r1, r4, #4
	mov	r0, #1
	blx	r3
	ldr	r1, [r6, #8]
	ldr	r3, [r6, #12]
	str	r8, [sp, #12]
	str	fp, [sp, #8]
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r2, r7
	ldr	r3, [r10]
	ldr	r1, [r4]
	ldr	r0, [r4, #4]
	bl	glTextureView
	bl	GL_EXTCALL
	ldr	r0, .L16+12
	bl	checkGLcall
	mov	r0, r10
	bl	is_stencil_view_format
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L16+16
	ldr	r3, [r9, #12]
	ldr	r2, [r2]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	beq	.L15
	ldm	r4, {r1, r2}
	mov	r0, r5
	bl	context_bind_texture
	ldr	r2, .L16+20
	ldr	r3, [r9, #4]
	ldr	r1, [r2]
	ldr	r0, [r4]
	ldr	r2, .L16+24
	blx	r3
	ldr	r2, .L16+28
	ldr	r1, .L16+32
	ldr	r3, [r9]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r4]
	blx	r3
	ldr	r0, .L16+36
	bl	checkGLcall
	ldr	r3, .L16+40
	mov	r0, r5
	ldr	r1, [r3]
	bl	context_invalidate_compute_state
	ldr	r3, .L16+44
	mov	r0, r5
	ldr	r1, [r3]
	bl	context_invalidate_state
.L4:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	context_release
.L14:
	subs	r3, r8, #1
	movne	r3, #1
	cmp	fp, #0
	movne	r3, #1
	cmp	r3, #0
	moveq	fp, r3
	moveq	r8, #1
	beq	.L3
	mov	r2, r8
	mov	r1, fp
	ldr	r0, .L16+48
	bl	FIXME
	mov	r8, #1
	mov	fp, #0
	b	.L3
.L13:
	bl	context_release
	ldr	r0, .L16+52
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	FIXME
.L15:
	mov	r0, r5
	bl	context_release
	ldr	r0, .L16+56
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	FIXME
.L17:
	.align	2
.L16:
	.word	ARB_TEXTURE_VIEW
	.word	FALSE
	.word	GL_TEXTURE_3D
	.word	.LC2
	.word	ARB_STENCIL_TEXTURING
	.word	GL_TEXTURE_SWIZZLE_RGBA
	.word	.LANCHOR0
	.word	GL_STENCIL_INDEX
	.word	GL_DEPTH_STENCIL_TEXTURE_MODE
	.word	.LC4
	.word	STATE_COMPUTE_SHADER_RESOURCE_BINDING
	.word	STATE_GRAPHICS_SHADER_RESOURCE_BINDING
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	create_texture_view, .-create_texture_view
	.comm	STATE_GRAPHICS_SHADER_RESOURCE_BINDING,4,4
	.comm	STATE_COMPUTE_SHADER_RESOURCE_BINDING,4,4
	.comm	GL_TEXTURE_SWIZZLE_RGBA,4,4
	.comm	GL_TEXTURE_3D,4,4
	.comm	GL_STENCIL_INDEX,4,4
	.comm	GL_DEPTH_STENCIL_TEXTURE_MODE,4,4
	.comm	FALSE,4,4
	.comm	ARB_TEXTURE_VIEW,4,4
	.comm	ARB_STENCIL_TEXTURING,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	swizzle.4317, %object
	.size	swizzle.4317, 16
swizzle.4317:
	.word	128
	.word	129
	.word	128
	.word	128
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
