	.file	"extr_test_i2c.c_i2c_master_write_slave.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	i2c_master_write_slave, @function
i2c_master_write_slave:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	i2c_cmd_link_create@PLT
	mov	edi, eax
	mov	ebp, eax
	call	i2c_master_start@PLT
	mov	eax, DWORD PTR ESP_SLAVE_ADDR[rip]
	mov	edx, DWORD PTR ACK_CHECK_EN[rip]
	mov	edi, ebp
	lea	esi, [rax+rax]
	or	esi, DWORD PTR WRITE_BIT[rip]
	call	i2c_master_write_byte@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	ecx, DWORD PTR ACK_CHECK_EN[rip]
	mov	rdx, r14
	mov	edi, ebp
	mov	rsi, r13
	call	i2c_master_write@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	edi, ebp
	call	i2c_master_stop@PLT
	mov	edi, eax
	call	TEST_ESP_OK@PLT
	mov	eax, 5000
	mov	esi, ebp
	mov	edi, r12d
	cdq
	idiv	DWORD PTR portTICK_RATE_MS[rip]
	mov	edx, eax
	call	i2c_master_cmd_begin@PLT
	mov	edi, ebp
	mov	r12d, eax
	call	i2c_cmd_link_delete@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i2c_master_write_slave, .-i2c_master_write_slave
	.comm	portTICK_RATE_MS,4,4
	.comm	WRITE_BIT,4,4
	.comm	ESP_SLAVE_ADDR,4,4
	.comm	ACK_CHECK_EN,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_test_i2c.c_i2c_master_write_slave.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_master_write_slave, %function
i2c_master_write_slave:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r5, r0
	bl	i2c_cmd_link_create
	mov	r4, r0
	bl	i2c_master_start
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r8, .L4+8
	orr	r1, r3, r1, lsl #1
	ldr	r2, [r8]
	mov	r0, r4
	bl	i2c_master_write_byte
	bl	TEST_ESP_OK
	mov	r2, r7
	mov	r1, r6
	ldr	r3, [r8]
	mov	r0, r4
	bl	i2c_master_write
	bl	TEST_ESP_OK
	mov	r0, r4
	bl	i2c_master_stop
	bl	TEST_ESP_OK
	ldr	r3, .L4+12
	ldr	r0, .L4+16
	ldr	r1, [r3]
	bl	__aeabi_idiv
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	i2c_master_cmd_begin
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	i2c_cmd_link_delete
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	ESP_SLAVE_ADDR
	.word	WRITE_BIT
	.word	ACK_CHECK_EN
	.word	portTICK_RATE_MS
	.word	5000
	.size	i2c_master_write_slave, .-i2c_master_write_slave
	.comm	portTICK_RATE_MS,4,4
	.comm	WRITE_BIT,4,4
	.comm	ESP_SLAVE_ADDR,4,4
	.comm	ACK_CHECK_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
