	.file	"340737.c"
	.intel_syntax noprefix
	.text
	.globl	EXIT_STRING
	.section	.rodata
.LC0:
	.string	"exit"
	.section	.data.rel.local,"aw"
	.align 8
	.type	EXIT_STRING, @object
	.size	EXIT_STRING, 8
EXIT_STRING:
	.quad	.LC0
	.text
	.globl	errquit
	.type	errquit, @function
errquit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	errquit, .-errquit
	.section	.rodata
	.align 8
.LC1:
	.string	"\354\202\254\354\232\251\353\262\225 : %s sever_ip  port name \n"
.LC2:
	.string	"tcp_connect fail"
	.align 8
.LC3:
	.string	"\354\204\234\353\262\204\354\227\220 \354\240\221\354\206\215\353\220\230\354\227\210\354\212\265\353\213\210\353\213\244"
.LC4:
	.string	"select fail"
.LC5:
	.string	"\033[0G"
.LC6:
	.string	"%s"
.LC7:
	.string	"\033[1;33m"
.LC8:
	.string	"%s>"
.LC9:
	.string	"\033[1A"
.LC10:
	.string	"[%02d:%02d:%02d]%s>%s"
	.align 8
.LC11:
	.string	"Error : Write error on socket."
.LC12:
	.string	"\354\225\210\353\205\225\355\236\210 \353\213\244\353\205\200\354\230\244\354\204\270\354\232\224"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2296
	.cfi_offset 3, -24
	mov	DWORD PTR -2292[rbp], edi
	mov	QWORD PTR -2304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -2292[rbp], 4
	je	.L3
	mov	rax, QWORD PTR -2304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -2304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	edx, ax
	mov	rax, QWORD PTR -2304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 2
	call	tcp_connect
	mov	DWORD PTR -2284[rbp], eax
	cmp	DWORD PTR -2284[rbp], -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	errquit
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -2284[rbp]
	add	eax, 1
	mov	DWORD PTR -2280[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2192[rbp]
	mov	rdi, rdx
#APP
# 52 "the_stack_data/340737.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2276[rbp], edx
	mov	DWORD PTR -2272[rbp], eax
.L9:
	mov	rax, QWORD PTR -2192[rbp]
	or	rax, 1
	mov	QWORD PTR -2192[rbp], rax
	mov	eax, DWORD PTR -2284[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2284[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2192[rbp+rax*8], rdx
	lea	rsi, -2192[rbp]
	mov	eax, DWORD PTR -2280[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	errquit
.L5:
	mov	eax, DWORD PTR -2284[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2284[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L6
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2284[rbp]
	mov	ecx, 0
	mov	edx, 1000
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -2268[rbp], eax
	cmp	DWORD PTR -2268[rbp], 0
	jle	.L6
	mov	eax, DWORD PTR -2268[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	edi, 1
	call	write@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2304[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	mov	rax, QWORD PTR -2192[rbp]
	and	eax, 1
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -2064[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -2264[rbp], rax
	lea	rax, -2264[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -2256[rbp], rcx
	mov	QWORD PTR -2248[rbp], rbx
	mov	rcx, QWORD PTR 16[rax]
	mov	rbx, QWORD PTR 24[rax]
	mov	QWORD PTR -2240[rbp], rcx
	mov	QWORD PTR -2232[rbp], rbx
	mov	rcx, QWORD PTR 32[rax]
	mov	rbx, QWORD PTR 40[rax]
	mov	QWORD PTR -2224[rbp], rcx
	mov	QWORD PTR -2216[rbp], rbx
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -2208[rbp], rax
	mov	rax, QWORD PTR -2304[rbp]
	add	rax, 24
	mov	r8, QWORD PTR [rax]
	mov	edi, DWORD PTR -2256[rbp]
	mov	ecx, DWORD PTR -2252[rbp]
	mov	edx, DWORD PTR -2248[rbp]
	lea	rax, -1056[rbp]
	sub	rsp, 8
	lea	rsi, -2064[rbp]
	push	rsi
	mov	r9, r8
	mov	r8d, edi
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	rsp, 16
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rsi, -1056[rbp]
	mov	eax, DWORD PTR -2284[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	jns	.L8
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L8:
	mov	rdx, QWORD PTR EXIT_STRING[rip]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L9
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -2284[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	tcp_connect
	.type	tcp_connect, @function
tcp_connect:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, edx
	mov	WORD PTR -56[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L12
	mov	eax, -1
	jmp	.L15
.L12:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	eax, DWORD PTR -52[rbp]
	mov	WORD PTR -32[rbp], ax
	lea	rax, -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	movzx	eax, WORD PTR -56[rbp]
	mov	edi, eax
	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	.L14
	mov	eax, -1
	jmp	.L15
.L14:
	mov	eax, DWORD PTR -36[rbp]
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	tcp_connect, .-tcp_connect
	.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	"340737.c"
	.text
	.global	EXIT_STRING
	.section	.rodata
	.align	2
.LC0:
	.ascii	"exit\000"
	.data
	.align	2
	.type	EXIT_STRING, %object
	.size	EXIT_STRING, 4
EXIT_STRING:
	.word	.LC0
	.text
	.align	2
	.global	errquit
	.syntax unified
	.arm
	.fpu softvfp
	.type	errquit, %function
errquit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	errquit, .-errquit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\354\202\254\354\232\251\353\262\225 : %s sever_ip "
	.ascii	" port name \012\000"
	.align	2
.LC2:
	.ascii	"tcp_connect fail\000"
	.align	2
.LC3:
	.ascii	"\354\204\234\353\262\204\354\227\220 \354\240\221\354"
	.ascii	"\206\215\353\220\230\354\227\210\354\212\265\353\213"
	.ascii	"\210\353\213\244\000"
	.align	2
.LC4:
	.ascii	"select fail\000"
	.align	2
.LC5:
	.ascii	"\033[0G\000"
	.align	2
.LC6:
	.ascii	"%s\000"
	.align	2
.LC7:
	.ascii	"\033[1;33m\000"
	.align	2
.LC8:
	.ascii	"%s>\000"
	.align	2
.LC9:
	.ascii	"\033[1A\000"
	.align	2
.LC10:
	.ascii	"[%02d:%02d:%02d]%s>%s\000"
	.align	2
.LC11:
	.ascii	"Error : Write error on socket.\000"
	.align	2
.LC12:
	.ascii	"\354\225\210\353\205\225\355\236\210 \353\213\244\353"
	.ascii	"\205\200\354\230\244\354\204\270\354\232\224\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2240
	sub	sp, sp, #12
	str	r0, [fp, #-2240]
	str	r1, [fp, #-2244]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-2240]
	cmp	r3, #4
	beq	.L3
	ldr	r3, [fp, #-2244]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r3, [fp, #-2244]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	mov	r1, r4
	mov	r0, #2
	bl	tcp_connect
	str	r0, [fp, #-2224]
	ldr	r3, [fp, #-2224]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L13+8
	bl	errquit
.L4:
	ldr	r0, .L13+12
	bl	puts
	ldr	r3, [fp, #-2224]
	add	r3, r3, #1
	str	r3, [fp, #-2220]
	sub	r3, fp, #2144
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-2216]
	mov	r3, #0
	str	r3, [fp, #-2228]
	b	.L5
.L6:
	ldr	r3, [fp, #-2216]
	ldr	r2, [fp, #-2228]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2228]
	add	r3, r3, #1
	str	r3, [fp, #-2228]
.L5:
	ldr	r3, [fp, #-2228]
	cmp	r3, #31
	bls	.L6
.L11:
	ldr	r3, [fp, #-2164]
	orr	r3, r3, #1
	str	r3, [fp, #-2164]
	ldr	r3, [fp, #-2224]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-2152]
	ldr	r3, [fp, #-2224]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-2152]
	sub	r1, fp, #2144
	sub	r1, r1, #12
	sub	r1, r1, #8
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-2220]
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L13+16
	bl	errquit
.L7:
	ldr	r3, [fp, #-2224]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-2152]
	ldr	r3, [fp, #-2224]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L8
	sub	r1, fp, #2016
	sub	r1, r1, #12
	sub	r1, r1, #8
	mov	r3, #0
	mov	r2, #1000
	ldr	r0, [fp, #-2224]
	bl	recv
	str	r0, [fp, #-2212]
	ldr	r3, [fp, #-2212]
	cmp	r3, #0
	ble	.L8
	sub	r3, fp, #2016
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-2212]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, #4
	ldr	r1, .L13+20
	mov	r0, #1
	bl	write
	sub	r3, fp, #2016
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, .L13+28
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L13+32
	bl	fwrite
	ldr	r3, .L13+28
	ldr	r0, [r3]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L13+36
	bl	fprintf
.L8:
	ldr	r3, [fp, #-2164]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13+40
	ldr	r2, [r3]
	sub	r3, fp, #2016
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L13+28
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L13+32
	bl	fwrite
	ldr	r3, .L13+28
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L13+44
	bl	fwrite
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-2232]
	sub	r3, fp, #2208
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	localtime
	mov	r3, r0
	sub	ip, fp, #2192
	sub	ip, ip, #12
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	ip, [fp, #-2200]
	ldr	lr, [fp, #-2204]
	ldr	r2, [fp, #-2208]
	ldr	r3, [fp, #-2244]
	add	r3, r3, #12
	ldr	r1, [r3]
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r3, fp, #2016
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L13+48
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1024
	sub	r1, r1, #12
	mov	r3, #0
	ldr	r0, [fp, #-2224]
	bl	send
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L13+52
	bl	puts
.L10:
	ldr	r3, .L13+56
	ldr	r2, [r3]
	sub	r3, fp, #2016
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L13+60
	bl	puts
	ldr	r0, [fp, #-2224]
	bl	close
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC13
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	EXIT_STRING
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tcp_connect
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_connect, %function
tcp_connect:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, r2
	strh	r3, [fp, #-38]	@ movhi
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L16
	mvn	r3, #0
	b	.L19
.L16:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	inet_pton
	ldrh	r3, [fp, #-38]
	mov	r0, r3
	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	.L18
	mvn	r3, #0
	b	.L19
.L18:
	ldr	r3, [fp, #-28]
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC14
	.size	tcp_connect, .-tcp_connect
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
