	.file	"extr_i2c-iop3xx.c_iop3xx_i2c_read_byte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iop3xx_i2c_read_byte, @function
iop3xx_i2c_read_byte:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR CR_OFFSET[rip]
	add	rdi, QWORD PTR [rbx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	__raw_readl@PLT
	mov	rdi, QWORD PTR IOP3XX_ICR_MSTART[rip]
	not	rdi
	and	rdi, rax
	mov	rax, QWORD PTR IOP3XX_ICR_MSTOP[rip]
	or	rax, QWORD PTR IOP3XX_ICR_NACK[rip]
	test	r12d, r12d
	je	.L2
	or	rdi, rax
.L3:
	or	rdi, QWORD PTR IOP3XX_ICR_TBYTE[rip]
	mov	rsi, QWORD PTR CR_OFFSET[rip]
	add	rsi, QWORD PTR [rbx]
	call	__raw_writel@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbx
	call	iop3xx_i2c_wait_rx_done@PLT
	mov	rdi, QWORD PTR DBR_OFFSET[rip]
	add	rdi, QWORD PTR [rbx]
	mov	r12d, eax
	call	__raw_readl@PLT
	mov	BYTE PTR 0[rbp], al
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	not	rax
	and	rdi, rax
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iop3xx_i2c_read_byte, .-iop3xx_i2c_read_byte
	.comm	IOP3XX_ICR_TBYTE,8,8
	.comm	IOP3XX_ICR_NACK,8,8
	.comm	IOP3XX_ICR_MSTOP,8,8
	.comm	IOP3XX_ICR_MSTART,8,8
	.comm	DBR_OFFSET,8,8
	.comm	CR_OFFSET,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_i2c-iop3xx.c_iop3xx_i2c_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	iop3xx_i2c_read_byte, %function
iop3xx_i2c_read_byte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L8
	mov	r4, r0
	ldr	r3, [r7]
	ldr	r0, [r0]
	sub	sp, sp, #12
	add	r0, r0, r3
	ldr	r3, .L8+4
	mov	r6, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	__raw_readl
	ldr	r3, .L8+8
	ldr	r2, .L8+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	bic	r0, r0, r3
	ldr	r3, .L8+16
	cmp	r6, #0
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r3, r3, r2
	orrne	r0, r3, r0
	biceq	r0, r0, r3
	ldr	r3, .L8+20
	ldr	r2, [r7]
	ldr	r3, [r3]
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	__raw_writel
	mov	r1, sp
	mov	r0, r4
	bl	iop3xx_i2c_wait_rx_done
	ldr	r3, .L8+24
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r4, r0
	add	r0, r2, r3
	bl	__raw_readl
	ldr	r3, .L8+4
	strb	r0, [r5]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	CR_OFFSET
	.word	.LC0
	.word	IOP3XX_ICR_MSTART
	.word	IOP3XX_ICR_NACK
	.word	IOP3XX_ICR_MSTOP
	.word	IOP3XX_ICR_TBYTE
	.word	DBR_OFFSET
	.size	iop3xx_i2c_read_byte, .-iop3xx_i2c_read_byte
	.comm	IOP3XX_ICR_TBYTE,4,4
	.comm	IOP3XX_ICR_NACK,4,4
	.comm	IOP3XX_ICR_MSTOP,4,4
	.comm	IOP3XX_ICR_MSTART,4,4
	.comm	DBR_OFFSET,4,4
	.comm	CR_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
