	.file	"extr_ni_labpc.c_labpc_eeprom_read_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	labpc_eeprom_read_status, @function
labpc_eeprom_read_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR devpriv[rip]
	mov	eax, DWORD PTR EEPROM_EN_BIT[rip]
	not	eax
	and	DWORD PTR [rdx], eax
	call	udelay@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR COMMAND5_REG[rip]
	add	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	[QWORD PTR 8[rax]]
	mov	rdx, QWORD PTR devpriv[rip]
	mov	eax, DWORD PTR EEPROM_EN_BIT[rip]
	mov	edi, 1
	or	eax, DWORD PTR EEPROM_WRITE_UNPROTECT_BIT[rip]
	or	DWORD PTR [rdx], eax
	call	udelay@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR COMMAND5_REG[rip]
	add	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	[QWORD PTR 8[rax]]
	mov	esi, 5
	mov	edx, 8
	mov	rdi, rbx
	call	labpc_serial_out@PLT
	mov	rdi, rbx
	call	labpc_serial_in@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	mov	edi, 1
	mov	r12d, eax
	mov	eax, DWORD PTR EEPROM_EN_BIT[rip]
	or	eax, DWORD PTR EEPROM_WRITE_UNPROTECT_BIT[rip]
	not	eax
	and	DWORD PTR [rdx], eax
	call	udelay@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR COMMAND5_REG[rip]
	add	rsi, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	[QWORD PTR 8[rax]]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	labpc_eeprom_read_status, .-labpc_eeprom_read_status
	.comm	devpriv,8,8
	.comm	EEPROM_WRITE_UNPROTECT_BIT,4,4
	.comm	EEPROM_EN_BIT,4,4
	.comm	COMMAND5_REG,8,8
	.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_ni_labpc.c_labpc_eeprom_read_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	labpc_eeprom_read_status, %function
labpc_eeprom_read_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r5, .L4
	ldr	r8, .L4+4
	ldr	r2, [r5]
	ldr	r1, [r8]
	ldr	r3, [r2]
	ldr	r7, .L4+8
	bic	r3, r3, r1
	str	r3, [r2]
	mov	r0, #1
	bl	udelay
	ldr	r2, [r7]
	ldr	r3, [r5]
	ldr	r1, [r4]
	ldr	r9, .L4+12
	add	r1, r1, r2
	ldm	r3, {r0, r2}
	blx	r2
	ldr	r1, [r5]
	ldr	r0, [r9]
	ldr	r2, [r8]
	ldr	r3, [r1]
	orr	r2, r2, r0
	orr	r3, r3, r2
	str	r3, [r1]
	mov	r0, #1
	bl	udelay
	ldr	r3, [r5]
	ldr	r2, [r7]
	ldr	r1, [r4]
	add	r1, r1, r2
	ldm	r3, {r0, r2}
	blx	r2
	mov	r2, #8
	mov	r1, #5
	mov	r0, r4
	bl	labpc_serial_out
	mov	r0, r4
	bl	labpc_serial_in
	mov	r6, r0
	ldr	r1, [r5]
	ldr	r0, [r9]
	ldr	r2, [r8]
	ldr	r3, [r1]
	orr	r2, r2, r0
	bic	r3, r3, r2
	str	r3, [r1]
	mov	r0, #1
	bl	udelay
	ldr	r0, [r4]
	ldr	r3, [r5]
	ldr	r1, [r7]
	ldr	r2, [r3, #4]
	add	r1, r0, r1
	ldr	r0, [r3]
	blx	r2
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	devpriv
	.word	EEPROM_EN_BIT
	.word	COMMAND5_REG
	.word	EEPROM_WRITE_UNPROTECT_BIT
	.size	labpc_eeprom_read_status, .-labpc_eeprom_read_status
	.comm	devpriv,4,4
	.comm	EEPROM_WRITE_UNPROTECT_BIT,4,4
	.comm	EEPROM_EN_BIT,4,4
	.comm	COMMAND5_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
