	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atom_get_max_vddc       ## -- Begin function radeon_atom_get_max_vddc
	.p2align	4, 0x90
_radeon_atom_get_max_vddc:              ## @radeon_atom_get_max_vddc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SetVoltage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movl	%eax, %esi
	callq	_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-60(%rbp), %edx
	cmpl	$3, %edx
	je	LBB0_9
## %bb.3:
	cmpl	$2, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$1, %edx
	je	LBB0_1
## %bb.5:
	movl	-64(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_9:
	movl	%r13d, -56(%rbp)
	movq	_ATOM_GET_VOLTAGE_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	movl	(%r15), %edi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %esi
	callq	_atom_execute_table
	movl	-52(%rbp), %edi
	jmp	LBB0_7
LBB0_6:
	movq	_SET_VOLTAGE_GET_MAX_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movl	(%r15), %edi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %esi
	callq	_atom_execute_table
	movl	-56(%rbp), %edi
LBB0_7:
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SetVoltage,4,2                 ## @SetVoltage
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SET_VOLTAGE_GET_MAX_VOLTAGE,4,2 ## @SET_VOLTAGE_GET_MAX_VOLTAGE
	.comm	_ATOM_GET_VOLTAGE_LEVEL,4,2     ## @ATOM_GET_VOLTAGE_LEVEL
	.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	_radeon_atom_get_max_vddc       ; -- Begin function radeon_atom_get_max_vddc
	.p2align	2
_radeon_atom_get_max_vddc:              ; @radeon_atom_get_max_vddc
	.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	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SetVoltage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SetVoltage@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x20, x0
	ldr	w0, [x21]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x1, x20
	bl	_atom_parse_cmd_header
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w2, [sp, #8]
	cmp	w2, #3
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w2, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [sp, #12]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _ATOM_GET_VOLTAGE_LEVEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATOM_GET_VOLTAGE_LEVEL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w23, [sp, #16]
	str	w8, [sp, #24]
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [sp, #20]
	ldr	w0, [x21]
	add	x2, sp, #16
	mov	x1, x20
	bl	_atom_execute_table
	ldr	w0, [sp, #20]
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _SET_VOLTAGE_GET_MAX_VOLTAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SET_VOLTAGE_GET_MAX_VOLTAGE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w0, [x21]
	add	x2, sp, #16
	mov	x1, x20
	bl	_atom_execute_table
	ldr	w0, [sp, #16]
LBB0_8:
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SetVoltage,4,2                 ; @SetVoltage
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SET_VOLTAGE_GET_MAX_VOLTAGE,4,2 ; @SET_VOLTAGE_GET_MAX_VOLTAGE
	.comm	_ATOM_GET_VOLTAGE_LEVEL,4,2     ; @ATOM_GET_VOLTAGE_LEVEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols
