	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_pick_pll
_dce_v6_0_pick_pll:                     ## @dce_v6_0_pick_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_to_amdgpu_crtc
	movq	(%rbx), %rcx
	movq	(%rcx), %r14
	movl	(%rax), %edi
	callq	_amdgpu_atombios_encoder_get_encoder_mode
	movl	%eax, %edi
	callq	_ENCODER_MODE_IS_DP
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.2:
	movq	_ATOM_PPLL_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_amdgpu_pll_get_shared_nondp_ppll
	movq	_ATOM_PPLL_INVALID@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_amdgpu_pll_get_use_mask
	movl	%eax, %ecx
	movq	_ATOM_PPLL2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_9
## %bb.5:
	movq	_ATOM_PPLL1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_9
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_ATOM_PPLL0@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PPLL_INVALID,4,2          ## @ATOM_PPLL_INVALID
	.comm	_ATOM_PPLL0,4,2                 ## @ATOM_PPLL0
	.comm	_ATOM_PPLL2,4,2                 ## @ATOM_PPLL2
	.comm	_ATOM_PPLL1,4,2                 ## @ATOM_PPLL1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate a PPLL\n"

	.no_dead_strip	_dce_v6_0_pick_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_pick_pll
_dce_v6_0_pick_pll:                     ; @dce_v6_0_pick_pll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_to_amdgpu_crtc
	ldr	x8, [x19]
	ldr	x20, [x8]
	ldr	w0, [x0]
	bl	_amdgpu_atombios_encoder_get_encoder_mode
	bl	_ENCODER_MODE_IS_DP
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ATOM_PPLL_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATOM_PPLL_INVALID@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_amdgpu_pll_get_shared_nondp_ppll
                                        ; kill: def $w0 killed $w0 def $x0
Lloh2:
	adrp	x20, _ATOM_PPLL_INVALID@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ATOM_PPLL_INVALID@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_amdgpu_pll_get_use_mask
	mov	x8, x0
Lloh4:
	adrp	x9, _ATOM_PPLL2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ATOM_PPLL2@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	lsr	w9, w8, w0
	tbz	w9, #0, LBB0_9
; %bb.5:
Lloh7:
	adrp	x9, _ATOM_PPLL1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ATOM_PPLL1@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	lsr	w8, w8, w0
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	tbz	w8, #0, LBB0_9
; %bb.6:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	ldr	w0, [x20]
	b	LBB0_9
LBB0_7:
Lloh12:
	adrp	x8, _ATOM_PPLL0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATOM_PPLL0@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PPLL_INVALID,4,2          ; @ATOM_PPLL_INVALID
	.comm	_ATOM_PPLL0,4,2                 ; @ATOM_PPLL0
	.comm	_ATOM_PPLL2,4,2                 ; @ATOM_PPLL2
	.comm	_ATOM_PPLL1,4,2                 ; @ATOM_PPLL1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate a PPLL\n"

	.no_dead_strip	_dce_v6_0_pick_pll
.subsections_via_symbols
