	.file	"extr_3821.c_getshell_conn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"getshell_conn(): socket() failed."
	.align 8
.LC1:
	.string	"getshell_conn(): couldn't resolve."
	.align 8
.LC2:
	.string	"[*] attempting to connect: %s:%d.\n"
	.align 8
.LC3:
	.string	"[!] connection failed: %s:%d.\n"
	.align 8
.LC4:
	.string	"[*] successfully connected: %s:%d.\n\n"
	.text
	.p2align 4
	.globl	getshell_conn
	.type	getshell_conn, @function
getshell_conn:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR IPPROTO_TCP[rip]
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR AF_INET[rip]
	call	socket@PLT
	mov	r13d, eax
	cmp	eax, -1
	je	.L15
.L2:
	mov	eax, DWORD PTR AF_INET[rip]
	mov	rdi, rbp
	mov	DWORD PTR 20[rsp], eax
	call	inet_addr@PLT
	mov	DWORD PTR 16[rsp], eax
	test	eax, eax
	jne	.L16
.L3:
	movzx	r12d, r12w
	mov	edi, r12d
	call	htons@PLT
	mov	esi, DWORD PTR sig_alarm[rip]
	mov	edi, DWORD PTR SIGALRM[rip]
	mov	DWORD PTR 12[rsp], eax
	call	signal@PLT
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	call	printf@PLT
	mov	edi, DWORD PTR TIMEOUT[rip]
	call	alarm@PLT
	lea	rsi, 12[rsp]
	mov	edx, 12
	mov	edi, r13d
	call	connect@PLT
	test	rax, rax
	jne	.L17
.L5:
	xor	edi, edi
	call	alarm@PLT
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC4[rip]
	call	printf@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	gethostbyname@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L19
.L4:
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, 16[rsp]
	mov	edx, 4
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, r12d
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	printe@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	printe@PLT
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	getshell_conn, .-getshell_conn
	.comm	sig_alarm,4,4
	.comm	TIMEOUT,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SIGALRM,4,4
	.comm	IPPROTO_TCP,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_3821.c_getshell_conn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"getshell_conn(): socket() failed.\000"
	.align	2
.LC1:
	.ascii	"getshell_conn(): couldn't resolve.\000"
	.align	2
.LC2:
	.ascii	"[*] attempting to connect: %s:%d.\012\000"
	.align	2
.LC3:
	.ascii	"[!] connection failed: %s:%d.\012\000"
	.align	2
.LC4:
	.ascii	"[*] successfully connected: %s:%d.\012\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getshell_conn
	.syntax unified
	.arm
	.fpu softvfp
	.type	getshell_conn, %function
getshell_conn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L20
	ldr	r2, .L20+4
	ldr	r7, .L20+8
	mov	r5, r1
	ldr	r1, [r3]
	ldr	r3, .L20+12
	sub	sp, sp, #20
	mov	r4, r0
	ldr	r2, [r2]
	ldr	r0, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	socket
	cmn	r0, #1
	mov	r6, r0
	beq	.L15
.L2:
	ldr	r3, [r7]
	mov	r0, r4
	str	r3, [sp, #8]
	bl	inet_addr
	cmp	r0, #0
	str	r0, [sp, #4]
	bne	.L16
.L3:
	mov	r0, r5
	bl	htons
	mov	r3, r0
	ldr	r2, .L20+16
	ldr	r1, .L20+20
	ldr	r0, [r2]
	ldr	r1, [r1]
	str	r3, [sp]
	bl	signal
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L20+24
	bl	printf
	ldr	r3, .L20+28
	ldr	r0, [r3]
	bl	alarm
	mov	r2, #12
	mov	r1, sp
	mov	r0, r6
	bl	connect
	cmp	r0, #0
	bne	.L17
.L5:
	mov	r0, #0
	bl	alarm
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L20+32
	bl	printf
	ldr	r3, .L20+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	mov	r0, r4
	bl	gethostbyname
	subs	r7, r0, #0
	beq	.L19
.L4:
	mov	r2, #4
	ldr	r1, [r7]
	add	r0, sp, r2
	bl	memcpy
	b	.L3
.L17:
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L20+36
	bl	printf
	mov	r0, #1
	bl	exit
	b	.L5
.L15:
	mov	r1, #1
	ldr	r0, .L20+40
	bl	printe
	b	.L2
.L19:
	mov	r1, #1
	ldr	r0, .L20+44
	bl	printe
	b	.L4
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	SOCK_STREAM
	.word	IPPROTO_TCP
	.word	AF_INET
	.word	.LC5
	.word	SIGALRM
	.word	sig_alarm
	.word	.LC2
	.word	TIMEOUT
	.word	.LC4
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.size	getshell_conn, .-getshell_conn
	.comm	sig_alarm,4,4
	.comm	TIMEOUT,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SIGALRM,4,4
	.comm	IPPROTO_TCP,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
