	.file	"677457.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/sys/kernel/ni_syscall_mcopy"
.LC2:
	.string	"the_stack_data/677457.c"
	.align 8
.LC3:
	.string	"FAIL: %s: Could not open /sys/kernel/ni_syscall_mcopy\n\n"
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"FAIL: %s: Invalid value read from /sys/kernel/ni_syscall_mcopy\n\n"
	.text
	.globl	get_mcopy_nb
	.type	get_mcopy_nb, @function
get_mcopy_nb:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdx, -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jne	.L3
	lea	rsi, .LC2[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_mcopy_nb, .-get_mcopy_nb
	.section	.rodata
	.align 8
.LC6:
	.string	"FAIL: %s: FAIL: mcopy syscall %d exited with code %d\n\n"
	.align 8
.LC7:
	.string	"FAIL: %s: FAIL: mcopy syscall output is not identical with its input\n"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	get_mcopy_nb
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rsi, -32[rbp]
	mov	ecx, 20
	lea	rdx, src.0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	syscall@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L7
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rax, -32[rbp]
	mov	edx, 20
	mov	rsi, rax
	lea	rdi, src.0[rip]
	call	memcmp@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	je	.L8
	lea	rsi, .LC2[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	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
.LFE7:
	.size	main, .-main
	.data
	.align 16
	.type	src.0, @object
	.size	src.0, 20
src.0:
	.long	10
	.long	16
	.long	348
	.long	-26
	.long	634188
	.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	"677457.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/sys/kernel/ni_syscall_mcopy\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/677457.c\000"
	.align	2
.LC3:
	.ascii	"FAIL: %s: Could not open /sys/kernel/ni_syscall_mco"
	.ascii	"py\012\012\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"FAIL: %s: Invalid value read from /sys/kernel/ni_sy"
	.ascii	"scall_mcopy\012\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_mcopy_nb
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mcopy_nb, %function
get_mcopy_nb:
	@ 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
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	ldr	r1, .L6+12
	ldr	r0, .L6+16
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L6+20
	ldr	r0, [fp, #-12]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L3
	ldr	r1, .L6+12
	ldr	r0, .L6+24
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-16]
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	get_mcopy_nb, .-get_mcopy_nb
	.section	.rodata
	.align	2
.LC7:
	.ascii	"FAIL: %s: FAIL: mcopy syscall %d exited with code %"
	.ascii	"d\012\012\000"
	.align	2
.LC8:
	.ascii	"FAIL: %s: FAIL: mcopy syscall output is not identic"
	.ascii	"al with its input\012\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	get_mcopy_nb
	str	r0, [fp, #-36]
	sub	r1, fp, #28
	mov	r3, #20
	ldr	r2, .L13+4
	ldr	r0, [fp, #-36]
	bl	syscall
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r1, .L13+8
	ldr	r0, .L13+12
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #28
	mov	r2, #20
	mov	r1, r3
	ldr	r0, .L13+4
	bl	memcmp
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L13+8
	ldr	r0, .L13+16
	bl	printf
	mov	r0, #1
	bl	exit
.L10:
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC9
	.word	src.6018
	.word	.LC2
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.data
	.align	2
	.type	src.6018, %object
	.size	src.6018, 20
src.6018:
	.word	10
	.word	16
	.word	348
	.word	-26
	.word	634188
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
