	.file	"803647.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.bss
	.align 8
	.type	count, @object
	.size	count, 8
count:
	.zero	8
	.globl	end
	.align 16
	.type	end, @object
	.size	end, 16
end:
	.zero	16
	.section	.rodata
.LC0:
	.string	"%s count = %lld\n"
	.text
	.globl	checktime
	.type	checktime, @function
checktime:
.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR end[rip]
	cmp	rdx, rax
	jl	.L4
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR end[rip+8]
	cmp	rdx, rax
	jl	.L4
	mov	rdx, QWORD PTR count[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L4:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checktime, .-checktime
	.section	.rodata
.LC1:
	.string	"NZERO = %d\n"
.LC2:
	.string	"fork error"
.LC3:
	.string	"child"
	.align 8
.LC4:
	.string	"current nice value in child is %d, adjusting by %d\n"
.LC5:
	.string	"child set scheduling priority"
.LC6:
	.string	"now child nice value is %d\n"
.LC7:
	.string	"parent"
	.align 8
.LC8:
	.string	"current nice value in parent is %d\n"
.LC9:
	.string	"%s counter wrap"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	edi, 109
	call	sysconf@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -36[rbp], 2
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -24[rbp], eax
.L6:
	mov	esi, 0
	lea	rdi, end[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR end[rip]
	add	rax, 10
	mov	QWORD PTR end[rip], rax
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jns	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L8
	lea	rax, .LC3[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 0
	call	nice@PLT
	mov	edx, DWORD PTR -20[rbp]
	lea	ecx, [rax+rdx]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	nice@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L8:
	lea	rax, .LC7[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 0
	call	nice@PLT
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	mov	rax, QWORD PTR count[rip]
	add	rax, 1
	mov	QWORD PTR count[rip], rax
	mov	rax, QWORD PTR count[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	checktime
	jmp	.L12
	.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	"803647.c"
	.text
	.comm	count,8,8
	.comm	end,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s count = %lld\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	checktime
	.syntax unified
	.arm
	.fpu softvfp
	.type	checktime, %function
checktime:
	@ 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, #-24]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L4
	ldr	r2, [fp, #-12]
	ldr	r3, .L5+4
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L4
	ldr	r3, .L5+8
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-24]
	ldr	r0, .L5+12
	bl	printf
	mov	r0, #0
	bl	exit
.L4:
	nop
	ldr	r3, .L5
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	end
	.word	count
	.word	.LC0
	.size	checktime, .-checktime
	.section	.rodata
	.align	2
.LC2:
	.ascii	"NZERO = %d\012\000"
	.align	2
.LC3:
	.ascii	"fork error\000"
	.align	2
.LC4:
	.ascii	"child\000"
	.align	2
.LC5:
	.ascii	"current nice value in child is %d, adjusting by %d\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"child set scheduling priority\000"
	.align	2
.LC7:
	.ascii	"now child nice value is %d\012\000"
	.align	2
.LC8:
	.ascii	"parent\000"
	.align	2
.LC9:
	.ascii	"current nice value in parent is %d\012\000"
	.align	2
.LC10:
	.ascii	"%s counter wrap\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	mov	r0, #109
	bl	sysconf
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L15+4
	bl	printf
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L8
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-28]
.L8:
	mov	r1, #0
	ldr	r0, .L15+8
	bl	gettimeofday
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r3, #10
	ldr	r2, .L15+8
	str	r3, [r2]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L15+12
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L15+16
	str	r3, [fp, #-32]
	mov	r0, #0
	bl	nice
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-28]
	bl	nice
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L15+24
	bl	puts
	mov	r0, #1
	bl	exit
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+28
	bl	printf
	b	.L14
.L10:
	ldr	r3, .L15+32
	str	r3, [fp, #-32]
	mov	r0, #0
	bl	nice
	mov	r2, r0
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
.L14:
	ldr	r3, .L15+40
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r3, .L15+40
	stm	r3, {r4-r5}
	ldr	r3, .L15+40
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L13
	ldr	r1, [fp, #-32]
	ldr	r0, .L15+44
	bl	printf
.L13:
	ldr	r0, [fp, #-32]
	bl	checktime
	b	.L14
.L16:
	.align	2
.L15:
	.word	stdout
	.word	.LC2
	.word	end
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	count
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
