	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_devfreq_get_dev_status
_tegra_devfreq_get_dev_status:          ## @tegra_devfreq_get_dev_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	_MC_STAT_EMC_COUNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
	movl	%eax, (%r14)
	movq	_MC_STAT_EMC_CLOCKS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl_relaxed
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 4(%r14)
	movl	8(%rbx), %edi
	callq	_clk_get_rate
	movl	%eax, 8(%r14)
	movq	_EMC_GATHER_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MC_STAT_CONTROL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_EMC_GATHER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MC_STAT_EMC_COUNT,8,3          ## @MC_STAT_EMC_COUNT
	.comm	_MC_STAT_EMC_CLOCKS,8,3         ## @MC_STAT_EMC_CLOCKS
	.comm	_EMC_GATHER_CLEAR,4,2           ## @EMC_GATHER_CLEAR
	.comm	_MC_STAT_CONTROL,8,3            ## @MC_STAT_CONTROL
	.comm	_EMC_GATHER_ENABLE,4,2          ## @EMC_GATHER_ENABLE
	.no_dead_strip	_tegra_devfreq_get_dev_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_devfreq_get_dev_status
_tegra_devfreq_get_dev_status:          ; @tegra_devfreq_get_dev_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MC_STAT_EMC_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MC_STAT_EMC_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	str	w0, [x19]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MC_STAT_EMC_CLOCKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MC_STAT_EMC_CLOCKS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	str	w8, [x19, #4]
	ldr	w0, [x20, #8]
	bl	_clk_get_rate
	str	w0, [x19, #8]
Lloh6:
	adrp	x8, _EMC_GATHER_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EMC_GATHER_CLEAR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh9:
	adrp	x19, _MC_STAT_CONTROL@GOTPAGE
Lloh10:
	ldr	x19, [x19, _MC_STAT_CONTROL@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh11:
	adrp	x8, _EMC_GATHER_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EMC_GATHER_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_writel_relaxed
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MC_STAT_EMC_COUNT,8,3          ; @MC_STAT_EMC_COUNT
	.comm	_MC_STAT_EMC_CLOCKS,8,3         ; @MC_STAT_EMC_CLOCKS
	.comm	_EMC_GATHER_CLEAR,4,2           ; @EMC_GATHER_CLEAR
	.comm	_MC_STAT_CONTROL,8,3            ; @MC_STAT_CONTROL
	.comm	_EMC_GATHER_ENABLE,4,2          ; @EMC_GATHER_ENABLE
	.no_dead_strip	_tegra_devfreq_get_dev_status
.subsections_via_symbols
