	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_put_crtc_pll         ## -- Begin function intel_ddi_put_crtc_pll
	.p2align	4, 0x90
_intel_ddi_put_crtc_pll:                ## @intel_ddi_put_crtc_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
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	callq	_to_intel_crtc
	movq	%rax, %r15
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.3:
	decq	(%rbx)
	jne	LBB0_10
## %bb.4:
	movq	_SPLL_PLL_ENABLE@GOTPCREL(%rip), %r13
	movq	_SPLL_CTL@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	decq	16(%rbx)
	jne	LBB0_10
## %bb.8:
	movq	_WRPLL_PLL_ENABLE@GOTPCREL(%rip), %r13
	movq	_WRPLL_CTL2@GOTPCREL(%rip), %r12
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_5:
	decq	8(%rbx)
	jne	LBB0_10
## %bb.6:
	movq	_WRPLL_PLL_ENABLE@GOTPCREL(%rip), %r13
	movq	_WRPLL_CTL1@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_DRM_DEBUG_KMS
	movl	(%r12), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	xorl	%edi, %edi
	movl	(%r13), %eax
	andl	%r14d, %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%r12), %edi
	movl	(%r13), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%r12), %edi
	callq	_POSTING_READ
LBB0_10:
	movq	(%rbx), %rdi
	shrq	$63, %rdi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_WARN
	movq	8(%rbx), %rdi
	shrq	$63, %rdi
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_WARN
	movq	16(%rbx), %rdi
	shrq	$63, %rdi
	leaq	L_.str.5(%rip), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_WARN
	movq	_PORT_CLK_SEL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling SPLL\n"

	.comm	_SPLL_CTL,4,2                   ## @SPLL_CTL
	.comm	_SPLL_PLL_ENABLE,4,2            ## @SPLL_PLL_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"Disabling WRPLL 1\n"

	.comm	_WRPLL_CTL1,4,2                 ## @WRPLL_CTL1
	.comm	_WRPLL_PLL_ENABLE,4,2           ## @WRPLL_PLL_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"Disabling WRPLL 2\n"

	.comm	_WRPLL_CTL2,4,2                 ## @WRPLL_CTL2
L_.str.3:                               ## @.str.3
	.asciz	"Invalid SPLL refcount\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid WRPLL1 refcount\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid WRPLL2 refcount\n"

	.comm	_PORT_CLK_SEL_NONE,4,2          ## @PORT_CLK_SEL_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_ddi_put_crtc_pll         ; -- Begin function intel_ddi_put_crtc_pll
	.p2align	2
_intel_ddi_put_crtc_pll:                ; @intel_ddi_put_crtc_pll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	x21, [x8]
	bl	_to_intel_crtc
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.ne	LBB0_10
; %bb.4:
Lloh0:
	adrp	x23, _SPLL_PLL_ENABLE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _SPLL_CTL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SPLL_CTL@GOTPAGEOFF]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	x8, [x21, #16]
	subs	x8, x8, #1
	str	x8, [x21, #16]
	b.ne	LBB0_10
; %bb.6:
Lloh6:
	adrp	x23, _WRPLL_PLL_ENABLE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _WRPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh8:
	adrp	x22, _WRPLL_CTL2@GOTPAGE
Lloh9:
	ldr	x22, [x22, _WRPLL_CTL2@GOTPAGEOFF]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldr	x8, [x21, #8]
	subs	x8, x8, #1
	str	x8, [x21, #8]
	b.ne	LBB0_10
; %bb.8:
Lloh12:
	adrp	x23, _WRPLL_PLL_ENABLE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _WRPLL_PLL_ENABLE@GOTPAGEOFF]
Lloh14:
	adrp	x22, _WRPLL_CTL1@GOTPAGE
Lloh15:
	ldr	x22, [x22, _WRPLL_CTL1@GOTPAGEOFF]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_DRM_DEBUG_KMS
	ldr	w0, [x22]
	bl	_I915_READ
	mov	x20, x0
	ldr	w8, [x23]
	tst	w8, w0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x22]
	ldr	w8, [x23]
	bic	w1, w20, w8
	bl	_I915_WRITE
	ldr	w0, [x22]
	bl	_POSTING_READ
LBB0_10:
	ldr	x8, [x21]
	lsr	x0, x8, #63
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN
	ldr	x8, [x21, #8]
	lsr	x0, x8, #63
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN
	ldr	x8, [x21, #16]
	lsr	x0, x8, #63
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_WARN
Lloh24:
	adrp	x8, _PORT_CLK_SEL_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PORT_CLK_SEL_NONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling SPLL\n"

	.comm	_SPLL_CTL,4,2                   ; @SPLL_CTL
	.comm	_SPLL_PLL_ENABLE,4,2            ; @SPLL_PLL_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"Disabling WRPLL 1\n"

	.comm	_WRPLL_CTL1,4,2                 ; @WRPLL_CTL1
	.comm	_WRPLL_PLL_ENABLE,4,2           ; @WRPLL_PLL_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"Disabling WRPLL 2\n"

	.comm	_WRPLL_CTL2,4,2                 ; @WRPLL_CTL2
l_.str.3:                               ; @.str.3
	.asciz	"Invalid SPLL refcount\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid WRPLL1 refcount\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid WRPLL2 refcount\n"

	.comm	_PORT_CLK_SEL_NONE,4,2          ; @PORT_CLK_SEL_NONE
.subsections_via_symbols
