	.file	"421525.c"
	.intel_syntax noprefix
	.text
	.globl	pth_id
	.bss
	.align 32
	.type	pth_id, @object
	.size	pth_id, 80
pth_id:
	.zero	80
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	term_char
	.type	term_char, @object
	.size	term_char, 1
term_char:
	.zero	1
	.globl	cache
	.align 32
	.type	cache, @object
	.size	cache, 128
cache:
	.zero	128
	.globl	cache_index
	.align 4
	.type	cache_index, @object
	.size	cache_index, 4
cache_index:
	.zero	4
	.text
	.globl	reaper
	.type	reaper, @function
reaper:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	nop
.L2:
	lea	rax, -12[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	wait3@PLT
	test	eax, eax
	jns	.L2
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reaper, .-reaper
	.globl	hashing
	.type	hashing, @function
hashing:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	QWORD PTR -8[rbp], rax
.L5:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hashing, .-hashing
	.globl	insert_cache
	.type	insert_cache, @function
insert_cache:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	edx, DWORD PTR cache_index[rip]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, cache[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR cache_index[rip]
	add	eax, 1
	mov	DWORD PTR cache_index[rip], eax
	mov	eax, DWORD PTR cache_index[rip]
	cmp	eax, 15
	jle	.L9
	mov	DWORD PTR cache_index[rip], 0
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insert_cache, .-insert_cache
	.section	.rodata
.LC0:
	.string	"In Proxy Thread..."
.LC1:
	.string	"www.nbu.bg"
.LC2:
	.string	"80"
.LC3:
	.string	"Requested resource: %s\n"
.LC4:
	.string	"Cache: %p\n"
.LC5:
	.string	"Connecting to URL failed: %s\n"
.LC6:
	.string	"GET : %s\n"
.LC7:
	.string	"Sending request failed: %s\n"
	.text
	.globl	proxy_thread
	.type	proxy_thread, @function
proxy_thread:
.LFB9:
	.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, 336
	mov	QWORD PTR -4424[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -4424[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4404[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -4392[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -4384[rbp], rax
	movabs	rax, 202405856583
	mov	edx, 0
	mov	QWORD PTR -4368[rbp], rax
	mov	QWORD PTR -4360[rbp], rdx
	mov	QWORD PTR -4352[rbp], 0
	mov	QWORD PTR -4344[rbp], 0
	mov	QWORD PTR -4336[rbp], 0
	mov	QWORD PTR -4328[rbp], 0
	mov	QWORD PTR -4320[rbp], 0
	mov	QWORD PTR -4312[rbp], 0
	mov	QWORD PTR -4304[rbp], 0
	mov	QWORD PTR -4296[rbp], 0
	mov	QWORD PTR -4288[rbp], 0
	mov	QWORD PTR -4280[rbp], 0
	mov	QWORD PTR -4272[rbp], 0
	mov	QWORD PTR -4264[rbp], 0
	mov	QWORD PTR -4256[rbp], 0
	mov	QWORD PTR -4248[rbp], 0
	mov	QWORD PTR -4240[rbp], 0
	mov	QWORD PTR -4232[rbp], 0
	mov	QWORD PTR -4224[rbp], 0
	mov	QWORD PTR -4216[rbp], 0
	mov	QWORD PTR -4208[rbp], 0
	mov	QWORD PTR -4200[rbp], 0
	mov	QWORD PTR -4192[rbp], 0
	mov	QWORD PTR -4184[rbp], 0
	mov	QWORD PTR -4176[rbp], 0
	mov	QWORD PTR -4168[rbp], 0
	mov	QWORD PTR -4160[rbp], 0
	mov	QWORD PTR -4152[rbp], 0
	mov	QWORD PTR -4144[rbp], 0
	mov	QWORD PTR -4136[rbp], 0
	mov	QWORD PTR -4128[rbp], 0
	mov	QWORD PTR -4120[rbp], 0
	movzx	eax, BYTE PTR term_char[rip]
	movsx	ecx, al
	lea	rax, -4240[rbp]
	mov	edx, 128
	mov	esi, ecx
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -4240[rbp]
	mov	eax, DWORD PTR -4404[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -4240[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4240[rbp]
	mov	rdi, rax
	call	hashing
	mov	QWORD PTR -4376[rbp], rax
	mov	rax, QWORD PTR -4376[rbp]
	mov	rdi, rax
	call	insert_cache
	mov	DWORD PTR -4408[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4408[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, cache[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4408[rbp], 1
.L11:
	cmp	DWORD PTR -4408[rbp], 15
	jle	.L12
	mov	rdx, QWORD PTR -4384[rbp]
	mov	rax, QWORD PTR -4392[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	connectTCP@PLT
	mov	DWORD PTR -4400[rbp], eax
	cmp	DWORD PTR -4400[rbp], 0
	jns	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	errexit@PLT
.L13:
	lea	rdx, -4240[rbp]
	lea	rax, -4368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -4368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4368[rbp]
	add	rax, rdx
	movabs	rsi, 3328493621662205984
	movabs	rdi, 4212118473285438768
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	WORD PTR 16[rax], 32
	mov	rdx, QWORD PTR -4392[rbp]
	lea	rax, -4368[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -4368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4368[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 168626701
	mov	BYTE PTR 4[rax], 0
	lea	rax, -4368[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4368[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -4368[rbp]
	mov	eax, DWORD PTR -4400[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	errexit@PLT
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -4396[rbp]
	movsx	rdx, eax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4404[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	movzx	eax, BYTE PTR term_char[rip]
	movsx	ecx, al
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, ecx
	mov	rdi, rax
	call	memset@PLT
.L15:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4400[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jg	.L16
	mov	eax, DWORD PTR -4404[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4400[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	proxy_thread, .-proxy_thread
	.section	.rodata
	.align 8
.LC8:
	.string	"\nArgc: %d\nArgv[0]: %s\nArgv[1]: %s\nArgv[2]: %s\n"
.LC9:
	.string	"8888"
.LC10:
	.string	"omg"
.LC11:
	.string	"usage: proxy [port]\n"
.LC12:
	.string	"After switch"
.LC13:
	.string	"After passiveTCP"
.LC14:
	.string	"Waiting for a client..."
.LC15:
	.string	"Accept failed: %s\n"
	.align 8
.LC16:
	.string	"Befor proxy thread creation..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	r8, rsi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC9[rip]
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -68[rbp], 1
	je	.L29
	cmp	DWORD PTR -68[rbp], 2
	jne	.L28
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L23
.L28:
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	errexit@PLT
	jmp	.L23
.L29:
	nop
.L23:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	passiveTCP@PLT
	mov	DWORD PTR -44[rbp], eax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rsi, reaper[rip]
	mov	edi, 17
	call	signal@PLT
	mov	DWORD PTR i[rip], 0
.L26:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], 16
	lea	rdx, -52[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	test	eax, eax
	jns	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	errexit@PLT
	jmp	.L26
.L24:
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, pth_id[rip]
	lea	rdi, [rdx+rax]
	lea	rax, -48[rbp]
	mov	rcx, rax
	lea	rdx, proxy_thread[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L26
	.cfi_endproc
.LFE10:
	.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	"421525.c"
	.text
	.comm	pth_id,40,4
	.comm	i,4,4
	.global	term_char
	.bss
	.type	term_char, %object
	.size	term_char, 1
term_char:
	.space	1
	.comm	cache,64,4
	.global	cache_index
	.align	2
	.type	cache_index, %object
	.size	cache_index, 4
cache_index:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	reaper
	.syntax unified
	.arm
	.fpu softvfp
	.type	reaper, %function
reaper:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	nop
.L2:
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	wait3
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	nop
	ldr	r3, .L4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	reaper, .-reaper
	.align	2
	.global	hashing
	.syntax unified
	.arm
	.fpu softvfp
	.type	hashing, %function
hashing:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hashing, .-hashing
	.align	2
	.global	insert_cache
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_cache, %function
insert_cache:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L12+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #15
	ble	.L11
	ldr	r3, .L12
	mov	r2, #0
	str	r2, [r3]
.L11:
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	cache_index
	.word	cache
	.size	insert_cache, .-insert_cache
	.section	.rodata
	.align	2
.LC1:
	.ascii	"In Proxy Thread...\000"
	.align	2
.LC2:
	.ascii	"www.nbu.bg\000"
	.align	2
.LC3:
	.ascii	"80\000"
	.align	2
.LC5:
	.ascii	"Requested resource: %s\012\000"
	.align	2
.LC6:
	.ascii	"Cache: %p\012\000"
	.align	2
.LC7:
	.ascii	"Connecting to URL failed: %s\012\000"
	.align	2
.LC8:
	.ascii	" HTTP/1.0\015\012Host: \000"
	.align	2
.LC9:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC10:
	.ascii	"GET : %s\012\000"
	.align	2
.LC11:
	.ascii	"Sending request failed: %s\012\000"
	.align	2
.LC4:
	.ascii	"GET /\000"
	.space	122
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	proxy_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	proxy_thread, %function
proxy_thread:
	@ args = 0, pretend = 0, frame = 4392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4352
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-292]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L23+4
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-292]
	ldr	r3, [r3]
	str	r3, [r2, #-284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L23+8
	str	r3, [r2, #-280]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L23+12
	str	r3, [r2, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r1, .L23+16
	sub	r3, r2, #260
	ldm	r1, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	sub	r3, r2, #254
	mov	r2, #122
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-132]
	sub	r3, r3, #128
	mov	r2, #124
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L23+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #128
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [r0, #-284]
	bl	read
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L23+24
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	hashing
	str	r0, [r4, #-272]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-272]
	bl	insert_cache
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-288]
	b	.L15
.L16:
	ldr	r2, .L23+28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+32
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	add	r3, r3, #1
	str	r3, [r2, #-288]
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-288]
	cmp	r3, #15
	ble	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-276]
	ldr	r0, [r3, #-280]
	bl	connectTCP
	str	r0, [r4, #-268]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	cmp	r3, #0
	bge	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+36
	bl	errexit
.L17:
	sub	r2, fp, #4224
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L23+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #18
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-280]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L23+44
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L23+48
	bl	printf
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-268]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+52
	bl	errexit
	b	.L19
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-284]
	bl	write
	ldr	r3, .L23+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r0, r3
	bl	memset
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-268]
	bl	read
	str	r0, [r4, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	bgt	.L20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-284]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-268]
	bl	close
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC12
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	term_char
	.word	.LC5
	.word	cache
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	proxy_thread, .-proxy_thread
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012Argc: %d\012Argv[0]: %s\012Argv[1]: %s\012Argv["
	.ascii	"2]: %s\012\000"
	.align	2
.LC14:
	.ascii	"8888\000"
	.align	2
.LC15:
	.ascii	"omg\000"
	.align	2
.LC16:
	.ascii	"usage: proxy [port]\012\000"
	.align	2
.LC17:
	.ascii	"After switch\000"
	.align	2
.LC18:
	.ascii	"After passiveTCP\000"
	.align	2
.LC19:
	.ascii	"Waiting for a client...\000"
	.align	2
.LC20:
	.ascii	"Accept failed: %s\012\000"
	.align	2
.LC21:
	.ascii	"Befor proxy thread creation...\000"
	.align	2
.LC22:
	.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, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	ldr	r2, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-48]
	ldr	r0, .L36+4
	bl	printf
	ldr	r3, .L36+8
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L35
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bne	.L34
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	b	.L29
.L34:
	ldr	r1, .L36+12
	ldr	r0, .L36+16
	bl	errexit
	b	.L29
.L35:
	nop
.L29:
	ldr	r0, .L36+20
	bl	puts
	mov	r1, #10
	ldr	r0, [fp, #-32]
	bl	passiveTCP
	str	r0, [fp, #-28]
	ldr	r0, .L36+24
	bl	puts
	ldr	r1, .L36+28
	mov	r0, #17
	bl	signal
	ldr	r3, .L36+32
	mov	r2, #0
	str	r2, [r3]
.L32:
	ldr	r0, .L36+36
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-40]
	sub	r2, fp, #40
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	accept
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L36+40
	bl	errexit
	b	.L32
.L30:
	ldr	r0, .L36+44
	bl	puts
	ldr	r3, .L36+32
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L36+48
	add	r0, r3, r2
	sub	r3, fp, #36
	ldr	r2, .L36+52
	mov	r1, #0
	bl	pthread_create
	ldr	r3, .L36+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L36+32
	str	r3, [r2]
	b	.L32
.L37:
	.align	2
.L36:
	.word	.LC22
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	reaper
	.word	i
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	pth_id
	.word	proxy_thread
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
