	.file	"177769.c"
	.intel_syntax noprefix
	.text
	.globl	exitClient
	.type	exitClient, @function
exitClient:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, esi
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR -20[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	not	rax
	and	rdi, rax
	mov	rcx, rdi
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	DWORD PTR -20[rbp], eax
	je	.L8
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	jmp	.L6
.L8:
	nop
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L7
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	exitClient, .-exitClient
	.section	.rodata
.LC0:
	.string	"-p"
	.align 8
.LC1:
	.string	"Invalid parameters.\nUsage: chat [-p PORT] HOSTNAME"
.LC2:
	.string	"%i"
	.align 8
.LC3:
	.string	"\n*** Client program starting (enter \"quit\" to stop): "
.LC4:
	.string	"connecting"
.LC5:
	.string	"%s"
.LC6:
	.string	"quit\n"
.LC7:
	.string	"XClient is shutting down.\n"
.LC8:
	.string	"M%s"
	.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, 624
	mov	DWORD PTR -612[rbp], edi
	mov	QWORD PTR -624[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -596[rbp], 0
	mov	DWORD PTR -592[rbp], 0
	mov	DWORD PTR -588[rbp], 16
	cmp	DWORD PTR -612[rbp], 2
	je	.L10
	cmp	DWORD PTR -612[rbp], 4
	jne	.L11
.L10:
	mov	rax, QWORD PTR -624[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	cmp	DWORD PTR -612[rbp], 2
	jne	.L13
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -624[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -604[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -624[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L14
.L12:
	mov	DWORD PTR -604[rbp], 7400
	mov	rax, QWORD PTR -624[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L14:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -584[rbp], eax
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR -568[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -556[rbp], eax
	mov	WORD PTR -560[rbp], 2
	mov	eax, DWORD PTR -604[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	lea	rcx, -560[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L15
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -416[rbp]
	mov	rdi, rdx
#APP
# 81 "the_stack_data/177769.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -580[rbp], edx
	mov	DWORD PTR -576[rbp], eax
	mov	eax, DWORD PTR -584[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -416[rbp+rax*8]
	mov	eax, DWORD PTR -584[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -416[rbp+rax*8], rdx
	mov	rax, QWORD PTR -416[rbp]
	or	rax, 1
	mov	QWORD PTR -416[rbp], rax
.L21:
	mov	rax, QWORD PTR -416[rbp]
	mov	rdx, QWORD PTR -408[rbp]
	mov	QWORD PTR -544[rbp], rax
	mov	QWORD PTR -536[rbp], rdx
	mov	rax, QWORD PTR -400[rbp]
	mov	rdx, QWORD PTR -392[rbp]
	mov	QWORD PTR -528[rbp], rax
	mov	QWORD PTR -520[rbp], rdx
	mov	rax, QWORD PTR -384[rbp]
	mov	rdx, QWORD PTR -376[rbp]
	mov	QWORD PTR -512[rbp], rax
	mov	QWORD PTR -504[rbp], rdx
	mov	rax, QWORD PTR -368[rbp]
	mov	rdx, QWORD PTR -360[rbp]
	mov	QWORD PTR -496[rbp], rax
	mov	QWORD PTR -488[rbp], rdx
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR -344[rbp]
	mov	QWORD PTR -480[rbp], rax
	mov	QWORD PTR -472[rbp], rdx
	mov	rax, QWORD PTR -336[rbp]
	mov	rdx, QWORD PTR -328[rbp]
	mov	QWORD PTR -464[rbp], rax
	mov	QWORD PTR -456[rbp], rdx
	mov	rax, QWORD PTR -320[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	QWORD PTR -448[rbp], rax
	mov	QWORD PTR -440[rbp], rdx
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR -432[rbp], rax
	mov	QWORD PTR -424[rbp], rdx
	lea	rax, -544[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1024
	call	select@PLT
	mov	DWORD PTR -600[rbp], 0
	jmp	.L16
.L20:
	mov	eax, DWORD PTR -600[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -544[rbp+rax*8]
	mov	eax, DWORD PTR -600[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR -600[rbp]
	cmp	eax, DWORD PTR -584[rbp]
	jne	.L18
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	edx, 80
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -572[rbp], eax
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	mov	BYTE PTR -208[rbp+rax], 0
	lea	rax, -208[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -208[rbp]
	cmp	al, 88
	jne	.L17
	mov	eax, DWORD PTR -584[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L18:
	cmp	DWORD PTR -600[rbp], 0
	jne	.L17
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -112[rbp]
	mov	esi, 81
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -112[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	lea	rax, -208[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -584[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
.L19:
	lea	rdx, -112[rbp]
	lea	rax, -208[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -584[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L17:
	add	DWORD PTR -600[rbp], 1
.L16:
	cmp	DWORD PTR -600[rbp], 1023
	jle	.L20
	jmp	.L21
.L11:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"177769.c"
	.text
	.align	2
	.global	exitClient
	.syntax unified
	.arm
	.fpu softvfp
	.type	exitClient, %function
exitClient:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r3, [fp, #-16]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r1, r1, r3
	ldr	r3, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L8
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	b	.L6
.L8:
	nop
	b	.L6
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exitClient, .-exitClient
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-p\000"
	.align	2
.LC1:
	.ascii	"Invalid parameters.\012Usage: chat [-p PORT] HOSTNA"
	.ascii	"ME\000"
	.align	2
.LC2:
	.ascii	"%i\000"
	.align	2
.LC3:
	.ascii	"\012*** Client program starting (enter \"quit\" to "
	.ascii	"stop): \000"
	.align	2
.LC4:
	.ascii	"connecting\000"
	.align	2
.LC5:
	.ascii	"%s\000"
	.align	2
.LC6:
	.ascii	"quit\012\000"
	.align	2
.LC7:
	.ascii	"XClient is shutting down.\012\000"
	.align	2
.LC8:
	.ascii	"M%s\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 584
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #592
	str	r0, [fp, #-584]
	str	r1, [fp, #-588]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-568]
	mov	r3, #0
	str	r3, [fp, #-564]
	mov	r3, #16
	str	r3, [fp, #-560]
	ldr	r3, [fp, #-584]
	cmp	r3, #2
	beq	.L10
	ldr	r3, [fp, #-584]
	cmp	r3, #4
	bne	.L11
.L10:
	ldr	r3, [fp, #-588]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-584]
	cmp	r3, #2
	bne	.L13
	ldr	r0, .L26+8
	bl	puts
	mov	r0, #0
	bl	exit
.L13:
	ldr	r3, [fp, #-588]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #580
	ldr	r1, .L26+12
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-588]
	add	r3, r3, #12
	ldr	r2, [r3]
	sub	r3, fp, #268
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L14
.L12:
	ldr	r3, .L26+16
	str	r3, [fp, #-580]
	ldr	r3, [fp, #-588]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #268
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L14:
	ldr	r0, .L26+20
	bl	puts
	ldr	r3, .L26+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-556]
	sub	r3, fp, #268
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-552]
	ldr	r3, [fp, #-552]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-536]
	sub	r3, fp, #4
	sub	r3, r3, #536
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-580]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #536
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #540
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-556]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L26+28
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	ldr	r3, .L26+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #396
	str	r3, [fp, #-548]
	mov	r3, #0
	str	r3, [fp, #-572]
	b	.L16
.L17:
	ldr	r3, [fp, #-548]
	ldr	r2, [fp, #-572]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-572]
	add	r3, r3, #1
	str	r3, [fp, #-572]
.L16:
	ldr	r3, [fp, #-572]
	cmp	r3, #31
	bls	.L17
	ldr	r3, [fp, #-556]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-392]
	ldr	r3, [fp, #-556]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-392]
	ldr	r3, [fp, #-396]
	orr	r3, r3, #1
	str	r3, [fp, #-396]
.L23:
	sub	r3, fp, #524
	sub	r1, fp, #396
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r1, fp, #524
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1024
	bl	select
	mov	r3, #0
	str	r3, [fp, #-576]
	b	.L18
.L22:
	ldr	r3, [fp, #-576]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-520]
	ldr	r3, [fp, #-576]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L19
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-556]
	cmp	r2, r3
	bne	.L20
	sub	r3, fp, #188
	mov	r2, #80
	mov	r1, r3
	ldr	r0, [fp, #-556]
	bl	read
	str	r0, [fp, #-544]
	sub	r2, fp, #188
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #188
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L26+32
	bl	printf
	ldrb	r3, [fp, #-188]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L19
	ldr	r0, [fp, #-556]
	bl	close
	mov	r0, #0
	bl	exit
.L20:
	ldr	r3, [fp, #-576]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L26+36
	ldr	r2, [r3]
	sub	r3, fp, #104
	mov	r1, #81
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #104
	ldr	r1, .L26+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #188
	ldr	r1, .L26+44
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #188
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-556]
	bl	write
	ldr	r0, [fp, #-556]
	bl	close
	mov	r0, #0
	bl	exit
.L21:
	sub	r2, fp, #104
	sub	r3, fp, #188
	ldr	r1, .L26+48
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #188
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-556]
	bl	write
.L19:
	ldr	r3, [fp, #-576]
	add	r3, r3, #1
	str	r3, [fp, #-576]
.L18:
	ldr	r3, [fp, #-576]
	cmp	r3, #1024
	blt	.L22
	b	.L23
.L11:
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	7400
	.word	.LC3
	.word	stdout
	.word	.LC4
	.word	.LC5
	.word	stdin
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
