	.file	"113844.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error creating socket\n"
	.align 8
.LC1:
	.string	"Error establishing connection \n"
.LC2:
	.string	"Error writing on connection \n"
	.align 8
.LC3:
	.string	"Error reading from connection \n"
	.align 8
.LC4:
	.string	"Error writing on standard output \n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 2
	je	.L2
	lea	rax, -272[rbp]
	movabs	rsi, 8079521938703217493
	movabs	rdi, 6012980011892822898
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	movabs	rsi, 8030798244821558127
	movabs	rdi, 7526747875421023075
	mov	QWORD PTR 16[rax], rsi
	mov	QWORD PTR 24[rax], rdi
	mov	WORD PTR 32[rax], 10
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	createSocket@PLT
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jns	.L3
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -284[rbp]
	mov	edi, eax
	mov	eax, 0
	call	serverConnection@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rax, -272[rbp]
	movabs	rcx, 2851512211236168
	mov	QWORD PTR [rax], rcx
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L5
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -280[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L6
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edx, DWORD PTR -276[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 0
	jns	.L7
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -280[rbp]
	mov	edi, eax
	mov	eax, 0
	call	closeConnection@PLT
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -284[rbp]
	mov	rsi, rdx
	mov	edi, eax
	mov	eax, 0
	call	deleteSocket@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"113844.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: prServerSocket socketPath\012\000"
	.align	2
.LC1:
	.ascii	"Error creating socket\012\000"
	.align	2
.LC2:
	.ascii	"Error establishing connection \012\000"
	.align	2
.LC3:
	.ascii	"Hello!\012\000"
	.align	2
.LC4:
	.ascii	"Error writing on connection \012\000"
	.align	2
.LC5:
	.ascii	"Error reading from connection \012\000"
	.align	2
.LC6:
	.ascii	"Error writing on standard output \012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	cmp	r3, #2
	beq	.L2
	sub	r3, fp, #264
	ldr	r2, .L10+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #2
	bl	write
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	createSocket
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L10+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, [fp, #-276]
	bl	serverConnection
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L10+12
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	sub	r3, fp, #264
	ldr	r2, .L10+16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-272]
	bl	write
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-272]
	bl	read
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L10+24
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	mov	r1, r3
	mov	r0, #1
	bl	write
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L10+28
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, [fp, #-272]
	bl	closeConnection
	ldr	r3, [fp, #-284]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	deleteSocket
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
