	.file	"extr_memcached.c_transmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Couldn't update event\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to write, and not due to blocking"
	.text
	.p2align 4
	.type	transmit, @function
transmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	rdi, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	setne	dil
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	movzx	edi, dil
	call	assert@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	cmp	rax, rdx
	jnb	.L2
	mov	rsi, QWORD PTR 40[rbp]
	mov	rcx, rax
	sal	rcx, 4
	lea	r12, [rsi+rcx]
	cmp	QWORD PTR [r12], 0
	jne	.L3
	add	rax, 1
	mov	QWORD PTR 0[rbp], rax
	cmp	rdx, rax
	jbe	.L2
	lea	r12, 16[rsi+rcx]
.L3:
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	ebx, eax
	test	eax, eax
	jns	.L25
	cmp	eax, -1
	jne	.L10
	mov	rax, QWORD PTR errno[rip]
	cmp	rax, QWORD PTR EAGAIN[rip]
	je	.L11
	cmp	rax, QWORD PTR EWOULDBLOCK[rip]
	jne	.L10
.L11:
	mov	esi, DWORD PTR EV_WRITE[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR EV_PERSIST[rip]
	call	update_event@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR TRANSMIT_SOFT_ERROR[rip]
	test	r8d, r8d
	jne	.L1
	cmp	QWORD PTR settings[rip], 0
	jg	.L26
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR conn_closing[rip]
	mov	rdi, rbp
	call	conn_set_state@PLT
.L16:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR TRANSMIT_HARD_ERROR[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR TRANSMIT_COMPLETE[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	cmp	QWORD PTR settings[rip], 0
	jg	.L27
	mov	edi, DWORD PTR 24[rbp]
	call	IS_UDP@PLT
	test	rax, rax
	je	.L15
.L28:
	mov	esi, DWORD PTR conn_read[rip]
	mov	rdi, rbp
	call	conn_set_state@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 32[rbp]
	lea	rdi, 4[rax]
	call	pthread_mutex_lock@PLT
	mov	rdi, QWORD PTR 32[rbp]
	add	DWORD PTR [rdi], ebx
	add	rdi, 4
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	jle	.L5
	mov	rdx, QWORD PTR 8[r12]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	sub	rax, 1
	add	rdx, 16
	sub	ebx, ecx
	mov	QWORD PTR [r12], rax
	mov	QWORD PTR 8[r12], rdx
	test	rax, rax
	je	.L5
.L6:
	mov	ecx, DWORD PTR [rdx]
	cmp	ecx, ebx
	jle	.L7
.L5:
	test	ebx, ebx
	je	.L8
	mov	rax, QWORD PTR 8[r12]
	movsx	rdx, ebx
	sub	DWORD PTR [rax], ebx
	add	QWORD PTR 8[rax], rdx
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR TRANSMIT_INCOMPLETE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	IS_UDP@PLT
	test	rax, rax
	je	.L15
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	transmit, .-transmit
	.comm	stderr,4,4
	.comm	settings,8,8
	.comm	errno,8,8
	.comm	conn_read,4,4
	.comm	conn_closing,4,4
	.comm	TRANSMIT_SOFT_ERROR,4,4
	.comm	TRANSMIT_INCOMPLETE,4,4
	.comm	TRANSMIT_HARD_ERROR,4,4
	.comm	TRANSMIT_COMPLETE,4,4
	.comm	EWOULDBLOCK,8,8
	.comm	EV_WRITE,4,4
	.comm	EV_PERSIST,4,4
	.comm	EAGAIN,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_memcached.c_transmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't update event\012\000"
	.align	2
.LC1:
	.ascii	"Failed to write, and not due to blocking\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transmit, %function
transmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	cmp	r3, r2
	bcs	.L2
	ldr	r0, [r4, #20]
	lsl	r1, r3, #3
	ldr	ip, [r0, r3, lsl #3]
	add	r6, r0, r3, lsl #3
	cmp	ip, #0
	bne	.L3
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [r4]
	bls	.L2
	add	r1, r1, #8
	add	r6, r0, r1
.L3:
	mov	r2, #0
	mov	r1, r6
	mov	r0, r4
	ldr	r3, [r4, #8]
	blx	r3
	subs	r5, r0, #0
	bge	.L26
	cmn	r5, #1
	bne	.L10
	ldr	r3, .L30
	ldr	r2, .L30+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
	ldr	r2, .L30+8
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L10
.L11:
	ldr	r2, .L30+12
	ldr	r3, .L30+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	update_event
	cmp	r0, #0
	bne	.L12
	ldr	r3, .L30+20
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L27
.L15:
	ldr	r3, .L30+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	conn_set_state
.L16:
	ldr	r3, .L30+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L30+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L30+20
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L28
	ldr	r0, [r4, #12]
	bl	IS_UDP
	cmp	r0, #0
	beq	.L15
.L29:
	ldr	r3, .L30+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	conn_set_state
	b	.L16
.L26:
	ldr	r0, [r4, #16]
	add	r0, r0, #4
	bl	pthread_mutex_lock
	ldr	r3, [r4, #16]
	mov	r0, r3
	ldr	r3, [r3]
	add	r3, r3, r5
	str	r3, [r0], #4
	bl	pthread_mutex_unlock
	ldr	r2, [r6]
	cmp	r2, #0
	ble	.L5
	ldr	r3, [r6, #4]
	add	r3, r3, #8
	b	.L6
.L7:
	cmp	r2, #0
	str	r3, [r6, #4]
	sub	r5, r5, r0
	str	r2, [r6]
	add	r3, r3, #8
	beq	.L5
.L6:
	ldr	r0, [r3, #-8]
	sub	r2, r2, #1
	cmp	r0, r5
	ble	.L7
.L5:
	cmp	r5, #0
	beq	.L8
	ldr	r3, [r6, #4]
	ldr	r1, [r3, #4]
	ldr	r2, [r3]
	add	r1, r1, r5
	sub	r5, r2, r5
	str	r1, [r3, #4]
	str	r5, [r3]
.L8:
	ldr	r3, .L30+40
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L28:
	ldr	r0, .L30+44
	bl	perror
	ldr	r0, [r4, #12]
	bl	IS_UDP
	cmp	r0, #0
	beq	.L15
	b	.L29
.L12:
	ldr	r3, .L30+48
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L27:
	ldr	r3, .L30+52
	ldr	r1, .L30+56
	ldr	r0, [r3]
	bl	fprintf
	b	.L15
.L31:
	.align	2
.L30:
	.word	errno
	.word	EAGAIN
	.word	EWOULDBLOCK
	.word	EV_WRITE
	.word	EV_PERSIST
	.word	settings
	.word	conn_closing
	.word	TRANSMIT_HARD_ERROR
	.word	TRANSMIT_COMPLETE
	.word	conn_read
	.word	TRANSMIT_INCOMPLETE
	.word	.LC1
	.word	TRANSMIT_SOFT_ERROR
	.word	stderr
	.word	.LC0
	.size	transmit, .-transmit
	.comm	stderr,4,4
	.comm	settings,4,4
	.comm	errno,4,4
	.comm	conn_read,4,4
	.comm	conn_closing,4,4
	.comm	TRANSMIT_SOFT_ERROR,4,4
	.comm	TRANSMIT_INCOMPLETE,4,4
	.comm	TRANSMIT_HARD_ERROR,4,4
	.comm	TRANSMIT_COMPLETE,4,4
	.comm	EWOULDBLOCK,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_PERSIST,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
