	.file	"extr_mpc5121_nfc.c_mpc5121_nfc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SoC revision %u is not supported!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Unable to read NFC config!\n"
.LC2:
	.string	"Error mapping IRQ!\n"
.LC3:
	.string	"Error parsing memory region!\n"
.LC4:
	.string	"chips"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Invalid/missing 'chips' property!\n"
	.align 8
.LC6:
	.string	"Error requesting memory region!\n"
	.section	.rodata.str1.1
.LC7:
	.string	"Error mapping memory region!\n"
.LC8:
	.string	"MPC5121 NAND"
.LC9:
	.string	"fsl,mpc5121ads"
.LC10:
	.string	"Chipselect init error!\n"
.LC11:
	.string	"ipg"
.LC12:
	.string	"Unable to acquire NFC clock!\n"
.LC13:
	.string	"Unable to enable NFC clock!\n"
.LC14:
	.string	"Timeout while resetting NFC!\n"
.LC15:
	.string	"Error requesting IRQ!\n"
.LC16:
	.string	"NAND Flash not found !\n"
.LC17:
	.string	"Unsupported NAND flash!\n"
.LC18:
	.string	"Error adding MTD device!\n"
	.text
	.p2align 4
	.type	mpc5121_nfc_probe, @function
mpc5121_nfc_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, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR [rdi]
	mov	edi, DWORD PTR SPRN_SVR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	mfspr@PLT
	sar	eax, 4
	mov	edx, eax
	and	edx, 15
	lea	eax, -2[rdx]
	cmp	eax, 1
	ja	.L43
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 104
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L40
	lea	r14, 40[rax]
	mov	rdi, r14
	call	nand_to_mtd@PLT
	mov	rsi, rbx
	mov	rdi, r14
	mov	QWORD PTR 24[rax], rbp
	mov	r13, rax
	call	nand_set_controller_data@PLT
	mov	rdi, r14
	mov	rsi, r12
	call	nand_set_flash_node@PLT
	mov	QWORD PTR 32[rbx], rbp
	mov	rdi, r13
	call	mpc5121_nfc_read_hw_config@PLT
	test	eax, eax
	jne	.L44
	xor	esi, esi
	mov	rdi, r12
	call	irq_of_parse_and_map@PLT
	cmp	rax, QWORD PTR NO_IRQ[rip]
	lea	rsi, .LC2[rip]
	mov	QWORD PTR [rbx], rax
	je	.L41
	lea	r15, 32[rsp]
	xor	esi, esi
	mov	rdi, r12
	mov	rdx, r15
	call	of_address_to_resource@PLT
	test	eax, eax
	jne	.L45
	mov	rdi, r12
	lea	rdx, 28[rsp]
	lea	rsi, .LC4[rip]
	call	of_get_property@PLT
	mov	r12, rax
	test	rax, rax
	je	.L8
	cmp	DWORD PTR 28[rsp], 4
	je	.L9
.L8:
	lea	rsi, .LC5[rip]
