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