	.file	"17595.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"chan-%d"
	.text
	.globl	channel_make_name
	.type	channel_make_name, @function
channel_make_name:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 1
	mov	edi, 21
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	call	rand@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	esi, 20
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	channel_make_name, .-channel_make_name
	.globl	enqueue_http_request
	.type	enqueue_http_request, @function
enqueue_http_request:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	QWORD PTR -64[rbp], r9
	mov	WORD PTR -28[rbp], ax
	movzx	eax, WORD PTR -28[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	evhttp_connection_new@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	evhttp_request_new@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	evhttp_connection_set_base@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	evhttp_make_request@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enqueue_http_request, .-enqueue_http_request
	.globl	timer_new
	.type	timer_new, @function
timer_new:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	esi, 56
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rax], rdx
	call	event_base_new@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	esi, 128
	mov	edi, 1
	call	calloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	timer_new, .-timer_new
	.globl	on_timer_tick
	.type	on_timer_tick, @function
on_timer_tick:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -32[rbp], rdx
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_timer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	on_timer_tick, .-on_timer_tick
	.globl	add_timer
	.type	add_timer, @function
add_timer:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	r8, rdx
	lea	rcx, on_timer_tick[rip]
	mov	edx, 0
	mov	esi, -1
	mov	rdi, rax
	call	event_set@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_base_set@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_add@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	add_timer, .-add_timer
	.section	.rodata
.LC1:
	.string	"sent write query"
	.text
	.globl	on_writer_sent_http
	.type	on_writer_sent_http, @function
on_writer_sent_http:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	on_writer_sent_http, .-on_writer_sent_http
	.section	.rodata
	.align 8
.LC2:
	.string	"/publish?name=chan&data=hello-world"
	.text
	.globl	on_writer_tick
	.type	on_writer_tick, @function
