	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_set_dce_clock ## -- Begin function amdgpu_atombios_crtc_set_dce_clock
	.p2align	4, 0x90
_amdgpu_atombios_crtc_set_dce_clock:    ## @amdgpu_atombios_crtc_set_dce_clock
	.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
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SetDCEClock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movl	%eax, %esi
	callq	_amdgpu_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edx
	cmpl	$2, %esi
	jne	LBB0_5
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movl	%r12d, -56(%rbp)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -52(%rbp)
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rdx
	movl	%r14d, %esi
	callq	_amdgpu_atom_execute_table
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %r15d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	$2, %esi
LBB0_6:
	callq	_DRM_ERROR
LBB0_7:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SetDCEClock,4,2                ## @SetDCEClock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown table version %d %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_crtc_set_dce_clock ; -- Begin function amdgpu_atombios_crtc_set_dce_clock
	.p2align	2
_amdgpu_atombios_crtc_set_dce_clock:    ; @amdgpu_atombios_crtc_set_dce_clock
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SetDCEClock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SetDCEClock@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x23, x0
	ldr	w0, [x20]
	add	x2, sp, #28
	add	x3, sp, #24
	mov	x1, x23
	bl	_amdgpu_atom_parse_cmd_header
	cbz	w0, LBB0_7
; %bb.1:
	ldp	w2, w1, [sp, #24]
	cmp	w1, #2
	b.ne	LBB0_4
; %bb.2:
	cmp	w2, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_cpu_to_le32
	stp	w19, w0, [sp, #12]
	str	w21, [sp, #8]
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x23
	bl	_amdgpu_atom_execute_table
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	add	w8, w0, w0, lsl #2
	lsl	w0, w8, #1
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2
LBB0_6:
	bl	_DRM_ERROR
	mov	w0, #0
LBB0_7:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SetDCEClock,4,2                ; @SetDCEClock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d %d\n"

.subsections_via_symbols
