	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_populate_smc_acpi_state
_rv770_populate_smc_acpi_state:         ## @rv770_populate_smc_acpi_state
	.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
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_rv770_get_pi
	movq	%rax, %rbx
	movl	32(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	36(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	40(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	44(%rbx), %r13d
	movl	48(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	52(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	56(%rbx), %r15d
	movups	16(%r12), %xmm0
	movups	%xmm0, (%r12)
	movq	_PPSMC_SWSTATE_FLAG_DC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r12)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.1:
	movq	(%r12), %rdx
	addq	$104, %rdx
	movq	%r14, %rdi
	callq	_rv770_populate_vddc_value
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	movq	(%r12), %rax
	je	LBB0_6
## %bb.3:
	movl	$1, (%rax)
	movl	$1, 4(%rax)
	jmp	LBB0_9
LBB0_8:
	movq	(%rbx), %rsi
	movq	(%r12), %rdx
	addq	$104, %rdx
	movq	%r14, %rdi
	callq	_rv770_populate_vddc_value
	movq	(%r12), %rax
	movl	$0, (%rax)
	jmp	LBB0_9
LBB0_4:
	movq	(%r12), %rax
	movl	$0, (%rax)
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movl	$1, 4(%rax)
	jmp	LBB0_9
LBB0_6:
	movl	$0, (%rax)
LBB0_7:
	movl	$0, 4(%rax)
LBB0_9:
	movq	_BIAS_GEN_PDNB@GOTPCREL(%rip), %rax
	movq	_RESET_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_MRDCKA0_RESET@GOTPCREL(%rip), %rax
	movq	_MRDCKA1_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_MRDCKB0_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MRDCKB1_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MRDCKC0_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	orl	%r14d, -44(%rbp)                ## 4-byte Folded Spill
	movq	_MRDCKC1_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	orl	%r13d, %r14d
	movq	_MRDCKD0_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MRDCKD1_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_SPLL_RESET@GOTPCREL(%rip), %rax
	movq	_SPLL_SLEEP@GOTPCREL(%rip), %rcx
	movq	_SPLL_BYPASS_EN@GOTPCREL(%rip), %rdx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	orl	(%rdx), %r13d
	movq	_SCLK_MUX_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	andl	%eax, %ebx
	movl	$4, %edi
	callq	_SCLK_MUX_SEL
	orl	%eax, %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 96(%rcx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 88(%rcx)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 80(%rcx)
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 72(%rcx)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 64(%rcx)
	movl	$-16777216, %edi                ## imm = 0xFF000000
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 56(%rcx)
	movq	$0, 48(%rcx)
	movl	%r13d, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 40(%rcx)
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	(%r12), %rdx
	movq	%rax, 24(%rdx)
	movq	$0, 16(%rdx)
	addq	$8, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_rv770_populate_mvdd_value
	movq	(%r12), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	48(%rax), %xmm3
	movups	%xmm0, 112(%rax)
	movups	%xmm1, 128(%rax)
	movups	%xmm2, 144(%rax)
	movups	%xmm3, 160(%rax)
	movups	64(%rax), %xmm0
	movups	%xmm0, 176(%rax)
	movups	80(%rax), %xmm0
	movups	%xmm0, 192(%rax)
	movups	96(%rax), %xmm0
	movups	%xmm0, 208(%rax)
	movq	(%r12), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	48(%rax), %xmm3
	movups	%xmm0, 224(%rax)
	movups	80(%rax), %xmm0
	movups	%xmm0, 304(%rax)
	movups	64(%rax), %xmm0
	movups	%xmm0, 288(%rax)
	movups	%xmm3, 272(%rax)
	movups	%xmm2, 256(%rax)
	movups	%xmm1, 240(%rax)
	movups	96(%rax), %xmm0
	movups	%xmm0, 320(%rax)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_SWSTATE_FLAG_DC,4,2      ## @PPSMC_SWSTATE_FLAG_DC
	.comm	_BIAS_GEN_PDNB,4,2              ## @BIAS_GEN_PDNB
	.comm	_RESET_EN,4,2                   ## @RESET_EN
	.comm	_MRDCKA0_RESET,4,2              ## @MRDCKA0_RESET
	.comm	_MRDCKA1_RESET,4,2              ## @MRDCKA1_RESET
	.comm	_MRDCKB0_RESET,4,2              ## @MRDCKB0_RESET
	.comm	_MRDCKB1_RESET,4,2              ## @MRDCKB1_RESET
	.comm	_MRDCKC0_RESET,4,2              ## @MRDCKC0_RESET
	.comm	_MRDCKC1_RESET,4,2              ## @MRDCKC1_RESET
	.comm	_MRDCKD0_RESET,4,2              ## @MRDCKD0_RESET
	.comm	_MRDCKD1_RESET,4,2              ## @MRDCKD1_RESET
	.comm	_SPLL_RESET,4,2                 ## @SPLL_RESET
	.comm	_SPLL_SLEEP,4,2                 ## @SPLL_SLEEP
	.comm	_SPLL_BYPASS_EN,4,2             ## @SPLL_BYPASS_EN
	.comm	_SCLK_MUX_SEL_MASK,4,2          ## @SCLK_MUX_SEL_MASK
	.no_dead_strip	_rv770_populate_smc_acpi_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_populate_smc_acpi_state
_rv770_populate_smc_acpi_state:         ; @rv770_populate_smc_acpi_state
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_rv770_get_pi
	mov	x24, x0
	ldp	w23, w25, [x0, #32]
	ldp	w22, w26, [x0, #40]
	ldp	w27, w28, [x0, #48]
	ldr	w21, [x0, #56]
	ldr	q0, [x19, #16]
Lloh0:
	adrp	x8, _PPSMC_SWSTATE_FLAG_DC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_SWSTATE_FLAG_DC@GOTPAGEOFF]
	str	q0, [x19]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	add	x2, x8, #104
	mov	x0, x20
	bl	_rv770_populate_vddc_value
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [x24, #8]
	ldr	x8, [x19]
	cbz	x9, LBB0_7
; %bb.3:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x1, [x24]
	ldr	x8, [x19]
	add	x2, x8, #104
	mov	x0, x20
	bl	_rv770_populate_vddc_value
	ldr	x8, [x19]
	str	wzr, [x8]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19]
	str	wzr, [x8]
	ldr	x9, [x24, #8]
	cbz	x9, LBB0_8
LBB0_6:
	mov	w9, #1
	str	w9, [x8, #4]
	b	LBB0_9
LBB0_7:
	str	wzr, [x8]
LBB0_8:
	str	wzr, [x8, #4]
LBB0_9:
Lloh3:
	adrp	x8, _BIAS_GEN_PDNB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIAS_GEN_PDNB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RESET_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RESET_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w25, w8, w25
	orr	w24, w8, w26
Lloh9:
	adrp	x8, _MRDCKA0_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MRDCKA0_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MRDCKA1_RESET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MRDCKA1_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _MRDCKB0_RESET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MRDCKB0_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _MRDCKB1_RESET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MRDCKB1_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _MRDCKC0_RESET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MRDCKC0_RESET@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _MRDCKC1_RESET@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MRDCKC1_RESET@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _MRDCKD0_RESET@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MRDCKD0_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _MRDCKD1_RESET@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MRDCKD1_RESET@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w26, w8, w9
Lloh33:
	adrp	x8, _SPLL_RESET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SPLL_RESET@GOTPAGEOFF]
Lloh35:
	adrp	x9, _SPLL_SLEEP@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SPLL_SLEEP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _SPLL_BYPASS_EN@GOTPAGE
Lloh40:
	ldr	x10, [x10, _SPLL_BYPASS_EN@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w8, w8, w27
	orr	w8, w8, w9
	orr	w27, w8, w10
Lloh42:
	adrp	x8, _SCLK_MUX_SEL_MASK@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SCLK_MUX_SEL_MASK@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	bic	w28, w28, w8
	mov	w0, #4
	bl	_SCLK_MUX_SEL
	orr	w28, w28, w0
	mov	x0, x23
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #96]
	mov	x0, x25
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #88]
	mov	x0, x22
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #80]
	mov	x0, x24
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #72]
	mov	x0, x26
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #64]
	mov	w0, #-16777216
	bl	_cpu_to_be32
	ldr	x8, [x19]
	stp	xzr, x0, [x8, #48]
	mov	x0, x27
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #40]
	mov	x0, x28
	bl	_cpu_to_be32
	ldr	x8, [x19]
	str	x0, [x8, #32]
	mov	x0, x21
	bl	_cpu_to_be32
	ldr	x8, [x19]
	stp	xzr, x0, [x8, #16]
	add	x2, x8, #8
	mov	x0, x20
	mov	w1, #0
	bl	_rv770_populate_mvdd_value
	ldr	x8, [x19]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x8, #112]
	ldr	q2, [x8, #96]
	ldp	q3, q0, [x8, #64]
	stp	q0, q2, [x8, #192]
	ldp	q0, q1, [x8, #32]
	str	q0, [x8, #144]
	stp	q1, q3, [x8, #160]
	ldr	x8, [x19]
	ldp	q1, q0, [x8]
	stp	q1, q0, [x8, #224]
	ldr	q2, [x8, #96]
	ldp	q3, q0, [x8, #64]
	stp	q0, q2, [x8, #304]
	ldp	q0, q1, [x8, #32]
	str	q0, [x8, #256]
	stp	q1, q3, [x8, #272]
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_SWSTATE_FLAG_DC,4,2      ; @PPSMC_SWSTATE_FLAG_DC
	.comm	_BIAS_GEN_PDNB,4,2              ; @BIAS_GEN_PDNB
	.comm	_RESET_EN,4,2                   ; @RESET_EN
	.comm	_MRDCKA0_RESET,4,2              ; @MRDCKA0_RESET
	.comm	_MRDCKA1_RESET,4,2              ; @MRDCKA1_RESET
	.comm	_MRDCKB0_RESET,4,2              ; @MRDCKB0_RESET
	.comm	_MRDCKB1_RESET,4,2              ; @MRDCKB1_RESET
	.comm	_MRDCKC0_RESET,4,2              ; @MRDCKC0_RESET
	.comm	_MRDCKC1_RESET,4,2              ; @MRDCKC1_RESET
	.comm	_MRDCKD0_RESET,4,2              ; @MRDCKD0_RESET
	.comm	_MRDCKD1_RESET,4,2              ; @MRDCKD1_RESET
	.comm	_SPLL_RESET,4,2                 ; @SPLL_RESET
	.comm	_SPLL_SLEEP,4,2                 ; @SPLL_SLEEP
	.comm	_SPLL_BYPASS_EN,4,2             ; @SPLL_BYPASS_EN
	.comm	_SCLK_MUX_SEL_MASK,4,2          ; @SCLK_MUX_SEL_MASK
	.no_dead_strip	_rv770_populate_smc_acpi_state
.subsections_via_symbols
