	.file	"extr_tegra20-emc.c_tegra_emc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EMC device tree node doesn't have memory timings\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"interrupt not specified\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"please update your device tree\n"
	.section	.rodata.str1.1
.LC3:
	.string	"failed to request IRQ#%u: %d\n"
.LC4:
	.string	"emc"
.LC5:
	.string	"failed to get emc clock: %d\n"
.LC6:
	.string	"pll_m"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"failed to get pll_m clock: %d\n"
	.section	.rodata.str1.1
.LC8:
	.string	"pll_p"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"failed to get pll_p clock: %d\n"
	.align 8
.LC10:
	.string	"failed to get emc_mux clock: %d\n"
	.align 8
.LC11:
	.string	"failed to register clk notifier: %d\n"
	.align 8
.LC12:
	.string	"failed to initialize EMC clock rate: %d\n"
	.text
	.p2align 4
	.type	tegra_emc_probe, @function
tegra_emc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR [rdi]
	call	of_get_child_count@PLT
	test	rax, rax
	je	.L21
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L22
	mov	rdi, rbp
	call	tegra_emc_find_node_by_ram_code@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	r14, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 80
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L23
	lea	rdi, 72[rax]
	call	init_completion@PLT
	mov	QWORD PTR 64[rbx], rbp
	mov	rdi, rbx
	mov	rsi, r14
	mov	eax, DWORD PTR tegra_emc_clk_change_notify[rip]
	mov	DWORD PTR 24[rbx], eax
	call	tegra_emc_load_timings_from_dt@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	of_node_put@PLT
	test	r12d, r12d
	je	.L24
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	mov	r12d, r13d
	call	dev_err@PLT
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	platform_get_resource@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	devm_ioremap_resource@PLT
	mov	QWORD PTR 56[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, rbx
	call	emc_setup_hw@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	dev_name@PLT
	mov	edx, DWORD PTR tegra_emc_isr[rip]
	mov	r9, rbx
	xor	ecx, ecx
	mov	r8d, eax
	mov	esi, r13d
	mov	rdi, rbp
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L26
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	devm_clk_get@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	xor	edi, edi
	lea	rsi, .LC6[rip]
	call	clk_get_sys@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L28
	xor	edi, edi
	lea	rsi, .LC8[rip]
	call	clk_get_sys@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L29
	mov	rdi, QWORD PTR 32[rbx]
	call	clk_get_parent@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L30
	mov	rdi, QWORD PTR 32[rbx]
	lea	r13, 24[rbx]
	mov	rsi, r13
	call	clk_notifier_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	movsx	rdx, DWORD PTR [rbx]
	mov	rax, QWORD PTR 40[rbx]
	mov	rdi, rbx
	mov	esi, DWORD PTR -4[rax+rdx*4]
	call	emc_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edx, eax
	lea	rsi, .LC12[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	rsi, r13
	call	clk_notifier_unregister@PLT
.L14:
	mov	rdi, QWORD PTR 16[rbx]
	call	clk_put@PLT
.L12:
	mov	rdi, QWORD PTR 8[rbx]
	call	clk_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r14
	call	of_node_put@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, QWORD PTR 56[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	ecx, eax
	mov	edx, r13d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L27:
	mov	rdi, QWORD PTR 32[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L28:
	mov	rdi, QWORD PTR 8[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
.L29:
	mov	rdi, QWORD PTR 16[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L12
.L30:
	mov	rdi, QWORD PTR 48[rbx]
	call	PTR_ERR@PLT
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L14
.L31:
	mov	edx, eax
	lea	rsi, .LC11[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	tegra_emc_probe, .-tegra_emc_probe
	.comm	tegra_emc_isr,4,4
	.comm	tegra_emc_clk_change_notify,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tegra20-emc.c_tegra_emc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EMC device tree node doesn't have memory timings\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"interrupt not specified\012\000"
	.align	2
.LC2:
	.ascii	"please update your device tree\012\000"
	.align	2
.LC3:
	.ascii	"failed to request IRQ#%u: %d\012\000"
	.align	2
.LC4:
	.ascii	"emc\000"
	.align	2
.LC5:
	.ascii	"failed to get emc clock: %d\012\000"
	.align	2
.LC6:
	.ascii	"pll_m\000"
	.align	2
.LC7:
	.ascii	"failed to get pll_m clock: %d\012\000"
	.align	2
.LC8:
	.ascii	"pll_p\000"
	.align	2
.LC9:
	.ascii	"failed to get pll_p clock: %d\012\000"
	.align	2
.LC10:
	.ascii	"failed to get emc_mux clock: %d\012\000"
	.align	2
.LC11:
	.ascii	"failed to register clk notifier: %d\012\000"
	.align	2
.LC12:
	.ascii	"failed to initialize EMC clock rate: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_emc_probe, %function
tegra_emc_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	sub	sp, sp, #8
	ldr	r0, [r0]
	bl	of_get_child_count
	subs	r4, r0, #0
	beq	.L21
	mov	r1, #0
	mov	r0, r5
	bl	platform_get_irq
	subs	r6, r0, #0
	blt	.L22
	mov	r0, r5
	bl	tegra_emc_find_node_by_ram_code
	subs	r7, r0, #0
	beq	.L23
	ldr	r3, .L33
	mov	r1, #40
	mov	r0, r5
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r8, r0, #0
	beq	.L24
	add	r0, r8, #36
	bl	init_completion
	ldr	r3, .L33+4
	mov	r1, r7
	ldr	r3, [r3]
	mov	r0, r8
	str	r3, [r8, #12]
	str	r5, [r8, #32]
	bl	tegra_emc_load_timings_from_dt
	mov	r4, r0
	mov	r0, r7
	bl	of_node_put
	cmp	r4, #0
	beq	.L25
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r0, r5
	ldr	r1, .L33+8
	bl	dev_info
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r4, r6
	mov	r0, r5
	ldr	r1, .L33+12
	bl	dev_err
	mov	r0, r5
	ldr	r1, .L33+16
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r3, .L33+20
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r5
	bl	platform_get_resource
	mov	r1, r0
	mov	r0, r5
	bl	devm_ioremap_resource
	str	r0, [r8, #28]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L26
	mov	r0, r8
	bl	emc_setup_hw
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L33+24
	mov	r0, r5
	ldr	r7, [r3]
	bl	dev_name
	mov	r3, r4
	stm	sp, {r0, r8}
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	devm_request_irq
	subs	r4, r0, #0
	bne	.L27
	ldr	r1, .L33+28
	mov	r0, r5
	bl	devm_clk_get
	str	r0, [r8, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L28
	ldr	r1, .L33+32
	bl	clk_get_sys
	str	r0, [r8, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L29
	ldr	r1, .L33+36
	mov	r0, #0
	bl	clk_get_sys
	str	r0, [r8, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L30
	ldr	r0, [r8, #16]
	bl	clk_get_parent
	str	r0, [r8, #24]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L31
	add	r6, r8, #12
	mov	r1, r6
	ldr	r0, [r8, #16]
	bl	clk_notifier_register
	subs	r4, r0, #0
	bne	.L32
	ldr	r3, [r8]
	ldr	r2, [r8, #20]
	sub	r3, r3, #-1073741823
	mov	r0, r8
	ldr	r1, [r2, r3, lsl #2]
	bl	emc_init
	subs	r4, r0, #0
	beq	.L1
	ldr	r1, .L33+40
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	mov	r1, r6
	ldr	r0, [r8, #16]
	bl	clk_notifier_unregister
.L14:
	ldr	r0, [r8, #8]
	bl	clk_put
.L12:
	ldr	r0, [r8, #4]
	bl	clk_put
	b	.L1
.L23:
	ldr	r3, .L33+44
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r7
	bl	of_node_put
	ldr	r3, .L33+48
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L26:
	ldr	r0, [r8, #28]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L27:
	mov	r2, r6
	mov	r0, r5
	mov	r3, r4
	ldr	r1, .L33+52
	bl	dev_err
	b	.L1
.L28:
	ldr	r0, [r8, #16]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L33+56
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L29:
	ldr	r0, [r8, #4]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L33+60
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L1
.L30:
	ldr	r0, [r8, #8]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L33+64
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L12
.L31:
	ldr	r0, [r8, #24]
	bl	PTR_ERR
	mov	r4, r0
	ldr	r1, .L33+68
	mov	r0, r5
	mov	r2, r4
	bl	dev_err
	b	.L14
.L32:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L33+72
	bl	dev_err
	b	.L14
.L34:
	.align	2
.L33:
	.word	GFP_KERNEL
	.word	tegra_emc_clk_change_notify
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	IORESOURCE_MEM
	.word	tegra_emc_isr
	.word	.LC4
	.word	.LC6
	.word	.LC8
	.word	.LC12
	.word	EINVAL
	.word	ENOMEM
	.word	.LC3
	.word	.LC5
	.word	.LC7
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	tegra_emc_probe, .-tegra_emc_probe
	.comm	tegra_emc_isr,4,4
	.comm	tegra_emc_clk_change_notify,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