on_writer_tick:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	movzx	eax, WORD PTR 8[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -8[rbp]
	mov	r9d, 0
	lea	r8, on_writer_sent_http[rip]
	mov	rdi, rax
	call	enqueue_http_request
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	on_writer_tick, .-on_writer_tick
	.globl	writer_main
	.type	writer_main, @function
writer_main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, on_writer_tick[rip]
	mov	edi, 100000
	call	timer_new
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_timer
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	writer_main, .-writer_main
	.section	.rodata
.LC3:
	.string	"got read reply. "
	.align 8
.LC4:
	.string	"I expect the first message to have sequence number %d. [\n%s\n]\n\n"
.LC5:
	.string	"[\n%s\n]\n\n"
.LC6:
	.string	"seq\": "
	.text
	.globl	on_reader_sent_http
	.type	on_reader_sent_http, @function
on_reader_sent_http:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdi, rax
	call	evbuffer_get_length@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	evbuffer_remove@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -40[rbp], rax
.L16:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 6
	mov	rdi, rax
	call	atol@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	on_reader_sent_http, .-on_reader_sent_http
	.section	.rodata
.LC7:
	.string	"reading [%s]\n"
	.text
	.globl	on_reader_tick
	.type	on_reader_tick, @function
on_reader_tick:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 7598244868551701295
	movabs	rdx, 4424062474190284130
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 7306363783283304547
	movabs	rdx, 4427431453918248304
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	WORD PTR -16[rbp], 25637
	mov	BYTE PTR -14[rbp], 0
	mov	esi, 1
	mov	edi, 45
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 40[rax]
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 48[rax]
	movzx	eax, WORD PTR 8[rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	r9, rdi
	lea	r8, on_reader_sent_http[rip]
	mov	rdi, rax
	call	enqueue_http_request
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	on_reader_tick, .-on_reader_tick
	.globl	reader_main
	.type	reader_main, @function
reader_main:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rsi, on_reader_tick[rip]
	mov	edi, 1000000
	call	timer_new
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	add_timer
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	reader_main, .-reader_main
	.section	.rodata
.LC8:
	.string	"127.0.0.1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	WORD PTR -24[rbp], 9271
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, reader_main[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	lea	rdx, writer_main[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"17595.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"chan-%d\000"
	.text
	.align	2
	.global	channel_make_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	channel_make_name, %function
channel_make_name:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #1
	mov	r0, #21
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	bl	rand
	mov	r3, r0
	ldr	r2, .L3
	mov	r1, #20
	ldr	r0, [fp, #-8]
	bl	snprintf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	channel_make_name, .-channel_make_name
	.align	2
	.global	enqueue_http_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue_http_request, %function
enqueue_http_request:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-18]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	evhttp_connection_new
	str	r0, [fp, #-12]
	ldr	r1, [fp, #8]
	ldr	r0, [fp, #4]
	bl	evhttp_request_new
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	evhttp_connection_set_base
	ldr	r3, [fp, #-28]
	mov	r2, #1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	evhttp_make_request
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	enqueue_http_request, .-enqueue_http_request
	.align	2
	.global	timer_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer_new, %function
timer_new:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r1, #28
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #16]
	bl	event_base_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	mov	r1, #64
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	timer_new, .-timer_new
	.align	2
	.global	on_timer_tick
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_timer_tick, %function
on_timer_tick:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, r1
	str	r2, [fp, #-24]
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r0, [fp, #-8]
	blx	r3
.L9:
	ldr	r0, [fp, #-8]
	bl	add_timer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	on_timer_tick, .-on_timer_tick
	.align	2
	.global	add_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_timer, %function
add_timer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, .L11
	mov	r2, #0
	mvn	r1, #0
	bl	event_set
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	event_base_set
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	event_add
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	on_timer_tick
	.size	add_timer, .-add_timer
	.section	.rodata
	.align	2
.LC1:
	.ascii	"sent write query\000"
	.text
	.align	2
	.global	on_writer_sent_http
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_writer_sent_http, %function
on_writer_sent_http:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r0, .L14
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.size	on_writer_sent_http, .-on_writer_sent_http
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/publish?name=chan&data=hello-world\000"
	.text
	.align	2
	.global	on_writer_tick
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_writer_tick, %function
on_writer_tick:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, .L17
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldrsh	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, .L17+4
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	bl	enqueue_http_request
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	on_writer_sent_http
	.size	on_writer_tick, .-on_writer_tick
	.align	2
	.global	writer_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	writer_main, %function
writer_main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L21
	ldr	r0, .L21+4
	bl	timer_new
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-8]
	bl	add_timer
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	event_base_dispatch
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	on_writer_tick
	.word	100000
	.size	writer_main, .-writer_main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"got read reply. \000"
	.align	2
.LC4:
	.ascii	"I expect the first message to have sequence number "
	.ascii	"%d. [\012%s\012]\012\012\000"
	.align	2
.LC5:
	.ascii	"[\012%s\012]\012\012\000"
	.align	2
.LC6:
	.ascii	"seq\": \000"
	.text
	.align	2
	.global	on_reader_sent_http
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_reader_sent_http, %function
on_reader_sent_http:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #72]
	mov	r0, r3
	bl	evbuffer_get_length
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	evbuffer_remove
	ldr	r0, .L28
	bl	printf
	ldr	r3, .L28+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L28+8
	bl	printf
	b	.L25
.L24:
	ldr	r1, [fp, #-8]
	ldr	r0, .L28+12
	bl	printf
.L25:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L26
.L27:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r1, .L28+16
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-24]
.L26:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-20]
	add	r3, r3, #6
	mov	r0, r3
	bl	atol
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #20]
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	on_reader_sent_http, .-on_reader_sent_http
	.section	.rodata
	.align	2
.LC8:
	.ascii	"reading [%s]\012\000"
	.align	2
.LC7:
	.ascii	"/subscribe?name=chan&keep=0&seq=%d\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	on_reader_tick
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_reader_tick, %function
on_reader_tick:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L32+4
	sub	ip, fp, #44
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	mov	r1, #1
	mov	r0, #45
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #20]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	sprintf
	ldr	r1, [fp, #-48]
	ldr	r0, .L32+8
	bl	printf
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	ldr	r0, [r3]
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #24]
	ldrsh	r1, [r3, #4]
	ldr	r3, [fp, #-56]
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	str	r3, [sp, #4]
	ldr	r3, .L32+12
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	bl	enqueue_http_request
	ldr	r0, [fp, #-48]
	bl	free
	nop
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.word	on_reader_sent_http
	.size	on_reader_tick, .-on_reader_tick
	.align	2
	.global	reader_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	reader_main, %function
reader_main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, .L36
	ldr	r0, .L36+4
	bl	timer_new
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-8]
	bl	add_timer
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	event_base_dispatch
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	on_reader_tick
	.word	1000000
	.size	reader_main, .-reader_main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"127.0.0.1\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L41+4
	str	r3, [fp, #-16]
	ldr	r3, .L41+8
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	sub	r0, fp, #24
	ldr	r2, .L41+12
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #16
	sub	r0, fp, #20
	ldr	r2, .L41+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC11
	.word	.LC10
	.word	9271
	.word	reader_main
	.word	writer_main
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
