	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_pm_misc                  ## -- Begin function rv770_pm_misc
	.p2align	4, 0x90
_rv770_pm_misc:                         ## @rv770_pm_misc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rdi), %rcx
	movslq	4(%rdi), %rax
	movq	16(%rdi), %rdx
	movq	(%rdx,%rcx,8), %rcx
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdx
	movq	_VOLTAGE_SW@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_4
## %bb.1:
	movl	8(%rcx,%rax), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.2:
	cmpl	$65281, %esi                    ## imm = 0xFF01
	je	LBB0_4
## %bb.3:
	movq	%rdi, %rbx
	cmpl	8(%rdi), %esi
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	(%rcx,%rax), %r14
	addq	$8, %r14
	movq	_SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_radeon_atom_set_voltage
	movl	(%r14), %esi
	movl	%esi, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DRM_DEBUG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VOLTAGE_SW,8,3                 ## @VOLTAGE_SW
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ## @SET_VOLTAGE_TYPE_ASIC_VDDC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting: v: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_pm_misc                  ; -- Begin function rv770_pm_misc
	.p2align	2
_rv770_pm_misc:                         ; @rv770_pm_misc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldpsw	x9, x8, [x0]
	ldr	x10, [x0, #16]
	ldr	x9, [x10, x9, lsl #3]
	lsl	x10, x8, #4
	ldr	x10, [x9, x10]
Lloh0:
	adrp	x11, _VOLTAGE_SW@GOTPAGE
Lloh1:
	ldr	x11, [x11, _VOLTAGE_SW@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_3
; %bb.1:
	add	x20, x9, x8, lsl #4
	ldr	w1, [x20, #8]!
	cmp	w1, #0
	mov	w8, #65281
	ccmp	w1, w8, #4, ne
	b.eq	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w1, w8
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_radeon_atom_set_voltage
	ldr	w1, [x20]
	str	w1, [x19, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DRM_DEBUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VOLTAGE_SW,8,3                 ; @VOLTAGE_SW
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ; @SET_VOLTAGE_TYPE_ASIC_VDDC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting: v: %d\n"

.subsections_via_symbols
