	.file	"821633.c"
	.intel_syntax noprefix
	.text
	.globl	bufsize
	.data
	.align 4
	.type	bufsize, @object
	.size	bufsize, 4
bufsize:
	.long	30
	.section	.rodata
.LC0:
	.string	"CLIENT start"
	.align 8
.LC1:
	.string	"CLIENT: Syntax %s <nodename> <socket_number> \n"
	.align 8
.LC2:
	.string	" where nodename is tcp/ip name of the machine of the server"
	.align 8
.LC3:
	.string	" and 1024 <= socketnumber >= 4000"
.LC4:
	.string	"socket number set to %d\n"
	.align 8
.LC5:
	.string	"server machine name set to %s\n"
	.align 8
.LC6:
	.string	"bad character read @ loop=%d, byte=%d, should=%c, is=%c\n"
.LC7:
	.string	"CLIENT end"
	.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, 1296
	mov	DWORD PTR -1284[rbp], edi
	mov	QWORD PTR -1296[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -1284[rbp], 1
	jg	.L2
	mov	rax, QWORD PTR -1296[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -1296[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -1264[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1296[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR socknum.1[rip], eax
	mov	eax, DWORD PTR socknum.1[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1264[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, DWORD PTR socknum.1[rip]
	lea	rax, -1264[rbp]
	lea	rdx, ipcsocket.0[rip]
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	connect_to_socket@PLT
	mov	DWORD PTR -1268[rbp], 0
	jmp	.L3
.L8:
	mov	edx, DWORD PTR ipcsocket.0[rip]
	lea	rax, -1008[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	ipcrecv@PLT
	test	eax, eax
	je	.L4
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR bufsize[rip]
	add	eax, 1
	mov	DWORD PTR bufsize[rip], eax
	mov	DWORD PTR -1272[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -1272[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	movsx	ecx, al
	mov	eax, DWORD PTR -1268[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1401515643
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	esi, eax
	sar	esi, 31
	sub	edx, esi
	imul	esi, edx, 95
	sub	eax, esi
	mov	edx, eax
	lea	eax, 33[rdx]
	cmp	ecx, eax
	je	.L6
	mov	eax, DWORD PTR -1272[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	movsx	esi, al
	mov	eax, DWORD PTR -1268[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1401515643
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 95
	sub	eax, ecx
	mov	edx, eax
	lea	ecx, 33[rdx]
	mov	edx, DWORD PTR -1272[rbp]
	mov	eax, DWORD PTR -1268[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	add	DWORD PTR -1272[rbp], 1
.L5:
	mov	eax, DWORD PTR bufsize[rip]
	cmp	DWORD PTR -1272[rbp], eax
	jl	.L7
	add	DWORD PTR -1268[rbp], 1
.L3:
	cmp	DWORD PTR -1268[rbp], 968
	jle	.L8
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.data
	.align 4
	.type	socknum.1, @object
	.size	socknum.1, 4
socknum.1:
	.long	1024
	.local	ipcsocket.0
	.comm	ipcsocket.0,4,4
	.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	"821633.c"
	.text
	.global	bufsize
	.data
	.align	2
	.type	bufsize, %object
	.size	bufsize, 4
bufsize:
	.word	30
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CLIENT start\000"
	.align	2
.LC1:
	.ascii	"CLIENT: Syntax %s <nodename> <socket_number> \012\000"
	.align	2
.LC2:
	.ascii	" where nodename is tcp/ip name of the machine of th"
	.ascii	"e server\000"
	.align	2
.LC3:
	.ascii	" and 1024 <= socketnumber >= 4000\000"
	.align	2
.LC4:
	.ascii	"socket number set to %d\012\000"
	.align	2
.LC5:
	.ascii	"server machine name set to %s\012\000"
	.align	2
.LC6:
	.ascii	"bad character read @ loop=%d, byte=%d, should=%c, i"
	.ascii	"s=%c\012\000"
	.align	2
.LC7:
	.ascii	"CLIENT end\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1280
	sub	sp, sp, #8
	str	r0, [fp, #-1280]
	str	r1, [fp, #-1284]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	puts
	ldr	r3, [fp, #-1280]
	cmp	r3, #1
	bgt	.L2
	ldr	r3, [fp, #-1284]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	ldr	r0, .L11+12
	bl	puts
	ldr	r0, .L11+16
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-1284]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-1284]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L11+20
	str	r3, [r2]
	ldr	r3, .L11+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, .L11+20
	ldr	r1, [r3]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r2, .L11+32
	mov	r0, r3
	bl	connect_to_socket
	mov	r3, #0
	str	r3, [fp, #-1268]
	b	.L3
.L8:
	ldr	r3, .L11+32
	ldr	r2, [r3]
	sub	r3, fp, #1008
	mov	r1, r2
	mov	r0, r3
	bl	ipcrecv
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, .L11+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11+36
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-1272]
	b	.L5
.L7:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1272]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r1, [fp, #-1268]
	ldr	r3, .L11+40
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #33
	cmp	r0, r3
	beq	.L6
	ldr	r1, [fp, #-1268]
	ldr	r3, .L11+40
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #6
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	sub	r2, r1, r3
	add	r1, r2, #33
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1272]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, [fp, #-1272]
	ldr	r1, [fp, #-1268]
	ldr	r0, .L11+44
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-1272]
	add	r3, r3, #1
	str	r3, [fp, #-1272]
.L5:
	ldr	r3, .L11+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-1272]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-1268]
	add	r3, r3, #1
	str	r3, [fp, #-1268]
.L3:
	ldr	r3, [fp, #-1268]
	cmp	r3, #968
	ble	.L8
	ldr	r0, .L11+48
	bl	puts
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	socknum.5123
	.word	.LC4
	.word	.LC5
	.word	ipcsocket.5122
	.word	bufsize
	.word	-1401515643
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.data
	.align	2
	.type	socknum.5123, %object
	.size	socknum.5123, 4
socknum.5123:
	.word	1024
	.local	ipcsocket.5122
	.comm	ipcsocket.5122,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
