	.file	"150143824.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Entrer le domaine d\303\251sir\303\251 :"
	.align 8
.LC1:
	.string	"Entrer la ressource d\303\251sir\303\251e (par default : index.html):"
	.align 8
.LC2:
	.string	"Entrer le port (-1: pour le port 80) :"
.LC3:
	.string	"%d"
.LC4:
	.string	"\n"
.LC5:
	.string	"w"
.LC6:
	.string	"index.html"
	.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, 1216
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1212[rbp], 0
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	mov	QWORD PTR -1024[rbp], 0
	mov	QWORD PTR -1016[rbp], 0
	mov	QWORD PTR -1008[rbp], 0
	mov	QWORD PTR -1000[rbp], 0
	mov	QWORD PTR -992[rbp], 0
	mov	QWORD PTR -984[rbp], 0
	mov	QWORD PTR -976[rbp], 0
	mov	QWORD PTR -968[rbp], 0
	mov	QWORD PTR -960[rbp], 0
	mov	QWORD PTR -952[rbp], 0
	mov	QWORD PTR -944[rbp], 0
	mov	QWORD PTR -936[rbp], 0
	mov	QWORD PTR -928[rbp], 0
	mov	QWORD PTR -920[rbp], 0
	mov	QWORD PTR -912[rbp], 0
	mov	QWORD PTR -904[rbp], 0
	mov	QWORD PTR -896[rbp], 0
	mov	QWORD PTR -888[rbp], 0
	mov	QWORD PTR -880[rbp], 0
	mov	QWORD PTR -872[rbp], 0
	mov	QWORD PTR -864[rbp], 0
	mov	QWORD PTR -856[rbp], 0
	mov	QWORD PTR -848[rbp], 0
	mov	QWORD PTR -840[rbp], 0
	mov	QWORD PTR -832[rbp], 0
	mov	QWORD PTR -824[rbp], 0
	mov	QWORD PTR -816[rbp], 0
	mov	QWORD PTR -808[rbp], 0
	mov	QWORD PTR -800[rbp], 0
	mov	QWORD PTR -792[rbp], 0
	mov	QWORD PTR -784[rbp], 0
	mov	QWORD PTR -776[rbp], 0
	mov	QWORD PTR -768[rbp], 0
	mov	QWORD PTR -760[rbp], 0
	mov	QWORD PTR -752[rbp], 0
	mov	QWORD PTR -744[rbp], 0
	mov	QWORD PTR -736[rbp], 0
	mov	QWORD PTR -728[rbp], 0
	mov	QWORD PTR -720[rbp], 0
	mov	QWORD PTR -712[rbp], 0
	mov	QWORD PTR -704[rbp], 0
	mov	QWORD PTR -696[rbp], 0
	mov	QWORD PTR -688[rbp], 0
	mov	QWORD PTR -680[rbp], 0
	mov	QWORD PTR -672[rbp], 0
	mov	QWORD PTR -664[rbp], 0
	mov	QWORD PTR -656[rbp], 0
	mov	QWORD PTR -648[rbp], 0
	mov	QWORD PTR -640[rbp], 0
	mov	QWORD PTR -632[rbp], 0
	mov	QWORD PTR -624[rbp], 0
	mov	QWORD PTR -616[rbp], 0
	mov	QWORD PTR -608[rbp], 0
	mov	QWORD PTR -600[rbp], 0
	mov	QWORD PTR -592[rbp], 0
	mov	QWORD PTR -584[rbp], 0
	mov	QWORD PTR -576[rbp], 0
	mov	QWORD PTR -568[rbp], 0
	mov	QWORD PTR -560[rbp], 0
	mov	QWORD PTR -552[rbp], 0
	mov	QWORD PTR -544[rbp], 0
	mov	QWORD PTR -536[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1040[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
.L2:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jbe	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -784[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -784[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L5
	lea	rax, -784[rbp]
	movabs	rcx, 8388005400609582697
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 27757
	mov	BYTE PTR 10[rax], 0
	jmp	.L5
.L6:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -1212[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -1212[rbp]
	cmp	eax, -1
	jne	.L5
	mov	DWORD PTR -1212[rbp], 80
.L5:
	mov	eax, DWORD PTR -1212[rbp]
	test	eax, eax
	jle	.L6
	lea	rax, -1040[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rax, -784[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -1200[rbp], rax
	mov	rax, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	QWORD PTR -1192[rbp], rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1208[rbp], eax
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -1164[rbp], eax
	mov	WORD PTR -1168[rbp], 2
	mov	eax, DWORD PTR -1212[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1166[rbp], ax
	lea	rcx, -1168[rbp]
	mov	eax, DWORD PTR -1208[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	edi, 512
	call	malloc@PLT
	mov	QWORD PTR -1184[rbp], rax
	mov	rax, QWORD PTR -1184[rbp]
	mov	DWORD PTR [rax], 542393671
	mov	WORD PTR 4[rax], 47
	lea	rdx, -784[rbp]
	mov	rax, QWORD PTR -1184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1184[rbp]
	add	rax, rdx
	movabs	rsi, 3328493621662205984
	movabs	rdi, 4212118473285438769
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	WORD PTR 16[rax], 32
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -1184[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 168626701
	mov	BYTE PTR 4[rax], 0
	mov	DWORD PTR -1204[rbp], 1
	mov	rax, QWORD PTR -1184[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1184[rbp]
	mov	eax, DWORD PTR -1208[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	QWORD PTR -464[rbp], 0
	mov	QWORD PTR -456[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -416[rbp], 0
	mov	QWORD PTR -408[rbp], 0
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	lea	rdx, -784[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	movabs	rax, 2333195699268972655
	movabs	rdx, 9123139236028787
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rdx, -784[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -1176[rbp], rax
.L7:
	lea	rsi, -1152[rbp]
	mov	eax, DWORD PTR -1208[rbp]
	mov	ecx, 0
	mov	edx, 99
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -1204[rbp], eax
	mov	rdx, QWORD PTR -1176[rbp]
	lea	rax, -1152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -1204[rbp], 0
	jg	.L7
	mov	rax, QWORD PTR -1176[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -1208[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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	"150143824.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Entrer le domaine d\303\251sir\303\251 :\000"
	.align	2
.LC1:
	.ascii	"Entrer la ressource d\303\251sir\303\251e (par defa"
	.ascii	"ult : index.html):\000"
	.align	2
.LC2:
	.ascii	"index.html\000"
	.align	2
.LC3:
	.ascii	"Entrer le port (-1: pour le port 80) :\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012\000"
	.align	2
.LC6:
	.ascii	"GET /\000"
	.align	2
.LC7:
	.ascii	" HTTP/1.1\015\012Host: \000"
	.align	2
.LC8:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC10:
	.ascii	"w\000"
	.align	2
.LC9:
	.ascii	"open -a safari \000"
	.space	240
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1168
	sub	sp, sp, #8
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1176]
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-776]
	sub	r3, fp, #772
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L2
.L3:
	ldr	r0, .L10+4
	bl	puts
	ldr	r3, .L10+8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #256
	mov	r0, r3
	bl	fgets
.L2:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bls	.L3
	ldr	r0, .L10+12
	bl	puts
	ldr	r3, .L10+8
	ldr	r2, [r3]
	sub	r3, fp, #776
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #776
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L5
	sub	r3, fp, #776
	ldr	r2, .L10+16
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	b	.L5
.L6:
	ldr	r0, .L10+20
	bl	puts
	sub	r3, fp, #1168
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L10+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-1176]
	cmn	r3, #1
	bne	.L5
	mov	r3, #80
	str	r3, [fp, #-1176]
.L5:
	ldr	r3, [fp, #-1176]
	cmp	r3, #0
	ble	.L6
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L10+28
	mov	r0, r3
	bl	strtok
	sub	r3, fp, #776
	ldr	r1, .L10+28
	mov	r0, r3
	bl	strtok
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-1172]
	ldr	r3, [fp, #-1172]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	inet_ntoa
	str	r0, [fp, #-1168]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1164]
	ldr	r0, [fp, #-1168]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-1144]
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-1176]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1136
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1136
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1164]
	bl	connect
	mov	r0, #512
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1160]
	ldr	r3, [fp, #-1160]
	ldr	r2, .L10+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #776
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	strcat
	ldr	r0, [fp, #-1160]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1160]
	add	r3, r3, r2
	ldr	r2, .L10+36
	mov	r0, r3
	mov	r1, r2
	mov	r3, #18
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	strcat
	ldr	r0, [fp, #-1160]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-1160]
	add	r3, r3, r2
	ldr	r2, .L10+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	mov	r3, #1
	str	r3, [fp, #-1156]
	ldr	r0, [fp, #-1160]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-1160]
	ldr	r0, [fp, #-1164]
	bl	send
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #776
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, .L10+44
	sub	ip, fp, #264
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #248
	mov	r2, #240
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #776
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r1, .L10+48
	ldr	r0, .L10+16
	bl	fopen
	str	r0, [fp, #-1152]
.L7:
	sub	r1, fp, #1120
	sub	r1, r1, #4
	sub	r1, r1, #8
	mov	r3, #0
	mov	r2, #99
	ldr	r0, [fp, #-1164]
	bl	recv
	str	r0, [fp, #-1156]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, [fp, #-1152]
	mov	r0, r3
	bl	fputs
	ldr	r3, .L10+52
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-1156]
	cmp	r3, #0
	bgt	.L7
	ldr	r0, [fp, #-1152]
	bl	fclose
	ldr	r0, [fp, #-1164]
	bl	close
	sub	r3, fp, #264
	mov	r0, r3
	bl	system
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC11
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
