	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_pfit_enable
_i9xx_pfit_enable:                      ## @i9xx_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, %rbx
	movl	8(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_to_i915
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_PFIT_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_I915_READ
	movq	_PFIT_ENABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_assert_pipe_disabled
	movq	_PFIT_PGM_RATIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	movl	(%rbx), %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_BCLRPAT
	movl	%eax, %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFIT_CONTROL,4,2               ## @PFIT_CONTROL
	.comm	_PFIT_ENABLE,4,2                ## @PFIT_ENABLE
	.comm	_PFIT_PGM_RATIOS,4,2            ## @PFIT_PGM_RATIOS
	.no_dead_strip	_i9xx_pfit_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_pfit_enable
_i9xx_pfit_enable:                      ; @i9xx_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	x20, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _PFIT_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PFIT_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_I915_READ
Lloh2:
	adrp	x8, _PFIT_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PFIT_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_WARN_ON
	ldr	w1, [x19]
	mov	x0, x21
	bl	_assert_pipe_disabled
Lloh5:
	adrp	x8, _PFIT_PGM_RATIOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PFIT_PGM_RATIOS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_I915_WRITE
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_BCLRPAT
	mov	w1, #0
	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_2:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIT_CONTROL,4,2               ; @PFIT_CONTROL
	.comm	_PFIT_ENABLE,4,2                ; @PFIT_ENABLE
	.comm	_PFIT_PGM_RATIOS,4,2            ; @PFIT_PGM_RATIOS
	.no_dead_strip	_i9xx_pfit_enable
.subsections_via_symbols
