	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atombios_crtc_prepare_pll
_atombios_crtc_prepare_pll:             ## @atombios_crtc_prepare_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_radeon_crtc
	movq	%rax, %r13
	movq	%rax, %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%rcx, %rbx
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %edi
	callq	_to_radeon_encoder
	movq	%rax, %r14
	movl	16(%r13), %edi
	callq	_atombios_get_encoder_mode
	movl	%eax, %r12d
	movq	$8, (%r13)
	movq	_ATOM_DEVICE_LCD_SUPPORT@GOTPCREL(%rip), %rax
	movq	_ATOM_DEVICE_DFP_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_radeon_encoder_get_dp_bridge_encoder_id
	movq	_ENCODER_OBJECT_ID_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
LBB0_2:
	movq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_radeon_get_connector_for_encoder
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_radeon_connector
	movq	(%rax), %r14
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_radeon_get_monitor_bpc
	movl	%eax, (%rbx)
	addl	$-128, %r12d
	cmpl	$4, %r12d
	ja	LBB0_22
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movl	(%r14), %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movslq	%ebx, %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	addq	$12, %r13
	movq	_ASIC_INTERNAL_SS_ON_DP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_radeon_atombios_get_asic_ss_info
	jmp	LBB0_10
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_ASIC_IS_DCE4
	addq	$12, %r13
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	movq	%r14, %rdi
	jmp	LBB0_20
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:
	addq	$12, %r13
	movq	_ASIC_INTERNAL_SS_ON_HDMI@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASIC_IS_DCE4
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	addq	$12, %r13
	movq	_ASIC_INTERNAL_SS_ON_TMDS@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edx
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$34, %rcx
	addl	%eax, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_20:
	movq	%r13, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_radeon_atombios_get_asic_ss_info
	jmp	LBB0_21
LBB0_6:
	addl	$-162000, %ebx                  ## imm = 0xFFFD8730
	addq	$12, %r13
	cmpl	$9, %ebx
	ja	LBB0_9
## %bb.7:
	movq	_ATOM_DP_SS_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_radeon_atombios_get_ppll_ss_info
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_22
## %bb.8:
	movq	_ATOM_DP_SS_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	movq	%r14, %rdi
LBB0_14:
	movq	%r13, %rsi
	callq	_radeon_atombios_get_ppll_ss_info
	jmp	LBB0_21
LBB0_9:
	movq	_ATOM_DP_SS_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_radeon_atombios_get_ppll_ss_info
LBB0_10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_21:
	movl	%eax, 4(%rbx)
LBB0_22:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_atombios_adjust_pll
	movl	%eax, 8(%rbx)
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_17
	.long	L0_0_set_15
	.long	L0_0_set_4
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ## @ATOM_DEVICE_LCD_SUPPORT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ## @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ## @ENCODER_OBJECT_ID_NONE
	.comm	_ASIC_INTERNAL_SS_ON_DP,4,2     ## @ASIC_INTERNAL_SS_ON_DP
	.comm	_ATOM_DP_SS_ID2,4,2             ## @ATOM_DP_SS_ID2
	.comm	_ATOM_DP_SS_ID1,4,2             ## @ATOM_DP_SS_ID1
	.comm	_ASIC_INTERNAL_SS_ON_TMDS,4,2   ## @ASIC_INTERNAL_SS_ON_TMDS
	.comm	_ASIC_INTERNAL_SS_ON_HDMI,4,2   ## @ASIC_INTERNAL_SS_ON_HDMI
	.no_dead_strip	_atombios_crtc_prepare_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function atombios_crtc_prepare_pll
