	.file	"175143163.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	process_activations
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	process_activations
	.type	process_activations, @function
process_activations:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	open_event_channels
	jmp	.L4
.L5:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	wait_for_next_activation
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	process_channels
.L4:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	je	.L5
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	process_activations, .-process_activations
	.globl	wait_for_next_activation
	.type	wait_for_next_activation, @function
wait_for_next_activation:
.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	QWORD PTR -24[rbp], rdi
.L8:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	mov	edx, -1
	mov	esi, 5
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L8
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	wait_for_next_activation, .-wait_for_next_activation
	.globl	process_channels
	.type	process_channels, @function
process_channels:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	movzx	eax, WORD PTR 14[rax+rdx*8]
	test	ax, ax
	je	.L11
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	process_one_activation
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L11:
	add	DWORD PTR -4[rbp], 1
.L10:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	process_channels, .-process_channels
	.section	.rodata
.LC0:
	.string	"the_stack_data/175143163.c"
.LC1:
	.string	"payload_size >= 0"
	.align 8
.LC2:
	.string	"Hello real-time world! This is job #%lu, acting on %ld bytes of input on channel #%d. \n"
	.align 8
.LC3:
	.string	"Termination requested via SIGINT; shutting down..."
	.text
	.globl	process_one_activation
	.type	process_one_activation, @function
