	.file	"98576246.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: %s path\n"
.LC1:
	.string	"socket fail"
.LC2:
	.string	"conect fail"
.LC3:
	.string	"sendmsg fail"
.LC4:
	.string	"recvmsg fail"
.LC5:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2480
	mov	DWORD PTR -10660[rbp], edi
	mov	QWORD PTR -10672[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -10660[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -10672[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 5
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -10648[rbp], eax
	cmp	DWORD PTR -10648[rbp], 0
	jns	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -10640[rbp], 1
	mov	DWORD PTR -10636[rbp], eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -10592[rbp], rax
	mov	rdx, QWORD PTR -10592[rbp]
	mov	ecx, DWORD PTR -10636[rbp]
	mov	eax, DWORD PTR -10640[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	lea	rax, -10480[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -10480[rbp], 1
	mov	rax, QWORD PTR -10672[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -10480[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	lea	rcx, -10480[rbp]
	mov	eax, DWORD PTR -10648[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -10632[rbp], 1
	mov	DWORD PTR -10628[rbp], eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -10584[rbp], rax
	mov	rdx, QWORD PTR -10584[rbp]
	mov	ecx, DWORD PTR -10628[rbp]
	mov	eax, DWORD PTR -10632[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	mov	QWORD PTR -10608[rbp], 0
	mov	QWORD PTR -10600[rbp], 0
	jmp	.L5
.L8:
	lea	rax, -10544[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -10480[rbp]
	mov	QWORD PTR -10544[rbp], rax
	mov	DWORD PTR -10536[rbp], 110
	mov	rax, QWORD PTR -10608[rbp]
	mov	QWORD PTR -10560[rbp], rax
	mov	rax, QWORD PTR -10608[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -10552[rbp], rax
	lea	rax, -10560[rbp]
	mov	QWORD PTR -10528[rbp], rax
	mov	QWORD PTR -10520[rbp], 1
	lea	rcx, -10544[rbp]
	mov	eax, DWORD PTR -10648[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sendmsg@PLT
	mov	DWORD PTR -10644[rbp], eax
	cmp	DWORD PTR -10644[rbp], 0
	jns	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -10624[rbp], 1
	mov	DWORD PTR -10620[rbp], eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -10576[rbp], rax
	mov	rdx, QWORD PTR -10576[rbp]
	mov	ecx, DWORD PTR -10620[rbp]
	mov	eax, DWORD PTR -10624[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L6:
	lea	rax, -10368[rbp]
	mov	QWORD PTR -10544[rbp], rax
	mov	DWORD PTR -10536[rbp], 110
	lea	rax, -10256[rbp]
	mov	QWORD PTR -10560[rbp], rax
	mov	QWORD PTR -10552[rbp], 10240
	lea	rax, -10560[rbp]
	mov	QWORD PTR -10528[rbp], rax
	mov	QWORD PTR -10520[rbp], 1
	lea	rcx, -10544[rbp]
	mov	eax, DWORD PTR -10648[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	recvmsg@PLT
	mov	DWORD PTR -10644[rbp], eax
	cmp	DWORD PTR -10644[rbp], 0
	jns	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -10616[rbp], 1
	mov	DWORD PTR -10612[rbp], eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -10568[rbp], rax
	mov	rdx, QWORD PTR -10568[rbp]
	mov	ecx, DWORD PTR -10612[rbp]
	mov	eax, DWORD PTR -10616[rbp]
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L7:
	mov	eax, DWORD PTR -10644[rbp]
	cdqe
	mov	BYTE PTR -10256[rbp+rax], 0
	lea	rax, -10256[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rcx, -10600[rbp]
	lea	rax, -10608[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	cmp	rax, -1
	jne	.L8
	mov	eax, DWORD PTR -10648[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"98576246.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: %s path\012\000"
	.align	2
.LC1:
	.ascii	"socket fail\000"
	.align	2
.LC2:
	.ascii	"conect fail\000"
	.align	2
.LC3:
	.ascii	"sendmsg fail\000"
	.align	2
.LC4:
	.ascii	"recvmsg fail\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10576
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10560
	sub	sp, sp, #20
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-2380]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-2384]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2380]
	cmp	r3, #2
	beq	.L2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2384]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #5
	mov	r0, #1
	bl	socket
	str	r0, [r4, #-2368]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2368]
	cmp	r3, #0
	bge	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, #1
	str	r2, [r1, #-2360]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2356]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L11+8
	str	r3, [r2, #-2352]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2352]
	ldr	r1, [r1, #-2356]
	ldr	r0, [r3, #-2360]
	bl	error
	nop
.L3:
	sub	r3, fp, #10432
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #2272
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2384]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #10432
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #10432
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [r0, #-2368]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, #1
	str	r2, [r1, #-2348]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2344]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L11+12
	str	r3, [r2, #-2340]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2340]
	ldr	r1, [r1, #-2344]
	ldr	r0, [r3, #-2348]
	bl	error
	nop
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2376]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2372]
	b	.L5
.L8:
	sub	r3, fp, #10496
	sub	r3, r3, #12
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10432
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [r2, #-2304]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #110
	str	r3, [r2, #-2300]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2376]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2312]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2376]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2308]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [r2, #-2296]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2292]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2368]
	bl	sendmsg
	str	r0, [r4, #-2364]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2364]
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, #1
	str	r2, [r1, #-2336]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2332]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L11+16
	str	r3, [r2, #-2328]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2328]
	ldr	r1, [r1, #-2332]
	ldr	r0, [r3, #-2336]
	bl	error
	nop
.L6:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10304
	sub	r3, r3, #12
	sub	r3, r3, #52
	str	r3, [r2, #-2304]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #110
	str	r3, [r2, #-2300]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-2312]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #10240
	str	r3, [r2, #-2308]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [r2, #-2296]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2292]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #10496
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [r0, #-2368]
	bl	recvmsg
	str	r0, [r4, #-2364]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2364]
	cmp	r3, #0
	bge	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, #1
	str	r2, [r1, #-2324]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-2320]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L11+20
	str	r3, [r2, #-2316]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-2316]
	ldr	r1, [r1, #-2320]
	ldr	r0, [r3, #-2324]
	bl	error
	nop
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-2364]
	add	r3, r2, r3
	sub	r3, r3, #2048
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #10240
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
.L5:
	ldr	r3, .L11+28
	ldr	r2, [r3]
	sub	r1, fp, #10560
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #10560
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-2368]
	bl	close
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
