	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_get_pfit_config
_i9xx_get_pfit_config:                  ## @i9xx_get_pfit_config
	.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	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i9xx_has_pfit
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	_PFIT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	%rax, %r15
	movq	_PFIT_ENABLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$3, %eax
	jg	LBB0_4
## %bb.3:
	movl	(%r12), %eax
	movq	_PIPE_B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
	jmp	LBB0_6
LBB0_4:
	movq	_PFIT_PIPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movl	(%r12), %edx
	movq	_PFIT_PIPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	cmpl	%edx, %eax
	jne	LBB0_6
LBB0_5:
	movl	%r15d, (%r14)
	movq	_PFIT_PGM_RATIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	%rax, 8(%r14)
LBB0_6:
	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	_PIPE_B,4,2                     ## @PIPE_B
	.comm	_PFIT_PIPE_MASK,4,2             ## @PFIT_PIPE_MASK
	.comm	_PFIT_PIPE_SHIFT,4,2            ## @PFIT_PIPE_SHIFT
	.comm	_PFIT_PGM_RATIOS,4,2            ## @PFIT_PGM_RATIOS
	.no_dead_strip	_i9xx_get_pfit_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_get_pfit_config
_i9xx_get_pfit_config:                  ; @i9xx_get_pfit_config
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x22, x0
	bl	_i9xx_has_pfit
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _PFIT_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFIT_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	mov	x21, x0
Lloh3:
	adrp	x8, _PFIT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PFIT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_INTEL_GEN
	cmp	w0, #3
	b.gt	LBB0_4
; %bb.3:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_5
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _PFIT_PIPE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PFIT_PIPE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w21
	ldr	w9, [x20]
Lloh12:
	adrp	x10, _PFIT_PIPE_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PFIT_PIPE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_5:
	str	w21, [x19]
Lloh15:
	adrp	x8, _PFIT_PGM_RATIOS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PFIT_PGM_RATIOS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_I915_READ
	str	x0, [x19, #8]
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIT_CONTROL,4,2               ; @PFIT_CONTROL
	.comm	_PFIT_ENABLE,4,2                ; @PFIT_ENABLE
	.comm	_PIPE_B,4,2                     ; @PIPE_B
	.comm	_PFIT_PIPE_MASK,4,2             ; @PFIT_PIPE_MASK
	.comm	_PFIT_PIPE_SHIFT,4,2            ; @PFIT_PIPE_SHIFT
	.comm	_PFIT_PGM_RATIOS,4,2            ; @PFIT_PGM_RATIOS
	.no_dead_strip	_i9xx_get_pfit_config
.subsections_via_symbols
