	.file	"72041.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
.LC1:
	.string	"child {%d} connected \n"
	.align 8
.LC2:
	.string	"Test message %d from client %d"
	.text
	.globl	child_process
	.type	child_process, @function
child_process:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 2
	call	sleep@PLT
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	DWORD PTR -304[rbp], 1
	call	getpid@PLT
	mov	edi, eax
	call	srandom@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -300[rbp], eax
	mov	WORD PTR -288[rbp], 2
	mov	edi, 2000
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	inet_addr@PLT
	mov	DWORD PTR -284[rbp], eax
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	call	random@PLT
	mov	rcx, rax
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -296[rbp], eax
	add	DWORD PTR -304[rbp], 1
	mov	eax, DWORD PTR -296[rbp]
	mov	edi, eax
	call	sleep@PLT
	call	getpid@PLT
	mov	ecx, eax
	mov	edx, DWORD PTR -304[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -292[rbp], eax
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	child_process, .-child_process
	.section	.rodata
.LC3:
	.string	"round again"
	.text
	.globl	main
	.type	main, @function
main:
.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, 368
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -360[rbp], 0
	mov	DWORD PTR -364[rbp], 0
	jmp	.L5
.L7:
	call	fork@PLT
	test	eax, eax
	jne	.L6
	call	child_process
	mov	edi, 0
	call	exit@PLT
.L6:
	add	DWORD PTR -364[rbp], 1
.L5:
	cmp	DWORD PTR -364[rbp], 4
	jle	.L7
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -356[rbp], eax
	lea	rax, -352[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -352[rbp], 2
	mov	edi, 2000
	call	htons@PLT
	mov	WORD PTR -350[rbp], ax
	mov	DWORD PTR -348[rbp], 0
	lea	rcx, -352[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	eax, DWORD PTR -356[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -364[rbp], 0
	jmp	.L8
.L9:
	lea	rax, -336[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -368[rbp], 16
	lea	rdx, -368[rbp]
	lea	rcx, -336[rbp]
	mov	eax, DWORD PTR -356[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	edx, DWORD PTR -364[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -320[rbp+rdx*8], eax
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	mov	WORD PTR -316[rbp+rax*8], 1
	add	DWORD PTR -364[rbp], 1
.L8:
	cmp	DWORD PTR -364[rbp], 4
	jle	.L9
	mov	edi, 1
	call	sleep@PLT
.L13:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -320[rbp]
	mov	edx, 50000
	mov	esi, 5
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -364[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	movzx	eax, WORD PTR -314[rbp+rax*8]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	mov	WORD PTR -314[rbp+rax*8], 0
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	mov	eax, DWORD PTR -320[rbp+rax*8]
	lea	rcx, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	puts@PLT
.L11:
	add	DWORD PTR -364[rbp], 1
.L10:
	cmp	DWORD PTR -364[rbp], 4
	jle	.L12
	jmp	.L13
	.cfi_endproc
.LFE7:
	.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	"72041.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC1:
	.ascii	"child {%d} connected \012\000"
	.align	2
.LC2:
	.ascii	"Test message %d from client %d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	child_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_process, %function
child_process:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #2
	bl	sleep
	sub	r3, fp, #280
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #1
	str	r3, [fp, #-296]
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	srandom
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-292]
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #2000
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #276
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L4+4
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-276]
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-292]
	bl	connect
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4+8
	bl	printf
.L2:
	bl	random
	mov	r1, r0
	ldr	r3, .L4+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-288]
	mov	r0, r3
	bl	sleep
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #264
	ldr	r2, [fp, #-296]
	ldr	r1, .L4+16
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-292]
	bl	write
	str	r0, [fp, #-284]
	b	.L2
.L5:
	.align	2
.L4:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	1717986919
	.word	.LC2
	.size	child_process, .-child_process
	.section	.rodata
	.align	2
.LC4:
	.ascii	"round again\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 352
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #352
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L7
.L9:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	bl	child_process
	mov	r0, #0
	bl	exit
.L8:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L7:
	ldr	r3, [fp, #-348]
	cmp	r3, #4
	ble	.L9
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-340]
	sub	r3, fp, #336
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #332
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #2000
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #332
	strh	r2, [r3, #2]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-332]
	sub	r3, fp, #336
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	bind
	mov	r1, #5
	ldr	r0, [fp, #-340]
	bl	listen
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L10
.L11:
	sub	r3, fp, #320
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #16
	str	r3, [fp, #-352]
	sub	r2, fp, #352
	sub	r3, fp, #320
	mov	r1, r3
	ldr	r0, [fp, #-340]
	bl	accept
	mov	r2, r0
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #3
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-300]
	sub	r3, fp, #4
	sub	r2, r3, #300
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L10:
	ldr	r3, [fp, #-348]
	cmp	r3, #4
	ble	.L11
	mov	r0, #1
	bl	sleep
.L15:
	ldr	r0, .L17+4
	bl	puts
	sub	r3, fp, #304
	ldr	r2, .L17+8
	mov	r1, #5
	mov	r0, r3
	bl	poll
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L12
.L14:
	sub	r3, fp, #4
	sub	r2, r3, #300
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #4
	sub	r2, r3, #300
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-348]
	lsl	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-300]
	sub	r1, fp, #264
	mov	r2, #256
	mov	r0, r3
	bl	read
	sub	r3, fp, #264
	mov	r0, r3
	bl	puts
.L13:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L12:
	ldr	r3, [fp, #-348]
	cmp	r3, #4
	ble	.L14
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC4
	.word	50000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
