	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_emc_probe
_tegra_emc_probe:                       ## @tegra_emc_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	12(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_16
## %bb.9:
	movq	%r15, %rdi
	callq	_platform_get_drvdata
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_tegra_read_ram_code
	movl	%eax, %r12d
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_tegra_emc_find_node_by_ram_code
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_tegra_emc_load_timings_from_dt
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_of_node_put
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.12:
	cmpq	$0, (%rbx)
	je	LBB0_21
## %bb.13:
	movq	%rbx, %rdi
	callq	_emc_init
	testl	%eax, %eax
	je	LBB0_22
## %bb.14:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_17:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_21:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_22:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_CONFIG_DEBUG_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_emc_debugfs_init
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvidia,memory-controller"

L_.str.1:                               ## @.str.1
	.asciz	"could not get memory controller\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"no memory timings for RAM code %u found in DT\n"

L_.str.3:                               ## @.str.3
	.asciz	"no memory timings for RAM code %u registered\n"

L_.str.4:                               ## @.str.4
	.asciz	"EMC initialization failed: %d\n"

	.comm	_CONFIG_DEBUG_FS,4,2            ## @CONFIG_DEBUG_FS
	.no_dead_strip	_tegra_emc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_emc_probe
_tegra_emc_probe:                       ; @tegra_emc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #12]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_12
; %bb.5:
	mov	x21, x0
	bl	_of_find_device_by_node
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x22, LBB0_14
; %bb.6:
	mov	x0, x22
	bl	_platform_get_drvdata
	str	w0, [x20, #8]
	cbz	w0, LBB0_17
; %bb.7:
	bl	_tegra_read_ram_code
	mov	x22, x0
	ldr	w0, [x19]
	mov	x1, x22
	bl	_tegra_emc_find_node_by_ram_code
	cbz	x0, LBB0_18
; %bb.8:
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_tegra_emc_load_timings_from_dt
	mov	x21, x0
	mov	x0, x23
	bl	_of_node_put
	cbnz	w21, LBB0_16
; %bb.9:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.10:
	mov	x0, x20
	bl	_emc_init
	cbz	w0, LBB0_20
; %bb.11:
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_16
LBB0_12:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
LBB0_14:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh16:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_15
LBB0_18:
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_19:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh22:
	adrp	x8, _CONFIG_DEBUG_FS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CONFIG_DEBUG_FS@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_emc_debugfs_init
LBB0_22:
	mov	w21, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvidia,memory-controller"

l_.str.1:                               ; @.str.1
	.asciz	"could not get memory controller\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"no memory timings for RAM code %u found in DT\n"

l_.str.3:                               ; @.str.3
	.asciz	"no memory timings for RAM code %u registered\n"

l_.str.4:                               ; @.str.4
	.asciz	"EMC initialization failed: %d\n"

	.comm	_CONFIG_DEBUG_FS,4,2            ; @CONFIG_DEBUG_FS
	.no_dead_strip	_tegra_emc_probe
.subsections_via_symbols
