	.file	"extr_at25.c_at25_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" (readonly)"
.LC1:
	.string	""
.LC2:
	.string	"KByte"
.LC3:
	.string	"Byte"
.LC4:
	.string	"unsupported address type\n"
.LC5:
	.string	"rdsr --> %d (%02x)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"%d %s %s eeprom%s, pagesize %u\n"
	.text
	.p2align 4
	.type	at25_probe, @function
at25_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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L21
	movdqu	xmm0, XMMWORD PTR [rax]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR EE_ADDR1[rip], eax
	jne	.L14
.L26:
	test	DWORD PTR EE_ADDR2[rip], eax
	jne	.L15
	mov	r13d, 3
	test	DWORD PTR EE_ADDR3[rip], eax
	je	.L22
.L5:
	mov	esi, DWORD PTR AT25_RDSR[rip]
	mov	rdi, rbp
	call	spi_w8r8@PLT
	mov	edx, eax
	test	eax, eax
	js	.L6
	mov	r12d, eax
	and	r12d, DWORD PTR AT25_SR_nRDY[rip]
	jne	.L6
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 112
	mov	rdi, rbp
	call	devm_kzalloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L23
	lea	rdi, 104[rax]
	call	mutex_init@PLT
	movdqa	xmm1, XMMWORD PTR [rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	QWORD PTR 96[rbx], rbp
	movups	XMMWORD PTR 4[rbx], xmm1
	call	spi_set_drvdata@PLT
	mov	DWORD PTR [rbx], r13d
	mov	rdi, rbp
	call	dev_name@PLT
	mov	QWORD PTR 80[rbx], rbp
	mov	rdi, rbp
	lea	rsi, 24[rbx]
	mov	DWORD PTR 88[rbx], eax
	mov	eax, DWORD PTR [rsp]
	and	eax, DWORD PTR EE_READONLY[rip]
	mov	QWORD PTR 64[rbx], rbp
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	QWORD PTR 48[rbx], rbx
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR at25_ee_read[rip]
	mov	DWORD PTR 60[rbx], eax
	mov	eax, DWORD PTR at25_ee_write[rip]
	mov	DWORD PTR 56[rbx], eax
	movabs	rax, 4294967297
	mov	QWORD PTR 28[rbx], rax
	add	rax, 3
	mov	QWORD PTR 36[rbx], rax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 44[rbx], eax
	call	devm_nvmem_register@PLT
	mov	DWORD PTR 20[rbx], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L24
	mov	edx, DWORD PTR [rsp]
	lea	r9, .LC0[rip]
	test	DWORD PTR EE_READONLY[rip], edx
	lea	rdx, .LC1[rip]
	cmove	r9, rdx
	mov	edx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR 12[rbx]
	mov	r8d, DWORD PTR 16[rbx]
	cmp	edx, 1023
	jg	.L11
	lea	rcx, .LC3[rip]
.L12:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 96
	call	dev_info@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r13d, 2
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, edx
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L21:
	.cfi_restore_state
	mov	rsi, rsp
	call	at25_fw_to_chip@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR EE_ADDR1[rip], eax
	je	.L26
.L14:
	mov	r13d, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	sar	edx, 10
	lea	rcx, .LC2[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 20[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	at25_probe, .-at25_probe
	.comm	at25_ee_write,4,4
	.comm	at25_ee_read,4,4
	.comm	THIS_MODULE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EE_READONLY,4,4
	.comm	EE_ADDR3,4,4
	.comm	EE_ADDR2,4,4
	.comm	EE_ADDR1,4,4
	.comm	AT25_SR_nRDY,4,4
	.comm	AT25_RDSR,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_at25.c_at25_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KByte\000"
	.align	2
.LC1:
	.ascii	"Byte\000"
	.align	2
.LC2:
	.ascii	" (readonly)\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"unsupported address type\012\000"
	.align	2
.LC5:
	.ascii	"rdsr --> %d (%02x)\012\000"
	.align	2
.LC6:
	.ascii	"%d %s %s eeprom%s, pagesize %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	at25_probe, %function
at25_probe:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	ldr	r2, .L25
	sub	sp, sp, #40
	cmp	r3, #0
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	add	r7, sp, #20
	beq	.L20
	ldm	r3, {r0, r1, r2, r3}
	stm	r7, {r0, r1, r2, r3}
.L4:
	ldr	r2, .L25+4
	ldr	r3, [sp, #20]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L13
	ldr	r2, .L25+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L14
	ldr	r2, .L25+12
	ldr	r2, [r2]
	tst	r3, r2
	movne	r6, #3
	beq	.L21
.L5:
	ldr	r3, .L25+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	spi_w8r8
	subs	r3, r0, #0
	blt	.L6
	ldr	r2, .L25+20
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L6
	ldr	r3, .L25+24
	mov	r1, #84
	mov	r0, r5
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L22
	add	r0, r4, #80
	bl	mutex_init
	ldm	r7, {r0, r1, r2, r3}
	str	r5, [r4, #76]
	stmib	r4, {r0, r1, r2, r3}
	mov	r1, r4
	mov	r0, r5
	bl	spi_set_drvdata
	str	r6, [r4]
	mov	r0, r5
	bl	dev_name
	mov	r2, #1
	mov	r1, #4
	ldr	ip, .L25+28
	ldr	r3, .L25+32
	ldr	r7, .L25+36
	ldr	lr, [ip]
	ldr	r6, [r7]
	ldr	ip, [r3]
	ldr	r3, [sp, #20]
	ldr	r8, .L25+40
	and	r3, r3, r6
	str	r0, [r4, #72]
	str	r3, [r4, #24]
	ldr	r0, [r8]
	ldr	r3, [sp, #24]
	str	lr, [r4, #64]
	str	ip, [r4, #56]
	str	r0, [r4, #52]
	str	r2, [r4, #28]
	str	r2, [r4, #32]
	str	r2, [r4, #40]
	str	r1, [r4, #36]
	str	r3, [r4, #44]
	add	r1, r4, #24
	mov	r0, r5
	str	r5, [r4, #68]
	str	r5, [r4, #60]
	str	r4, [r4, #48]
	bl	devm_nvmem_register
	str	r0, [r4, #20]
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L23
	ldr	r2, [sp, #24]
	ldr	r0, [r7]
	ldr	ip, [sp, #20]
	cmp	r2, #1024
	ldrge	r3, .L25+44
	ldrlt	r3, .L25+48
	asrge	r2, r2, #10
	tst	ip, r0
	ldr	r0, .L25+52
	ldr	r1, .L25+56
	moveq	r1, r0
	ldr	ip, [r4, #16]
	ldr	lr, [r4, #12]
	mov	r0, r5
	stmib	sp, {r1, lr}
	str	ip, [sp]
	ldr	r1, .L25+60
	bl	dev_info
	b	.L1
.L14:
	mov	r6, #2
	b	.L5
.L6:
	mov	r2, r3
	mov	r0, r5
	ldr	r1, .L25+64
	bl	dev_dbg
	ldr	r3, .L25+68
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r6
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r1, r7
	bl	at25_fw_to_chip
	subs	r6, r0, #0
	beq	.L4
	b	.L1
.L13:
	mov	r6, #1
	b	.L5
.L22:
	ldr	r3, .L25+72
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L21:
	mov	r0, r5
	ldr	r1, .L25+76
	bl	dev_dbg
	ldr	r3, .L25+80
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L23:
	ldr	r0, [r4, #20]
	bl	PTR_ERR
	mov	r6, r0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC7
	.word	EE_ADDR1
	.word	EE_ADDR2
	.word	EE_ADDR3
	.word	AT25_RDSR
	.word	AT25_SR_nRDY
	.word	GFP_KERNEL
	.word	THIS_MODULE
	.word	at25_ee_read
	.word	EE_READONLY
	.word	at25_ee_write
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.word	.LC6
	.word	.LC5
	.word	ENXIO
	.word	ENOMEM
	.word	.LC4
	.word	EINVAL
	.size	at25_probe, .-at25_probe
	.comm	at25_ee_write,4,4
	.comm	at25_ee_read,4,4
	.comm	THIS_MODULE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EE_READONLY,4,4
	.comm	EE_ADDR3,4,4
	.comm	EE_ADDR2,4,4
	.comm	EE_ADDR1,4,4
	.comm	AT25_SR_nRDY,4,4
	.comm	AT25_RDSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
