	.file	"extr_i915_irq.c_intel_irq_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	intel_irq_init
	.type	intel_irq_init, @function
intel_irq_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	IS_I945GM@PLT
	test	rax, rax
	jne	.L31
.L2:
	mov	rdi, rbx
	call	intel_hpd_init_work@PLT
	mov	esi, DWORD PTR gen6_pm_rps_work[rip]
	lea	rdi, 44[rbx]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR ivybridge_parity_work[rip]
	lea	rdi, 32[rbx]
	call	INIT_WORK@PLT
	mov	edx, DWORD PTR MAX_L3_SLICES[rip]
	test	edx, edx
	jle	.L3
	mov	rax, QWORD PTR 24[rbx]
	sub	edx, 1
	lea	rdx, 8[rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rax, rdx
	jne	.L4
.L3:
	mov	rdi, rbx
	call	HAS_GT_UC@PLT
	test	rax, rax
	jne	.L32
.L6:
	mov	rdi, rbx
	call	IS_VALLEYVIEW@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR GEN6_PM_RP_UP_EI_EXPIRED[rip]
	mov	rdi, rbx
	mov	DWORD PTR [rbx], eax
	call	INTEL_GEN@PLT
	cmp	eax, 9
	jg	.L33
.L10:
	mov	DWORD PTR 40[rbx], 0
	mov	rdi, rbx
	call	INTEL_GEN@PLT
	cmp	eax, 7
	jg	.L11
	mov	eax, DWORD PTR GEN6_PM_RP_UP_EI_EXPIRED[rip]
	or	DWORD PTR 40[rbx], eax
.L11:
	mov	rdi, rbx
	call	INTEL_GEN@PLT
	cmp	eax, 7
	jle	.L12
	mov	eax, DWORD PTR GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC[rip]
	or	DWORD PTR 40[rbx], eax
.L12:
	mov	DWORD PTR 48[rbx], 1
	mov	rdi, rbx
	mov	DWORD PTR 4[rbx], 1
	call	IS_VALLEYVIEW@PLT
	test	rax, rax
	je	.L13
.L15:
	mov	DWORD PTR 4[rbx], 0
.L14:
	mov	eax, DWORD PTR HPD_STORM_DEFAULT_THRESHOLD[rip]
	mov	rdi, rbx
	mov	DWORD PTR 16[rbx], eax
	call	HAS_DP_MST@PLT
	mov	rdi, rbx
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR 12[rbx], eax
	call	HAS_GMCH@PLT
	mov	rdi, rbx
	test	rax, rax
	je	.L16
	call	I915_HAS_HOTPLUG@PLT
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR i915_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	call	HAS_PCH_MCC@PLT
	test	rax, rax
	je	.L18
	mov	eax, DWORD PTR mcc_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR GEN6_PM_RP_UP_THRESHOLD[rip]
	or	eax, DWORD PTR GEN6_PM_RP_DOWN_THRESHOLD[rip]
	mov	rdi, rbx
	or	eax, DWORD PTR GEN6_PM_RP_DOWN_TIMEOUT[rip]
	mov	DWORD PTR [rbx], eax
	call	INTEL_GEN@PLT
	cmp	eax, 9
	jle	.L10
.L33:
	mov	edi, DWORD PTR [rbx]
	xor	di, di
	call	GEM_WARN_ON@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbx
	call	IS_CHERRYVIEW@PLT
	test	rax, rax
	jne	.L15
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, rbx
	call	i945gm_vblank_work_init@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbx
	call	INTEL_GEN@PLT
	cmp	eax, 10
	jg	.L6
	mov	eax, DWORD PTR GUC_INTR_GUC2HOST[rip]
	sal	eax, 16
	mov	DWORD PTR 20[rbx], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, rbx
	call	INTEL_GEN@PLT
	cmp	eax, 10
	jle	.L19
	mov	eax, DWORD PTR gen11_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	mov	rdi, rbx
	call	IS_GEN9_LP@PLT
	test	rax, rax
	je	.L20
	mov	eax, DWORD PTR bxt_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	mov	rdi, rbx
	call	INTEL_PCH_TYPE@PLT
	cmp	rax, QWORD PTR PCH_SPT[rip]
	jl	.L21
	mov	eax, DWORD PTR spt_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	mov	eax, DWORD PTR ilk_hpd_irq_setup[rip]
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	intel_irq_init, .-intel_irq_init
	.comm	spt_hpd_irq_setup,4,4
	.comm	mcc_hpd_irq_setup,4,4
	.comm	ivybridge_parity_work,4,4
	.comm	ilk_hpd_irq_setup,4,4
	.comm	i915_hpd_irq_setup,4,4
	.comm	gen6_pm_rps_work,4,4
	.comm	gen11_hpd_irq_setup,4,4
	.comm	bxt_hpd_irq_setup,4,4
	.comm	PCH_SPT,8,8
	.comm	MAX_L3_SLICES,4,4
	.comm	HPD_STORM_DEFAULT_THRESHOLD,4,4
	.comm	GUC_INTR_GUC2HOST,4,4
	.comm	GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC,4,4
	.comm	GEN6_PM_RP_UP_THRESHOLD,4,4
	.comm	GEN6_PM_RP_UP_EI_EXPIRED,4,4
	.comm	GEN6_PM_RP_DOWN_TIMEOUT,4,4
	.comm	GEN6_PM_RP_DOWN_THRESHOLD,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_irq.c_intel_irq_init.c"
	.text
	.align	2
	.global	intel_irq_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_irq_init, %function
intel_irq_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	IS_I945GM
	cmp	r0, #0
	bne	.L31
.L2:
	mov	r0, r4
	bl	intel_hpd_init_work
	ldr	r3, .L34
	add	r0, r4, #36
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L34+4
	add	r0, r4, #28
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L34+8
	ldr	r2, [r3]
	cmp	r2, #0
	ble	.L3
	mov	r1, #0
	ldr	r3, [r4, #24]
	add	r2, r3, r2, lsl #2
	sub	r2, r2, #4
	sub	r3, r3, #4
.L4:
	str	r1, [r3, #4]!
	cmp	r3, r2
	bne	.L4
.L3:
	mov	r0, r4
	bl	HAS_GT_UC
	cmp	r0, #0
	bne	.L32
.L6:
	mov	r0, r4
	bl	IS_VALLEYVIEW
	cmp	r0, #0
	ldreq	r3, .L34+12
	ldreq	r1, .L34+16
	ldreq	r2, .L34+20
	ldreq	r3, [r3]
	ldrne	r3, .L34+24
	ldreq	r1, [r1]
	ldreq	r2, [r2]
	orreq	r3, r3, r1
	ldrne	r3, [r3]
	orreq	r3, r3, r2
	mov	r0, r4
	str	r3, [r4]
	bl	INTEL_GEN
	cmp	r0, #9
	bgt	.L33
.L10:
	mov	r3, #0
	mov	r0, r4
	str	r3, [r4, #32]
	bl	INTEL_GEN
	cmp	r0, #7
	ldrle	r2, .L34+24
	ldrle	r3, [r4, #32]
	ldrle	r2, [r2]
	mov	r0, r4
	orrle	r3, r3, r2
	strle	r3, [r4, #32]
	bl	INTEL_GEN
	cmp	r0, #7
	ldrgt	r2, .L34+28
	ldrgt	r3, [r4, #32]
	ldrgt	r2, [r2]
	mov	r0, r4
	orrgt	r3, r3, r2
	strgt	r3, [r4, #32]
	mov	r3, #1
	str	r3, [r4, #40]
	str	r3, [r4, #4]
	bl	IS_VALLEYVIEW
	cmp	r0, #0
	beq	.L13
.L15:
	mov	r3, #0
	str	r3, [r4, #4]
.L14:
	ldr	r3, .L34+32
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [r4, #16]
	bl	HAS_DP_MST
	clz	r0, r0
	lsr	r0, r0, #5
	str	r0, [r4, #12]
	mov	r0, r4
	bl	HAS_GMCH
	cmp	r0, #0
	mov	r0, r4
	beq	.L16
	bl	I915_HAS_HOTPLUG
	cmp	r0, #0
	ldrne	r3, .L34+36
	ldrne	r3, [r3]
	strne	r3, [r4, #8]
	pop	{r4, pc}
.L16:
	bl	HAS_PCH_MCC
	cmp	r0, #0
	beq	.L18
	ldr	r3, .L34+40
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, pc}
.L13:
	mov	r0, r4
	bl	IS_CHERRYVIEW
	cmp	r0, #0
	bne	.L15
	b	.L14
.L31:
	mov	r0, r4
	bl	i945gm_vblank_work_init
	b	.L2
.L33:
	ldr	r0, [r4]
	lsr	r0, r0, #16
	lsl	r0, r0, #16
	bl	GEM_WARN_ON
	b	.L10
.L32:
	mov	r0, r4
	bl	INTEL_GEN
	cmp	r0, #10
	ldrle	r3, .L34+44
	ldrle	r3, [r3]
	lslle	r3, r3, #16
	strle	r3, [r4, #20]
	b	.L6
.L18:
	mov	r0, r4
	bl	INTEL_GEN
	cmp	r0, #10
	ble	.L19
	ldr	r3, .L34+48
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, pc}
.L19:
	mov	r0, r4
	bl	IS_GEN9_LP
	cmp	r0, #0
	beq	.L20
	ldr	r3, .L34+52
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, pc}
.L20:
	mov	r0, r4
	bl	INTEL_PCH_TYPE
	ldr	r3, .L34+56
	ldr	r3, [r3]
	cmp	r0, r3
	ldrge	r3, .L34+60
	ldrlt	r3, .L34+64
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, pc}
.L35:
	.align	2
.L34:
	.word	gen6_pm_rps_work
	.word	ivybridge_parity_work
	.word	MAX_L3_SLICES
	.word	GEN6_PM_RP_UP_THRESHOLD
	.word	GEN6_PM_RP_DOWN_THRESHOLD
	.word	GEN6_PM_RP_DOWN_TIMEOUT
	.word	GEN6_PM_RP_UP_EI_EXPIRED
	.word	GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC
	.word	HPD_STORM_DEFAULT_THRESHOLD
	.word	i915_hpd_irq_setup
	.word	mcc_hpd_irq_setup
	.word	GUC_INTR_GUC2HOST
	.word	gen11_hpd_irq_setup
	.word	bxt_hpd_irq_setup
	.word	PCH_SPT
	.word	spt_hpd_irq_setup
	.word	ilk_hpd_irq_setup
	.size	intel_irq_init, .-intel_irq_init
	.comm	spt_hpd_irq_setup,4,4
	.comm	mcc_hpd_irq_setup,4,4
	.comm	ivybridge_parity_work,4,4
	.comm	ilk_hpd_irq_setup,4,4
	.comm	i915_hpd_irq_setup,4,4
	.comm	gen6_pm_rps_work,4,4
	.comm	gen11_hpd_irq_setup,4,4
	.comm	bxt_hpd_irq_setup,4,4
	.comm	PCH_SPT,4,4
	.comm	MAX_L3_SLICES,4,4
	.comm	HPD_STORM_DEFAULT_THRESHOLD,4,4
	.comm	GUC_INTR_GUC2HOST,4,4
	.comm	GEN8_PMINTR_DISABLE_REDIRECT_TO_GUC,4,4
	.comm	GEN6_PM_RP_UP_THRESHOLD,4,4
	.comm	GEN6_PM_RP_UP_EI_EXPIRED,4,4
	.comm	GEN6_PM_RP_DOWN_TIMEOUT,4,4
	.comm	GEN6_PM_RP_DOWN_THRESHOLD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
