	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_get_dpll
_ibx_get_dpll:                          ## @ibx_get_dpll
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_intel_atomic_get_new_crtc_state
	movq	%rax, %r15
	movl	8(%r13), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	16(%r13), %eax
	movq	(%rbx), %rcx
	leaq	(%rcx,%rax,8), %r12
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_2
LBB0_3:
	leaq	8(%r15), %rdx
	movq	_DPLL_ID_PCH_PLL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DPLL_ID_PCH_PLL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_find_shared_dpll
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	%r15, %rcx
	addq	$8, %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_intel_reference_shared_dpll
	movq	%r12, (%r15)
	movl	$1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[CRTC:%d:%s] using pre-allocated %s\n"

	.comm	_DPLL_ID_PCH_PLL_A,4,2          ## @DPLL_ID_PCH_PLL_A
	.comm	_DPLL_ID_PCH_PLL_B,4,2          ## @DPLL_ID_PCH_PLL_B
	.no_dead_strip	_ibx_get_dpll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibx_get_dpll
_ibx_get_dpll:                          ; @ibx_get_dpll
	.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
	bl	_intel_atomic_get_new_crtc_state
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_to_i915
	mov	x22, x0
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	ldr	x9, [x22]
	add	x22, x9, x8, lsl #3
	ldp	w2, w1, [x19]
	ldr	x8, [x22]
	ldr	w3, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_3
LBB0_2:
	add	x2, x21, #8
Lloh2:
	adrp	x8, _DPLL_ID_PCH_PLL_A@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPLL_ID_PCH_PLL_A@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _DPLL_ID_PCH_PLL_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPLL_ID_PCH_PLL_B@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_intel_find_shared_dpll
	mov	x22, x0
	cbz	x0, LBB0_4
LBB0_3:
	add	x3, x21, #8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_intel_reference_shared_dpll
	str	x22, [x21]
	mov	w0, #1
LBB0_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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[CRTC:%d:%s] using pre-allocated %s\n"

	.comm	_DPLL_ID_PCH_PLL_A,4,2          ; @DPLL_ID_PCH_PLL_A
	.comm	_DPLL_ID_PCH_PLL_B,4,2          ; @DPLL_ID_PCH_PLL_B
	.no_dead_strip	_ibx_get_dpll
.subsections_via_symbols
