	.file	"extr_i2c-sh_mobile.c_sh_mobile_i2c_isr_tx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sh_mobile_i2c_isr_tx, @function
sh_mobile_i2c_isr_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, 1
	mov	rcx, QWORD PTR [rdx]
	cmp	QWORD PTR [rdi], rcx
	je	.L1
	mov	rbx, rdi
	lea	rsi, 7[rsp]
	call	sh_mobile_i2c_get_data@PLT
	mov	rdi, rbx
	call	sh_mobile_i2c_is_last_byte@PLT
	test	rax, rax
	je	.L3
	movzx	edx, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR OP_TX_STOP[rip]
	mov	rdi, rbx
	call	i2c_op@PLT
.L4:
	add	QWORD PTR [rbx], 1
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbx
	call	sh_mobile_i2c_is_first_byte@PLT
	movzx	edx, BYTE PTR 7[rsp]
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR OP_TX_FIRST[rip]
	mov	rdi, rbx
	call	i2c_op@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR OP_TX[rip]
	mov	rdi, rbx
	call	i2c_op@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sh_mobile_i2c_isr_tx, .-sh_mobile_i2c_isr_tx
	.comm	OP_TX_STOP,4,4
	.comm	OP_TX_FIRST,4,4
	.comm	OP_TX,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_i2c-sh_mobile.c_sh_mobile_i2c_isr_tx.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_mobile_i2c_isr_tx, %function
sh_mobile_i2c_isr_tx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldm	r0, {r2, r3}
	ldr	r3, [r3]
	ldr	r1, .L12
	sub	sp, sp, #8
	cmp	r2, r3
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	moveq	r0, #1
	beq	.L1
	mov	r4, r0
	add	r1, sp, #3
	bl	sh_mobile_i2c_get_data
	mov	r0, r4
	bl	sh_mobile_i2c_is_last_byte
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	bl	sh_mobile_i2c_is_first_byte
	cmp	r0, #0
	ldrne	r3, .L12+4
	ldreq	r3, .L12+8
	mov	r0, r4
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, [r3]
	bl	i2c_op
.L4:
	mov	r0, #0
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L12+12
	mov	r0, r4
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, [r3]
	bl	i2c_op
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	OP_TX_FIRST
	.word	OP_TX
	.word	OP_TX_STOP
	.size	sh_mobile_i2c_isr_tx, .-sh_mobile_i2c_isr_tx
	.comm	OP_TX_STOP,4,4
	.comm	OP_TX_FIRST,4,4
	.comm	OP_TX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
