	.file	"extr_vmwgfx_shader.c_vmw_shader_define.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Couldn't find buffer for shader creation.\n"
	.align 8
.LC1:
	.string	"Illegal buffer- or shader size.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Illegal shader type.\n"
	.text
	.p2align 4
	.type	vmw_shader_define, @function
vmw_shader_define:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 112[rsp]
	mov	QWORD PTR [rsp], r8
	lea	r15, 16[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	vmw_priv@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	vmw_fpriv@PLT
	cmp	DWORD PTR SVGA3D_INVALID_ID[rip], r12d
	mov	r13, QWORD PTR [rax]
	mov	QWORD PTR 16[rsp], 0
	jne	.L15
.L2:
	cmp	ebx, 128
	je	.L6
	cmp	ebx, 129
	jne	.L16
	mov	ebx, DWORD PTR SVGA3D_SHADERTYPE_PS[rip]
.L9:
	mov	rdi, rbp
	mov	esi, 1
	call	ttm_read_lock@PLT
	xor	edi, edi
	test	eax, eax
	mov	r12d, eax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rdi, rbp
	mov	r8d, ebx
	mov	rcx, r14
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 112
	push	r13
	.cfi_def_cfa_offset 120
	mov	eax, DWORD PTR 128[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR 128[rsp]
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	call	vmw_user_shader_alloc@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	rdi, rbp
	mov	r12d, eax
	call	ttm_read_unlock@PLT
.L5:
	mov	rdi, r15
	call	vmw_bo_unreference@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	call	VMW_DEBUG_USER@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	xor	ecx, ecx
	mov	esi, r12d
	mov	rdi, r13
	mov	rdx, r15
	call	vmw_user_bo_lookup@PLT
	xor	edi, edi
	test	eax, eax
	mov	r12d, eax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L18
	mov	rdx, QWORD PTR 16[rsp]
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	ecx, DWORD PTR [rsp]
	imul	eax, DWORD PTR [rdx]
	lea	edx, [rcx+r14]
	cmp	eax, edx
	jge	.L2
	lea	rdi, .LC1[rip]
	call	VMW_DEBUG_USER@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ebx, DWORD PTR SVGA3D_SHADERTYPE_VS[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdi, .LC0[rip]
	call	VMW_DEBUG_USER@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vmw_shader_define, .-vmw_shader_define
	.comm	SVGA3D_SHADERTYPE_VS,4,4
	.comm	SVGA3D_SHADERTYPE_PS,4,4
	.comm	SVGA3D_INVALID_ID,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.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_vmwgfx_shader.c_vmw_shader_define.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't find buffer for shader creation.\012\000"
	.align	2
.LC1:
	.ascii	"Illegal buffer- or shader size.\012\000"
	.align	2
.LC2:
	.ascii	"Illegal shader type.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmw_shader_define, %function
vmw_shader_define:
	@ args = 20, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r3
	ldr	r3, .L19
	sub	sp, sp, #36
	mov	r7, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r8, [sp, #80]
	bl	vmw_priv
	mov	r6, r0
	mov	r0, r7
	bl	vmw_fpriv
	mov	r3, #0
	ldr	r2, .L19+4
	ldr	r9, [r0]
	ldr	r2, [r2]
	str	r3, [sp, #24]
	cmp	r2, r4
	add	r7, sp, #24
	bne	.L12
.L2:
	cmp	r5, #128
	beq	.L6
	cmp	r5, #129
	bne	.L16
	ldr	r3, .L19+8
	ldr	r5, [r3]
.L9:
	mov	r1, #1
	mov	r0, r6
	bl	ttm_read_lock
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L5
	ldr	r3, [sp, #76]
	mov	r0, r6
	str	r3, [sp, #8]
	ldr	r3, [sp, #72]
	ldr	r2, [sp, #64]
	str	r3, [sp, #4]
	ldr	r1, [sp, #24]
	ldr	r3, [sp, #68]
	str	r8, [sp, #16]
	str	r9, [sp, #12]
	str	r5, [sp]
	bl	vmw_user_shader_alloc
	mov	r4, r0
	mov	r0, r6
	bl	ttm_read_unlock
.L5:
	mov	r0, r7
	bl	vmw_bo_unreference
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r0, .L19+12
	bl	VMW_DEBUG_USER
	ldr	r3, .L19+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L12:
	mov	r1, r4
	mov	r2, r7
	mov	r0, r9
	bl	vmw_user_bo_lookup
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L18
	ldr	r2, .L19+20
	ldr	r3, [sp, #24]
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [sp, #64]
	mul	r3, r1, r3
	ldr	r0, [sp, #68]
	add	r2, r2, r0
	cmp	r3, r2
	bge	.L2
	ldr	r0, .L19+24
	bl	VMW_DEBUG_USER
	ldr	r3, .L19+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L5
.L6:
	ldr	r3, .L19+28
	ldr	r5, [r3]
	b	.L9
.L18:
	ldr	r0, .L19+32
	bl	VMW_DEBUG_USER
	b	.L1
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	SVGA3D_INVALID_ID
	.word	SVGA3D_SHADERTYPE_PS
	.word	.LC2
	.word	EINVAL
	.word	PAGE_SIZE
	.word	.LC1
	.word	SVGA3D_SHADERTYPE_VS
	.word	.LC0
	.size	vmw_shader_define, .-vmw_shader_define
	.comm	SVGA3D_SHADERTYPE_VS,4,4
	.comm	SVGA3D_SHADERTYPE_PS,4,4
	.comm	SVGA3D_INVALID_ID,4,4
	.comm	PAGE_SIZE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
