	.file	"extr_mtd_dataflash.c_dataflash_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"status error %d\n"
.LC1:
	.string	"AT45DB011B"
.LC2:
	.string	"AT45DB021B"
.LC3:
	.string	"AT45DB041x"
.LC4:
	.string	"AT45DB081B"
.LC5:
	.string	"AT45DB161x"
.LC6:
	.string	"AT45DB321x"
.LC7:
	.string	"AT45DB642x"
.LC8:
	.string	"unsupported device (%x)\n"
.LC9:
	.string	"add_dataflash --> %d\n"
	.text
	.p2align 4
	.type	dataflash_probe, @function
dataflash_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	jedec_probe@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L27
	test	rbp, rbp
	je	.L3
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SUP_POW2PS[rip], eax
	mov	rdi, r12
	setne	al
	mov	ecx, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 16[rbp]
	mov	r8d, DWORD PTR 4[rbp]
	movzx	eax, al
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	r9d, 99[rax]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	add_dataflash_otp@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r12
	call	dataflash_status@PLT
	cmp	eax, 255
	mov	r13d, eax
	sete	bpl
	test	eax, eax
	jle	.L20
	test	bpl, bpl
	jne	.L20
	and	r13d, 60
	lea	edx, -12[r13]
	cmp	edx, 48
	ja	.L9
	lea	rcx, .L11[rip]
	movsx	rdx, DWORD PTR [rcx+rdx*4]
	add	rdx, rcx
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L11:
	.long	.L17-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L16-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L15-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L14-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L13-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L12-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L10-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L10-.L11
	.text
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, r13d
	lea	rsi, .LC8[rip]
	mov	rdi, r12
	call	dev_info@PLT
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
	.p2align 4,,10
	.p2align 3
.L18:
	test	r13d, r13d
	js	.L28
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_dbg@PLT
	test	r13d, r13d
	je	.L21
	test	bpl, bpl
	je	.L1
.L21:
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
	jmp	.L1
.L10:
	mov	r8d, 11
	mov	ecx, 1056
	mov	edx, 8192
	mov	rdi, r12
	lea	rsi, .LC7[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L12:
	mov	r8d, 10
	mov	ecx, 528
	mov	edx, 8192
	mov	rdi, r12
	lea	rsi, .LC6[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L13:
	mov	r8d, 10
	mov	ecx, 528
	mov	edx, 4096
	mov	rdi, r12
	lea	rsi, .LC5[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L14:
	mov	r8d, 9
	mov	ecx, 264
	mov	edx, 4096
	mov	rdi, r12
	lea	rsi, .LC4[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L15:
	mov	r8d, 9
	mov	ecx, 264
	mov	edx, 2048
	mov	rdi, r12
	lea	rsi, .LC3[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L16:
	mov	r8d, 9
	mov	ecx, 264
	mov	edx, 1024
	mov	rdi, r12
	lea	rsi, .LC2[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
.L17:
	mov	r8d, 9
	mov	ecx, 264
	mov	edx, 512
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	call	add_dataflash@PLT
	mov	r13d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, r13d
	lea	rsi, .LC9[rip]
	mov	rdi, r12
	call	dev_dbg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dataflash_probe, .-dataflash_probe
	.comm	SUP_POW2PS,4,4
	.comm	ENODEV,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_dataflash_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"status error %d\012\000"
	.align	2
.LC1:
	.ascii	"AT45DB011B\000"
	.align	2
.LC2:
	.ascii	"AT45DB021B\000"
	.align	2
.LC3:
	.ascii	"AT45DB041x\000"
	.align	2
.LC4:
	.ascii	"AT45DB081B\000"
	.align	2
.LC5:
	.ascii	"AT45DB161x\000"
	.align	2
.LC6:
	.ascii	"AT45DB321x\000"
	.align	2
.LC7:
	.ascii	"AT45DB642x\000"
	.align	2
.LC8:
	.ascii	"unsupported device (%x)\012\000"
	.align	2
.LC9:
	.ascii	"add_dataflash --> %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dataflash_probe, %function
dataflash_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r5, r0
	bl	jedec_probe
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L23
	cmp	r4, #0
	beq	.L3
	ldr	r3, .L25
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	ip, [r4, #4]
	tst	r2, r3
	movne	lr, #100
	moveq	lr, #99
	ldr	r1, [r4, #16]
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	mov	r0, r5
	stm	sp, {ip, lr}
	bl	add_dataflash_otp
	mov	r4, r0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r5
	bl	dataflash_status
	sub	r6, r0, #255
	clz	r6, r6
	cmp	r0, #255
	cmpne	r0, #0
	mov	r4, r0
	lsr	r6, r6, #5
	ble	.L24
	and	r2, r0, #60
	sub	r3, r2, #12
	cmp	r3, #48
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L15
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L14
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L13
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L12
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L11
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L10
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L8
.L23:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L7:
	mov	r0, r5
	ldr	r1, .L25+4
	bl	dev_info
	ldr	r3, .L25+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L16:
	cmp	r4, #0
	bge	.L1
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L25+12
	bl	dev_dbg
	b	.L1
.L24:
	mov	r0, r5
	mov	r2, r4
	ldr	r1, .L25+16
	bl	dev_dbg
	cmp	r4, #0
	moveq	r6, #1
	cmp	r6, #0
	ldrne	r3, .L25+8
	ldrne	r0, [r3]
	rsbne	r4, r0, #0
	b	.L1
.L8:
	mov	r2, #11
	mov	r3, #1056
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #8192
	ldr	r1, .L25+20
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L10:
	mov	r2, #10
	mov	r3, #528
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #8192
	ldr	r1, .L25+24
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L11:
	mov	r2, #10
	mov	r3, #528
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #4096
	ldr	r1, .L25+28
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L12:
	mov	r2, #9
	mov	r3, #264
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #4096
	ldr	r1, .L25+32
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L13:
	mov	r2, #9
	mov	r3, #264
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #2048
	ldr	r1, .L25+36
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L14:
	mov	r2, #9
	mov	r3, #264
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #1024
	ldr	r1, .L25+40
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L15:
	mov	r2, #9
	mov	r3, #264
	str	r2, [sp]
	mov	r0, r5
	mov	r2, #512
	ldr	r1, .L25+44
	bl	add_dataflash
	mov	r4, r0
	b	.L16
.L26:
	.align	2
.L25:
	.word	SUP_POW2PS
	.word	.LC8
	.word	ENODEV
	.word	.LC9
	.word	.LC0
	.word	.LC7
	.word	.LC6
	.word	.LC5
	.word	.LC4
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	dataflash_probe, .-dataflash_probe
	.comm	SUP_POW2PS,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
