	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_get_pch_pll
_intel_get_pch_pll:                     ## @intel_get_pch_pll
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movl	16(%r12), %esi
	movl	12(%r13), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_6
LBB0_2:
	movq	24(%r12), %rax
	movq	(%rax), %r13
	movl	16(%r13), %edi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movslq	(%r12), %rbx
	movq	8(%r13), %rax
	leaq	(%rbx,%rbx,2), %rcx
	leaq	(%rax,%rcx,8), %r13
	movl	16(%r12), %esi
	movl	12(%rax,%rcx,8), %edx
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_5:
	movq	%r13, 8(%r12)
	incq	(%r13)
	movl	(%r12), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
LBB0_6:
	movl	12(%r13), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	12(%r13), %edi
	movq	_DPLL_VCO_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_I915_WRITE
	movl	12(%r13), %edi
	callq	_POSTING_READ
	movl	$150, %edi
	callq	_udelay
	movl	16(%r13), %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	12(%r13), %edi
	movl	(%rbx), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_I915_WRITE
	movl	$0, 8(%r13)
	movq	%r13, %rax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r13)
	jle	LBB0_20
## %bb.9:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$24, %r14
	cmpq	%rax, %rbx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r15
	cmpq	$0, (%r15,%r14)
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%r15,%r14), %edi
	callq	_I915_READ
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	16(%r15,%r14), %edi
	callq	_I915_READ
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_10
## %bb.14:
	leaq	(%r15,%r14), %r13
	movl	16(%r12), %esi
	movl	12(%r15,%r14), %edx
	movq	(%r15,%r14), %rcx
	movl	20(%r15,%r14), %r8d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_5
LBB0_15:
	movl	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_20
## %bb.16:
	movq	8(%r13), %r13
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	addq	$24, %r13
	cmpq	%rbx, %rcx
	jne	LBB0_17
	jmp	LBB0_7
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_21:
	movl	16(%r12), %esi
	movl	12(%r13), %edx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRTC:%d reusing existing PCH PLL %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"CRTC:%d using pre-allocated PCH PLL %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"CRTC:%d sharing existing PCH PLL %x (refcount %d, ative %d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"CRTC:%d allocated PCH PLL %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"using pll %d for pipe %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"switching PLL %x off\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ## @DPLL_VCO_ENABLE
	.no_dead_strip	_intel_get_pch_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_get_pch_pll
_intel_get_pch_pll:                     ; @intel_get_pch_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w1, [x21, #16]
	ldr	w2, [x23, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21, #24]
	ldr	x23, [x8]
	ldr	w0, [x23, #16]
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_7
; %bb.3:
	ldrsw	x22, [x21]
	ldr	x8, [x23, #8]
	mov	w9, #24
	madd	x23, x22, x9, x8
	ldr	w1, [x21, #16]
	ldr	w2, [x23, #12]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_4:
	str	x23, [x21, #8]
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_DRIVER
LBB0_5:
	ldr	w1, [x23, #12]
Lloh6:
	adrp	x0, l_.str.5@PAGE
Lloh7:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w0, [x23, #12]
Lloh8:
	adrp	x21, _DPLL_VCO_ENABLE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DPLL_VCO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w1, w19, w8
	bl	_I915_WRITE
	ldr	w0, [x23, #12]
	bl	_POSTING_READ
	mov	w0, #150
	bl	_udelay
	ldr	w0, [x23, #16]
	mov	x1, x20
	bl	_I915_WRITE
	ldr	w0, [x23, #12]
	ldr	w8, [x21]
	bic	w1, w19, w8
	bl	_I915_WRITE
	str	wzr, [x23, #8]
	mov	x0, x23
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.8:
	mov	x24, #0
	mov	x22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x23]
	add	x24, x24, #24
	cmp	x22, x8
	b.ge	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x23, #8]
	ldr	x8, [x25, x24]
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x25, x24
	ldr	w0, [x26, #12]
	bl	_I915_READ
	and	w8, w0, #0x7fffffff
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x26, #16]
	bl	_I915_READ
	cmp	w0, w20
	b.ne	LBB0_9
; %bb.13:
	add	x23, x25, x24
	ldr	w1, [x21, #16]
	ldr	w2, [x23, #12]
	ldr	x8, [x23]
	ldr	w9, [x23, #20]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_14:
	and	x8, x8, #0xffffffff
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.15:
	mov	x22, #0
	ldr	x23, [x23, #8]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cbz	x9, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, #0
	add	x22, x22, #1
	add	x23, x23, #24
	cmp	x8, x22
	b.ne	LBB0_16
	b	LBB0_6
LBB0_18:
	mov	x0, #0
	b	LBB0_6
LBB0_19:
	ldr	w1, [x21, #16]
	ldr	w2, [x23, #12]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_20:
	bl	_DRM_DEBUG_KMS
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRTC:%d reusing existing PCH PLL %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"CRTC:%d using pre-allocated PCH PLL %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"CRTC:%d sharing existing PCH PLL %x (refcount %d, ative %d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"CRTC:%d allocated PCH PLL %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"using pll %d for pipe %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"switching PLL %x off\n"

	.comm	_DPLL_VCO_ENABLE,4,2            ; @DPLL_VCO_ENABLE
	.no_dead_strip	_intel_get_pch_pll
.subsections_via_symbols
