	.file	"232954930.c"
	.intel_syntax noprefix
	.text
	.globl	sendPid
	.bss
	.align 4
	.type	sendPid, @object
	.size	sendPid, 4
sendPid:
	.zero	4
	.globl	recvPid
	.align 4
	.type	recvPid, @object
	.size	recvPid, 4
recvPid:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	sockfd
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.zero	4
	.globl	name
	.align 32
	.type	name, @object
	.size	name, 32
name:
	.zero	32
	.section	.rodata
.LC0:
	.string	"> "
.LC1:
	.string	"%s"
	.text
	.globl	str_overwrite_stdout
	.type	str_overwrite_stdout, @function
str_overwrite_stdout:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	str_overwrite_stdout, .-str_overwrite_stdout
	.globl	str_trim_lf
	.type	str_trim_lf, @function
str_trim_lf:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L5
.L4:
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	nop
.L5:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	str_trim_lf, .-str_trim_lf
	.globl	catch_ctrl_c_and_exit
	.type	catch_ctrl_c_and_exit, @function
catch_ctrl_c_and_exit:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR flag[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	catch_ctrl_c_and_exit, .-catch_ctrl_c_and_exit
	.section	.rodata
.LC2:
	.string	"exit"
.LC3:
	.string	"%s\n"
	.text
	.globl	send_msg_handler
	.type	send_msg_handler, @function
send_msg_handler:
.LFB9:
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4144[rbp], 0
	mov	QWORD PTR -4136[rbp], 0
	lea	rdx, -4128[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -2096[rbp], 0
	mov	QWORD PTR -2088[rbp], 0
	lea	rdx, -2080[rbp]
	mov	eax, 0
	mov	ecx, 258
	mov	rdi, rdx
	rep stosq
.L11:
	mov	eax, 0
	call	str_overwrite_stdout
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -4144[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -4144[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	str_trim_lf
	lea	rax, -4144[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rdx, -4144[rbp]
	lea	rax, -2096[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -2096[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR sockfd[rip]
	lea	rsi, -2096[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	lea	rax, -4144[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 256
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -2096[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 260
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	jmp	.L11
.L14:
	nop
	mov	edi, 2
	call	catch_ctrl_c_and_exit
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_msg_handler, .-send_msg_handler
	.globl	recv_msg_handler
	.type	recv_msg_handler, @function
recv_msg_handler:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2080
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
.L19:
	mov	eax, DWORD PTR sockfd[rip]
	lea	rsi, -2064[rbp]
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recv@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jle	.L16
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	str_overwrite_stdout
	jmp	.L17
.L16:
	cmp	DWORD PTR -2068[rbp], 0
	je	.L22
.L17:
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L19
.L22:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	recv_msg_handler, .-recv_msg_handler
	.section	.rodata
.LC4:
	.string	"127.0.0.1"
.LC5:
	.string	"Please enter your name: "
	.align 8
.LC6:
	.string	"Name must be less than 30 and more than 2 characters."
.LC7:
	.string	"ERROR: connect"
	.align 8
.LC8:
	.string	"=== WELCOME TO THE CHATROOM ==="
.LC9:
	.string	"\nBye"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rsi, catch_ctrl_c_and_exit[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 32
	lea	rdi, name[rip]
	call	fgets@PLT
	lea	rdi, name[rip]
	call	strlen@PLT
	mov	esi, eax
	lea	rdi, name[rip]
	call	str_trim_lf
	lea	rdi, name[rip]
	call	strlen@PLT
	cmp	rax, 32
	ja	.L24
	lea	rdi, name[rip]
	call	strlen@PLT
	cmp	rax, 1
	ja	.L25
.L24:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L25:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sockfd[rip], eax
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 9051
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	eax, DWORD PTR sockfd[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L27
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L33
.L27:
	mov	eax, DWORD PTR sockfd[rip]
	mov	ecx, 0
	mov	edx, 32
	lea	rsi, name[rip]
	mov	edi, eax
	call	send@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	call	fork@PLT
	mov	DWORD PTR sendPid[rip], eax
	mov	eax, DWORD PTR sendPid[rip]
	test	eax, eax
	je	.L28
	mov	eax, 0
	call	send_msg_handler
.L28:
	call	fork@PLT
	mov	DWORD PTR recvPid[rip], eax
	mov	eax, DWORD PTR recvPid[rip]
	test	eax, eax
	je	.L32
	mov	eax, 0
	call	recv_msg_handler
.L32:
	mov	eax, DWORD PTR flag[rip]
	test	eax, eax
	je	.L32
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	mov	eax, DWORD PTR sockfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"232954930.c"
	.text
	.comm	sendPid,4,4
	.comm	recvPid,4,4
	.global	flag
	.bss
	.align	2
	.type	flag, %object
	.size	flag, 4
flag:
	.space	4
	.global	sockfd
	.align	2
	.type	sockfd, %object
	.size	sockfd, 4
sockfd:
	.space	4
	.comm	name,32,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"> \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.text
	.align	2
	.global	str_overwrite_stdout
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_overwrite_stdout, %function
str_overwrite_stdout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L2
	ldr	r0, .L2+4
	bl	printf
	ldr	r3, .L2+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	stdout
	.size	str_overwrite_stdout, .-str_overwrite_stdout
	.align	2
	.global	str_trim_lf
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_trim_lf, %function
str_trim_lf:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L5
.L8:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L6:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	nop
.L7:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	str_trim_lf, .-str_trim_lf
	.align	2
	.global	catch_ctrl_c_and_exit
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch_ctrl_c_and_exit, %function
catch_ctrl_c_and_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L10
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	flag
	.size	catch_ctrl_c_and_exit, .-catch_ctrl_c_and_exit
	.section	.rodata
	.align	2
.LC2:
	.ascii	"exit\000"
	.align	2
.LC3:
	.ascii	"%s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_msg_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_msg_handler, %function
send_msg_handler:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-36]
	sub	r3, r3, #32
	ldr	r2, .L19+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2096]
	sub	r3, fp, #2080
	sub	r3, r3, #12
	ldr	r2, .L19+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L15:
	bl	str_overwrite_stdout
	ldr	r3, .L19+12
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, #2048
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r1, #2048
	mov	r0, r3
	bl	str_trim_lf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	ldr	r1, .L19+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #36
	sub	r3, fp, #2080
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+20
	mov	r0, r3
	bl	sprintf
	ldr	r3, .L19+24
	ldr	r4, [r3]
	sub	r3, fp, #2080
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #0
	mov	r0, r4
	bl	send
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r0, r3
	mov	r3, #2048
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #2080
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	mov	r3, #2080
	mov	r2, r3
	mov	r1, #0
	bl	memset
	b	.L15
.L18:
	nop
	mov	r0, #2
	bl	catch_ctrl_c_and_exit
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	2044
	.word	2076
	.word	stdin
	.word	.LC2
	.word	.LC3
	.word	sockfd
	.size	send_msg_handler, .-send_msg_handler
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	recv_msg_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	recv_msg_handler, %function
recv_msg_handler:
	@ args = 0, pretend = 0, frame = 2056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2048
	sub	sp, sp, #8
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L29+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L25:
	ldr	r3, .L29+8
	ldr	r0, [r3]
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	mov	r2, #2048
	bl	recv
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	ble	.L22
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	bl	str_overwrite_stdout
	b	.L23
.L22:
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	beq	.L28
.L23:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L25
.L28:
	nop
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	2044
	.word	sockfd
	.word	.LC1
	.size	recv_msg_handler, .-recv_msg_handler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"127.0.0.1\000"
	.align	2
.LC7:
	.ascii	"Please enter your name: \000"
	.align	2
.LC8:
	.ascii	"Name must be less than 30 and more than 2 character"
	.ascii	"s.\000"
	.align	2
.LC9:
	.ascii	"ERROR: connect\000"
	.align	2
.LC10:
	.ascii	"=== WELCOME TO THE CHATROOM ===\000"
	.align	2
.LC11:
	.ascii	"\012Bye\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L43+4
	str	r3, [fp, #-32]
	ldr	r1, .L43+8
	mov	r0, #2
	bl	signal
	ldr	r0, .L43+12
	bl	printf
	ldr	r3, .L43+16
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #32
	ldr	r0, .L43+20
	bl	fgets
	ldr	r0, .L43+20
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L43+20
	bl	str_trim_lf
	ldr	r0, .L43+20
	bl	strlen
	mov	r3, r0
	cmp	r3, #32
	bhi	.L32
	ldr	r0, .L43+20
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bhi	.L33
.L32:
	ldr	r0, .L43+24
	bl	puts
	mov	r3, #1
	b	.L41
.L33:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L43+28
	str	r3, [r2]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r0, [fp, #-32]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L43+32
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	ldr	r3, .L43+28
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	connect
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L43+36
	bl	puts
	mov	r3, #1
	b	.L41
.L35:
	ldr	r3, .L43+28
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #32
	ldr	r1, .L43+20
	bl	send
	ldr	r0, .L43+40
	bl	puts
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L43+44
	str	r2, [r3]
	ldr	r3, .L43+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	bl	send_msg_handler
.L36:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L43+48
	str	r2, [r3]
	ldr	r3, .L43+48
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	bl	recv_msg_handler
.L40:
	ldr	r3, .L43+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r0, .L43+56
	bl	puts
	nop
	ldr	r3, .L43+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC12
	.word	.LC6
	.word	catch_ctrl_c_and_exit
	.word	.LC7
	.word	stdin
	.word	name
	.word	.LC8
	.word	sockfd
	.word	9051
	.word	.LC9
	.word	.LC10
	.word	sendPid
	.word	recvPid
	.word	flag
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
