	.file	"259631.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nPort number is missing..."
.LC1:
	.string	"ERROR opening socket"
.LC2:
	.string	"129.120.151.94"
.LC3:
	.string	"\nERROR, no such host..."
	.align 8
.LC4:
	.string	"ERROR connecting the server..."
	.align 8
.LC5:
	.string	"\nEnter URL of the website you wish to visit (or enter 'quit' without the quotations to exit): "
.LC6:
	.string	"%s"
.LC7:
	.string	"ERROR writing to socket"
.LC8:
	.string	"quit"
.LC9:
	.string	"ERROR reading from socket"
	.align 8
.LC10:
	.string	"\nThe content received from proxy server:\n%s\n"
	.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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2464
	mov	DWORD PTR -10644[rbp], edi
	mov	QWORD PTR -10656[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -10644[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -10656[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -10628[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -10624[rbp], eax
	cmp	DWORD PTR -10624[rbp], 0
	jns	.L3
	mov	DWORD PTR -10616[rbp], 1
	mov	DWORD PTR -10612[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -10576[rbp], rax
	mov	rdx, QWORD PTR -10576[rbp]
	mov	ecx, DWORD PTR -10612[rbp]
	mov	eax, DWORD PTR -10616[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	lea	rdi, .LC2[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR -10584[rbp], rax
	cmp	QWORD PTR -10584[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rax, -10544[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	lea	rax, -10016[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -10544[rbp], 2
	mov	eax, DWORD PTR -10628[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -10542[rbp], ax
	mov	rax, QWORD PTR -10584[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -10584[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -10544[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rcx, -10544[rbp]
	mov	eax, DWORD PTR -10624[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L10
	mov	DWORD PTR -10608[rbp], 1
	mov	DWORD PTR -10604[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -10568[rbp], rax
	mov	rdx, QWORD PTR -10568[rbp]
	mov	ecx, DWORD PTR -10604[rbp]
	mov	eax, DWORD PTR -10608[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L10:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -10528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -10528[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -10528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -10528[rbp]
	mov	eax, DWORD PTR -10624[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -10620[rbp], eax
	cmp	DWORD PTR -10620[rbp], 0
	jns	.L6
	mov	DWORD PTR -10600[rbp], 1
	mov	DWORD PTR -10596[rbp], 0
	lea	rax, .LC7[rip]
	mov	QWORD PTR -10560[rbp], rax
	mov	rdx, QWORD PTR -10560[rbp]
	mov	ecx, DWORD PTR -10596[rbp]
	mov	eax, DWORD PTR -10600[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L6:
	lea	rax, -10272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -10528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -10528[rbp]
	lea	rax, -10272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -10272[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -10624[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	jmp	.L13
.L7:
	lea	rax, -10528[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -10624[rbp]
	mov	edx, 10000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -10620[rbp], eax
	cmp	DWORD PTR -10620[rbp], 0
	jns	.L9
	mov	DWORD PTR -10592[rbp], 1
	mov	DWORD PTR -10588[rbp], 0
	lea	rax, .LC9[rip]
	mov	QWORD PTR -10552[rbp], rax
	mov	rdx, QWORD PTR -10552[rbp]
	mov	ecx, DWORD PTR -10588[rbp]
	mov	eax, DWORD PTR -10592[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L9:
	lea	rax, -10016[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -10016[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L10
.L13:
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"259631.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Port number is missing...\000"
	.align	2
.LC1:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC2:
	.ascii	"129.120.151.94\000"
	.align	2
.LC3:
	.ascii	"\012ERROR, no such host...\000"
	.align	2
.LC4:
	.ascii	"ERROR connecting the server...\000"
	.align	2
.LC5:
	.ascii	"\012Enter URL of the website you wish to visit (or "
	.ascii	"enter 'quit' without the quotations to exit): \000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"ERROR writing to socket\000"
	.align	2
.LC8:
	.ascii	"quit\000"
	.align	2
.LC9:
	.ascii	"ERROR reading from socket\000"
	.align	2
.LC10:
	.ascii	"\012The content received from proxy server:\012%s\012"
	.ascii	"\000"
	.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 = 10608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10560
	sub	sp, sp, #52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2412]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2416]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2412]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L14+4
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2416]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-2404]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-2400]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2400]
	cmp	r3, #0
	bge	.L3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2388]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2384]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+8
	str	r3, [r2, #-2380]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2380]
	ldr	r1, [r1, #-2384]
	ldr	r0, [r3, #-2388]
	bl	error
	nop
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L14+12
	bl	gethostbyname
	str	r0, [r4, #-2396]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2396]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L14+16
	bl	puts
	mov	r0, #0
	bl	exit
.L4:
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	ldr	r3, .L14+20
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2336
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2404]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2336
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2396]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2396]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2400]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2376]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2372]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+24
	str	r3, [r2, #-2368]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2368]
	ldr	r1, [r1, #-2372]
	ldr	r0, [r3, #-2376]
	bl	error
	nop
.L10:
	ldr	r0, .L14+28
	bl	printf
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L14+32
	bl	__isoc99_scanf
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2400]
	bl	write
	str	r0, [r4, #-2392]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2392]
	cmp	r3, #0
	bge	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2364]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2360]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+36
	str	r3, [r2, #-2356]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2356]
	ldr	r1, [r1, #-2360]
	ldr	r0, [r3, #-2364]
	bl	error
	nop
.L6:
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #10496
	sub	r1, r1, #12
	sub	r1, r1, #20
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L14+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2400]
	bl	close
	nop
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L7:
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	ldr	r2, .L14+20
	mov	r1, r3
	ldr	r0, [r0, #-2400]
	bl	read
	str	r0, [r4, #-2392]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2392]
	cmp	r3, #0
	bge	.L9
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2352]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2348]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L14+44
	str	r3, [r2, #-2344]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2344]
	ldr	r1, [r1, #-2348]
	ldr	r0, [r3, #-2352]
	bl	error
	nop
.L9:
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	ldr	r0, .L14+48
	bl	printf
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	ldr	r3, .L14+20
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L10
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	10000
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
