	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_program_pll ## -- Begin function amdgpu_atombios_crtc_program_pll
	.p2align	4, 0x90
_amdgpu_atombios_crtc_program_pll:      ## @amdgpu_atombios_crtc_program_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SetPixelClock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r13d
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	(%r15), %edi
	leaq	-112(%rbp), %rdx
	leaq	-108(%rbp), %rcx
	movl	%r13d, %esi
	callq	_amdgpu_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_50
## %bb.1:
	movl	-112(%rbp), %esi
	movl	-108(%rbp), %edx
	cmpl	$1, %esi
	jne	LBB0_48
## %bb.2:
	leal	-1(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_47
## %bb.3:
	movl	24(%rbp), %esi
	movl	16(%rbp), %r10d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_ATOM_DISABLE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_50
LBB0_5:
	movslq	%r14d, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%esi, %r12d
	movl	%r10d, %r14d
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	32(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	40(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movl	%ebx, -92(%rbp)
	movl	$1, -88(%rbp)
	jmp	LBB0_46
LBB0_48:
	leaq	L_.str(%rip), %rdi
LBB0_49:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_DRM_ERROR
	jmp	LBB0_50
LBB0_6:
	movslq	%r14d, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r10d, %r14d
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	24(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movl	32(%rbp), %eax
	movl	%eax, -104(%rbp)
	movl	40(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movq	_ATOM_CRTC2@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_7
## %bb.8:
	movq	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_47:
	leaq	L_.str(%rip), %rdi
	movl	$1, %esi
	jmp	LBB0_49
LBB0_13:
	movl	%ebx, -104(%rbp)
	movslq	%r14d, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%esi, %r14d
	movl	%r10d, %ebx
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movl	%ebx, -100(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	imull	$100000, 32(%rbp), %edi         ## imm = 0x186A0
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movl	40(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	$0, -80(%rbp)
	xorl	%eax, %eax
	cmpl	$0, 56(%rbp)
	je	LBB0_14
## %bb.15:
	movq	_ATOM_EXTERNAL_SS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	64(%rbp), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_14
## %bb.16:
	movq	_ATOM_EXT_PLL1@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rcx)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	48(%rbp), %edi
	jle	LBB0_18
## %bb.17:
	movq	_PIXEL_CLOCK_V5_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	jmp	LBB0_18
LBB0_26:
	shll	$24, %ebx
	movslq	%r14d, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
	orl	%ebx, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%esi, %r14d
	movl	%r10d, %ebx
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	%ebx, -104(%rbp)
	movl	%r14d, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	imull	$100000, 32(%rbp), %edi         ## imm = 0x186A0
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	40(%rbp), %eax
	movl	%eax, -100(%rbp)
	movl	$0, -84(%rbp)
	cmpl	$0, 56(%rbp)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_31
## %bb.27:
	movq	_ATOM_EXTERNAL_SS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	64(%rbp), %rcx
	testl	%eax, (%rcx)
	je	LBB0_31
## %bb.28:
	movq	_ATOM_EXT_PLL1@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_31
## %bb.29:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_is_pixel_clock_source_from_pll
	testl	%eax, %eax
	jne	LBB0_31
## %bb.30:
	movq	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -84(%rbp)
LBB0_31:
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	48(%rbp), %eax
	jne	LBB0_36
## %bb.32:
	addl	$-10, %eax
	cmpl	$6, %eax
	ja	LBB0_33
## %bb.34:
	cltq
	leaq	l_switch.table.amdgpu_atombios_crtc_program_pll(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_35
LBB0_37:
	leal	(%r14,%r14), %eax
	leal	(%rax,%rax,4), %edi
	callq	_cpu_to_le32
	movq	%rax, -80(%rbp)
	movl	$0, -84(%rbp)
	cmpl	$165001, %r14d                  ## imm = 0x28489
	jl	LBB0_40
## %bb.38:
	movq	_ATOM_ENCODER_MODE_DVI@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_40
## %bb.39:
	movq	_PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
LBB0_40:
	movl	%ebx, -104(%rbp)
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	48(%rbp), %eax
	jne	LBB0_45
## %bb.41:
	addl	$-10, %eax
	cmpl	$6, %eax
	ja	LBB0_42
## %bb.43:
	cltq
	leaq	l_switch.table.amdgpu_atombios_crtc_program_pll.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_44
LBB0_14:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	48(%rbp), %edi
LBB0_18:
	movq	_ATOM_ENCODER_MODE_HDMI@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_25
## %bb.19:
	cmpl	$10, %edi
	jne	LBB0_20
## %bb.21:
	movq	_PIXEL_CLOCK_V5_MISC_HDMI_32BPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_7:
	movq	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1@GOTPCREL(%rip), %rax
LBB0_9:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	56(%rbp), %ecx
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	testl	%ecx, %ecx
	movq	64(%rbp), %rsi
	je	LBB0_12
## %bb.10:
	movq	_ATOM_EXTERNAL_SS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rsi)
	je	LBB0_12
## %bb.11:
	movq	_PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -84(%rbp)
LBB0_12:
	movl	%edx, -92(%rbp)
	movl	%r12d, -88(%rbp)
	jmp	LBB0_46
LBB0_33:
	movq	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	orl	%eax, -84(%rbp)
LBB0_36:
	movl	%edx, -96(%rbp)
	movl	%r12d, -92(%rbp)
	movl	%ebx, -88(%rbp)
	jmp	LBB0_46
LBB0_42:
	movq	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
LBB0_45:
	movl	%esi, -100(%rbp)
	movl	%r12d, -96(%rbp)
	movl	%edx, -92(%rbp)
	jmp	LBB0_46
LBB0_20:
	movq	_PIXEL_CLOCK_V5_MISC_HDMI_24BPP@GOTPCREL(%rip), %rcx
LBB0_22:
	cmpl	$12, %edi
	jne	LBB0_24
## %bb.23:
	movq	_PIXEL_CLOCK_V5_MISC_HDMI_30BPP@GOTPCREL(%rip), %rcx
LBB0_24:
	orl	(%rcx), %eax
	movl	%eax, -80(%rbp)
LBB0_25:
	movl	%esi, -92(%rbp)
	movl	%r12d, -88(%rbp)
	movl	%edx, -84(%rbp)
LBB0_46:
	movl	(%r15), %edi
	leaq	-104(%rbp), %rdx
	movl	%r13d, %esi
	callq	_amdgpu_atom_execute_table
LBB0_50:
	addq	$72, %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_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_47
	.long	L0_0_set_13
	.long	L0_0_set_26
	.long	L0_0_set_37
	.end_data_region
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SetPixelClock,4,2              ## @SetPixelClock
	.comm	_ATOM_DISABLE,4,2               ## @ATOM_DISABLE
	.comm	_ATOM_CRTC2,4,2                 ## @ATOM_CRTC2
	.comm	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2,4,2 ## @PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2
	.comm	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1,4,2 ## @PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1
	.comm	_ATOM_EXTERNAL_SS_MASK,4,2      ## @ATOM_EXTERNAL_SS_MASK
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_ATOM_EXT_PLL1,4,2              ## @ATOM_EXT_PLL1
	.comm	_PIXEL_CLOCK_V5_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_V5_MISC_REF_DIV_SRC
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ## @ATOM_ENCODER_MODE_HDMI
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_24BPP,4,2 ## @PIXEL_CLOCK_V5_MISC_HDMI_24BPP
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_32BPP,4,2 ## @PIXEL_CLOCK_V5_MISC_HDMI_32BPP
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_30BPP,4,2 ## @PIXEL_CLOCK_V5_MISC_HDMI_30BPP
	.comm	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC,4,2 ## @PIXEL_CLOCK_V6_MISC_REF_DIV_SRC
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP,4,2 ## @PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6,4,2 ## @PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6,4,2 ## @PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_48BPP,4,2 ## @PIXEL_CLOCK_V6_MISC_HDMI_48BPP
	.comm	_ATOM_ENCODER_MODE_DVI,4,2      ## @ATOM_ENCODER_MODE_DVI
	.comm	_PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN,4,2 ## @PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS,4,2 ## @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4,4,2 ## @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2,4,2 ## @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1,4,2 ## @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.amdgpu_atombios_crtc_program_pll
l_switch.table.amdgpu_atombios_crtc_program_pll:
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_48BPP

	.p2align	3                               ## @switch.table.amdgpu_atombios_crtc_program_pll.1
l_switch.table.amdgpu_atombios_crtc_program_pll.1:
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_program_pll ; -- Begin function amdgpu_atombios_crtc_program_pll
	.p2align	2
_amdgpu_atombios_crtc_program_pll:      ; @amdgpu_atombios_crtc_program_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x25, x6
	mov	x26, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	ldr	x8, [x0]
	ldr	x27, [x8]
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SetPixelClock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SetPixelClock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w0, [x27]
	add	x2, sp, #76
	add	x3, sp, #72
	mov	x1, x19
	bl	_amdgpu_atom_parse_cmd_header
	cbz	w0, LBB0_42
; %bb.1:
	ldp	w2, w1, [sp, #72]
	cmp	w1, #1
	b.ne	LBB0_6
; %bb.2:
	sub	w8, w2, #1
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.3:
	ldr	x15, [x29, #32]
	ldp	w12, w28, [x29, #24]
	ldp	w14, w13, [x29, #16]
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh8:
	adrp	x8, _ATOM_DISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATOM_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w26
	b.eq	LBB0_42
LBB0_5:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w26, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #2
	mov	x21, x13
	mov	x22, x14
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	stp	w22, w21, [sp, #16]
	stp	w20, w23, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #32]
	b	LBB0_41
LBB0_6:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_DRM_ERROR
	b	LBB0_42
LBB0_8:
	str	x15, [sp, #8]                   ; 8-byte Folded Spill
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w26, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #2
	str	w13, [sp, #4]                   ; 4-byte Folded Spill
	mov	x26, x14
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	mov	x0, x25
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	stp	w26, w8, [sp, #16]
	str	w20, [sp, #24]
Lloh13:
	adrp	x8, _ATOM_CRTC2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATOM_CRTC2@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2@GOTPAGEOFF]
Lloh18:
	adrp	x10, _PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1@GOTPAGEOFF]
	cmp	w8, w23
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #36]
	cbz	w28, LBB0_11
; %bb.9:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _ATOM_EXTERNAL_SS_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ATOM_EXTERNAL_SS_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
Lloh23:
	adrp	x9, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PIXEL_CLOCK_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #36]
LBB0_11:
	stp	w22, w21, [sp, #28]
	b	LBB0_41
LBB0_12:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #1
	b	LBB0_7
LBB0_13:
	str	x15, [sp, #8]                   ; 8-byte Folded Spill
	str	w12, [sp, #4]                   ; 4-byte Folded Spill
	str	w23, [sp, #16]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w26, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w0, w8, w9, asr #2
	mov	x23, x13
	mov	x26, x14
	bl	_cpu_to_le16
	str	x0, [sp, #64]
	str	w25, [sp, #20]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	mul	w0, w26, w8
	bl	_cpu_to_le32
	str	x0, [sp, #48]
	str	w23, [sp, #24]
	str	wzr, [sp, #40]
	mov	w8, #0
	cbz	w28, LBB0_31
; %bb.14:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _ATOM_EXTERNAL_SS_MASK@GOTPAGE
Lloh29:
	ldr	x10, [x10, _ATOM_EXTERNAL_SS_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_31
; %bb.15:
Lloh31:
	adrp	x9, _ATOM_EXT_PLL1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ATOM_EXT_PLL1@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	cmp	w9, w20
	ldr	w12, [sp, #4]                   ; 4-byte Folded Reload
	b.le	LBB0_32
; %bb.16:
Lloh34:
	adrp	x8, _PIXEL_CLOCK_V5_MISC_REF_DIV_SRC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PIXEL_CLOCK_V5_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	b	LBB0_32
LBB0_17:
	str	x15, [sp, #8]                   ; 8-byte Folded Spill
	str	w12, [sp, #4]                   ; 4-byte Folded Spill
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w26, w8
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #2
	orr	w0, w8, w23, lsl #24
	mov	x23, x13
	mov	x26, x14
	bl	_cpu_to_le32
	str	x0, [sp, #56]
	str	w25, [sp, #16]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	mul	w0, w26, w8
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	str	w23, [sp, #20]
	str	wzr, [sp, #36]
	cbz	w28, LBB0_22
; %bb.18:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _ATOM_EXTERNAL_SS_MASK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ATOM_EXTERNAL_SS_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.19:
Lloh40:
	adrp	x8, _ATOM_EXT_PLL1@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ATOM_EXT_PLL1@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_22
; %bb.20:
	mov	x0, x21
	mov	x1, x20
	bl	_is_pixel_clock_source_from_pll
	cbnz	w0, LBB0_22
; %bb.21:
Lloh43:
	adrp	x8, _PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PIXEL_CLOCK_V6_MISC_REF_DIV_SRC@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
LBB0_22:
Lloh46:
	adrp	x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	cmp	w8, w21
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	b.ne	LBB0_37
; %bb.23:
	sub	w8, w8, #10
	cmp	w8, #6
	b.hi	LBB0_35
; %bb.24:
Lloh49:
	adrp	x9, l_switch.table.amdgpu_atombios_crtc_program_pll@PAGE
Lloh50:
	add	x9, x9, l_switch.table.amdgpu_atombios_crtc_program_pll@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_36
LBB0_25:
	mov	x24, x12
	add	w8, w26, w26, lsl #2
	lsl	w0, w8, #1
	bl	_cpu_to_le32
	str	x0, [sp, #40]
	str	wzr, [sp, #36]
	mov	w8, #33929
	movk	w8, #2, lsl #16
	cmp	w26, w8
	b.lt	LBB0_28
; %bb.26:
Lloh51:
	adrp	x8, _ATOM_ENCODER_MODE_DVI@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_DVI@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_28
; %bb.27:
Lloh54:
	adrp	x8, _PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [sp, #36]
LBB0_28:
	str	w23, [sp, #16]
Lloh57:
	adrp	x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_40
; %bb.29:
	sub	w8, w24, #10
	cmp	w8, #6
	b.hi	LBB0_38
; %bb.30:
Lloh60:
	adrp	x9, l_switch.table.amdgpu_atombios_crtc_program_pll.1@PAGE
Lloh61:
	add	x9, x9, l_switch.table.amdgpu_atombios_crtc_program_pll.1@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_39
LBB0_31:
	ldr	w12, [sp, #4]                   ; 4-byte Folded Reload
LBB0_32:
Lloh62:
	adrp	x9, _ATOM_ENCODER_MODE_HDMI@GOTPAGE
Lloh63:
	ldr	x9, [x9, _ATOM_ENCODER_MODE_HDMI@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	cmp	w9, w21
	b.ne	LBB0_34
; %bb.33:
Lloh65:
	adrp	x9, _PIXEL_CLOCK_V5_MISC_HDMI_30BPP@GOTPAGE
Lloh66:
	ldr	x9, [x9, _PIXEL_CLOCK_V5_MISC_HDMI_30BPP@GOTPAGEOFF]
Lloh67:
	adrp	x10, _PIXEL_CLOCK_V5_MISC_HDMI_32BPP@GOTPAGE
Lloh68:
	ldr	x10, [x10, _PIXEL_CLOCK_V5_MISC_HDMI_32BPP@GOTPAGEOFF]
Lloh69:
	adrp	x11, _PIXEL_CLOCK_V5_MISC_HDMI_24BPP@GOTPAGE
Lloh70:
	ldr	x11, [x11, _PIXEL_CLOCK_V5_MISC_HDMI_24BPP@GOTPAGEOFF]
	cmp	w12, #10
	csel	x10, x10, x11, eq
	cmp	w12, #12
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #40]
LBB0_34:
	stp	w22, w21, [sp, #28]
	str	w20, [sp, #36]
	b	LBB0_41
LBB0_35:
Lloh71:
	adrp	x8, _PIXEL_CLOCK_V6_MISC_HDMI_24BPP@GOTPAGE
Lloh72:
	ldr	x8, [x8, _PIXEL_CLOCK_V6_MISC_HDMI_24BPP@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
	ldr	w9, [sp, #36]
	orr	w8, w9, w8
	str	w8, [sp, #36]
LBB0_37:
	stp	w22, w21, [sp, #24]
	str	w20, [sp, #32]
	b	LBB0_41
LBB0_38:
Lloh73:
	adrp	x8, _PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS@GOTPAGEOFF]
LBB0_39:
	ldr	w8, [x8]
	str	w8, [sp, #32]
LBB0_40:
	stp	w22, w21, [sp, #20]
	str	w20, [sp, #28]
LBB0_41:
	ldr	w0, [x27]
	add	x2, sp, #16
	mov	x1, x19
	bl	_amdgpu_atom_execute_table
LBB0_42:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_25-LBB0_4)>>2
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SetPixelClock,4,2              ; @SetPixelClock
	.comm	_ATOM_DISABLE,4,2               ; @ATOM_DISABLE
	.comm	_ATOM_CRTC2,4,2                 ; @ATOM_CRTC2
	.comm	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2,4,2 ; @PIXEL_CLOCK_MISC_CRTC_SEL_CRTC2
	.comm	_PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1,4,2 ; @PIXEL_CLOCK_MISC_CRTC_SEL_CRTC1
	.comm	_ATOM_EXTERNAL_SS_MASK,4,2      ; @ATOM_EXTERNAL_SS_MASK
	.comm	_PIXEL_CLOCK_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_MISC_REF_DIV_SRC
	.comm	_ATOM_EXT_PLL1,4,2              ; @ATOM_EXT_PLL1
	.comm	_PIXEL_CLOCK_V5_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_V5_MISC_REF_DIV_SRC
	.comm	_ATOM_ENCODER_MODE_HDMI,4,2     ; @ATOM_ENCODER_MODE_HDMI
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_24BPP,4,2 ; @PIXEL_CLOCK_V5_MISC_HDMI_24BPP
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_32BPP,4,2 ; @PIXEL_CLOCK_V5_MISC_HDMI_32BPP
	.comm	_PIXEL_CLOCK_V5_MISC_HDMI_30BPP,4,2 ; @PIXEL_CLOCK_V5_MISC_HDMI_30BPP
	.comm	_PIXEL_CLOCK_V6_MISC_REF_DIV_SRC,4,2 ; @PIXEL_CLOCK_V6_MISC_REF_DIV_SRC
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP,4,2 ; @PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6,4,2 ; @PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6,4,2 ; @PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6
	.comm	_PIXEL_CLOCK_V6_MISC_HDMI_48BPP,4,2 ; @PIXEL_CLOCK_V6_MISC_HDMI_48BPP
	.comm	_ATOM_ENCODER_MODE_DVI,4,2      ; @ATOM_ENCODER_MODE_DVI
	.comm	_PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN,4,2 ; @PIXEL_CLOCK_V7_MISC_DVI_DUALLINK_EN
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS,4,2 ; @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4,4,2 ; @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2,4,2 ; @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2
	.comm	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1,4,2 ; @PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.amdgpu_atombios_crtc_program_pll
l_switch.table.amdgpu_atombios_crtc_program_pll:
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_30BPP_V6
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_36BPP_V6
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_24BPP
	.quad	_PIXEL_CLOCK_V6_MISC_HDMI_48BPP

	.p2align	3                               ; @switch.table.amdgpu_atombios_crtc_program_pll.1
l_switch.table.amdgpu_atombios_crtc_program_pll.1:
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_5_4
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_3_2
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_DIS
	.quad	_PIXEL_CLOCK_V7_DEEPCOLOR_RATIO_2_1

.subsections_via_symbols
