	.file	"6388032.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Le SE n'a pas pu cr\303\251er la socket %d\n"
.LC1:
	.string	"127.0.0.1"
.LC2:
	.string	"bind error"
.LC3:
	.string	"listen\n"
.LC4:
	.string	"accept\n"
.LC5:
	.string	"errreur de cr\303\251ation du fils\n"
.LC6:
	.string	"indentit\303\251 du client %d\n"
.LC7:
	.string	"ab"
	.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
	lea	r11, -57344[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2768
	mov	DWORD PTR -60100[rbp], edi
	mov	QWORD PTR -60112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -60072[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -60084[rbp], eax
	cmp	DWORD PTR -60084[rbp], 0
	jns	.L2
	mov	eax, DWORD PTR -60084[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	lea	rax, -60064[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -60064[rbp], 2
	mov	edi, 6875
	call	htons@PLT
	mov	WORD PTR -60062[rbp], ax
	lea	rax, -60064[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	inet_aton@PLT
	lea	rcx, -60064[rbp]
	mov	eax, DWORD PTR -60084[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -60084[rbp]
	mov	esi, 50
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jge	.L4
	lea	rdi, .LC3[rip]
	call	perror@PLT
.L4:
	mov	DWORD PTR -60088[rbp], 16
.L11:
	lea	rdx, -60088[rbp]
	lea	rcx, -60048[rbp]
	mov	eax, DWORD PTR -60084[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -60080[rbp], eax
	cmp	DWORD PTR -60080[rbp], 0
	jns	.L5
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	call	fork@PLT
	mov	DWORD PTR -60076[rbp], eax
	cmp	DWORD PTR -60076[rbp], 0
	jns	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
.L6:
	cmp	DWORD PTR -60076[rbp], 0
	jne	.L7
	movzx	eax, WORD PTR -60046[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rcx, -60026[rbp]
	mov	eax, DWORD PTR -60080[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -60026[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -60072[rbp], rax
	mov	edi, 3
	call	sleep@PLT
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -60072[rbp]
	lea	rax, -60016[rbp]
	mov	rcx, rdx
	mov	edx, 60000
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L8:
	lea	rcx, -60016[rbp]
	mov	eax, DWORD PTR -60080[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -60072[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -60084[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	jmp	.L14
.L7:
	mov	eax, DWORD PTR -60080[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L11
.L14:
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"6388032.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Le SE n'a pas pu cr\303\251er la socket %d\012\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"bind error\000"
	.align	2
.LC3:
	.ascii	"listen\012\000"
	.align	2
.LC4:
	.ascii	"accept\012\000"
	.align	2
.LC5:
	.ascii	"errreur de cr\303\251ation du fils\012\000"
	.align	2
.LC6:
	.ascii	"indentit\303\251 du client %d\012\000"
	.align	2
.LC7:
	.ascii	"ab\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 60080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #59904
	sub	sp, sp, #180
	sub	r3, fp, #57344
	sub	r3, r3, #12
	str	r0, [r3, #-2732]
	sub	r3, fp, #57344
	sub	r3, r3, #12
	str	r1, [r3, #-2736]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2720]
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-2716]
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r3, [r3, #-2716]
	cmp	r3, #0
	bge	.L2
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r1, [r3, #-2716]
	ldr	r0, .L15+4
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #144
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #57344
	sub	r3, r3, #12
	sub	r3, r3, #2704
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L15+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #57344
	sub	r3, r3, #12
	sub	r3, r3, #2704
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #144
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L15+12
	bl	inet_aton
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #144
	sub	r2, fp, #57344
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2716]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L15+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L3:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r1, #50
	ldr	r0, [r3, #-2716]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bge	.L4
	ldr	r0, .L15+20
	bl	perror
.L4:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-2724]
.L11:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #59904
	sub	r2, r2, #12
	sub	r2, r2, #164
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #128
	sub	r1, fp, #57344
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2716]
	bl	accept
	str	r0, [r4, #-2712]
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r3, [r3, #-2712]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L15+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L5:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-2708]
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r3, [r3, #-2708]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L15+28
	bl	perror
.L6:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r3, [r3, #-2708]
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #57344
	sub	r3, r3, #12
	sub	r3, r3, #2688
	ldrh	r3, [r3, #2]
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #112
	sub	r2, fp, #57344
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [r0, #-2712]
	bl	read
	sub	r3, fp, #57344
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #112
	ldr	r1, .L15+36
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-2720]
	mov	r0, #3
	bl	sleep
	b	.L8
.L9:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	sub	r0, fp, #59904
	sub	r0, r0, #12
	sub	r0, r0, #100
	ldr	r3, [r3, #-2720]
	ldr	r2, .L15+40
	mov	r1, #1
	bl	fwrite
.L8:
	sub	r3, fp, #59904
	sub	r3, r3, #12
	sub	r3, r3, #100
	sub	r2, fp, #57344
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [r0, #-2712]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r0, [r3, #-2720]
	bl	fclose
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r0, [r3, #-2716]
	bl	close
	nop
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	b	.L14
.L7:
	sub	r3, fp, #57344
	sub	r3, r3, #12
	ldr	r0, [r3, #-2712]
	bl	close
	b	.L11
.L14:
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	.LC0
	.word	6875
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	60000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