process_one_activation:
.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, 1072
	mov	DWORD PTR -1060[rbp], edi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, DWORD PTR -1060[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 8[rax+rdx*8]
	lea	rcx, -1040[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jns	.L14
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 129
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L14:
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, DWORD PTR 48[rax]
	cmp	QWORD PTR -1048[rbp], 0
	sete	al
	movzx	eax, al
	or	edx, eax
	mov	rax, QWORD PTR -1072[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -1060[rbp]
	mov	rdx, QWORD PTR -1048[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -1060[rbp], 4
	jne	.L17
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	DWORD PTR 48[rax], 1
.L17:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	process_one_activation, .-process_one_activation
	.section	.rodata
	.align 8
.LC4:
	.string	"tsk->event_sources[CH_UDP1].fd >= 0"
.LC5:
	.string	"Listening on UDP port %d...\n"
	.align 8
.LC6:
	.string	"tsk->event_sources[CH_UDP2].fd >= 0"
	.align 8
.LC7:
	.string	"tsk->event_sources[CH_STDIN].fd >= 0"
.LC8:
	.string	"Listening on STDIN..."
	.align 8
.LC9:
	.string	"tsk->event_sources[CH_SIGUSR1].fd >= 0"
.LC10:
	.string	"Listening for SIGUSR1..."
	.align 8
.LC11:
	.string	"tsk->event_sources[CH_SIGINT].fd >= 0"
.LC12:
	.string	"Listening for SIGINT..."
	.text
	.globl	open_event_channels
	.type	open_event_channels, @function
open_event_channels:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	esi, 2006
	mov	edi, 0
	call	open_nonblocking_udp_socket
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jns	.L19
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 152
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L19:
	mov	esi, 2006
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1619
	mov	edi, 0
	call	open_nonblocking_udp_socket
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 16[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jns	.L20
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 157
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L20:
	mov	esi, 1619
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	open_stdin_nonblocking
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jns	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 162
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L21:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 10
	call	open_signalfd_nonblocking
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 32[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	jns	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 167
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L22:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 2
	call	open_signalfd_nonblocking
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jns	.L23
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 172
	lea	rsi, .LC0[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L23:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	WORD PTR 12[rax+rdx*8], 1
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L25
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	open_event_channels, .-open_event_channels
	.section	.rodata
.LC13:
	.string	"socket creation"
.LC14:
	.string	"binding to port"
.LC15:
	.string	"mark socket as nonblocking"
	.text
	.globl	open_nonblocking_udp_socket
	.type	open_nonblocking_udp_socket, @function
open_nonblocking_udp_socket:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jns	.L27
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -40[rbp]
	jmp	.L31
.L27:
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR -56[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L29
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L31
.L29:
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L30
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -40[rbp]
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	open_nonblocking_udp_socket, .-open_nonblocking_udp_socket
	.section	.rodata
.LC16:
	.string	"mark stdin as nonblocking"
	.text
	.globl	open_stdin_nonblocking
	.type	open_stdin_nonblocking, @function
open_stdin_nonblocking:
.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, 16
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edi, eax
	call	dup@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L34
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L35
.L34:
	mov	eax, DWORD PTR -8[rbp]
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	open_stdin_nonblocking, .-open_stdin_nonblocking
	.globl	open_signalfd_nonblocking
	.type	open_signalfd_nonblocking, @function
open_signalfd_nonblocking:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L37
	mov	eax, DWORD PTR -148[rbp]
	jmp	.L41
.L37:
	mov	edx, DWORD PTR -164[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L39
	mov	eax, DWORD PTR -148[rbp]
	jmp	.L41
.L39:
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L40
	mov	eax, DWORD PTR -148[rbp]
	jmp	.L41
.L40:
	lea	rax, -144[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, -1
	call	signalfd@PLT
.L41:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	open_signalfd_nonblocking, .-open_signalfd_nonblocking
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 23
__PRETTY_FUNCTION__.1:
	.string	"process_one_activation"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 20
__PRETTY_FUNCTION__.0:
	.string	"open_event_channels"
	.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	"175143163.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	bl	process_activations
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_activations
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_activations, %function
process_activations:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #56
	mov	r0, r3
	bl	open_event_channels
	b	.L4
.L5:
	sub	r3, fp, #56
	mov	r0, r3
	bl	wait_for_next_activation
	sub	r3, fp, #56
	mov	r0, r3
	bl	process_channels
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L5
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	process_activations, .-process_activations
	.align	2
	.global	wait_for_next_activation
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_next_activation, %function
wait_for_next_activation:
	@ 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]
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mvn	r2, #0
	mov	r1, #5
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L10
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	wait_for_next_activation, .-wait_for_next_activation
	.align	2
	.global	process_channels
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_channels, %function
process_channels:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #10
	ldrsh	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	process_one_activation
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	process_channels, .-process_channels
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/175143163.c\000"
	.align	2
.LC2:
	.ascii	"payload_size >= 0\000"
	.align	2
.LC3:
	.ascii	"Hello real-time world! This is job #%lu, acting on "
	.ascii	"%ld bytes of input on channel #%d. \012\000"
	.align	2
.LC4:
	.ascii	"Termination requested via SIGINT; shutting down...\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_one_activation
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_one_activation, %function
process_one_activation:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	str	r0, [fp, #-1040]
	str	r1, [fp, #-1044]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-1044]
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r0, [r3, #4]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L20+4
	mov	r2, #129
	ldr	r1, .L20+8
	ldr	r0, .L20+12
	bl	__assert_fail
.L16:
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3, #44]
	ldr	r2, [fp, #-1036]
	cmp	r2, #0
	moveq	r2, #1
	movne	r2, #0
	and	r2, r2, #255
	orr	r2, r3, r2
	ldr	r3, [fp, #-1044]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-1044]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1040]
	ldr	r2, [fp, #-1036]
	ldr	r0, .L20+16
	bl	printf
	ldr	r3, [fp, #-1040]
	cmp	r3, #4
	bne	.L19
	ldr	r0, .L20+20
	bl	puts
	ldr	r3, [fp, #-1044]
	mov	r2, #1
	str	r2, [r3, #44]
.L19:
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	__PRETTY_FUNCTION__.6248
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	process_one_activation, .-process_one_activation
	.section	.rodata
	.align	2
.LC6:
	.ascii	"tsk->event_sources[CH_UDP1].fd >= 0\000"
	.align	2
.LC7:
	.ascii	"Listening on UDP port %d...\012\000"
	.align	2
.LC8:
	.ascii	"tsk->event_sources[CH_UDP2].fd >= 0\000"
	.align	2
.LC9:
	.ascii	"tsk->event_sources[CH_STDIN].fd >= 0\000"
	.align	2
.LC10:
	.ascii	"Listening on STDIN...\000"
	.align	2
.LC11:
	.ascii	"tsk->event_sources[CH_SIGUSR1].fd >= 0\000"
	.align	2
.LC12:
	.ascii	"Listening for SIGUSR1...\000"
	.align	2
.LC13:
	.ascii	"tsk->event_sources[CH_SIGINT].fd >= 0\000"
	.align	2
.LC14:
	.ascii	"Listening for SIGINT...\000"
	.text
	.align	2
	.global	open_event_channels
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_event_channels, %function
open_event_channels:
	@ 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, .L30
	mov	r0, #0
	bl	open_nonblocking_udp_socket
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bge	.L23
	ldr	r3, .L30+4
	mov	r2, #152
	ldr	r1, .L30+8
	ldr	r0, .L30+12
	bl	__assert_fail
.L23:
	ldr	r1, .L30
	ldr	r0, .L30+16
	bl	printf
	ldr	r1, .L30+20
	mov	r0, #0
	bl	open_nonblocking_udp_socket
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L30+4
	mov	r2, #157
	ldr	r1, .L30+8
	ldr	r0, .L30+24
	bl	__assert_fail
.L24:
	ldr	r1, .L30+20
	ldr	r0, .L30+16
	bl	printf
	bl	open_stdin_nonblocking
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bge	.L25
	ldr	r3, .L30+4
	mov	r2, #162
	ldr	r1, .L30+8
	ldr	r0, .L30+28
	bl	__assert_fail
.L25:
	ldr	r0, .L30+32
	bl	puts
	mov	r0, #10
	bl	open_signalfd_nonblocking
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bge	.L26
	ldr	r3, .L30+4
	mov	r2, #167
	ldr	r1, .L30+8
	ldr	r0, .L30+36
	bl	__assert_fail
.L26:
	ldr	r0, .L30+40
	bl	puts
	mov	r0, #2
	bl	open_signalfd_nonblocking
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L30+4
	mov	r2, #172
	ldr	r1, .L30+8
	ldr	r0, .L30+44
	bl	__assert_fail
.L27:
	ldr	r0, .L30+48
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #8
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L29
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	2006
	.word	__PRETTY_FUNCTION__.6252
	.word	.LC1
	.word	.LC6
	.word	.LC7
	.word	1619
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	open_event_channels, .-open_event_channels
	.section	.rodata
	.align	2
.LC15:
	.ascii	"socket creation\000"
	.align	2
.LC16:
	.ascii	"binding to port\000"
	.align	2
.LC17:
	.ascii	"mark socket as nonblocking\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_nonblocking_udp_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_nonblocking_udp_socket, %function
open_nonblocking_udp_socket:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L33
	ldr	r0, .L39+4
	bl	perror
	ldr	r3, [fp, #-32]
	b	.L37
.L33:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	bind
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L39+8
	bl	perror
	ldr	r3, [fp, #-28]
	b	.L37
.L35:
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-32]
	bl	fcntl
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L39+12
	bl	perror
	ldr	r3, [fp, #-28]
	b	.L37
.L36:
	ldr	r3, [fp, #-32]
.L37:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC18
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	open_nonblocking_udp_socket, .-open_nonblocking_udp_socket
	.section	.rodata
	.align	2
.LC19:
	.ascii	"mark stdin as nonblocking\000"
	.text
	.align	2
	.global	open_stdin_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_stdin_nonblocking, %function
open_stdin_nonblocking:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L44
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r0, r3
	bl	dup
	str	r0, [fp, #-12]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-12]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L44+4
	bl	perror
	ldr	r3, [fp, #-8]
	b	.L43
.L42:
	ldr	r3, [fp, #-12]
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	stdin
	.word	.LC19
	.size	open_stdin_nonblocking, .-open_stdin_nonblocking
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_signalfd_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_signalfd_nonblocking, %function
open_signalfd_nonblocking:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-140]
	b	.L51
.L47:
	sub	r3, fp, #136
	ldr	r1, [fp, #-144]
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-140]
	b	.L51
.L49:
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-140]
	b	.L51
.L50:
	sub	r3, fp, #136
	mov	r2, #2048
	mov	r1, r3
	mvn	r0, #0
	bl	signalfd
	mov	r3, r0
.L51:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC20
	.size	open_signalfd_nonblocking, .-open_signalfd_nonblocking
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6248, %object
	.size	__PRETTY_FUNCTION__.6248, 23
__PRETTY_FUNCTION__.6248:
	.ascii	"process_one_activation\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6252, %object
	.size	__PRETTY_FUNCTION__.6252, 20
__PRETTY_FUNCTION__.6252:
	.ascii	"open_event_channels\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
