	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_get_table_locations    ## -- Begin function cypress_get_table_locations
	.p2align	4, 0x90
_cypress_get_table_locations:           ## @cypress_get_table_locations
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rv770_get_pi
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_evergreen_get_pi
	movq	%rax, %r14
	movq	_EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %r12
	movq	_EVERGREEN_SMC_FIRMWARE_HEADER_stateTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	(%r15), %ecx
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rv770_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-40(%rbp), %rax
	movq	%rax, 16(%r15)
	movq	_EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	(%r15), %ecx
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rv770_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	_EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	(%r15), %ecx
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rv770_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION,8,3 ## @EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_stateTable,8,3 ## @EVERGREEN_SMC_FIRMWARE_HEADER_stateTable
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters,8,3 ## @EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable,8,3 ## @EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cypress_get_table_locations    ; -- Begin function cypress_get_table_locations
	.p2align	2
_cypress_get_table_locations:           ; @cypress_get_table_locations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	bl	_rv770_get_pi
	mov	x21, x0
	mov	x0, x20
	bl	_evergreen_get_pi
	mov	x19, x0
Lloh0:
	adrp	x22, _EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _EVERGREEN_SMC_FIRMWARE_HEADER_stateTable@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EVERGREEN_SMC_FIRMWARE_HEADER_stateTable@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w3, [x21]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rv770_read_smc_sram_dword
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x21, #16]
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w3, [x21]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rv770_read_smc_sram_dword
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	str	x8, [x21, #8]
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w3, [x21]
	add	x2, sp, #8
	mov	x0, x20
	bl	_rv770_read_smc_sram_dword
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION,8,3 ; @EVERGREEN_SMC_FIRMWARE_HEADER_LOCATION
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_stateTable,8,3 ; @EVERGREEN_SMC_FIRMWARE_HEADER_stateTable
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters,8,3 ; @EVERGREEN_SMC_FIRMWARE_HEADER_softRegisters
	.comm	_EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable,8,3 ; @EVERGREEN_SMC_FIRMWARE_HEADER_mcRegisterTable
.subsections_via_symbols
