	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_pfit_enable
_ironlake_pfit_enable:                  ## @ironlake_pfit_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_to_i915
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movl	(%rbx), %r14d
	movq	%rax, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	%r14d, %edi
	callq	_PF_CTL
	movl	%eax, %r12d
	movq	_PF_ENABLE@GOTPCREL(%rip), %rax
	movq	_PF_FILTER_MED_3x3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_PF_PIPE_SEL_IVB
	orl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
LBB0_5:
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_PF_WIN_POS
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	movl	%r14d, %edi
	callq	_PF_WIN_SZ
	movl	4(%r15), %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r14d, %edi
	callq	_PF_CTL
	movq	_PF_ENABLE@GOTPCREL(%rip), %rcx
	movq	_PF_FILTER_MED_3x3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, %edi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_ENABLE,4,2                  ## @PF_ENABLE
	.comm	_PF_FILTER_MED_3x3,4,2          ## @PF_FILTER_MED_3x3
	.no_dead_strip	_ironlake_pfit_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ironlake_pfit_enable
_ironlake_pfit_enable:                  ; @ironlake_pfit_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w0, [x0, #16]
	bl	_to_intel_crtc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w20, [x20]
	bl	_IS_IVYBRIDGE
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_IS_HASWELL
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_PF_CTL
	mov	x21, x0
Lloh0:
	adrp	x8, _PF_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PF_FILTER_MED_3x3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PF_FILTER_MED_3x3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
	mov	x0, x20
	bl	_PF_PIPE_SEL_IVB
	orr	w1, w22, w0
	mov	x0, x21
LBB0_4:
	bl	_I915_WRITE
	mov	x0, x20
	bl	_PF_WIN_POS
	ldr	w1, [x19]
	bl	_I915_WRITE
	mov	x0, x20
	bl	_PF_WIN_SZ
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x20
	bl	_PF_CTL
Lloh6:
	adrp	x8, _PF_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PF_FILTER_MED_3x3@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PF_FILTER_MED_3x3@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_ENABLE,4,2                  ; @PF_ENABLE
	.comm	_PF_FILTER_MED_3x3,4,2          ; @PF_FILTER_MED_3x3
	.no_dead_strip	_ironlake_pfit_enable
.subsections_via_symbols
