	.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	"no chip description\n"
.LC5:
	.string	"unsupported address type\n"
.LC6:
	.string	"rdsr --> %d (%02x)\n"
.LC7:
	.string	"eeprom"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC8:
	.string	"%Zd %s %s eeprom%s, pagesize %u\n"
	.section	.rodata.str1.1
.LC9:
	.string	"probe err %d\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, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 8[rdi]
	test	rbx, rbx
	je	.L23
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR EE_ADDR1[rip], eax
	jne	.L14
	test	DWORD PTR EE_ADDR2[rip], eax
	jne	.L15
	mov	r13d, 3
	test	DWORD PTR EE_ADDR3[rip], eax
	je	.L24
.L4:
	mov	esi, DWORD PTR AT25_RDSR[rip]
	mov	rdi, rbp
	call	spi_w8r8@PLT
	mov	edx, eax
	test	eax, eax
	js	.L5
	test	DWORD PTR AT25_SR_nRDY[rip], eax
	jne	.L5
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 88
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L25
	lea	rdi, 84[rax]
	call	mutex_init@PLT
	movdqu	xmm0, XMMWORD PTR [rbx]
	mov	rdi, rbp
	movups	XMMWORD PTR 8[r12], xmm0
	movdqu	xmm1, XMMWORD PTR 16[rbx]
	movups	XMMWORD PTR 24[r12], xmm1
	call	spi_dev_get@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 80[r12], eax
	call	dev_set_drvdata@PLT
	mov	edx, DWORD PTR at25_bin_read[rip]
	lea	rax, .LC7[rip]
	mov	DWORD PTR [r12], r13d
	mov	QWORD PTR 48[r12], rax
	mov	eax, DWORD PTR S_IRUSR[rip]
	mov	DWORD PTR 68[r12], edx
	mov	edx, DWORD PTR at25_mem_read[rip]
	mov	DWORD PTR 56[r12], eax
	mov	DWORD PTR 76[r12], edx
	mov	edx, DWORD PTR 12[r12]
	mov	DWORD PTR 40[r12], edx
	mov	edx, DWORD PTR [rbx]
	test	DWORD PTR EE_READONLY[rip], edx
	jne	.L8
	or	eax, DWORD PTR S_IWUSR[rip]
	mov	edx, DWORD PTR at25_bin_write[rip]
	mov	DWORD PTR 56[r12], eax
	mov	eax, DWORD PTR at25_mem_write[rip]
	mov	DWORD PTR 64[r12], edx
	mov	DWORD PTR 72[r12], eax
.L8:
	lea	rsi, 40[r12]
	mov	rdi, rbp
	call	sysfs_create_bin_file@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR 24[rbx]
	test	rax, rax
	je	.L9
	mov	esi, DWORD PTR 16[rbx]
	lea	rdi, 72[r12]
	call	rax
.L9:
	mov	edx, DWORD PTR [rbx]
	lea	r9, .LC0[rip]
	test	DWORD PTR EE_READONLY[rip], edx
	lea	rdx, .LC1[rip]
	cmove	r9, rdx
	mov	edx, DWORD PTR 40[r12]
	mov	eax, DWORD PTR 16[r12]
	mov	r8d, DWORD PTR 20[r12]
	cmp	edx, 1023
	jg	.L11
	lea	rcx, .LC3[rip]
