	.file	"extr_vmwgfx_execbuf.c_vmw_view_bindings_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"View not found.\n"
	.text
	.p2align 4
	.type	vmw_view_bindings_add, @function
vmw_view_bindings_add:
.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, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], esi
	mov	r15, QWORD PTR 128[rsp]
	mov	DWORD PTR 8[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	VMW_GET_CTX_NODE@PLT
	test	rax, rax
	je	.L2
	test	r12, r12
	je	.L4
	mov	rbx, rax
	lea	rax, [r12+r15]
	mov	QWORD PTR [rsp], rax
	mov	rax, r15
	neg	rax
	lea	r14, [r14+rax*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r13
	call	vmw_view_id_val_add@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
.L6:
	mov	eax, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR [rbx]
	mov	rcx, r15
	lea	rsi, 24[rsp]
	mov	rdx, rbp
	mov	QWORD PTR 16[rsp], r15
	add	r15, 1
	mov	DWORD PTR 40[rsp], eax
	mov	eax, DWORD PTR 8[rsp]
	mov	QWORD PTR 32[rsp], r12
	mov	DWORD PTR 24[rsp], eax
	mov	QWORD PTR 48[rsp], rbp
	call	vmw_binding_add@PLT
	cmp	r15, QWORD PTR [rsp]
	je	.L4
.L7:
	mov	rdx, QWORD PTR [r14+r15*8]
	cmp	rdx, QWORD PTR SVGA3D_INVALID_ID[rip]
	jne	.L17
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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, .LC0[rip]
	call	VMW_DEBUG_USER@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vmw_view_bindings_add, .-vmw_view_bindings_add
	.comm	SVGA3D_INVALID_ID,8,8
	.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_execbuf.c_vmw_view_bindings_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"View not found.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmw_view_bindings_add, %function
vmw_view_bindings_add:
	@ args = 12, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	sub	sp, sp, #36
	ldr	r3, .L19
	str	r2, [sp]
	mov	fp, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r10, r0
	ldr	r7, [sp, #72]
	ldr	r5, [sp, #76]
	ldr	r4, [sp, #80]
	bl	VMW_GET_CTX_NODE
	subs	r6, r0, #0
	beq	.L2
	cmp	r5, #0
	beq	.L4
	add	r3, r5, r4
	ldr	r9, .L19+4
	sub	r7, r7, #4
	str	r3, [sp, #4]
	b	.L7
.L17:
	mov	r1, fp
	mov	r0, r10
	bl	vmw_view_id_val_add
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
.L6:
	ldr	r0, [r6, #4]
	ldr	ip, [sp]
	mov	r3, r4
	str	r0, [sp, #20]
	mov	r2, r8
	ldr	r0, [r6]
	add	r1, sp, #12
	str	r4, [sp, #8]
	str	r5, [sp, #16]
	str	ip, [sp, #12]
	str	r8, [sp, #24]
	bl	vmw_binding_add
	ldr	r3, [sp, #4]
	add	r4, r4, #1
	cmp	r4, r3
	beq	.L4
.L7:
	ldr	r2, [r7, #4]!
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L17
	mov	r5, #0
	b	.L6
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, .L19+8
	bl	VMW_DEBUG_USER
	mov	r0, r5
	bl	PTR_ERR
	b	.L1
.L2:
	ldr	r3, .L19+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	SVGA3D_INVALID_ID
	.word	.LC0
	.word	EINVAL
	.size	vmw_view_bindings_add, .-vmw_view_bindings_add
	.comm	SVGA3D_INVALID_ID,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
