	.file	"extr_i915_gem.c_i915_gem_init_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i915_gem_init_ioctl
	.type	i915_gem_init_ioctl, @function
i915_gem_init_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR DRIVER_MODESET[rip]
	mov	rbx, QWORD PTR 8[rdi]
	call	drm_core_check_feature@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR 0[r13]
	mov	edx, DWORD PTR 4[r13]
	cmp	eax, edx
	jge	.L4
	mov	ecx, DWORD PTR PAGE_SIZE[rip]
	or	eax, edx
	lea	r12d, -1[rcx]
	and	r12d, eax
	jne	.L4
	mov	rdi, rbp
	call	INTEL_INFO@PLT
	cmp	DWORD PTR [rax], 4
	jle	.L6
.L8:
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 4[r13]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	ecx, edx
	call	i915_gem_setup_global_gtt@PLT
	mov	eax, DWORD PTR 4[r13]
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i915_gem_init_ioctl, .-i915_gem_init_ioctl
	.comm	PAGE_SIZE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	DRIVER_MODESET,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_i915_gem.c_i915_gem_init_ioctl.c"
	.text
	.align	2
	.global	i915_gem_init_ioctl
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_gem_init_ioctl, %function
i915_gem_init_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [r3]
	mov	r6, r0
	ldr	r7, [r0, #4]
	bl	drm_core_check_feature
	cmp	r0, #0
	bne	.L8
	ldr	r4, [r5]
	ldr	r3, [r5, #4]
	cmp	r4, r3
	bge	.L4
	ldr	r2, .L10+4
	orr	r3, r4, r3
	ldr	r4, [r2]
	sub	r4, r4, #1
	ands	r4, r4, r3
	bne	.L4
	mov	r0, r6
	bl	INTEL_INFO
	ldr	r3, [r0]
	cmp	r3, #4
	ble	.L6
.L8:
	ldr	r3, .L10+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L10+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r6
	bl	mutex_lock
	ldm	r5, {r1, r3}
	mov	r0, r6
	mov	r2, r3
	bl	i915_gem_setup_global_gtt
	ldr	r3, [r5, #4]
	mov	r0, r6
	str	r3, [r7]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	DRIVER_MODESET
	.word	PAGE_SIZE
	.word	ENODEV
	.word	EINVAL
	.size	i915_gem_init_ioctl, .-i915_gem_init_ioctl
	.comm	PAGE_SIZE,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	DRIVER_MODESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
