	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function valleyview_irq_postinstall
_valleyview_irq_postinstall:            ## @valleyview_irq_postinstall
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	_PLANE_FLIP_DONE_INT_EN_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_I915_DISPLAY_PORT_INTERRUPT@GOTPCREL(%rip), %rax
	movq	_I915_DISPLAY_PIPE_A_EVENT_INTERRUPT@GOTPCREL(%rip), %rcx
	movq	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPCREL(%rip), %rdx
	movq	_I915_DISPLAY_PIPE_B_EVENT_INTERRUPT@GOTPCREL(%rip), %rsi
	movq	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rdx), %edi
	movl	(%rax), %ebx
	orl	%edi, %ebx
	orl	(%rcx), %ebx
	orl	(%rsi), %ebx
	movl	%ebx, %eax
	notl	%eax
	orl	%edi, %eax
	movl	%eax, (%r15)
	movq	16(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	$148, %esi
	movl	$-18874368, %edx                ## imm = 0xFEE00000
	callq	_pci_write_config_dword
	movl	(%r12), %edi
	leaq	-36(%rbp), %rdx
	movl	$152, %esi
	callq	_pci_read_config_word
	movzbl	-36(%rbp), %edx
	orl	$16384, %edx                    ## imm = 0x4000
	movl	%edx, -36(%rbp)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	$152, %esi
	callq	_pci_write_config_word
	movq	_PORT_HOTPLUG_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
	movq	_VLV_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_I915_WRITE
	movq	_VLV_IER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_VLV_IIR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_I915_WRITE
	xorl	%edi, %edi
	callq	_PIPESTAT
	movl	%eax, %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_I915_WRITE
	movl	$1, %edi
	callq	_PIPESTAT
	movl	%eax, %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_i915_enable_pipestat
	movq	_PIPE_GMBUS_EVENT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i915_enable_pipestat
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_i915_enable_pipestat
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	movl	$-1, %esi
	callq	_I915_WRITE
	movq	_GTIIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GTIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_I915_WRITE
	movq	_GT_USER_INTERRUPT@GOTPCREL(%rip), %rax
	movq	_GEN6_BSD_USER_INTERRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_GEN6_BLITTER_USER_INTERRUPT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_GTIER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	callq	_POSTING_READ
	movq	_VLV_MASTER_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MASTER_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_FLIP_DONE_INT_EN_VLV,4,2 ## @PLANE_FLIP_DONE_INT_EN_VLV
	.comm	_I915_DISPLAY_PORT_INTERRUPT,4,2 ## @I915_DISPLAY_PORT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_A_EVENT_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_A_EVENT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_EVENT_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_B_EVENT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT,4,2 ## @I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT
	.comm	_PORT_HOTPLUG_EN,4,2            ## @PORT_HOTPLUG_EN
	.comm	_VLV_IMR,4,2                    ## @VLV_IMR
	.comm	_VLV_IER,4,2                    ## @VLV_IER
	.comm	_VLV_IIR,4,2                    ## @VLV_IIR
	.comm	_PIPE_GMBUS_EVENT_ENABLE,4,2    ## @PIPE_GMBUS_EVENT_ENABLE
	.comm	_GTIIR,4,2                      ## @GTIIR
	.comm	_GTIMR,4,2                      ## @GTIMR
	.comm	_GT_USER_INTERRUPT,4,2          ## @GT_USER_INTERRUPT
	.comm	_GEN6_BSD_USER_INTERRUPT,4,2    ## @GEN6_BSD_USER_INTERRUPT
	.comm	_GEN6_BLITTER_USER_INTERRUPT,4,2 ## @GEN6_BLITTER_USER_INTERRUPT
	.comm	_GTIER,4,2                      ## @GTIER
	.comm	_VLV_MASTER_IER,4,2             ## @VLV_MASTER_IER
	.comm	_MASTER_INTERRUPT_ENABLE,4,2    ## @MASTER_INTERRUPT_ENABLE
	.comm	_DPINVGTT,4,2                   ## @DPINVGTT
	.comm	_DPINVGTT_EN_MASK,4,2           ## @DPINVGTT_EN_MASK
	.comm	_DPINVGTT_STATUS_MASK,4,2       ## @DPINVGTT_STATUS_MASK
	.no_dead_strip	_valleyview_irq_postinstall
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function valleyview_irq_postinstall
_valleyview_irq_postinstall:            ; @valleyview_irq_postinstall
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _PLANE_FLIP_DONE_INT_EN_VLV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLANE_FLIP_DONE_INT_EN_VLV@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _I915_DISPLAY_PORT_INTERRUPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I915_DISPLAY_PORT_INTERRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _I915_DISPLAY_PIPE_A_EVENT_INTERRUPT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I915_DISPLAY_PIPE_A_EVENT_INTERRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _I915_DISPLAY_PIPE_B_EVENT_INTERRUPT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _I915_DISPLAY_PIPE_B_EVENT_INTERRUPT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPAGE
Lloh16:
	ldr	x12, [x12, _I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w10, w12, w10
	orr	w8, w10, w8
	orr	w8, w8, w9
	orr	w21, w8, w11
	orn	w8, w10, w21
	str	w8, [x19]
	ldr	x8, [x19, #16]
	stp	xzr, xzr, [x8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #148
	mov	w2, #-18874368
	bl	_pci_write_config_dword
	ldr	w0, [x22]
	add	x2, sp, #12
	mov	w1, #152
	bl	_pci_read_config_word
	ldrb	w8, [sp, #12]
	orr	w2, w8, #0x4000
	str	w2, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #152
	bl	_pci_write_config_word
Lloh18:
	adrp	x22, _PORT_HOTPLUG_EN@GOTPAGE
Lloh19:
	ldr	x22, [x22, _PORT_HOTPLUG_EN@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
Lloh20:
	adrp	x8, _VLV_IMR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VLV_IMR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_I915_WRITE
Lloh23:
	adrp	x22, _VLV_IER@GOTPAGE
Lloh24:
	ldr	x22, [x22, _VLV_IER@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_I915_WRITE
Lloh25:
	adrp	x21, _VLV_IIR@GOTPAGE
Lloh26:
	ldr	x21, [x21, _VLV_IIR@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_I915_WRITE
	mov	w0, #0
	bl	_PIPESTAT
	mov	w1, #65535
	bl	_I915_WRITE
	mov	w0, #1
	bl	_PIPESTAT
	mov	w1, #65535
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_i915_enable_pipestat
Lloh27:
	adrp	x8, _PIPE_GMBUS_EVENT_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PIPE_GMBUS_EVENT_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_i915_enable_pipestat
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_i915_enable_pipestat
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_I915_WRITE
	ldr	w0, [x21]
	mov	w1, #-1
	bl	_I915_WRITE
Lloh30:
	adrp	x8, _GTIIR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GTIIR@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh33:
	adrp	x8, _GTIMR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GTIMR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_I915_WRITE
Lloh36:
	adrp	x8, _GT_USER_INTERRUPT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GT_USER_INTERRUPT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _GEN6_BSD_USER_INTERRUPT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _GEN6_BSD_USER_INTERRUPT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, _GEN6_BLITTER_USER_INTERRUPT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _GEN6_BLITTER_USER_INTERRUPT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh44:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh45:
	adrp	x19, _GTIER@GOTPAGE
Lloh46:
	ldr	x19, [x19, _GTIER@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_POSTING_READ
Lloh47:
	adrp	x8, _VLV_MASTER_IER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _VLV_MASTER_IER@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x8, _MASTER_INTERRUPT_ENABLE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MASTER_INTERRUPT_ENABLE@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_I915_WRITE
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_FLIP_DONE_INT_EN_VLV,4,2 ; @PLANE_FLIP_DONE_INT_EN_VLV
	.comm	_I915_DISPLAY_PORT_INTERRUPT,4,2 ; @I915_DISPLAY_PORT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_A_EVENT_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_A_EVENT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_A_VBLANK_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_EVENT_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_B_EVENT_INTERRUPT
	.comm	_I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT,4,2 ; @I915_DISPLAY_PIPE_B_VBLANK_INTERRUPT
	.comm	_PORT_HOTPLUG_EN,4,2            ; @PORT_HOTPLUG_EN
	.comm	_VLV_IMR,4,2                    ; @VLV_IMR
	.comm	_VLV_IER,4,2                    ; @VLV_IER
	.comm	_VLV_IIR,4,2                    ; @VLV_IIR
	.comm	_PIPE_GMBUS_EVENT_ENABLE,4,2    ; @PIPE_GMBUS_EVENT_ENABLE
	.comm	_GTIIR,4,2                      ; @GTIIR
	.comm	_GTIMR,4,2                      ; @GTIMR
	.comm	_GT_USER_INTERRUPT,4,2          ; @GT_USER_INTERRUPT
	.comm	_GEN6_BSD_USER_INTERRUPT,4,2    ; @GEN6_BSD_USER_INTERRUPT
	.comm	_GEN6_BLITTER_USER_INTERRUPT,4,2 ; @GEN6_BLITTER_USER_INTERRUPT
	.comm	_GTIER,4,2                      ; @GTIER
	.comm	_VLV_MASTER_IER,4,2             ; @VLV_MASTER_IER
	.comm	_MASTER_INTERRUPT_ENABLE,4,2    ; @MASTER_INTERRUPT_ENABLE
	.comm	_DPINVGTT,4,2                   ; @DPINVGTT
	.comm	_DPINVGTT_EN_MASK,4,2           ; @DPINVGTT_EN_MASK
	.comm	_DPINVGTT_STATUS_MASK,4,2       ; @DPINVGTT_STATUS_MASK
	.no_dead_strip	_valleyview_irq_postinstall
.subsections_via_symbols
