	.file	"extr_rsocket.c_tcp_svc_send_keepalive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tcp_svc_send_keepalive, @function
tcp_svc_send_keepalive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 4[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	fastlock_acquire@PLT
	mov	rdi, rbp
	call	rs_ctrl_avail@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR rs_connected[rip], eax
	jne	.L11
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fastlock_release@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	add	DWORD PTR 8[rbp], 1
	mov	esi, DWORD PTR RS_CTRL_KEEPALIVE[rip]
	mov	edi, DWORD PTR RS_OP_CTRL[rip]
	call	rs_msg_set@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	edx, edx
	push	0
	.cfi_def_cfa_offset 48
	mov	ecx, eax
	xor	r9d, r9d
	xor	r8d, r8d
	xor	esi, esi
	call	rs_post_write@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	fastlock_release@PLT
	.cfi_endproc
.LFE0:
	.size	tcp_svc_send_keepalive, .-tcp_svc_send_keepalive
	.comm	rs_connected,4,4
	.comm	RS_OP_CTRL,4,4
	.comm	RS_CTRL_KEEPALIVE,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_rsocket.c_tcp_svc_send_keepalive.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_svc_send_keepalive, %function
tcp_svc_send_keepalive:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	add	r5, r0, #4
	sub	sp, sp, #20
	mov	r0, r5
	bl	fastlock_acquire
	mov	r0, r4
	bl	rs_ctrl_avail
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L11
.L2:
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, lr}
	b	fastlock_release
.L11:
	ldr	r3, [r4, #8]
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	add	r3, r3, #1
	str	r3, [r4, #8]
	ldr	r1, [r1]
	ldr	r0, [r2]
	bl	rs_msg_set
	mov	r2, #0
	mov	r3, r0
	mov	r1, r2
	mov	r0, r4
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	str	r2, [sp]
	bl	rs_post_write
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, lr}
	b	fastlock_release
.L13:
	.align	2
.L12:
	.word	rs_connected
	.word	RS_OP_CTRL
	.word	RS_CTRL_KEEPALIVE
	.size	tcp_svc_send_keepalive, .-tcp_svc_send_keepalive
	.comm	rs_connected,4,4
	.comm	RS_OP_CTRL,4,4
	.comm	RS_CTRL_KEEPALIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
