	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ironlake_get_pfit_config
_ironlake_get_pfit_config:              ## @ironlake_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, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_PF_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, %r14
	movq	_PF_ENABLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, (%r15)
	movl	(%rbx), %edi
	callq	_PF_WIN_POS
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 16(%r15)
	movl	(%rbx), %edi
	callq	_PF_WIN_SZ
	movl	%eax, %edi
	callq	_I915_READ
	movq	%rax, 8(%r15)
	movq	%r12, %rdi
	movl	$7, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_PF_PIPE_SEL_MASK_IVB@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_PF_PIPE_SEL_IVB
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setne	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_ENABLE,4,2                  ## @PF_ENABLE
	.comm	_PF_PIPE_SEL_MASK_IVB,4,2       ## @PF_PIPE_SEL_MASK_IVB
	.no_dead_strip	_ironlake_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 ironlake_get_pfit_config
_ironlake_get_pfit_config:              ; @ironlake_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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_to_i915
	mov	x21, x0
	ldr	w0, [x19]
	bl	_PF_CTL
	bl	_I915_READ
	mov	x22, x0
Lloh0:
	adrp	x8, _PF_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x19]
	bl	_PF_WIN_POS
	bl	_I915_READ
	str	x0, [x20, #16]
	ldr	w0, [x19]
	bl	_PF_WIN_SZ
	bl	_I915_READ
	str	x0, [x20, #8]
	mov	x0, x21
	mov	w1, #7
	bl	_IS_GEN
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PF_PIPE_SEL_MASK_IVB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_PIPE_SEL_MASK_IVB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w20, w8, w22
	ldr	w0, [x19]
	bl	_PF_PIPE_SEL_IVB
	cmp	w20, w0
	cset	w0, ne
	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	_WARN_ON
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_ENABLE,4,2                  ; @PF_ENABLE
	.comm	_PF_PIPE_SEL_MASK_IVB,4,2       ; @PF_PIPE_SEL_MASK_IVB
	.no_dead_strip	_ironlake_get_pfit_config
.subsections_via_symbols
