	.file	"extr_mtd_dataflash.c_add_dataflash_otp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"spi%d.%d-%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"%s (%lld KBytes) pagesize %d bytes%s\n"
	.text
	.p2align 4
	.type	add_dataflash_otp, @function
add_dataflash_otp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 4[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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
	mov	rdi, r15
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 16[rsp], edx
	mov	DWORD PTR 28[rsp], r8d
	mov	DWORD PTR 8[rsp], r9d
	call	dev_get_platdata@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 96
	mov	r12, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L19
	lea	rdi, 88[rax]
	mov	r14, rax
	call	mutex_init@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	QWORD PTR 80[r14], rbp
	mov	r8, r13
	mov	DWORD PTR [r14], ebx
	mov	rdi, QWORD PTR 8[r14]
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 4[r14], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR [rax]
	call	sprintf@PLT
	lea	r11, 16[r14]
	test	r12, r12
	je	.L4
	mov	rax, QWORD PTR 16[r12]
	test	rax, rax
	jne	.L5
.L4:
	mov	rax, QWORD PTR 8[r14]
.L5:
	mov	QWORD PTR 72[r14], rax
	mov	eax, DWORD PTR MTD_DATAFLASH[rip]
	mov	rdi, r11
	mov	edx, DWORD PTR 16[rsp]
	mov	DWORD PTR 20[r14], ebx
	mov	DWORD PTR 64[r14], eax
	mov	eax, DWORD PTR MTD_WRITEABLE[rip]
	imul	edx, ebx
	mov	DWORD PTR 24[r14], ebx
	mov	esi, DWORD PTR 4[rbp]
	mov	DWORD PTR 60[r14], eax
	mov	eax, DWORD PTR dataflash_erase[rip]
	mov	QWORD PTR 40[r14], r14
	mov	DWORD PTR 56[r14], eax
	mov	eax, DWORD PTR dataflash_read[rip]
	mov	DWORD PTR 16[r14], edx
	mov	DWORD PTR 52[r14], eax
	mov	eax, DWORD PTR dataflash_write[rip]
	mov	QWORD PTR 32[r14], r15
	mov	DWORD PTR 48[r14], eax
	mov	QWORD PTR 16[rsp], r11
	call	mtd_set_of_node@PLT
	cmp	BYTE PTR 8[rsp], 98
	mov	r11, QWORD PTR 16[rsp]
	lea	r9, .LC0[rip]
	jg	.L20
.L6:
	mov	eax, DWORD PTR 16[r14]
	mov	rdx, r13
	mov	r8d, ebx
	mov	rdi, r15
	lea	rsi, .LC2[rip]
	mov	QWORD PTR 8[rsp], r11
	lea	ecx, 1023[rax]
	sar	ecx, 10
	movsx	rcx, ecx
	call	dev_info@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	spi_set_drvdata@PLT
	xor	edx, edx
	test	r12, r12
	mov	r11, QWORD PTR 8[rsp]
	je	.L7
	mov	edx, DWORD PTR [r12]
	mov	r12, QWORD PTR 8[r12]
.L7:
	mov	rsi, r12
	mov	rdi, r11
	call	mtd_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rdi, r14
	call	kfree@PLT
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	esi, BYTE PTR 8[rsp]
	mov	rdi, r11
	mov	QWORD PTR 8[rsp], r11
	call	otp_setup@PLT
	mov	r11, QWORD PTR 8[rsp]
	mov	r9, rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	add_dataflash_otp, .-add_dataflash_otp
	.comm	dataflash_write,4,4
	.comm	dataflash_read,4,4
	.comm	dataflash_erase,4,4
	.comm	MTD_WRITEABLE,4,4
	.comm	MTD_DATAFLASH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_mtd_dataflash.c_add_dataflash_otp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"spi%d.%d-%s\000"
	.align	2
.LC2:
	.ascii	"%s (%lld KBytes) pagesize %d bytes%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_dataflash_otp, %function
add_dataflash_otp:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r6, r3
	add	r10, r0, #4
	ldrb	r3, [sp, #68]	@ zero_extendqisi2
	mov	r5, r0
	mov	r0, r10
	mov	r9, r1
	mov	r8, r2
	str	r3, [sp, #20]
	bl	dev_get_platdata
	ldr	r3, .L20
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, #64
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L18
	add	r0, r4, #60
	bl	mutex_init
	ldr	r3, [r5, #8]
	ldr	r0, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, [sp, #64]
	str	r5, [r4, #56]
	str	r3, [r4, #4]
	str	r6, [r4]
	str	r9, [sp]
	ldr	r3, [r5]
	ldr	r1, .L20+4
	bl	sprintf
	cmp	r7, #0
	add	fp, r4, #12
	beq	.L4
	ldr	r1, [r7, #8]
	cmp	r1, #0
	bne	.L5
.L4:
	ldr	r1, [r4, #8]
.L5:
	ldr	r2, .L20+8
	ldr	r0, .L20+12
	ldr	ip, [r2]
	ldr	r2, .L20+16
	ldr	lr, [r0]
	str	r1, [r4, #52]
	mul	r8, r6, r8
	ldr	r1, [r2]
	ldr	r0, .L20+20
	ldr	r2, .L20+24
	ldr	r0, [r0]
	ldr	r2, [r2]
	str	r0, [r4, #40]
	str	r1, [r4, #36]
	mov	r0, fp
	ldr	r1, [r5, #4]
	str	r8, [r4, #12]
	str	r6, [r4, #16]
	str	r6, [r4, #20]
	str	r4, [r4, #28]
	str	r10, [r4, #24]
	str	lr, [r4, #48]
	str	ip, [r4, #44]
	str	r2, [r4, #32]
	bl	mtd_set_of_node
	ldr	r3, [sp, #20]
	cmp	r3, #98
	ldrls	r0, .L20+28
	bhi	.L19
.L6:
	str	r0, [sp, #12]
	str	r6, [sp, #8]
	ldr	r8, [r4, #12]
	mov	r2, r9
	add	r8, r8, #1020
	add	r8, r8, #3
	asr	r8, r8, #10
	asr	r9, r8, #31
	ldr	r1, .L20+32
	mov	r0, r10
	stm	sp, {r8-r9}
	bl	dev_info
	mov	r1, r4
	mov	r0, r5
	bl	spi_set_drvdata
	cmp	r7, #0
	moveq	r1, r7
	ldrne	r1, [r7, #4]
	moveq	r2, r1
	ldrne	r2, [r7]
	mov	r0, fp
	bl	mtd_device_register
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L20+36
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r1, r3
	mov	r0, fp
	bl	otp_setup
	b	.L6
.L21:
	.align	2
.L20:
	.word	GFP_KERNEL
	.word	.LC1
	.word	MTD_WRITEABLE
	.word	MTD_DATAFLASH
	.word	dataflash_read
	.word	dataflash_erase
	.word	dataflash_write
	.word	.LC0
	.word	.LC2
	.word	ENOMEM
	.size	add_dataflash_otp, .-add_dataflash_otp
	.comm	dataflash_write,4,4
	.comm	dataflash_read,4,4
	.comm	dataflash_erase,4,4
	.comm	MTD_WRITEABLE,4,4
	.comm	MTD_DATAFLASH,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
