	.file	"extr_i2c-davinci.c_terminate_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TDR IRQ while no data to send\n"
	.text
	.p2align 4
	.type	terminate_write, @function
terminate_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR DAVINCI_I2C_MDR_REG[rip]
	mov	rbx, rdi
	call	davinci_i2c_read_reg@PLT
	mov	edx, DWORD PTR DAVINCI_I2C_MDR_RM[rip]
	mov	esi, DWORD PTR DAVINCI_I2C_MDR_REG[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR DAVINCI_I2C_MDR_STP[rip]
	or	edx, eax
	call	davinci_i2c_write_reg@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	je	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	terminate_write, .-terminate_write
	.comm	DAVINCI_I2C_MDR_STP,4,4
	.comm	DAVINCI_I2C_MDR_RM,4,4
	.comm	DAVINCI_I2C_MDR_REG,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-davinci.c_terminate_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TDR IRQ while no data to send\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	terminate_write, %function
terminate_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L5
	mov	r4, r0
	ldr	r1, [r5]
	bl	davinci_i2c_read_reg
	ldr	r3, .L5+4
	ldr	r2, .L5+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r5]
	orr	r2, r3, r2
	orr	r2, r2, r0
	mov	r0, r4
	bl	davinci_i2c_write_reg
	ldr	r3, [r4, #4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r0, [r4]
	ldr	r1, .L5+12
	pop	{r4, r5, r6, lr}
	b	dev_dbg
.L6:
	.align	2
.L5:
	.word	DAVINCI_I2C_MDR_REG
	.word	DAVINCI_I2C_MDR_RM
	.word	DAVINCI_I2C_MDR_STP
	.word	.LC0
	.size	terminate_write, .-terminate_write
	.comm	DAVINCI_I2C_MDR_STP,4,4
	.comm	DAVINCI_I2C_MDR_RM,4,4
	.comm	DAVINCI_I2C_MDR_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