.L13:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	lea	rsi, .LC8[rip]
	push	rax
	.cfi_def_cfa_offset 64
	call	dev_info@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L15:
	.cfi_restore_state
	mov	r13d, 2
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC4[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	dev_dbg@PLT
	mov	r13d, DWORD PTR ENODEV[rip]
	neg	r13d
.L3:
	mov	edx, r13d
	mov	rdi, rbp
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, r12
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	mov	ecx, edx
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	r13d, DWORD PTR ENXIO[rip]
	xor	r12d, r12d
	neg	r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	sar	edx, 10
	lea	rcx, .LC2[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC5[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	dev_dbg@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	at25_probe, .-at25_probe
	.comm	at25_mem_write,4,4
	.comm	at25_mem_read,4,4
	.comm	at25_bin_write,4,4
	.comm	at25_bin_read,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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	"no chip description\012\000"
	.align	2
.LC5:
	.ascii	"unsupported address type\012\000"
	.align	2
.LC6:
	.ascii	"rdsr --> %d (%02x)\012\000"
	.align	2
.LC7:
	.ascii	"eeprom\000"
	.align	2
.LC8:
	.ascii	"%Zd %s %s eeprom%s, pagesize %u\012\000"
	.align	2
.LC9:
	.ascii	"probe err %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	at25_probe, %function
at25_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0, #4]
	mov	r6, r0
	cmp	r7, #0
	sub	sp, sp, #16
	beq	.L23
	ldr	r3, .L26
	ldr	r4, [r7]
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L13
	ldr	r3, .L26+4
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L14
	ldr	r3, .L26+8
	ldr	r3, [r3]
	ands	r4, r4, r3
	movne	r5, #3
	beq	.L24
.L4:
	ldr	r3, .L26+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	spi_w8r8
	subs	r3, r0, #0
	blt	.L5
	ldr	r2, .L26+16
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L5
	ldr	r3, .L26+20
	mov	r0, #64
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L25
	add	r0, r4, #60
	bl	mutex_init
	mov	lr, r7
	add	ip, r4, #4
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r0, r6
	bl	spi_dev_get
	ldr	r8, .L26+24
	mov	r1, r4
	str	r0, [r4, #56]
	mov	r0, r6
	bl	dev_set_drvdata
	ldr	lr, [r7]
	ldr	r2, [r8]
	ldr	r0, .L26+28
	ldr	r1, .L26+32
	ldr	r3, .L26+36
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	tst	lr, r2
	ldr	r1, .L26+40
	ldr	r2, [r4, #8]
	str	r5, [r4]
	str	r3, [r4, #36]
	str	ip, [r4, #44]
	str	r0, [r4, #52]
	str	r1, [r4, #32]
	str	r2, [r4, #28]
	bne	.L8
	ldr	r2, .L26+44
	ldr	r0, .L26+48
	ldr	r1, .L26+52
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r3, r2, r3
	str	r3, [r4, #36]
	str	r0, [r4, #40]
	str	r1, [r4, #48]
.L8:
	mov	r0, r6
	add	r1, r4, #28
	bl	sysfs_create_bin_file
	subs	r5, r0, #0
	bne	.L3
	ldr	r3, [r7, #20]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [r7, #16]
	add	r0, r4, #48
	blx	r3
.L9:
	ldr	r2, [r4, #28]
	ldr	ip, [r7]
	ldr	r0, [r8]
	cmp	r2, #1024
	ldrge	r3, .L26+56
	ldrlt	r3, .L26+60
	asrge	r2, r2, #10
	tst	ip, r0
	ldr	r0, .L26+64
	ldr	r1, .L26+68
	moveq	r1, r0
	ldr	ip, [r4, #16]
	ldr	lr, [r4, #12]
	mov	r0, r6
	stmib	sp, {r1, lr}
	str	ip, [sp]
	ldr	r1, .L26+72
	bl	dev_info
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r5, #2
	b	.L4
.L23:
	mov	r4, r7
	ldr	r1, .L26+76
	bl	dev_dbg
	ldr	r3, .L26+80
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	mov	r2, r5
	ldr	r1, .L26+84
	mov	r0, r6
	bl	dev_dbg
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, r3
	mov	r0, r6
	ldr	r1, .L26+88
	bl	dev_dbg
	ldr	r3, .L26+92
	mov	r4, #0
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L13:
	mov	r5, #1
	b	.L4
.L25:
	ldr	r3, .L26+96
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L24:
	ldr	r1, .L26+100
	bl	dev_dbg
	ldr	r3, .L26+104
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L27:
	.align	2
.L26:
	.word	EE_ADDR1
	.word	EE_ADDR2
	.word	EE_ADDR3
	.word	AT25_RDSR
	.word	AT25_SR_nRDY
	.word	GFP_KERNEL
	.word	EE_READONLY
	.word	at25_bin_read
	.word	at25_mem_read
	.word	S_IRUSR
	.word	.LC7
	.word	S_IWUSR
	.word	at25_bin_write
	.word	at25_mem_write
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC2
	.word	.LC8
	.word	.LC4
	.word	ENODEV
	.word	.LC9
	.word	.LC6
	.word	ENXIO
	.word	ENOMEM
	.word	.LC5
	.word	EINVAL
	.size	at25_probe, .-at25_probe
	.comm	at25_mem_write,4,4
	.comm	at25_mem_read,4,4
	.comm	at25_bin_write,4,4
	.comm	at25_bin_read,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IRUSR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,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
