	.file	"1161893.c"
	.intel_syntax noprefix
	.text
	.globl	nhgets
	.type	nhgets, @function
nhgets:
.LFB6:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	nhgets, .-nhgets
	.section	.rodata
.LC0:
	.string	"0123456789"
.LC1:
	.string	"%c%c\n"
	.text
	.globl	test
	.type	test, @function
test:
.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, 32
	lea	rax, .LC0[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -8[rbp], 10
	mov	DWORD PTR -28[rbp], 5
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -24[rbp], 2
.L4:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -28[rbp], edx
	test	eax, eax
	jne	.L5
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	test, .-test
	.section	.rodata
.LC2:
	.string	"test"
	.align 8
.LC3:
	.string	"usage %s hostname port [text]\n"
.LC4:
	.string	"ERROR socket: opening socket"
.LC5:
	.string	"ERROR hostname: no such host"
.LC6:
	.string	"ERROR socket: connecting"
.LC7:
	.string	"=>[ "
	.align 8
.LC8:
	.string	"ERROR read: reading from socket"
.LC9:
	.string	"%s ]\n"
	.align 8
.LC10:
	.string	"ERROR write: writing plaintext to socket"
.LC11:
	.string	"<=[ %s ]\n"
.LC12:
	.string	"=>["
	.align 8
.LC13:
	.string	"ERROR socket: reading from socket"
.LC14:
	.string	"c: "
.LC15:
	.string	"%hhx"
.LC16:
	.string	" ]"
.LC17:
	.string	"<=[ "
.LC18:
	.string	"(%ld)"
	.align 8
.LC19:
	.string	"ERROR socket: writing cipher to socket"
.LC20:
	.string	"d: "
.LC21:
	.string	"cleaning up"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -340[rbp], 2
	jne	.L7
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, 0
	call	test
	jmp	.L8
.L7:
	cmp	DWORD PTR -340[rbp], 2
	jg	.L8
	mov	rax, QWORD PTR -352[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -324[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -312[rbp], rax
	cmp	QWORD PTR -312[rbp], 0
	jne	.L10
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rax, -288[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -288[rbp], 2
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -288[rbp]
	add	rcx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -324[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -286[rbp], ax
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L12
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	BYTE PTR -272[rbp], 4
	mov	BYTE PTR -271[rbp], 0
	mov	rax, QWORD PTR -296[rbp]
	mov	BYTE PTR -270[rbp], al
	mov	rax, QWORD PTR -304[rbp]
	lea	rdx, -272[rbp]
	add	rdx, 3
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, 4[rax]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L13
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -304[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L14
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 5
	jne	.L15
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	DWORD PTR -332[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -332[rbp]
	add	eax, 3
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -332[rbp], 1
.L16:
	cmp	DWORD PTR -332[rbp], 15
	jle	.L17
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -272[rbp], 6
	lea	rax, -272[rbp]
	add	rax, 1
	mov	rdi, rax
	call	nhgets
	movzx	eax, ax
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -296[rbp]
	lea	rdx, 3[rax]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L18
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	DWORD PTR -328[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -328[rbp]
	add	eax, 3
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -328[rbp], 1
.L19:
	cmp	DWORD PTR -328[rbp], 15
	jle	.L20
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	jne	.L21
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	movzx	eax, BYTE PTR -272[rbp]
	cmp	al, 7
	jne	.L22
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
.L22:
	lea	rax, -272[rbp]
	add	rax, 3
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"1161893.c"
	.text
	.align	2
	.global	nhgets
	.syntax unified
	.arm
	.fpu softvfp
	.type	nhgets, %function
nhgets:
	@ 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, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	nhgets, .-nhgets
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0123456789\000"
	.align	2
.LC1:
	.ascii	"%c%c\012\000"
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	mov	r3, #10
	str	r3, [fp, #-8]
	mov	r3, #5
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L6+4
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-16]
	sub	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.size	test, .-test
	.section	.rodata
	.align	2
.LC2:
	.ascii	"test\000"
	.align	2
.LC3:
	.ascii	"usage %s hostname port [text]\012\000"
	.align	2
.LC4:
	.ascii	"ERROR socket: opening socket\000"
	.align	2
.LC5:
	.ascii	"ERROR hostname: no such host\000"
	.align	2
.LC6:
	.ascii	"ERROR socket: connecting\000"
	.align	2
.LC7:
	.ascii	"=>[ \000"
	.align	2
.LC8:
	.ascii	"ERROR read: reading from socket\000"
	.align	2
.LC9:
	.ascii	"%s ]\012\000"
	.align	2
.LC10:
	.ascii	"ERROR write: writing plaintext to socket\000"
	.align	2
.LC11:
	.ascii	"<=[ %s ]\012\000"
	.align	2
.LC12:
	.ascii	"=>[\000"
	.align	2
.LC13:
	.ascii	"ERROR socket: reading from socket\000"
	.align	2
.LC14:
	.ascii	"c: \000"
	.align	2
.LC15:
	.ascii	"%hhx\000"
	.align	2
.LC16:
	.ascii	" ]\000"
	.align	2
.LC17:
	.ascii	"<=[ \000"
	.align	2
.LC18:
	.ascii	"(%ld)\000"
	.align	2
.LC19:
	.ascii	"ERROR socket: writing cipher to socket\000"
	.align	2
.LC20:
	.ascii	"d: \000"
	.align	2
.LC21:
	.ascii	"cleaning up\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-320]
	str	r1, [fp, #-324]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-320]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-324]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	bl	test
	b	.L10
.L9:
	ldr	r3, [fp, #-320]
	cmp	r3, #2
	bgt	.L10
	ldr	r3, .L27+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-324]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L27+12
	bl	fprintf
	mov	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-324]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-304]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L27+16
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-324]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L27+20
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #276
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-296]
	ldr	r3, [r3, #16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-296]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #280
	add	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-304]
	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, #276
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #280
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	connect
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L27+24
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r0, .L27+28
	bl	printf
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	read
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L27+32
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L27+36
	bl	printf
	ldr	r3, [fp, #-324]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-288]
	ldr	r0, [fp, #-288]
	bl	strlen
	str	r0, [fp, #-284]
	mov	r3, #4
	strb	r3, [fp, #-264]
	mov	r3, #0
	strb	r3, [fp, #-263]
	ldr	r3, [fp, #-284]
	and	r3, r3, #255
	strb	r3, [fp, #-262]
	sub	r3, fp, #264
	add	r3, r3, #3
	ldr	r1, [fp, #-288]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-284]
	add	r2, r3, #4
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	write
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L27+40
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	ldr	r1, [fp, #-288]
	ldr	r0, .L27+44
	bl	printf
	ldr	r0, .L27+48
	bl	printf
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	read
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L27+52
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L17
	ldr	r0, .L27+56
	bl	printf
.L17:
	mov	r3, #0
	str	r3, [fp, #-312]
	b	.L18
.L19:
	ldr	r3, [fp, #-312]
	add	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L27+60
	bl	printf
	ldr	r3, [fp, #-312]
	add	r3, r3, #1
	str	r3, [fp, #-312]
.L18:
	ldr	r3, [fp, #-312]
	cmp	r3, #15
	ble	.L19
	ldr	r0, .L27+64
	bl	puts
	ldr	r0, .L27+68
	bl	printf
	mov	r3, #6
	strb	r3, [fp, #-264]
	sub	r3, fp, #264
	add	r3, r3, #1
	mov	r0, r3
	bl	nhgets
	mov	r3, r0
	str	r3, [fp, #-284]
	ldr	r1, [fp, #-284]
	ldr	r0, .L27+72
	bl	printf
	ldr	r3, [fp, #-284]
	add	r2, r3, #3
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	write
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L27+76
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	mov	r3, #0
	str	r3, [fp, #-308]
	b	.L21
.L22:
	ldr	r3, [fp, #-308]
	add	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L27+60
	bl	printf
	ldr	r3, [fp, #-308]
	add	r3, r3, #1
	str	r3, [fp, #-308]
.L21:
	ldr	r3, [fp, #-308]
	cmp	r3, #15
	ble	.L22
	ldr	r0, .L27+64
	bl	puts
	ldr	r0, .L27+48
	bl	printf
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-300]
	bl	read
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L27+52
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #7
	bne	.L24
	ldr	r0, .L27+80
	bl	printf
.L24:
	sub	r3, fp, #264
	add	r3, r3, #3
	mov	r1, r3
	ldr	r0, .L27+36
	bl	printf
	ldr	r0, .L27+84
	bl	puts
	ldr	r0, [fp, #-300]
	bl	close
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC22
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
