	.file	"613837.c"
	.intel_syntax noprefix
	.text
	.globl	frames
	.bss
	.align 32
	.type	frames, @object
	.size	frames, 1024
frames:
	.zero	1024
	.section	.rodata
	.align 8
.LC0:
	.string	"How many frames you want to send: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter frame"
.LC3:
	.string	"%s"
	.align 8
.LC4:
	.string	"String length of buffer is %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	lea	rax, -296[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -292[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -288[rbp], eax
	add	DWORD PTR -288[rbp], 1
	mov	edx, DWORD PTR -288[rbp]
	lea	rax, -282[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -282[rbp]
	mov	rsi, rax
	lea	rdi, frames[rip]
	call	strcat@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, frames[rip]
	call	strcat@PLT
	add	DWORD PTR -292[rbp], 1
.L2:
	mov	eax, DWORD PTR -296[rbp]
	cmp	DWORD PTR -292[rbp], eax
	jl	.L3
	mov	DWORD PTR -292[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, frames[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -292[rbp], 1
.L4:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, frames[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L5
	mov	eax, 0
	call	reciever
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"\n\nThis is the reciever"
.LC6:
	.string	"\nData recieved is %s"
.LC7:
	.string	"\nLength of this frame is %d\n"
.LC8:
	.string	"\nFrame ----->"
	.text
	.globl	reciever
	.type	reciever, @function
reciever:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 0
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rsi, frames[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, frames[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -13[rbp], al
	movsx	eax, BYTE PTR -13[rbp]
	sub	eax, 48
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -12[rbp], 1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	lea	rdx, frames[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L11
	mov	edi, 10
	call	putchar@PLT
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, frames[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L12
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	reciever, .-reciever
	.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	"613837.c"
	.text
	.comm	frames,1024,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"How many frames you want to send: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Enter frame\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"String length of buffer is %d\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	sub	r3, fp, #288
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L2
.L3:
	ldr	r0, .L8+12
	bl	puts
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8+20
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
	sub	r3, fp, #276
	ldr	r2, [fp, #-280]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #276
	mov	r1, r3
	ldr	r0, .L8+24
	bl	strcat
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L8+24
	bl	strcat
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L2:
	ldr	r3, [fp, #-288]
	ldr	r2, [fp, #-284]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	str	r3, [fp, #-284]
	b	.L4
.L5:
	ldr	r2, .L8+24
	ldr	r3, [fp, #-284]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L4:
	ldr	r2, .L8+24
	ldr	r3, [fp, #-284]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	bl	reciever
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	frames
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012\012This is the reciever\000"
	.align	2
.LC7:
	.ascii	"\012Data recieved is %s\000"
	.align	2
.LC8:
	.ascii	"\012Length of this frame is %d\012\000"
	.align	2
.LC9:
	.ascii	"\012Frame ----->\000"
	.text
	.align	2
	.global	reciever
	.syntax unified
	.arm
	.fpu softvfp
	.type	reciever, %function
reciever:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r0, .L15
	bl	puts
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	printf
	b	.L11
.L14:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+12
	bl	printf
	ldr	r0, .L15+16
	bl	printf
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldr	r2, .L15+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L13
	mov	r0, #10
	bl	putchar
.L11:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC6
	.word	frames
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	reciever, .-reciever
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
