	.file	"162644604.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Failed to create socket"
.LC1:
	.string	"Bind error"
	.align 8
.LC2:
	.string	"Failed to listen for incoming connexions"
.LC3:
	.string	"Failed to accept a call"
.LC4:
	.string	"Failed to receive the number"
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 1
	mov	edi, 17
	call	signal@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L2:
	mov	WORD PTR -32[rbp], 2
	mov	edi, 4237
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L3:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L8:
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L5:
	call	fork@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L8
	lea	rsi, -60[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L7:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, edx
	mov	DWORD PTR -56[rbp], eax
	lea	rsi, -56[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	send@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"162644604.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to create socket\000"
	.align	2
.LC1:
	.ascii	"Bind error\000"
	.align	2
.LC2:
	.ascii	"Failed to listen for incoming connexions\000"
	.align	2
.LC3:
	.ascii	"Failed to accept a call\000"
	.align	2
.LC4:
	.ascii	"Failed to receive the number\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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #1
	mov	r0, #17
	bl	signal
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L10+4
	bl	perror
.L2:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L10+8
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L10+12
	bl	perror
.L3:
	mov	r1, #5
	ldr	r0, [fp, #-44]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L10+16
	bl	perror
.L8:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	accept
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L10+20
	bl	perror
.L5:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L8
	sub	r1, fp, #52
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-40]
	bl	recv
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L10+24
	bl	perror
.L7:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	mul	r3, r2, r3
	str	r3, [fp, #-48]
	sub	r1, fp, #48
	mov	r3, #0
	mov	r2, #4
	ldr	r0, [fp, #-40]
	bl	send
	str	r0, [fp, #-28]
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC0
	.word	4237
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
