	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_get_master_voltage_mask
_rv6xx_get_master_voltage_mask:         ## @rv6xx_get_master_voltage_mask
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rv6xx_get_pi
	movq	%rax, %r15
	movq	_R600_PM_NUMBER_OF_VOLTAGE_LEVELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	orl	%ecx, %ebx
	incq	%r12
	movq	_R600_PM_NUMBER_OF_VOLTAGE_LEVELS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r12,4), %esi
	movq	_SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	leaq	-48(%rbp), %rcx
	movq	%r13, %r8
	callq	_radeon_atom_get_voltage_gpio_settings
	movl	$0, %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_PM_NUMBER_OF_VOLTAGE_LEVELS,4,2 ## @R600_PM_NUMBER_OF_VOLTAGE_LEVELS
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ## @SET_VOLTAGE_TYPE_ASIC_VDDC
	.no_dead_strip	_rv6xx_get_master_voltage_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_get_master_voltage_mask
_rv6xx_get_master_voltage_mask:         ; @rv6xx_get_master_voltage_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_rv6xx_get_pi
Lloh0:
	adrp	x22, _R600_PM_NUMBER_OF_VOLTAGE_LEVELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _R600_PM_NUMBER_OF_VOLTAGE_LEVELS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	w21, #0
Lloh2:
	adrp	x24, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SET_VOLTAGE_TYPE_ASIC_VDDC@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w1, [x8, x23, lsl #2]
	ldr	w2, [x24]
	add	x3, sp, #8
	add	x4, sp, #12
	mov	x0, x19
	bl	_radeon_atom_get_voltage_gpio_settings
	ldr	w8, [sp, #12]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w21, w8, w21
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_PM_NUMBER_OF_VOLTAGE_LEVELS,4,2 ; @R600_PM_NUMBER_OF_VOLTAGE_LEVELS
	.comm	_SET_VOLTAGE_TYPE_ASIC_VDDC,4,2 ; @SET_VOLTAGE_TYPE_ASIC_VDDC
	.no_dead_strip	_rv6xx_get_master_voltage_mask
.subsections_via_symbols
