	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atom_set_voltage        ## -- Begin function radeon_atom_set_voltage
	.p2align	4, 0x90
_radeon_atom_set_voltage:               ## @radeon_atom_set_voltage
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SetVoltage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	-40(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movl	%eax, %esi
	callq	_atom_parse_cmd_header
	cmpl	$65281, %ebx                    ## imm = 0xFF01
	je	LBB0_11
## %bb.1:
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movl	-36(%rbp), %edx
	cmpl	$3, %edx
	je	LBB0_9
## %bb.3:
	cmpl	$2, %edx
	je	LBB0_7
## %bb.4:
	cmpl	$1, %edx
	jne	LBB0_10
## %bb.5:
	movl	%r12d, -64(%rbp)
	movq	_SET_ASIC_VOLTAGE_MODE_ALL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, -60(%rbp)
	jmp	LBB0_6
LBB0_9:
	movl	%r12d, -64(%rbp)
	movq	_ATOM_SET_VOLTAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movl	%r12d, -64(%rbp)
	movq	_SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
LBB0_6:
	movl	(%r14), %edi
	leaq	-64(%rbp), %rdx
	movl	%r15d, %esi
	callq	_atom_execute_table
	jmp	LBB0_11
LBB0_10:
	movl	-40(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SetVoltage,4,2                 ## @SetVoltage
	.comm	_SET_ASIC_VOLTAGE_MODE_ALL_SOURCE,4,2 ## @SET_ASIC_VOLTAGE_MODE_ALL_SOURCE
	.comm	_SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE,4,2 ## @SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE
	.comm	_ATOM_SET_VOLTAGE,4,2           ## @ATOM_SET_VOLTAGE
	.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_set_voltage        ; -- Begin function radeon_atom_set_voltage
	.p2align	2
_radeon_atom_set_voltage:               ; @radeon_atom_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x2
	mov	x21, x1
	mov	x19, 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, [x19]
	add	x2, sp, #4
	mov	x3, sp
	mov	x1, x20
	bl	_atom_parse_cmd_header
	mov	w8, #65281
	cmp	w21, w8
	b.eq	LBB0_11
; %bb.1:
	cbz	w0, LBB0_11
; %bb.2:
	ldr	w2, [sp]
	cmp	w2, #3
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #2
	b.eq	LBB0_7
; %bb.4:
	cmp	w2, #1
	b.ne	LBB0_10
; %bb.5:
Lloh6:
	adrp	x8, _SET_ASIC_VOLTAGE_MODE_ALL_SOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SET_ASIC_VOLTAGE_MODE_ALL_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #12]
	str	w22, [sp, #8]
	b	LBB0_9
LBB0_6:
Lloh9:
	adrp	x8, _ATOM_SET_VOLTAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATOM_SET_VOLTAGE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w22, [sp, #8]
	str	w8, [sp, #24]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [sp, #16]
LBB0_9:
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_atom_execute_table
	b	LBB0_11
LBB0_10:
	ldr	w1, [sp, #4]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SetVoltage,4,2                 ; @SetVoltage
	.comm	_SET_ASIC_VOLTAGE_MODE_ALL_SOURCE,4,2 ; @SET_ASIC_VOLTAGE_MODE_ALL_SOURCE
	.comm	_SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE,4,2 ; @SET_ASIC_VOLTAGE_MODE_SET_VOLTAGE
	.comm	_ATOM_SET_VOLTAGE,4,2           ; @ATOM_SET_VOLTAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown table version %d, %d\n"

.subsections_via_symbols
