	.file	"extr_msm_gem.c__msm_gem_kernel_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_msm_gem_kernel_new, @function
_msm_gem_kernel_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, r9
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r14d, DWORD PTR 48[rsp]
	mov	rbx, r8
	mov	ecx, r14d
	call	_msm_gem_new@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	test	r12, r12
	je	.L7
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	msm_gem_get_and_pin_iova@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
.L7:
	mov	rdi, rbp
	call	msm_gem_get_vaddr@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	test	rbx, rbx
	je	.L1
	mov	QWORD PTR [rbx], rbp
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	msm_gem_unpin_iova@PLT
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r12d, eax
.L6:
	mov	rdi, rbp
	test	r14d, r14d
	jne	.L19
	call	drm_gem_object_put_unlocked@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_CAST@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	drm_gem_object_put@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	_msm_gem_kernel_new, .-_msm_gem_kernel_new
	.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_msm_gem.c__msm_gem_kernel_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_msm_gem_kernel_new, %function
_msm_gem_kernel_new:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [sp, #32]
	mov	r5, r3
	mov	r3, r7
	ldr	r8, [sp, #24]
	ldr	r6, [sp, #28]
	bl	_msm_gem_new
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	cmp	r6, #0
	beq	.L7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	bl	msm_gem_get_and_pin_iova
	subs	r6, r0, #0
	bne	.L6
.L7:
	mov	r0, r4
	bl	msm_gem_get_vaddr
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	cmp	r8, #0
	mov	r0, r6
	strne	r4, [r8]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r1, r5
	mov	r0, r4
	bl	msm_gem_unpin_iova
	mov	r0, r6
	bl	PTR_ERR
	mov	r6, r0
.L6:
	cmp	r7, #0
	mov	r0, r4
	bne	.L19
	bl	drm_gem_object_put_unlocked
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
.L17:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_CAST
.L19:
	bl	drm_gem_object_put
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
	.size	_msm_gem_kernel_new, .-_msm_gem_kernel_new
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