lCPI0_0:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_atombios_crtc_prepare_pll:             ; @atombios_crtc_prepare_pll
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	bl	_to_radeon_crtc
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x22, [x8]
	ldr	w0, [x0, #16]
	bl	_to_radeon_encoder
	mov	x24, x0
	ldr	w0, [x21, #16]
	bl	_atombios_get_encoder_mode
	mov	x23, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ATOM_DEVICE_LCD_SUPPORT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ATOM_DEVICE_DFP_SUPPORT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21, #16]
	bl	_radeon_encoder_get_dp_bridge_encoder_id
Lloh8:
	adrp	x8, _ENCODER_OBJECT_ID_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENCODER_OBJECT_ID_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_16
LBB0_2:
	ldr	x25, [x24, #8]
	ldr	w0, [x21, #16]
	bl	_radeon_get_connector_for_encoder
	mov	x24, x0
	bl	_to_radeon_connector
	ldr	x26, [x0]
	mov	x0, x24
	bl	_radeon_get_monitor_bpc
	str	w0, [x21]
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.3:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w23, [x26]
	mov	x0, x22
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_17
; %bb.5:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w3, w8, w9
	add	x1, x21, #12
Lloh13:
	adrp	x8, _ASIC_INTERNAL_SS_ON_DP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ASIC_INTERNAL_SS_ON_DP@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	b	LBB0_14
LBB0_6:
	mov	x0, x22
	bl	_ASIC_IS_DCE4
	add	x1, x21, #12
	ldr	w2, [x25]
	cbnz	w0, LBB0_13
; %bb.7:
	mov	x0, x22
	bl	_radeon_atombios_get_ppll_ss_info
	b	LBB0_15
LBB0_8:
	mov	x0, x22
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_16
; %bb.9:
	add	x1, x21, #12
Lloh16:
	adrp	x8, _ASIC_INTERNAL_SS_ON_HDMI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ASIC_INTERNAL_SS_ON_HDMI@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x0, x22
	bl	_ASIC_IS_DCE4
	cbz	w0, LBB0_16
; %bb.11:
	add	x1, x21, #12
Lloh18:
	adrp	x8, _ASIC_INTERNAL_SS_ON_TMDS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ASIC_INTERNAL_SS_ON_TMDS@GOTPAGEOFF]
LBB0_12:
	ldr	w2, [x8]
LBB0_13:
	ldrsw	x8, [x19]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w3, w8, w9
LBB0_14:
	mov	x0, x22
	bl	_radeon_atombios_get_asic_ss_info
LBB0_15:
	str	w0, [x21, #4]
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_atombios_adjust_pll
	str	w0, [x21, #8]
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	sub	w8, w23, #39, lsl #12           ; =159744
	sub	w8, w8, #2256
	add	x23, x21, #12
	cmp	w8, #9
	b.hi	LBB0_19
; %bb.18:
Lloh20:
	adrp	x8, _ATOM_DP_SS_ID2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ATOM_DP_SS_ID2@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_radeon_atombios_get_ppll_ss_info
	str	w0, [x21, #4]
	cbnz	w0, LBB0_16
LBB0_19:
Lloh23:
	adrp	x8, _ATOM_DP_SS_ID1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ATOM_DP_SS_ID1@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_radeon_atombios_get_ppll_ss_info
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_ATOM_DEVICE_LCD_SUPPORT,4,2    ; @ATOM_DEVICE_LCD_SUPPORT
	.comm	_ATOM_DEVICE_DFP_SUPPORT,4,2    ; @ATOM_DEVICE_DFP_SUPPORT
	.comm	_ENCODER_OBJECT_ID_NONE,8,3     ; @ENCODER_OBJECT_ID_NONE
	.comm	_ASIC_INTERNAL_SS_ON_DP,4,2     ; @ASIC_INTERNAL_SS_ON_DP
	.comm	_ATOM_DP_SS_ID2,4,2             ; @ATOM_DP_SS_ID2
	.comm	_ATOM_DP_SS_ID1,4,2             ; @ATOM_DP_SS_ID1
	.comm	_ASIC_INTERNAL_SS_ON_TMDS,4,2   ; @ASIC_INTERNAL_SS_ON_TMDS
	.comm	_ASIC_INTERNAL_SS_ON_HDMI,4,2   ; @ASIC_INTERNAL_SS_ON_HDMI
	.no_dead_strip	_atombios_crtc_prepare_pll
.subsections_via_symbols
