	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_devfreq_probe
_tegra_devfreq_probe:                   ## @tegra_devfreq_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_tegra_get_memory_controller
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_7:
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	16(%r15), %rdi
	movq	_ULONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_clk_round_rate
	movq	%rax, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movq	%rbx, %rsi
	callq	_clk_round_rate
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_dev_pm_opp_add
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	jbe	LBB0_9
## %bb.11:
	movq	_MC_STAT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	_MC_STAT_EMC_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	_MC_STAT_EMC_CLOCK_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tegra_devfreq_profile@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_devfreq_add_device
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_10:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_13:
	movq	%r14, %rdi
	callq	_dev_pm_opp_remove_all_dynamic
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get memory controller: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"emc"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get emc clock: %d\n"

	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
L_.str.3:                               ## @.str.3
	.asciz	"failed to add opp: %d\n"

	.comm	_MC_STAT_CONTROL,8,3            ## @MC_STAT_CONTROL
	.comm	_MC_STAT_EMC_CONTROL,8,3        ## @MC_STAT_EMC_CONTROL
	.comm	_MC_STAT_EMC_CLOCK_LIMIT,8,3    ## @MC_STAT_EMC_CLOCK_LIMIT
	.comm	_tegra_devfreq_profile,4,2      ## @tegra_devfreq_profile
	.comm	_DEVFREQ_GOV_SIMPLE_ONDEMAND,4,2 ## @DEVFREQ_GOV_SIMPLE_ONDEMAND
	.no_dead_strip	_tegra_devfreq_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_devfreq_probe
_tegra_devfreq_probe:                   ; @tegra_devfreq_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_tegra_get_memory_controller
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_3:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_3
LBB0_8:
	ldr	x8, [x21]
	str	x8, [x20, #8]
	ldr	x0, [x20, #16]
Lloh12:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	bl	_clk_round_rate
	mov	x22, x0
	mov	x1, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #16]
	bl	_clk_round_rate
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_dev_pm_opp_add
	cbnz	w0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, x23, #1
	cmp	x1, x22
	b.ls	LBB0_9
; %bb.11:
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _MC_STAT_CONTROL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MC_STAT_CONTROL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
Lloh18:
	adrp	x9, _MC_STAT_EMC_CONTROL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MC_STAT_EMC_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _MC_STAT_EMC_CLOCK_LIMIT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MC_STAT_EMC_CLOCK_LIMIT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel_relaxed
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh24:
	adrp	x8, _DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DEVFREQ_GOV_SIMPLE_ONDEMAND@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x1, _tegra_devfreq_profile@GOTPAGE
Lloh28:
	ldr	x1, [x1, _tegra_devfreq_profile@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, #0
	bl	_devfreq_add_device
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_14
LBB0_13:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_14:
	mov	x0, x19
	bl	_dev_pm_opp_remove_all_dynamic
	b	LBB0_3
LBB0_15:
	mov	w21, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get memory controller: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"emc"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get emc clock: %d\n"

	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
l_.str.3:                               ; @.str.3
	.asciz	"failed to add opp: %d\n"

	.comm	_MC_STAT_CONTROL,8,3            ; @MC_STAT_CONTROL
	.comm	_MC_STAT_EMC_CONTROL,8,3        ; @MC_STAT_EMC_CONTROL
	.comm	_MC_STAT_EMC_CLOCK_LIMIT,8,3    ; @MC_STAT_EMC_CLOCK_LIMIT
	.comm	_tegra_devfreq_profile,4,2      ; @tegra_devfreq_profile
	.comm	_DEVFREQ_GOV_SIMPLE_ONDEMAND,4,2 ; @DEVFREQ_GOV_SIMPLE_ONDEMAND
	.no_dead_strip	_tegra_devfreq_probe
.subsections_via_symbols
