	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega20_set_tools_address
_vega20_set_tools_address:              ## @vega20_set_tools_address
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	(%r15), %rax
	movq	_TABLE_PMSTATUSLOG@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_PPSMC_MSG_SetToolsDramAddrHigh@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_vega20_send_msg_to_smc_with_parameter
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_PPSMC_MSG_SetToolsDramAddrLow@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r15), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_lower_32_bits
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vega20_send_msg_to_smc_with_parameter ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TABLE_PMSTATUSLOG,8,3          ## @TABLE_PMSTATUSLOG
	.comm	_PPSMC_MSG_SetToolsDramAddrHigh,4,2 ## @PPSMC_MSG_SetToolsDramAddrHigh
	.comm	_PPSMC_MSG_SetToolsDramAddrLow,4,2 ## @PPSMC_MSG_SetToolsDramAddrLow
	.no_dead_strip	_vega20_set_tools_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega20_set_tools_address
_vega20_set_tools_address:              ; @vega20_set_tools_address
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _TABLE_PMSTATUSLOG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TABLE_PMSTATUSLOG@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PPSMC_MSG_SetToolsDramAddrHigh@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_MSG_SetToolsDramAddrHigh@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_vega20_send_msg_to_smc_with_parameter
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh5:
	adrp	x8, _PPSMC_MSG_SetToolsDramAddrLow@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPSMC_MSG_SetToolsDramAddrLow@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	x8, [x21]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_vega20_send_msg_to_smc_with_parameter
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TABLE_PMSTATUSLOG,8,3          ; @TABLE_PMSTATUSLOG
	.comm	_PPSMC_MSG_SetToolsDramAddrHigh,4,2 ; @PPSMC_MSG_SetToolsDramAddrHigh
	.comm	_PPSMC_MSG_SetToolsDramAddrLow,4,2 ; @PPSMC_MSG_SetToolsDramAddrLow
	.no_dead_strip	_vega20_set_tools_address
.subsections_via_symbols
