	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atombios_crtc_program_ss
_amdgpu_atombios_crtc_program_ss:       ## @amdgpu_atombios_crtc_program_ss
	.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	%r8, %r13
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EnableSpreadSpectrumOnPPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.8:
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.9:
	movq	_ATOM_EXTERNAL_SS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_17
	jmp	LBB0_10
LBB0_1:
	movl	(%r14), %eax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	8(%r14), %rcx
	movl	%r12d, %edx
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rsi, %rdx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, (%rdi)
	jne	LBB0_7
	jmp	LBB0_17
LBB0_10:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	_ATOM_SS_CENTRE_SPREAD_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r13), %eax
	movl	%eax, -80(%rbp)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_16
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_13:
	movq	_ATOM_PPLL_SS_TYPE_V3_P2PLL@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_12:
	movq	_ATOM_PPLL_SS_TYPE_V3_P1PLL@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_14:
	movq	_ATOM_PPLL_SS_TYPE_V3_DCPLL@GOTPCREL(%rip), %rcx
LBB0_15:
	orl	(%rcx), %eax
	movl	%eax, -80(%rbp)
LBB0_16:
	movl	16(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movl	12(%r13), %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movl	%r15d, -76(%rbp)
	movl	4(%r14), %edi
	leaq	-80(%rbp), %rdx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_amdgpu_atom_execute_table
LBB0_17:
	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_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_EnableSpreadSpectrumOnPPLL,4,2 ## @EnableSpreadSpectrumOnPPLL
	.comm	_ATOM_EXTERNAL_SS_MASK,4,2      ## @ATOM_EXTERNAL_SS_MASK
	.comm	_ATOM_SS_CENTRE_SPREAD_MODE_MASK,4,2 ## @ATOM_SS_CENTRE_SPREAD_MODE_MASK
	.comm	_ATOM_PPLL_SS_TYPE_V3_P1PLL,4,2 ## @ATOM_PPLL_SS_TYPE_V3_P1PLL
	.comm	_ATOM_PPLL_SS_TYPE_V3_P2PLL,4,2 ## @ATOM_PPLL_SS_TYPE_V3_P2PLL
	.comm	_ATOM_PPLL_SS_TYPE_V3_DCPLL,4,2 ## @ATOM_PPLL_SS_TYPE_V3_DCPLL
	.no_dead_strip	_amdgpu_atombios_crtc_program_ss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_atombios_crtc_program_ss
_amdgpu_atombios_crtc_program_ss:       ; @amdgpu_atombios_crtc_program_ss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EnableSpreadSpectrumOnPPLL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EnableSpreadSpectrumOnPPLL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x22, x0
	cbz	w20, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.2:
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x9, _ATOM_EXTERNAL_SS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATOM_EXTERNAL_SS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_16
	b	LBB0_9
LBB0_3:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	x9, [x19, #8]
	mov	w10, w24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	sub	x10, x10, #1
	subs	x8, x8, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x12, [x11, #8]
	cmp	x12, #0
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w11, [x11]
	cmp	w11, w23
	b.ne	LBB0_5
	b	LBB0_16
LBB0_9:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [sp, #24]
Lloh9:
	adrp	x8, _ATOM_SS_CENTRE_SPREAD_MODE_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_SS_CENTRE_SPREAD_MODE_MASK@GOTPAGEOFF]
	ldr	w9, [x21, #8]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, w9
	str	w8, [sp]
	sub	w9, w23, #128
	cmp	w9, #3
	b.hi	LBB0_15
; %bb.10:
Lloh12:
	adrp	x10, lJTI0_0@PAGE
Lloh13:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_11
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_11:
Lloh14:
	adrp	x9, _ATOM_PPLL_SS_TYPE_V3_P2PLL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATOM_PPLL_SS_TYPE_V3_P2PLL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x9, _ATOM_PPLL_SS_TYPE_V3_P1PLL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATOM_PPLL_SS_TYPE_V3_P1PLL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x9, _ATOM_PPLL_SS_TYPE_V3_DCPLL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ATOM_PPLL_SS_TYPE_V3_DCPLL@GOTPAGEOFF]
LBB0_14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp]
LBB0_15:
	ldr	w0, [x21, #16]
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	ldr	w0, [x21, #12]
	bl	_cpu_to_le16
	str	x0, [sp, #8]
	str	w20, [sp, #4]
	ldr	w0, [x19, #4]
	mov	x2, sp
	mov	x1, x22
	bl	_amdgpu_atom_execute_table
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_EnableSpreadSpectrumOnPPLL,4,2 ; @EnableSpreadSpectrumOnPPLL
	.comm	_ATOM_EXTERNAL_SS_MASK,4,2      ; @ATOM_EXTERNAL_SS_MASK
	.comm	_ATOM_SS_CENTRE_SPREAD_MODE_MASK,4,2 ; @ATOM_SS_CENTRE_SPREAD_MODE_MASK
	.comm	_ATOM_PPLL_SS_TYPE_V3_P1PLL,4,2 ; @ATOM_PPLL_SS_TYPE_V3_P1PLL
	.comm	_ATOM_PPLL_SS_TYPE_V3_P2PLL,4,2 ; @ATOM_PPLL_SS_TYPE_V3_P2PLL
	.comm	_ATOM_PPLL_SS_TYPE_V3_DCPLL,4,2 ; @ATOM_PPLL_SS_TYPE_V3_DCPLL
	.no_dead_strip	_amdgpu_atombios_crtc_program_ss
.subsections_via_symbols
