	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_pll_disable
_icl_pll_disable:                       ## @icl_pll_disable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, %edi
	callq	_I915_READ
	movq	_PLL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_PLL_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_2:
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_PLL_POWER_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_PLL_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %ecx
	callq	_intel_de_wait_for_clear
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_ENABLE,4,2                 ## @PLL_ENABLE
	.comm	_PLL_LOCK,4,2                   ## @PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLL %d locked\n"

	.comm	_PLL_POWER_ENABLE,4,2           ## @PLL_POWER_ENABLE
	.comm	_PLL_POWER_STATE,4,2            ## @PLL_POWER_STATE
L_.str.1:                               ## @.str.1
	.asciz	"PLL %d Power not disabled\n"

	.no_dead_strip	_icl_pll_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_pll_disable
_icl_pll_disable:                       ; @icl_pll_disable
	.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, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_I915_READ
Lloh0:
	adrp	x8, _PLL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
Lloh3:
	adrp	x8, _PLL_LOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLL_LOCK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
	mov	x0, x20
	bl	_I915_READ
Lloh8:
	adrp	x8, _PLL_POWER_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLL_POWER_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
Lloh11:
	adrp	x8, _PLL_POWER_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PLL_POWER_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #1
	bl	_intel_de_wait_for_clear
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DRM_ERROR
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_ENABLE,4,2                 ; @PLL_ENABLE
	.comm	_PLL_LOCK,4,2                   ; @PLL_LOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLL %d locked\n"

	.comm	_PLL_POWER_ENABLE,4,2           ; @PLL_POWER_ENABLE
	.comm	_PLL_POWER_STATE,4,2            ; @PLL_POWER_STATE
l_.str.1:                               ; @.str.1
	.asciz	"PLL %d Power not disabled\n"

	.no_dead_strip	_icl_pll_disable
.subsections_via_symbols
