	.file	"675375.c"
	.intel_syntax noprefix
	.text
	.globl	reap
	.type	reap, @function
reap:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	wait@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reap, .-reap
	.section	.rodata
.LC0:
	.string	"inet_ntop"
.LC1:
	.string	"unknown"
.LC2:
	.string	"Client connection from %s!\n"
.LC3:
	.string	"reading stream message"
.LC4:
	.string	"Ending connection from %s.\n"
.LC5:
	.string	"Client (%s) sent: %s"
	.text
	.globl	handleConnection
	.type	handleConnection, @function
handleConnection:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -8276[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -8256[rbp]
	lea	rax, 24[rbp]
	mov	ecx, 46
	mov	rsi, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	QWORD PTR -8264[rbp], rax
	cmp	QWORD PTR -8264[rbp], 0
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	lea	rax, .LC1[rip]
	mov	QWORD PTR -8264[rbp], rax
	jmp	.L8
.L3:
	mov	rax, QWORD PTR -8264[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rax, -8208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 1024
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8276[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8268[rbp], eax
	cmp	DWORD PTR -8268[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L6
.L5:
	cmp	DWORD PTR -8268[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -8264[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L7:
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8264[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	cmp	DWORD PTR -8268[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -8276[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	handleConnection, .-handleConnection
	.section	.rodata
.LC6:
	.string	"signal"
.LC7:
	.string	"opening stream socket"
.LC8:
	.string	"binding stream socket"
.LC9:
	.string	"getting socket name"
.LC10:
	.string	"Socket has port #%d\n"
.LC11:
	.string	"listening"
.LC12:
	.string	"select"
.LC13:
	.string	"accept"
.LC14:
	.string	"fork"
	.align 8
.LC15:
	.string	"Idly sitting here, waiting for connections..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, reap[rip]
	mov	edi, 17
	call	signal@PLT
	cmp	rax, -1
	jne	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jns	.L12
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	WORD PTR -224[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -216[rbp], rax
	mov	QWORD PTR -208[rbp], rdx
	mov	WORD PTR -222[rbp], 0
	lea	rcx, -224[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	edx, 28
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L13
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	DWORD PTR -264[rbp], 28
	lea	rdx, -264[rbp]
	lea	rcx, -224[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	test	eax, eax
	je	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	movzx	eax, WORD PTR -222[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -160[rbp]
	mov	rdi, rdx
#APP
# 139 "the_stack_data/675375.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -256[rbp], edx
	mov	DWORD PTR -252[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -160[rbp+rax*8]
	mov	eax, DWORD PTR -260[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -160[rbp+rax*8], rdx
	mov	QWORD PTR -240[rbp], 5
	mov	QWORD PTR -232[rbp], 0
	mov	eax, DWORD PTR -260[rbp]
	lea	edi, 1[rax]
	lea	rdx, -240[rbp]
	lea	rax, -160[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	test	eax, eax
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L26
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L26
.L16:
	mov	eax, DWORD PTR -260[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -160[rbp+rax*8]
	mov	eax, DWORD PTR -260[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L19
	mov	DWORD PTR -264[rbp], 28
	lea	rdx, -264[rbp]
	lea	rcx, -192[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], 0
	jns	.L20
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L15
.L20:
	call	fork@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	jns	.L21
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	cmp	DWORD PTR -244[rbp], 0
	jne	.L15
	mov	edx, DWORD PTR -248[rbp]
	sub	rsp, 32
	mov	rax, rsp
	mov	rcx, QWORD PTR -192[rbp]
	mov	rbx, QWORD PTR -184[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -176[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	ecx, DWORD PTR -168[rbp]
	mov	DWORD PTR 24[rax], ecx
	mov	edi, edx
	call	handleConnection
	add	rsp, 32
	jmp	.L15
.L19:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L15
.L26:
	nop
	jmp	.L15
	.cfi_endproc
.LFE8:
	.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	"675375.c"
	.text
	.align	2
	.global	reap
	.syntax unified
	.arm
	.fpu softvfp
	.type	reap, %function
reap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	wait
	nop
	pop	{fp, pc}
	.size	reap, .-reap
	.section	.rodata
	.align	2
.LC0:
	.ascii	"inet_ntop\000"
	.align	2
.LC1:
	.ascii	"unknown\000"
	.align	2
.LC2:
	.ascii	"Client connection from %s!\012\000"
	.align	2
.LC3:
	.ascii	"reading stream message\000"
	.align	2
.LC4:
	.ascii	"Ending connection from %s.\012\000"
	.align	2
.LC5:
	.ascii	"Client (%s) sent: %s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handleConnection
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleConnection, %function
handleConnection:
	@ args = 32, pretend = 16, frame = 8264
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #12
	sub	ip, fp, #8192
	sub	ip, ip, #12
	str	r0, [ip, #-68]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #52
	add	r3, fp, #8
	add	r1, r3, #8
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	str	r0, [r4, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L10+4
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L10+8
	str	r3, [r2, #-60]
	b	.L8
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-60]
	ldr	r0, .L10+12
	bl	printf
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #8192
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-68]
	bl	read
	str	r0, [r4, #-56]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+16
	bl	perror
	b	.L6
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-60]
	ldr	r0, .L10+20
	bl	printf
	b	.L6
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-60]
	ldr	r0, .L10+24
	bl	printf
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	str	r3, [r2, #-60]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-68]
	bl	close
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	handleConnection, .-handleConnection
	.section	.rodata
	.align	2
.LC7:
	.ascii	"signal\000"
	.align	2
.LC8:
	.ascii	"opening stream socket\000"
	.align	2
.LC9:
	.ascii	"binding stream socket\000"
	.align	2
.LC10:
	.ascii	"getting socket name\000"
	.align	2
.LC11:
	.ascii	"Socket has port #%d\012\000"
	.align	2
.LC12:
	.ascii	"listening\000"
	.align	2
.LC13:
	.ascii	"select\000"
	.align	2
.LC14:
	.ascii	"accept\000"
	.align	2
.LC15:
	.ascii	"fork\000"
	.align	2
.LC16:
	.ascii	"Idly sitting here, waiting for connections...\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L31+4
	mov	r0, #17
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L31+8
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #10
	bl	socket
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L31+12
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	mov	r3, #10
	strh	r3, [fp, #-192]	@ movhi
	ldr	r3, .L31+16
	sub	ip, fp, #184
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	strh	r3, [fp, #-190]	@ movhi
	sub	r3, fp, #192
	mov	r2, #28
	mov	r1, r3
	ldr	r0, [fp, #-216]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L31+20
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r3, #28
	str	r3, [fp, #-224]
	sub	r2, fp, #224
	sub	r3, fp, #192
	mov	r1, r3
	ldr	r0, [fp, #-216]
	bl	getsockname
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L31+24
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldrh	r3, [fp, #-190]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L31+28
	bl	printf
	mov	r1, #5
	ldr	r0, [fp, #-216]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L31+32
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #136
	str	r3, [fp, #-212]
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L18
.L19:
	ldr	r3, [fp, #-212]
	ldr	r2, [fp, #-220]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-220]
	add	r3, r3, #1
	str	r3, [fp, #-220]
.L18:
	ldr	r3, [fp, #-220]
	cmp	r3, #31
	bls	.L19
	ldr	r3, [fp, #-216]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-216]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	mov	r3, #5
	str	r3, [fp, #-200]
	mov	r3, #0
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-216]
	add	r0, r3, #1
	sub	r1, fp, #136
	sub	r3, fp, #200
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L30
	ldr	r0, .L31+36
	bl	perror
	b	.L30
.L20:
	ldr	r3, [fp, #-216]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-216]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L23
	mov	r3, #28
	str	r3, [fp, #-224]
	sub	r2, fp, #224
	sub	r3, fp, #164
	mov	r1, r3
	ldr	r0, [fp, #-216]
	bl	accept
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L31+40
	bl	perror
	b	.L17
.L24:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L31+44
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bne	.L17
	mov	ip, sp
	sub	r3, fp, #152
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #164
	ldm	r3, {r1, r2, r3}
	ldr	r0, [fp, #-208]
	bl	handleConnection
	b	.L17
.L23:
	ldr	r0, .L31+48
	bl	puts
	b	.L17
.L30:
	nop
	b	.L17
.L32:
	.align	2
.L31:
	.word	.LC17
	.word	reap
	.word	.LC7
	.word	.LC8
	.word	in6addr_any
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
