	.file	"extr_intel_display.c_intel_modeset_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"s"
.LC1:
	.string	""
.LC2:
	.string	"%d display pipe%s available.\n"
.LC3:
	.string	"plane %d init failed: %d\n"
	.text
	.p2align 4
	.globl	intel_modeset_init
	.type	intel_modeset_init, @function
intel_modeset_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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	r12, QWORD PTR 48[rdi]
	call	drm_mode_config_init@PLT
	mov	QWORD PTR 40[rbp], 0
	mov	rdi, rbp
	movabs	rax, 4294967320
	mov	QWORD PTR 0[rbp], rax
	lea	rax, intel_mode_funcs[rip]
	mov	QWORD PTR 32[rbp], 0
	mov	QWORD PTR 24[rbp], rax
	call	intel_init_quirks@PLT
	mov	rdi, rbp
	call	intel_init_pm@PLT
	mov	rdi, rbp
	call	intel_init_display@PLT
	mov	rdi, rbp
	call	IS_GEN2@PLT
	test	rax, rax
	je	.L2
	movabs	rax, 8796093024256
	mov	QWORD PTR 8[rbp], rax
.L3:
	mov	eax, DWORD PTR 4[r12]
	mov	esi, DWORD PTR [r12]
	lea	rdx, .LC0[rip]
	lea	rdi, .LC2[rip]
	cmp	esi, 1
	mov	DWORD PTR 16[rbp], eax
	lea	rax, .LC1[rip]
	cmovle	rdx, rax
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	mov	eax, DWORD PTR [r12]
	test	eax, eax
	jle	.L6
	xor	ebx, ebx
	lea	r13, .LC3[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L6
.L8:
	mov	esi, ebx
	mov	rdi, rbp
	call	intel_crtc_init@PLT
	mov	esi, ebx
	mov	rdi, rbp
	call	intel_plane_init@PLT
	test	eax, eax
	je	.L7
	mov	edx, eax
	mov	esi, ebx
	mov	rdi, r13
	xor	eax, eax
	call	DRM_DEBUG_KMS@PLT
	add	ebx, 1
	cmp	DWORD PTR [r12], ebx
	jg	.L8
.L6:
	mov	rdi, rbp
	call	intel_cpu_pll_init@PLT
	mov	rdi, rbp
	call	intel_pch_pll_init@PLT
	mov	rdi, rbp
	call	i915_disable_vga@PLT
	mov	rdi, rbp
	call	intel_setup_outputs@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	intel_disable_fbc@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	IS_GEN3@PLT
	movabs	rdx, 35184372097024
	test	rax, rax
	movabs	rax, 17592186048512
	cmove	rax, rdx
	mov	QWORD PTR 8[rbp], rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	intel_modeset_init, .-intel_modeset_init
	.comm	intel_mode_funcs,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_intel_display.c_intel_modeset_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"s\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"%d display pipe%s available.\012\000"
	.align	2
.LC3:
	.ascii	"plane %d init failed: %d\012\000"
	.text
	.align	2
	.global	intel_modeset_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_modeset_init, %function
intel_modeset_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r6, [r0, #32]
	bl	drm_mode_config_init
	mov	r3, #0
	mov	r1, #1
	mov	r0, #24
	ldr	r2, .L16
	stm	r5, {r0, r1}
	str	r2, [r5, #20]
	str	r3, [r5, #28]
	str	r3, [r5, #24]
	mov	r0, r5
	bl	intel_init_quirks
	mov	r0, r5
	bl	intel_init_pm
	mov	r0, r5
	bl	intel_init_display
	mov	r0, r5
	bl	IS_GEN2
	cmp	r0, #0
	beq	.L2
	mov	r3, #2048
	str	r3, [r5, #8]
	str	r3, [r5, #12]
.L3:
	ldr	r1, [r6]
	ldr	r0, [r6, #4]
	ldr	r3, .L16+4
	cmp	r1, #1
	ldr	r2, .L16+8
	str	r0, [r5, #16]
	movle	r2, r3
	ldr	r0, .L16+12
	bl	DRM_DEBUG_KMS
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L6
	mov	r4, #0
	ldr	r7, .L16+16
	b	.L8
.L7:
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L6
.L8:
	mov	r1, r4
	mov	r0, r5
	bl	intel_crtc_init
	mov	r1, r4
	mov	r0, r5
	bl	intel_plane_init
	subs	r2, r0, #0
	beq	.L7
	mov	r1, r4
	mov	r0, r7
	bl	DRM_DEBUG_KMS
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L8
.L6:
	mov	r0, r5
	bl	intel_cpu_pll_init
	mov	r0, r5
	bl	intel_pch_pll_init
	mov	r0, r5
	bl	i915_disable_vga
	mov	r0, r5
	bl	intel_setup_outputs
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	intel_disable_fbc
.L2:
	mov	r0, r5
	bl	IS_GEN3
	cmp	r0, #0
	movne	r3, #4096
	moveq	r3, #8192
	str	r3, [r5, #8]
	str	r3, [r5, #12]
	b	.L3
.L17:
	.align	2
.L16:
	.word	intel_mode_funcs
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	intel_modeset_init, .-intel_modeset_init
	.comm	intel_mode_funcs,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
