	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_get_mem_latency
_smu7_get_mem_latency:                  ## @smu7_get_mem_latency
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_MEM_FREQ_LOW_LATENCY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MEM_FREQ_HIGH_LATENCY@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	jle	LBB0_1
## %bb.2:
	movq	_MEM_LATENCY_ERR@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	addq	$8, %rax
	movq	%rax, %rdx
LBB0_3:
	cmpq	%rsi, %rcx
	cmovleq	%rax, %rdx
	movq	(%rdx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEM_FREQ_LOW_LATENCY,8,3       ## @MEM_FREQ_LOW_LATENCY
	.comm	_MEM_FREQ_HIGH_LATENCY,8,3      ## @MEM_FREQ_HIGH_LATENCY
	.comm	_MEM_LATENCY_ERR,8,3            ## @MEM_LATENCY_ERR
	.no_dead_strip	_smu7_get_mem_latency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_get_mem_latency
_smu7_get_mem_latency:                  ; @smu7_get_mem_latency
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MEM_FREQ_HIGH_LATENCY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEM_FREQ_HIGH_LATENCY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x10, x8, #8
Lloh3:
	adrp	x11, _MEM_LATENCY_ERR@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MEM_LATENCY_ERR@GOTPAGEOFF]
Lloh5:
	adrp	x12, _MEM_FREQ_LOW_LATENCY@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MEM_FREQ_LOW_LATENCY@GOTPAGEOFF]
	cmp	x9, x1
	csel	x9, x11, x10, gt
Lloh7:
	ldr	x10, [x12]
	ccmp	x10, x1, #0, gt
	csel	x8, x8, x9, le
	ldr	x0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MEM_FREQ_LOW_LATENCY,8,3       ; @MEM_FREQ_LOW_LATENCY
	.comm	_MEM_FREQ_HIGH_LATENCY,8,3      ; @MEM_FREQ_HIGH_LATENCY
	.comm	_MEM_LATENCY_ERR,8,3            ; @MEM_LATENCY_ERR
	.no_dead_strip	_smu7_get_mem_latency
.subsections_via_symbols
