	.file	"extr_tmio_nand.c_tmio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NULL platform data!\n"
.LC1:
	.string	"tmio-nand"
.LC2:
	.string	"request_irq error %d\n"
	.text
	.p2align 4
	.type	tmio_probe, @function
tmio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	dev_get_platdata@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	r12, rax
	call	platform_get_resource@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	rbx, rax
	call	platform_get_resource@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r13, rax
	call	platform_get_irq@PLT
	mov	DWORD PTR 4[rsp], eax
	test	r12, r12
	je	.L22
.L2:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 120
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L23
	lea	rdi, 112[rax]
	call	init_completion@PLT
	mov	QWORD PTR 104[r15], rbp
	mov	rsi, r15
	mov	rdi, rbp
	call	platform_set_drvdata@PLT
	lea	rax, 24[r15]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	nand_to_mtd@PLT
	mov	rdi, r13
	mov	r14, rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR [r14], rax
	mov	QWORD PTR 8[r14], rbp
	call	resource_size@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	mov	edx, eax
	call	devm_ioremap@PLT
	mov	QWORD PTR 16[r15], rax
	test	rax, rax
	je	.L20
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbx
	and	eax, 1048575
	mov	DWORD PTR [r15], eax
	call	resource_size@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	edx, eax
	call	devm_ioremap@PLT
	mov	QWORD PTR 8[r15], rax
	test	rax, rax
	je	.L20
	mov	rsi, r15
	mov	rdi, rbp
	call	tmio_hw_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR 76[r15], 512
	mov	QWORD PTR 64[r15], rax
	mov	QWORD PTR 56[r15], rax
	mov	eax, DWORD PTR tmio_nand_hwcontrol[rip]
	mov	DWORD PTR 48[r15], eax
	mov	eax, DWORD PTR tmio_nand_dev_ready[rip]
	mov	DWORD PTR 44[r15], eax
	mov	eax, DWORD PTR tmio_nand_read_byte[rip]
	mov	DWORD PTR 40[r15], eax
	mov	eax, DWORD PTR tmio_nand_write_buf[rip]
	mov	DWORD PTR 36[r15], eax
	mov	eax, DWORD PTR tmio_nand_read_buf[rip]
	mov	DWORD PTR 32[r15], eax
	mov	eax, DWORD PTR NAND_ECC_HW[rip]
	mov	DWORD PTR 100[r15], eax
	movabs	rax, 8589934598
	mov	QWORD PTR 80[r15], rax
	mov	eax, DWORD PTR tmio_nand_enable_hwecc[rip]
	mov	DWORD PTR 96[r15], eax
	mov	eax, DWORD PTR tmio_nand_calculate_ecc[rip]
	mov	DWORD PTR 92[r15], eax
	mov	eax, DWORD PTR tmio_nand_correct_data[rip]
	mov	DWORD PTR 88[r15], eax
	test	r12, r12
	je	.L7
	mov	eax, DWORD PTR 24[r12]
	mov	DWORD PTR 72[r15], eax
