	.file	"extr_sym_nvram.c_S24C16_read_byte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	S24C16_read_byte, @function
S24C16_read_byte:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 7
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], edx
	lea	rbp, 20[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsi], 0
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rcx, r12
	mov	edx, 1
	mov	rsi, rbp
	mov	rdi, r15
	call	S24C16_do_bit@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	ecx, ebx
	sub	ebx, 1
	and	eax, 1
	sal	eax, cl
	or	DWORD PTR [r14], eax
	cmp	ebx, -1
	jne	.L2
	mov	esi, DWORD PTR 12[rsp]
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, r15
	call	S24C16_write_ack@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	S24C16_read_byte, .-S24C16_read_byte
	.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_sym_nvram.c_S24C16_read_byte.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	S24C16_read_byte, %function
S24C16_read_byte:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r1
	mov	r1, #0
	mov	r6, r0
	mov	r8, r2
	mov	r4, #7
	sub	sp, sp, #12
	mov	r7, r3
	ldr	r3, .L8
	ldr	r9, [sp, #40]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	r1, [r5]
.L2:
	mov	r3, r7
	mov	r2, #1
	mov	r1, sp
	mov	r0, r6
	bl	S24C16_do_bit
	ldr	r3, [sp]
	ldr	ip, [r5]
	and	r3, r3, #1
	orr	ip, ip, r3, lsl r4
	sub	r4, r4, #1
	cmn	r4, #1
	str	ip, [r5]
	bne	.L2
	mov	r3, r9
	mov	r2, r7
	mov	r1, r8
	mov	r0, r6
	bl	S24C16_write_ack
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	S24C16_read_byte, .-S24C16_read_byte
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
