	.file	"extr_drm_gem.c_drm_gem_mmap_single.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_gem_mmap_single
	.type	drm_gem_mmap_single, @function
drm_gem_mmap_single:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	DRM_LOCK@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	drm_gem_object_from_offset@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rax
	mov	r12, rax
	call	drm_gem_object_reference@PLT
	mov	rdi, rbp
	call	DRM_UNLOCK@PLT
	mov	rax, QWORD PTR curthread[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], ecx
	call	DRM_GEM_MAPPING_MAPOFF@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rdx, QWORD PTR 0[rbp]
	mov	r8d, r15d
	mov	ecx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR OBJT_MGTDEVICE[rip]
	mov	r9d, eax
	mov	rdi, r12
	push	rcx
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR [rdx]
	mov	ecx, r14d
	call	cdev_pager_allocate@PLT
	mov	rbp, rax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	rbp, rbp
	je	.L8
	mov	edi, DWORD PTR [rbx]
	call	DRM_GEM_MAPPING_MAPOFF@PLT
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	mov	QWORD PTR 0[r13], rbp
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	DRM_UNLOCK@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L8:
	.cfi_restore_state
	mov	rdi, r12
	call	drm_gem_object_unreference_unlocked@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	drm_gem_mmap_single, .-drm_gem_mmap_single
	.comm	curthread,8,8
	.comm	OBJT_MGTDEVICE,4,4
	.comm	ENODEV,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_drm_gem.c_drm_gem_mmap_single.c"
	.text
	.align	2
	.global	drm_gem_mmap_single
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_gem_mmap_single, %function
drm_gem_mmap_single:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	mov	r5, r0
	sub	sp, sp, #20
	mov	r8, r2
	mov	r7, r3
	bl	DRM_LOCK
	mov	r0, r5
	ldr	r1, [r4]
	bl	drm_gem_object_from_offset
	subs	r6, r0, #0
	beq	.L7
	bl	drm_gem_object_reference
	mov	r0, r5
	bl	DRM_UNLOCK
	ldr	r2, [r5]
	ldr	r3, .L9
	ldr	r0, [r4]
	ldr	r5, [r3]
	ldr	r9, [r2]
	bl	DRM_GEM_MAPPING_MAPOFF
	ldr	r3, .L9+4
	mov	r1, r5
	ldr	r3, [r3]
	mov	r2, r9
	ldr	ip, [r3]
	mov	r3, r8
	stmib	sp, {r0, ip}
	ldr	r0, [sp, #48]
	str	r0, [sp]
	mov	r0, r6
	bl	cdev_pager_allocate
	subs	r5, r0, #0
	beq	.L8
	ldr	r0, [r4]
	bl	DRM_GEM_MAPPING_MAPOFF
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4]
	str	r5, [r7]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	mov	r0, r5
	bl	DRM_UNLOCK
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	mov	r0, r6
	bl	drm_gem_object_unreference_unlocked
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	OBJT_MGTDEVICE
	.word	curthread
	.word	ENODEV
	.word	EINVAL
	.size	drm_gem_mmap_single, .-drm_gem_mmap_single
	.comm	curthread,4,4
	.comm	OBJT_MGTDEVICE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