.L7:
	mov	DWORD PTR 24[r15], 15
	mov	rdi, rbp
	call	dev_name@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	r9, r15
	xor	ecx, ecx
	mov	r8d, eax
	lea	rdx, tmio_irq[rip]
	mov	rdi, rbp
	call	devm_request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L24
	mov	eax, DWORD PTR 4[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 1
	mov	DWORD PTR 4[r15], eax
	mov	eax, DWORD PTR tmio_nand_wait[rip]
	mov	DWORD PTR 28[r15], eax
	call	nand_scan@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L9
	xor	ecx, ecx
	test	r12, r12
	je	.L10
	mov	r13d, DWORD PTR [r12]
	mov	rcx, QWORD PTR 8[r12]
	mov	r12, QWORD PTR 16[r12]
.L10:
	mov	r8d, r13d
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, r14
	call	mtd_device_parse_register@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR 8[rsp]
	call	nand_release@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
.L9:
	mov	rsi, r15
	mov	rdi, rbp
	call	tmio_hw_stop@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_warn@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	tmio_probe, .-tmio_probe
	.comm	tmio_nand_write_buf,4,4
	.comm	tmio_nand_wait,4,4
	.comm	tmio_nand_read_byte,4,4
	.comm	tmio_nand_read_buf,4,4
	.comm	tmio_nand_hwcontrol,4,4
	.comm	tmio_nand_enable_hwecc,4,4
	.comm	tmio_nand_dev_ready,4,4
	.comm	tmio_nand_correct_data,4,4
	.comm	tmio_nand_calculate_ecc,4,4
	.comm	tmio_irq,4,4
	.comm	NAND_ECC_HW,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_tmio_nand.c_tmio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"NULL platform data!\012\000"
	.align	2
.LC1:
	.ascii	"tmio-nand\000"
	.align	2
.LC2:
	.ascii	"request_irq error %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmio_probe, %function
tmio_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r5, r0
	bl	dev_get_platdata
	ldr	r4, .L24
	mov	r7, r0
	mov	r2, #0
	ldr	r1, [r4]
	mov	r0, r5
	bl	platform_get_resource
	mov	r2, #1
	ldr	r1, [r4]
	mov	fp, r0
	mov	r0, r5
	bl	platform_get_resource
	mov	r1, #0
	mov	r6, r0
	mov	r0, r5
	bl	platform_get_irq
	cmp	r7, #0
	mov	r9, r0
	beq	.L21
.L2:
	ldr	r3, .L24+4
	mov	r1, #92
	mov	r0, r5
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L22
	add	r0, r4, #88
	bl	init_completion
	add	r10, r4, #16
	mov	r1, r4
	mov	r0, r5
	str	r5, [r4, #84]
	bl	platform_set_drvdata
	mov	r0, r10
	bl	nand_to_mtd
	ldr	r3, .L24+8
	ldr	r1, [r6]
	stm	r0, {r3, r5}
	mov	r8, r0
	mov	r0, r6
	str	r1, [sp, #12]
	bl	resource_size
	ldr	r1, [sp, #12]
	mov	r2, r0
	mov	r0, r5
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L19
	ldr	r6, [fp]
	mov	r0, fp
	bic	r3, r6, #-16777216
	bic	r3, r3, #15728640
	str	r3, [r4]
	bl	resource_size
	mov	r1, r6
	mov	r2, r0
	mov	r0, r5
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L19
	mov	r1, r4
	mov	r0, r5
	bl	tmio_hw_init
	subs	r6, r0, #0
	bne	.L1
	mov	r3, #512
	ldr	r0, .L24+12
	str	r3, [r4, #56]
	ldr	r0, [r0]
	ldr	r3, .L24+16
	str	r0, [r4, #40]
	ldr	r0, [r3]
	ldr	r3, .L24+20
	str	r0, [r4, #36]
	ldr	r0, [r3]
	ldr	r3, .L24+24
	str	r0, [r4, #32]
	ldr	r0, [r3]
	ldr	r3, .L24+28
	str	r0, [r4, #28]
	ldr	r0, [r3]
	ldr	r3, .L24+32
	str	r0, [r4, #24]
	ldr	r0, [r3]
	ldr	r3, .L24+36
	str	r0, [r4, #80]
	ldr	r0, [r3]
	ldr	r3, .L24+40
	str	r0, [r4, #76]
	ldr	r0, [r3]
	ldr	r3, .L24+44
	cmp	r7, #0
	ldr	r3, [r3]
	mov	r1, #6
	str	r3, [r4, #68]
	ldr	r3, [r4, #8]
	mov	r2, #2
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	ldrne	r3, [r7, #12]
	str	r0, [r4, #72]
	strne	r3, [r4, #52]
	mov	r3, #15
	str	r1, [r4, #60]
	str	r2, [r4, #64]
	str	r3, [r4, #16]
	mov	r0, r5
	bl	dev_name
	mov	r3, #0
	stm	sp, {r0, r4}
	mov	r1, r9
	mov	r0, r5
	ldr	r2, .L24+48
	bl	devm_request_irq
	subs	r6, r0, #0
	bne	.L23
	ldr	r3, .L24+52
	mov	r1, #1
	ldr	r3, [r3]
	mov	r0, r10
	str	r9, [r4, #4]
	str	r3, [r4, #20]
	bl	nand_scan
	subs	r6, r0, #0
	bne	.L9
	cmp	r7, #0
	ldrne	r6, [r7]
	ldrne	r1, [r7, #8]
	ldrne	r3, [r7, #4]
	moveq	r3, r6
	moveq	r1, r6
	str	r6, [sp]
	mov	r0, r8
	mov	r2, #0
	bl	mtd_device_parse_register
	subs	r6, r0, #0
	beq	.L1
	mov	r0, r10
	bl	nand_release
	b	.L9
.L19:
	ldr	r3, .L24+56
	ldr	r0, [r3]
	rsb	r6, r0, #0
.L1:
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r3, .L24+60
	ldr	r0, [r3]
	rsb	r6, r0, #0
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, .L24+64
	bl	dev_err
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	tmio_hw_stop
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r5
	ldr	r1, .L24+68
	bl	dev_warn
	b	.L2
.L25:
	.align	2
.L24:
	.word	IORESOURCE_MEM
	.word	GFP_KERNEL
	.word	.LC1
	.word	tmio_nand_hwcontrol
	.word	tmio_nand_dev_ready
	.word	tmio_nand_read_byte
	.word	tmio_nand_write_buf
	.word	tmio_nand_read_buf
	.word	NAND_ECC_HW
	.word	tmio_nand_enable_hwecc
	.word	tmio_nand_calculate_ecc
	.word	tmio_nand_correct_data
	.word	tmio_irq
	.word	tmio_nand_wait
	.word	EIO
	.word	ENOMEM
	.word	.LC2
	.word	.LC0
	.size	tmio_probe, .-tmio_probe
	.comm	tmio_nand_write_buf,4,4
	.comm	tmio_nand_wait,4,4
	.comm	tmio_nand_read_byte,4,4
	.comm	tmio_nand_read_buf,4,4
	.comm	tmio_nand_hwcontrol,4,4
	.comm	tmio_nand_enable_hwecc,4,4
	.comm	tmio_nand_dev_ready,4,4
	.comm	tmio_nand_correct_data,4,4
	.comm	tmio_nand_calculate_ecc,4,4
	.comm	tmio_irq,4,4
	.comm	NAND_ECC_HW,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
