	.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, %r15
	movl	(%rdi), %edi
	callq	_of_get_child_count
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	callq	_tegra_emc_find_node_by_ram_code
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r14
	leaq	72(%rax), %rdi
	callq	_init_completion
	movq	_tegra_emc_clk_change_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%r15, 64(%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tegra_emc_load_timings_from_dt
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_of_node_put
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.5:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	56(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r13d
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_emc_setup_hw
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.14:
	movq	_tegra_emc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.6(%rip), %rsi
	xorl	%edi, %edi
	callq	_clk_get_sys
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
LBB0_20:
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_21:
	leaq	L_.str.8(%rip), %rsi
	xorl	%edi, %edi
	callq	_clk_get_sys
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_30
LBB0_23:
	movq	32(%r14), %rdi
	callq	_clk_get_parent
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	48(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_27
LBB0_25:
	movq	%r14, %rbx
	addq	$24, %rbx
	movq	32(%r14), %rdi
	movq	%rbx, %rsi
	callq	_clk_notifier_register
	testl	%eax, %eax
	je	LBB0_31
## %bb.26:
	movl	%eax, %r13d
	leaq	L_.str.11(%rip), %rsi
LBB0_27:
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_29:
	movq	16(%r14), %rdi
	callq	_clk_put
LBB0_30:
	movq	8(%r14), %rdi
	callq	_clk_put
	jmp	LBB0_12
LBB0_31:
	movq	40(%r14), %rax
	movslq	(%r14), %rcx
	movl	-4(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_emc_init
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %r13d
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r14), %rdi
	movq	%rbx, %rsi
	callq	_clk_notifier_unregister
	jmp	LBB0_29
LBB0_33:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EMC device tree node doesn't have memory timings\n"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt not specified\n"

L_.str.2:                               ## @.str.2
	.asciz	"please update your device tree\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tegra_emc_clk_change_notify,4,2 ## @tegra_emc_clk_change_notify
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_tegra_emc_isr,4,2              ## @tegra_emc_isr
L_.str.3:                               ## @.str.3
	.asciz	"failed to request IRQ#%u: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"emc"

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

L_.str.6:                               ## @.str.6
	.asciz	"pll_m"

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

L_.str.8:                               ## @.str.8
	.asciz	"pll_p"

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

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

L_.str.11:                              ## @.str.11
	.asciz	"failed to register clk notifier: %d\n"

L_.str.12:                              ## @.str.12
	.asciz	"failed to initialize EMC clock rate: %d\n"

	.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
	ldr	w0, [x0]
	bl	_of_get_child_count
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_tegra_emc_find_node_by_ram_code
	cbz	x0, LBB0_9
; %bb.3:
	mov	x24, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x20, x0
	add	x0, x0, #72
	bl	_init_completion
Lloh3:
	adrp	x8, _tegra_emc_clk_change_notify@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tegra_emc_clk_change_notify@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #24]!
	str	x19, [x20, #64]
	mov	x0, x20
	mov	x1, x24
	bl	_tegra_emc_load_timings_from_dt
	mov	x23, x0
	mov	x0, x24
	bl	_of_node_put
	cbnz	w23, LBB0_12
; %bb.5:
Lloh6:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.6:
	ldr	x0, [x20, #56]
	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_7:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w23, #0
	b	LBB0_12
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x23, x22
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x24
	bl	_of_node_put
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x23
	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_13:
	mov	x0, x20
	bl	_emc_setup_hw
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.14:
Lloh19:
	adrp	x8, _tegra_emc_isr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tegra_emc_isr@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
	stp	x22, x23, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_16:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_clk_get_sys
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_12
LBB0_21:
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_clk_get_sys
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.22:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_29
LBB0_23:
	ldr	x0, [x20, #32]
	bl	_clk_get_parent
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_25
; %bb.24:
	ldr	x0, [x20, #48]
	bl	_PTR_ERR
	mov	x23, x0
	str	x23, [sp]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_27
LBB0_25:
	ldr	x0, [x20, #32]
	mov	x1, x21
	bl	_clk_notifier_register
	cbz	w0, LBB0_30
; %bb.26:
	mov	x23, x0
	str	x23, [sp]
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_dev_err
LBB0_28:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	x0, [x20, #16]
	bl	_clk_put
LBB0_29:
	ldr	x0, [x20, #8]
	bl	_clk_put
	b	LBB0_12
LBB0_30:
	ldr	x8, [x20, #40]
	ldrsw	x9, [x20]
	add	x8, x8, x9, lsl #2
	ldur	w1, [x8, #-4]
	mov	x0, x20
	bl	_emc_init
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.31:
	str	x23, [sp]
Lloh40:
	adrp	x1, l_.str.12@PAGE
Lloh41:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #32]
	mov	x1, x21
	bl	_clk_notifier_unregister
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EMC device tree node doesn't have memory timings\n"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt not specified\n"

l_.str.2:                               ; @.str.2
	.asciz	"please update your device tree\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tegra_emc_clk_change_notify,4,2 ; @tegra_emc_clk_change_notify
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_tegra_emc_isr,4,2              ; @tegra_emc_isr
l_.str.3:                               ; @.str.3
	.asciz	"failed to request IRQ#%u: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"emc"

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

l_.str.6:                               ; @.str.6
	.asciz	"pll_m"

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

l_.str.8:                               ; @.str.8
	.asciz	"pll_p"

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

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

l_.str.11:                              ; @.str.11
	.asciz	"failed to register clk notifier: %d\n"

l_.str.12:                              ; @.str.12
	.asciz	"failed to initialize EMC clock rate: %d\n"

	.no_dead_strip	_tegra_emc_probe
.subsections_via_symbols