.L41:
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L43:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR ENXIO[rip]
	neg	r8d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L48:
	.cfi_restore_state
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L40:
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rsi
	call	resource_size@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, DWORD PTR DRV_NAME[rip]
	mov	rdi, rbp
	mov	rdx, rax
	mov	r15, rax
	call	devm_request_mem_region@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	eax, eax
	je	.L47
	mov	rdx, r15
	mov	rdi, rbp
	call	devm_ioremap@PLT
	mov	DWORD PTR 24[rbx], eax
	test	eax, eax
	je	.L48
	lea	rax, .LC8[rip]
	lea	rdi, .LC9[rip]
	mov	QWORD PTR 0[r13], rax
	mov	eax, DWORD PTR mpc5121_nfc_dev_ready[rip]
	mov	DWORD PTR 80[rbx], eax
	mov	eax, DWORD PTR mpc5121_nfc_command[rip]
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR mpc5121_nfc_read_byte[rip]
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR mpc5121_nfc_read_buf[rip]
	mov	DWORD PTR 68[rbx], eax
	mov	eax, DWORD PTR mpc5121_nfc_write_buf[rip]
	mov	DWORD PTR 64[rbx], eax
	mov	eax, DWORD PTR mpc5121_nfc_select_chip[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	rax, QWORD PTR nand_get_set_features_notsupp[rip]
	mov	QWORD PTR 56[rbx], rax
	mov	QWORD PTR 48[rbx], rax
	mov	eax, DWORD PTR NAND_BBT_USE_FLASH[rip]
	mov	DWORD PTR 96[rbx], eax
	mov	eax, DWORD PTR NAND_ECC_SOFT[rip]
	mov	DWORD PTR 92[rbx], eax
	mov	eax, DWORD PTR NAND_ECC_HAMMING[rip]
	mov	DWORD PTR 88[rbx], eax
	call	of_machine_is_compatible@PLT
	test	rax, rax
	je	.L12
	mov	rdi, r13
	call	ads5121_chipselect_init@PLT
	test	eax, eax
	jne	.L49
	mov	eax, DWORD PTR ads5121_select_chip[rip]
	mov	DWORD PTR 40[rbx], eax
.L12:
	mov	rdi, rbp
	lea	rsi, .LC11[rip]
	call	devm_clk_get@PLT
	mov	rdi, rax
	mov	r15, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L50
	mov	rdi, r15
	call	clk_prepare_enable@PLT
	test	eax, eax
	jne	.L51
	mov	QWORD PTR 16[rbx], r15
	mov	edx, DWORD PTR NFC_RESET[rip]
	mov	rdi, r13
	xor	r15d, r15d
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	call	nfc_set@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	cmp	DWORD PTR NFC_RESET_TIMEOUT[rip], r15d
	jle	.L52
	mov	edi, 1
	add	r15d, 1
	call	udelay@PLT
.L17:
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	rdi, r13
	call	nfc_read@PLT
	test	DWORD PTR NFC_RESET[rip], eax
	jne	.L19
	mov	edx, DWORD PTR NFC_BLS_UNLOCKED[rip]
	mov	esi, DWORD PTR NFC_CONFIG[rip]
	mov	rdi, r13
	call	nfc_write@PLT
	mov	esi, DWORD PTR NFC_UNLOCKSTART_BLK0[rip]
	xor	edx, edx
	mov	rdi, r13
	call	nfc_write@PLT
	mov	esi, DWORD PTR NFC_UNLOCKEND_BLK0[rip]
	mov	edx, 65535
	mov	rdi, r13
	call	nfc_write@PLT
	mov	edx, DWORD PTR NFC_WPC_UNLOCK[rip]
	mov	esi, DWORD PTR NFC_WRPROT[rip]
	mov	rdi, r13
	call	nfc_write@PLT
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	edx, DWORD PTR NFC_BIG_ENDIAN[rip]
	mov	rdi, r13
	or	edx, DWORD PTR NFC_INT_MASK[rip]
	or	edx, DWORD PTR NFC_FULL_PAGE_INT[rip]
	call	nfc_write@PLT
	mov	edx, DWORD PTR 8[r13]
	mov	esi, DWORD PTR NFC_SPAS[rip]
	mov	rdi, r13
	sar	edx
	call	nfc_write@PLT
	lea	rdi, 8[rbx]
	call	init_waitqueue_head@PLT
	mov	rsi, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	r9, r13
	mov	r8d, DWORD PTR DRV_NAME[rip]
	lea	rdx, mpc5121_nfc_irq[rip]
	mov	rdi, rbp
	call	devm_request_irq@PLT
	test	eax, eax
	jne	.L53
	mov	rdi, r12
	call	be32_to_cpup@PLT
	mov	rdi, r14
	mov	esi, eax
	call	nand_scan@PLT
	test	eax, eax
	jne	.L54
	mov	eax, DWORD PTR 12[r13]
	cdq
	idiv	DWORD PTR 16[r13]
	cmp	eax, 128
	je	.L22
	jg	.L23
	cmp	eax, 32
	je	.L24
	cmp	eax, 64
	jne	.L26
	mov	edx, DWORD PTR NFC_PPB_64[rip]
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	rdi, r13
	call	nfc_set@PLT
.L28:
	mov	rsi, r13
	mov	rdi, rbp
	call	dev_set_drvdata@PLT
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	mtd_device_register@PLT
	mov	r8d, eax
	test	eax, eax
	je	.L1
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC18[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, r13
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	call	mpc5121_nfc_free@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r8d, DWORD PTR EBUSY[rip]
	neg	r8d
	jmp	.L1
.L50:
	lea	rsi, .LC12[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, r15
	call	PTR_ERR@PLT
	mov	r8d, eax
	jmp	.L15
.L51:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC13[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L15
.L52:
	lea	rsi, .LC14[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	jmp	.L15
.L23:
	cmp	eax, 256
	jne	.L26
	mov	edx, DWORD PTR NFC_PPB_256[rip]
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	rdi, r13
	call	nfc_set@PLT
	jmp	.L28
.L49:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L53:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC15[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L15
.L54:
	mov	DWORD PTR 8[rsp], eax
	lea	rsi, .LC16[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L15
.L22:
	mov	edx, DWORD PTR NFC_PPB_128[rip]
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	rdi, r13
	call	nfc_set@PLT
	jmp	.L28
.L46:
	call	__stack_chk_fail@PLT
.L26:
	lea	rsi, .LC17[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_err@PLT
	mov	r8d, DWORD PTR ENXIO[rip]
	neg	r8d
	jmp	.L15
.L24:
	mov	edx, DWORD PTR NFC_PPB_32[rip]
	mov	esi, DWORD PTR NFC_CONFIG1[rip]
	mov	rdi, r13
	call	nfc_set@PLT
	jmp	.L28
	.cfi_endproc
.LFE0:
	.size	mpc5121_nfc_probe, .-mpc5121_nfc_probe
	.comm	nand_get_set_features_notsupp,8,8
	.comm	mpc5121_nfc_write_buf,4,4
	.comm	mpc5121_nfc_select_chip,4,4
	.comm	mpc5121_nfc_read_byte,4,4
	.comm	mpc5121_nfc_read_buf,4,4
	.comm	mpc5121_nfc_irq,4,4
	.comm	mpc5121_nfc_dev_ready,4,4
	.comm	mpc5121_nfc_command,4,4
	.comm	ads5121_select_chip,4,4
	.comm	SPRN_SVR,4,4
	.comm	NO_IRQ,8,8
	.comm	NFC_WRPROT,4,4
	.comm	NFC_WPC_UNLOCK,4,4
	.comm	NFC_UNLOCKSTART_BLK0,4,4
	.comm	NFC_UNLOCKEND_BLK0,4,4
	.comm	NFC_SPAS,4,4
	.comm	NFC_RESET_TIMEOUT,4,4
	.comm	NFC_RESET,4,4
	.comm	NFC_PPB_64,4,4
	.comm	NFC_PPB_32,4,4
	.comm	NFC_PPB_256,4,4
	.comm	NFC_PPB_128,4,4
	.comm	NFC_INT_MASK,4,4
	.comm	NFC_FULL_PAGE_INT,4,4
	.comm	NFC_CONFIG1,4,4
	.comm	NFC_CONFIG,4,4
	.comm	NFC_BLS_UNLOCKED,4,4
	.comm	NFC_BIG_ENDIAN,4,4
	.comm	NAND_ECC_SOFT,4,4
	.comm	NAND_ECC_HAMMING,4,4
	.comm	NAND_BBT_USE_FLASH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	DRV_NAME,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_mpc5121_nfc.c_mpc5121_nfc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SoC revision %u is not supported!\012\000"
	.align	2
.LC1:
	.ascii	"Unable to read NFC config!\012\000"
	.align	2
.LC2:
	.ascii	"Error mapping IRQ!\012\000"
	.align	2
.LC3:
	.ascii	"Error parsing memory region!\012\000"
	.align	2
.LC4:
	.ascii	"chips\000"
	.align	2
.LC5:
	.ascii	"Invalid/missing 'chips' property!\012\000"
	.align	2
.LC6:
	.ascii	"Error requesting memory region!\012\000"
	.align	2
.LC7:
	.ascii	"Error mapping memory region!\012\000"
	.align	2
.LC8:
	.ascii	"MPC5121 NAND\000"
	.align	2
.LC9:
	.ascii	"fsl,mpc5121ads\000"
	.align	2
.LC10:
	.ascii	"Chipselect init error!\012\000"
	.align	2
.LC11:
	.ascii	"ipg\000"
	.align	2
.LC12:
	.ascii	"Unable to acquire NFC clock!\012\000"
	.align	2
.LC13:
	.ascii	"Unable to enable NFC clock!\012\000"
	.align	2
.LC14:
	.ascii	"Timeout while resetting NFC!\012\000"
	.align	2
.LC15:
	.ascii	"Error requesting IRQ!\012\000"
	.align	2
.LC16:
	.ascii	"NAND Flash not found !\012\000"
	.global	__aeabi_idiv
	.align	2
.LC17:
	.ascii	"Unsupported NAND flash!\012\000"
	.align	2
.LC18:
	.ascii	"Error adding MTD device!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpc5121_nfc_probe, %function
mpc5121_nfc_probe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r3, .L56
	ldr	r2, .L56+4
	ldr	r0, [r3]
	sub	sp, sp, #36
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	ldr	r9, [r5]
	bl	mfspr
	asr	r2, r0, #4
	and	r2, r2, #15
	sub	r3, r2, #2
	cmp	r3, #1
	bhi	.L43
	ldr	r3, .L56+8
	mov	r1, #64
	mov	r0, r5
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r6, r0, #0
	beq	.L41
	add	r8, r6, #20
	mov	r0, r8
	bl	nand_to_mtd
	mov	r7, r0
	mov	r1, r6
	mov	r0, r8
	str	r5, [r7, #16]
	bl	nand_set_controller_data
	mov	r1, r9
	mov	r0, r8
	bl	nand_set_flash_node
	mov	r0, r7
	str	r5, [r6, #16]
	bl	mpc5121_nfc_read_hw_config
	subs	r4, r0, #0
	bne	.L44
	mov	r1, r4
	mov	r0, r9
	bl	irq_of_parse_and_map
	ldr	r3, .L56+12
	str	r0, [r6]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L45
	mov	r1, r4
	mov	r0, r9
	add	r2, sp, #20
	bl	of_address_to_resource
	subs	r4, r0, #0
	bne	.L46
	mov	r0, r9
	ldr	r1, .L56+16
	add	r2, sp, #24
	bl	of_get_property
	subs	r9, r0, #0
	beq	.L8
	ldr	r3, [sp, #24]
	cmp	r3, #4
	beq	.L9
.L8:
	mov	r0, r5
	ldr	r1, .L56+20
	bl	dev_err
	ldr	r3, .L56+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L43:
	mov	r0, r5
	ldr	r1, .L56+28
	bl	dev_err
	ldr	r3, .L56+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L56+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L47
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L49:
	mov	r0, r5
	ldr	r1, .L56+36
	bl	dev_err
.L41:
	ldr	r3, .L56+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L46:
	mov	r0, r5
	ldr	r1, .L56+44
	bl	dev_err
	b	.L1
.L44:
	mov	r0, r5
	ldr	r1, .L56+48
	bl	dev_err
	b	.L1
.L45:
	mov	r0, r5
	ldr	r1, .L56+52
	bl	dev_err
	ldr	r3, .L56+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L9:
	add	r0, sp, #20
	ldr	r10, [sp, #20]
	bl	resource_size
	ldr	r3, .L56+56
	mov	r2, r0
	mov	r4, r0
	mov	r1, r10
	mov	r0, r5
	ldr	r3, [r3]
	bl	devm_request_mem_region
	cmp	r0, #0
	beq	.L48
	mov	r2, r4
	mov	r1, r10
	mov	r0, r5
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r6, #12]
	beq	.L49
	ldr	r2, .L56+60
	ldr	r3, .L56+64
	ldr	ip, [r2]
	ldr	r0, .L56+68
	ldr	r2, [r3]
	ldr	r1, .L56+72
	ldr	r3, .L56+76
	ldr	r1, [r1]
	str	r0, [r7]
	ldr	r0, [r3]
	str	r2, [r6, #40]
	ldr	r3, .L56+80
	ldr	r2, .L56+84
	str	r1, [r6, #48]
	str	r0, [r6, #36]
	ldr	r1, [r3]
	ldr	r0, [r2]
	ldr	r3, .L56+88
	ldr	r2, .L56+92
	str	ip, [r6, #44]
	str	r1, [r6, #32]
	ldr	ip, [r3]
	ldr	r1, [r2]
	ldr	r3, .L56+96
	ldr	r2, .L56+100
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [r6, #60]
	str	ip, [r6, #20]
	ldr	r0, .L56+104
	str	r3, [r6, #28]
	str	r3, [r6, #24]
	str	r1, [r6, #56]
	str	r2, [r6, #52]
	bl	of_machine_is_compatible
	cmp	r0, #0
	beq	.L12
	mov	r0, r7
	bl	ads5121_chipselect_init
	subs	r4, r0, #0
	bne	.L50
	ldr	r3, .L56+108
	ldr	r3, [r3]
	str	r3, [r6, #20]
.L12:
	ldr	r1, .L56+112
	mov	r0, r5
	bl	devm_clk_get
	mov	fp, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L51
	mov	r0, fp
	bl	clk_prepare_enable
	subs	r4, r0, #0
	bne	.L52
	ldr	r3, .L56+116
	ldr	r10, .L56+120
	str	fp, [r6, #8]
	mov	r0, r7
	ldr	r2, [r10]
	ldr	r1, [r3]
	bl	nfc_set
	ldr	fp, .L56+124
	b	.L17
.L19:
	ldr	r3, [fp]
	cmp	r3, r4
	ble	.L53
	mov	r0, #1
	bl	udelay
	add	r4, r4, #1
.L17:
	ldr	r3, .L56+116
	mov	r0, r7
	ldr	r1, [r3]
	bl	nfc_read
	ldr	r3, [r10]
	ands	r3, r0, r3
	bne	.L19
	ldr	r2, .L56+128
	ldr	r1, .L56+132
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r7
	str	r3, [sp, #12]
	bl	nfc_write
	ldr	r3, [sp, #12]
	ldr	r1, .L56+136
	mov	r2, r3
	ldr	r1, [r1]
	mov	r0, r7
	bl	nfc_write
	ldr	r1, .L56+140
	ldr	r2, .L56+144
	ldr	r1, [r1]
	mov	r0, r7
	bl	nfc_write
	ldr	r2, .L56+148
	ldr	r1, .L56+152
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r7
	bl	nfc_write
	ldr	r2, .L56+156
	ldr	r0, .L56+160
	ldr	r1, .L56+164
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r3, .L56+116
	ldr	r1, [r1]
	orr	r2, r2, r0
	orr	r2, r2, r1
	mov	r0, r7
	ldr	r1, [r3]
	bl	nfc_write
	ldr	r2, [r7, #4]
	ldr	r1, .L56+168
	asr	r2, r2, #1
	ldr	r1, [r1]
	mov	r0, r7
	bl	nfc_write
	add	r0, r6, #4
	bl	init_waitqueue_head
	ldr	r3, .L56+56
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r5
	stm	sp, {r2, r7}
	ldr	r3, [sp, #12]
	ldr	r2, .L56+172
	bl	devm_request_irq
	subs	r4, r0, #0
	bne	.L54
	mov	r0, r9
	bl	be32_to_cpup
	mov	r1, r0
	mov	r0, r8
	bl	nand_scan
	subs	r4, r0, #0
	bne	.L55
	ldr	r1, [r7, #12]
	ldr	r0, [r7, #8]
	bl	__aeabi_idiv
	cmp	r0, #128
	mov	r3, r0
	beq	.L22
	bgt	.L23
	cmp	r0, #32
	beq	.L24
	cmp	r0, #64
	ldreq	r3, .L56+176
	bne	.L26
.L40:
	ldr	r2, .L56+116
	mov	r0, r7
	ldr	r1, [r2]
	ldr	r2, [r3]
	bl	nfc_set
	mov	r1, r7
	mov	r0, r5
	bl	dev_set_drvdata
	mov	r2, #0
	mov	r0, r7
	mov	r1, r2
	bl	mtd_device_register
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	ldr	r1, .L56+180
	bl	dev_err
.L15:
	mov	r1, r7
	mov	r0, r5
	bl	mpc5121_nfc_free
	b	.L1
.L48:
	mov	r0, r5
	ldr	r1, .L56+184
	bl	dev_err
	ldr	r3, .L56+188
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L51:
	ldr	r1, .L56+192
	mov	r0, r5
	bl	dev_err
	mov	r0, fp
	bl	PTR_ERR
	mov	r4, r0
	b	.L15
.L52:
	mov	r0, r5
	ldr	r1, .L56+196
	bl	dev_err
	b	.L15
.L53:
	mov	r0, r5
	ldr	r1, .L56+200
	bl	dev_err
	ldr	r3, .L56+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L15
.L23:
	cmp	r0, #256
	ldreq	r3, .L56+204
	beq	.L40
.L26:
	mov	r0, r5
	ldr	r1, .L56+208
	bl	dev_err
	ldr	r3, .L56+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L15
.L50:
	mov	r0, r5
	ldr	r1, .L56+212
	bl	dev_err
	b	.L1
.L54:
	mov	r0, r5
	ldr	r1, .L56+216
	bl	dev_err
	b	.L15
.L55:
	mov	r0, r5
	ldr	r1, .L56+220
	bl	dev_err
	b	.L15
.L47:
	bl	__stack_chk_fail
.L22:
	ldr	r3, .L56+224
	b	.L40
.L24:
	ldr	r3, .L56+228
	b	.L40
.L57:
	.align	2
.L56:
	.word	SPRN_SVR
	.word	.LC19
	.word	GFP_KERNEL
	.word	NO_IRQ
	.word	.LC4
	.word	.LC5
	.word	EINVAL
	.word	.LC0
	.word	ENXIO
	.word	.LC7
	.word	ENOMEM
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	DRV_NAME
	.word	mpc5121_nfc_command
	.word	mpc5121_nfc_read_byte
	.word	.LC8
	.word	mpc5121_nfc_dev_ready
	.word	mpc5121_nfc_read_buf
	.word	mpc5121_nfc_write_buf
	.word	NAND_BBT_USE_FLASH
	.word	mpc5121_nfc_select_chip
	.word	NAND_ECC_SOFT
	.word	nand_get_set_features_notsupp
	.word	NAND_ECC_HAMMING
	.word	.LC9
	.word	ads5121_select_chip
	.word	.LC11
	.word	NFC_CONFIG1
	.word	NFC_RESET
	.word	NFC_RESET_TIMEOUT
	.word	NFC_BLS_UNLOCKED
	.word	NFC_CONFIG
	.word	NFC_UNLOCKSTART_BLK0
	.word	NFC_UNLOCKEND_BLK0
	.word	65535
	.word	NFC_WPC_UNLOCK
	.word	NFC_WRPROT
	.word	NFC_BIG_ENDIAN
	.word	NFC_INT_MASK
	.word	NFC_FULL_PAGE_INT
	.word	NFC_SPAS
	.word	mpc5121_nfc_irq
	.word	NFC_PPB_64
	.word	.LC18
	.word	.LC6
	.word	EBUSY
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	NFC_PPB_256
	.word	.LC17
	.word	.LC10
	.word	.LC15
	.word	.LC16
	.word	NFC_PPB_128
	.word	NFC_PPB_32
	.size	mpc5121_nfc_probe, .-mpc5121_nfc_probe
	.comm	nand_get_set_features_notsupp,4,4
	.comm	mpc5121_nfc_write_buf,4,4
	.comm	mpc5121_nfc_select_chip,4,4
	.comm	mpc5121_nfc_read_byte,4,4
	.comm	mpc5121_nfc_read_buf,4,4
	.comm	mpc5121_nfc_irq,4,4
	.comm	mpc5121_nfc_dev_ready,4,4
	.comm	mpc5121_nfc_command,4,4
	.comm	ads5121_select_chip,4,4
	.comm	SPRN_SVR,4,4
	.comm	NO_IRQ,4,4
	.comm	NFC_WRPROT,4,4
	.comm	NFC_WPC_UNLOCK,4,4
	.comm	NFC_UNLOCKSTART_BLK0,4,4
	.comm	NFC_UNLOCKEND_BLK0,4,4
	.comm	NFC_SPAS,4,4
	.comm	NFC_RESET_TIMEOUT,4,4
	.comm	NFC_RESET,4,4
	.comm	NFC_PPB_64,4,4
	.comm	NFC_PPB_32,4,4
	.comm	NFC_PPB_256,4,4
	.comm	NFC_PPB_128,4,4
	.comm	NFC_INT_MASK,4,4
	.comm	NFC_FULL_PAGE_INT,4,4
	.comm	NFC_CONFIG1,4,4
	.comm	NFC_CONFIG,4,4
	.comm	NFC_BLS_UNLOCKED,4,4
	.comm	NFC_BIG_ENDIAN,4,4
	.comm	NAND_ECC_SOFT,4,4
	.comm	NAND_ECC_HAMMING,4,4
	.comm	NAND_BBT_USE_FLASH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	DRV_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
