	.file	"247017020.c"
	.intel_syntax noprefix
	.text
	.type	sys_kcmp, @function
sys_kcmp:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	DWORD PTR -16[rbp], ecx
	mov	DWORD PTR -20[rbp], r8d
	mov	edi, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	mov	edi, 312
	mov	eax, 0
	call	syscall@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sys_kcmp, .-sys_kcmp
	.section	.rodata
.LC0:
	.string	"Can't create file"
.LC1:
	.string	"fork failed"
.LC2:
	.string	"Can't open file"
	.align 8
.LC3:
	.string	"pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld FS: %2ld SIGHAND: %2ld IO: %2ld SYSVSEM: %2ld INV: %2ld\n"
	.align 8
.LC4:
	.string	"FAIL: 0 expected but %d returned (%s)\n"
.LC5:
	.string	"PASS: 0 returned as expected"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 104
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movabs	rax, 8315180025518056299
	mov	QWORD PTR -71[rbp], rax
	mov	DWORD PTR -63[rbp], 1768303988
	mov	WORD PTR -59[rbp], 25964
	mov	BYTE PTR -57[rbp], 0
	lea	rax, -71[rbp]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
	call	getpid@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	call	fork@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -84[rbp], 0
	jne	.L6
	call	getpid@PLT
	mov	DWORD PTR -80[rbp], eax
	lea	rax, -71[rbp]
	mov	edx, 420
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jns	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 9
	mov	edi, eax
	call	sys_kcmp
	mov	r15, rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 6
	mov	edi, eax
	call	sys_kcmp
	mov	r14, rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 5
	mov	edi, eax
	call	sys_kcmp
	mov	r13, rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 4
	mov	edi, eax
	call	sys_kcmp
	mov	r12, rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 3
	mov	edi, eax
	call	sys_kcmp
	mov	rbx, rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	sys_kcmp
	mov	QWORD PTR -136[rbp], rax
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 2
	mov	edi, eax
	call	sys_kcmp
	mov	QWORD PTR -144[rbp], rax
	mov	ecx, DWORD PTR -76[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 0
	mov	edi, eax
	call	sys_kcmp
	mov	rcx, rax
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	sub	rsp, 8
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	mov	r9, QWORD PTR -136[rbp]
	mov	r8, QWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 48
	mov	ecx, DWORD PTR -92[rbp]
	mov	edx, DWORD PTR -92[rbp]
	mov	esi, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 0
	mov	edi, eax
	call	sys_kcmp
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], -1
	jmp	.L9
.L8:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L9:
	mov	esi, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 1
	mov	edi, eax
	call	sys_kcmp
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	je	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -96[rbp], -1
	jmp	.L11
.L10:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L11:
	mov	eax, DWORD PTR -96[rbp]
	mov	edi, eax
	call	exit@PLT
.L6:
	lea	rcx, -100[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"247017020.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_kcmp, %function
sys_kcmp:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3
	bl	syscall
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	378
	.size	sys_kcmp, .-sys_kcmp
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Can't create file\000"
	.align	2
.LC2:
	.ascii	"fork failed\000"
	.align	2
.LC3:
	.ascii	"Can't open file\000"
	.align	2
.LC4:
	.ascii	"pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld F"
	.ascii	"S: %2ld SIGHAND: %2ld IO: %2ld SYSVSEM: %2ld INV: %"
	.ascii	"2ld\012\000"
	.align	2
.LC5:
	.ascii	"FAIL: 0 expected but %d returned (%s)\012\000"
	.align	2
.LC6:
	.ascii	"PASS: 0 returned as expected\000"
	.align	2
.LC0:
	.ascii	"kcmp-test-file\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #92
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, .L16+4
	sub	ip, fp, #56
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #56
	mov	r2, #420
	ldr	r1, .L16+8
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	bl	getpid
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L16+12
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L16+16
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L8
	bl	getpid
	str	r0, [fp, #-64]
	sub	r3, fp, #56
	mov	r2, #420
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L16+20
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-60]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	mov	r2, #0
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r10, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r4, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r5, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #3
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r6, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #4
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r7, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #5
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r8, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #6
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r9, r0
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #9
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	mov	r3, r0
	str	r3, [sp, #24]
	str	r9, [sp, #20]
	str	r8, [sp, #16]
	str	r7, [sp, #12]
	str	r6, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r10
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-72]
	ldr	r0, .L16+24
	bl	printf
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	ldr	r3, [fp, #-76]
	mov	r2, #0
	ldr	r1, [fp, #-64]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-80]
	ldr	r0, .L16+28
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-80]
	b	.L11
.L10:
	ldr	r0, .L16+32
	bl	puts
.L11:
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-72]
	bl	sys_kcmp
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-80]
	ldr	r0, .L16+28
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-80]
	b	.L13
.L12:
	ldr	r0, .L16+32
	bl	puts
.L13:
	ldr	r0, [fp, #-80]
	bl	exit
.L8:
	sub	r3, fp, #84
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-68]
	bl	waitpid
	mov	r3, #0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	.LC0
	.word	578
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
