	.file	"971701.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 256
buffer:
	.zero	256
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter number to send to server :"
.LC1:
	.string	"%d"
.LC2:
	.string	"status=%d\n"
.LC3:
	.string	"Data could not send\n"
.LC4:
	.string	"write"
	.align 8
.LC5:
	.string	"$ of bytes sent = %d, the data sent = %d\n"
.LC6:
	.string	"read"
.LC7:
	.string	"Received...%s\n"
	.text
	.globl	processOneByOne
	.type	processOneByOne, @function
processOneByOne:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L4:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -12[rbp], -1
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L3
.L2:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L4
.L3:
	mov	edx, 256
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 256
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L5
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rsi, buffer[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	processOneByOne, .-processOneByOne
	.section	.rodata
.LC8:
	.string	"socket"
.LC9:
	.string	"Data socket created"
.LC10:
	.string	"connect"
.LC11:
	.string	"The server is down\n"
.LC12:
	.string	"Connected to server"
.LC13:
	.string	"Data socket closed.."
	.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
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -136[rbp], eax
	cmp	DWORD PTR -136[rbp], -1
	jne	.L8
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -128[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -128[rbp], 1
	lea	rax, -128[rbp]
	add	rax, 2
	movabs	rcx, 7887320477321753647
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 31085
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	jne	.L9
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	processOneByOne
	mov	eax, DWORD PTR -136[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.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	"971701.c"
	.text
	.comm	buffer,256,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter number to send to server :\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"status=%d\012\000"
	.align	2
.LC3:
	.ascii	"Data could not send\012\000"
	.align	2
.LC4:
	.ascii	"write\000"
	.align	2
.LC5:
	.ascii	"$ of bytes sent = %d, the data sent = %d\012\000"
	.align	2
.LC6:
	.ascii	"read\000"
	.align	2
.LC7:
	.ascii	"Received...%s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	processOneByOne
	.syntax unified
	.arm
	.fpu softvfp
	.type	processOneByOne, %function
processOneByOne:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L4:
	ldr	r0, .L7+4
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	sub	r3, fp, #16
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L7+12
	bl	printf
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L7+16
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L7+20
	bl	fwrite
	ldr	r0, .L7+24
	bl	perror
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L7+28
	bl	printf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
.L3:
	mov	r2, #256
	mov	r1, #0
	ldr	r0, .L7+32
	bl	memset
	mov	r2, #256
	ldr	r1, .L7+32
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+36
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r1, .L7+32
	ldr	r0, .L7+40
	bl	printf
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	buffer
	.word	.LC6
	.word	.LC7
	.size	processOneByOne, .-processOneByOne
	.section	.rodata
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"Data socket created\000"
	.align	2
.LC11:
	.ascii	"/tmp/dummy\000"
	.align	2
.LC12:
	.ascii	"connect\000"
	.align	2
.LC13:
	.ascii	"The server is down\012\000"
	.align	2
.LC14:
	.ascii	"Connected to server\000"
	.align	2
.LC15:
	.ascii	"Data socket closed..\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L13+4
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r0, .L13+8
	bl	puts
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-120]	@ movhi
	sub	r3, fp, #120
	add	r3, r3, #2
	ldr	r2, .L13+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #10
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #120
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	connect
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L13+16
	bl	perror
	ldr	r3, .L13+20
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L13+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, .L13+28
	bl	puts
	ldr	r0, [fp, #-128]
	bl	processOneByOne
	ldr	r0, [fp, #-128]
	bl	close
	ldr	r0, .L13+32
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC16
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
