	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_irq_handler
_ironlake_irq_handler:                  ## @ironlake_irq_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movq	%rsi, %rdi
	callq	_intel_irqs_enabled
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_disable_rpm_wakeref_asserts
	movq	_DEIER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_DE_MASTER_IRQ_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	callq	_I915_WRITE
	movq	%r13, %rdi
	callq	_HAS_PCH_NOP
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_SDEIER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_GTIIR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_INTEL_GEN
	leaq	4(%r13), %rdi
	movl	%ebx, %esi
	cmpl	$6, %eax
	jl	LBB0_7
## %bb.6:
	callq	_gen6_gt_irq_handler
	jmp	LBB0_8
LBB0_1:
	movl	(%rbx), %r14d
	jmp	LBB0_18
LBB0_7:
	callq	_gen5_gt_irq_handler
LBB0_8:
	movq	_DEIIR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_INTEL_GEN
	movq	%r13, %rdi
	movl	%ebx, %esi
	cmpl	$7, %eax
	jl	LBB0_11
## %bb.10:
	callq	_ivb_display_irq_handler
	jmp	LBB0_12
LBB0_11:
	callq	_ilk_display_irq_handler
LBB0_12:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_15
## %bb.13:
	movq	_GEN6_PMIIR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_gen6_rps_irq_handler
LBB0_15:
	movq	_DEIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movq	%r13, %rdi
	callq	_HAS_PCH_NOP
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_SDEIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_I915_WRITE
LBB0_17:
	movq	%r13, %rdi
	callq	_enable_rpm_wakeref_asserts
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_DEIER,4,2                      ## @DEIER
	.comm	_DE_MASTER_IRQ_CONTROL,4,2      ## @DE_MASTER_IRQ_CONTROL
	.comm	_SDEIER,4,2                     ## @SDEIER
	.comm	_GTIIR,4,2                      ## @GTIIR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_DEIIR,4,2                      ## @DEIIR
	.comm	_GEN6_PMIIR,4,2                 ## @GEN6_PMIIR
	.no_dead_strip	_ironlake_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_irq_handler
_ironlake_irq_handler:                  ; @ironlake_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x21, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IRQ_NONE@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x1
	bl	_intel_irqs_enabled
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_disable_rpm_wakeref_asserts
Lloh2:
	adrp	x24, _DEIER@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DEIER@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_I915_READ
	mov	x21, x0
	ldr	w0, [x24]
Lloh4:
	adrp	x8, _DE_MASTER_IRQ_CONTROL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DE_MASTER_IRQ_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w21, w8
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HAS_PCH_NOP
	cbz	w0, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	ldr	w20, [x21]
	b	LBB0_19
LBB0_4:
Lloh7:
	adrp	x23, _SDEIER@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SDEIER@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_I915_READ
	mov	x22, x0
	ldr	w0, [x23]
	mov	w1, #0
	bl	_I915_WRITE
LBB0_5:
Lloh9:
	adrp	x26, _GTIIR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _GTIIR@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_I915_READ
Lloh11:
	adrp	x25, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x25, [x25, _IRQ_HANDLED@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.6:
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w20, [x25]
	mov	x0, x19
	bl	_INTEL_GEN
	mov	x8, x0
	add	x0, x19, #4
	mov	x1, x23
	cmp	w8, #6
	b.lt	LBB0_8
; %bb.7:
	bl	_gen6_gt_irq_handler
	b	LBB0_9
LBB0_8:
	bl	_gen5_gt_irq_handler
LBB0_9:
Lloh13:
	adrp	x26, _DEIIR@GOTPAGE
Lloh14:
	ldr	x26, [x26, _DEIIR@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_I915_READ
	cbz	w0, LBB0_13
; %bb.10:
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w20, [x25]
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #7
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x23
	bl	_ivb_display_irq_handler
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_ilk_display_irq_handler
LBB0_13:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_16
; %bb.14:
Lloh15:
	adrp	x26, _GEN6_PMIIR@GOTPAGE
Lloh16:
	ldr	x26, [x26, _GEN6_PMIIR@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_I915_READ
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x23
	bl	_I915_WRITE
	ldr	w20, [x25]
	mov	x0, x19
	mov	x1, x23
	bl	_gen6_rps_irq_handler
LBB0_16:
	ldr	w0, [x24]
	mov	x1, x21
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HAS_PCH_NOP
	cbnz	w0, LBB0_18
; %bb.17:
Lloh17:
	adrp	x8, _SDEIER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SDEIER@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_I915_WRITE
LBB0_18:
	mov	x0, x19
	bl	_enable_rpm_wakeref_asserts
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_DEIER,4,2                      ; @DEIER
	.comm	_DE_MASTER_IRQ_CONTROL,4,2      ; @DE_MASTER_IRQ_CONTROL
	.comm	_SDEIER,4,2                     ; @SDEIER
	.comm	_GTIIR,4,2                      ; @GTIIR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_DEIIR,4,2                      ; @DEIIR
	.comm	_GEN6_PMIIR,4,2                 ; @GEN6_PMIIR
	.no_dead_strip	_ironlake_irq_handler
.subsections_via_symbols
