	.file	"111077917.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/proc/stat"
.LC2:
	.string	"cpu "
	.align 8
.LC3:
	.string	"%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu"
.LC4:
	.string	"cpu"
	.align 8
.LC5:
	.string	"%d %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu"
	.text
	.globl	read_stat_cpu
	.type	read_stat_cpu, @function
read_stat_cpu:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 144
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -8344[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8324[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8320[rbp], rax
	cmp	QWORD PTR -8320[rbp], 0
	jne	.L3
	mov	edi, 2
	call	exit@PLT
.L5:
	lea	rax, -8224[rbp]
	mov	edx, 4
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -8344[rbp]
	mov	edx, 80
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8344[rbp]
	lea	r11, 72[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	r10, 64[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	r9, 40[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	r8, 56[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	rdi, 48[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	rsi, 32[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	r12, 24[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	rbx, 16[rax]
	mov	rax, QWORD PTR -8344[rbp]
	lea	rcx, 8[rax]
	mov	rdx, QWORD PTR -8344[rbp]
	lea	rax, -8224[rbp]
	add	rax, 5
	push	r11
	push	r10
	push	r9
	push	r8
	push	rdi
	push	rsi
	mov	r9, r12
	mov	r8, rbx
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 48
	cmp	DWORD PTR -8324[rbp], 0
	jne	.L3
	mov	DWORD PTR -8324[rbp], 1
	jmp	.L3
.L4:
	lea	rax, -8224[rbp]
	mov	edx, 3
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	lea	rax, -8304[rbp]
	mov	edx, 80
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -8224[rbp]
	add	rax, 3
	lea	rdx, -8304[rbp]
	lea	r8, 16[rdx]
	lea	rdx, -8304[rbp]
	lea	rdi, 8[rdx]
	lea	rcx, -8304[rbp]
	lea	rdx, -8328[rbp]
	sub	rsp, 8
	lea	rsi, -8304[rbp]
	add	rsi, 72
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 64
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 40
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 56
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 48
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 32
	push	rsi
	lea	rsi, -8304[rbp]
	add	rsi, 24
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 64
	mov	eax, DWORD PTR -8328[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -8344[rbp]
	add	rax, rdx
	mov	QWORD PTR -8312[rbp], rax
	mov	rax, QWORD PTR -8312[rbp]
	mov	rcx, QWORD PTR -8304[rbp]
	mov	rbx, QWORD PTR -8296[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -8288[rbp]
	mov	rbx, QWORD PTR -8280[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -8272[rbp]
	mov	rbx, QWORD PTR -8264[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -8256[rbp]
	mov	rbx, QWORD PTR -8248[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -8240[rbp]
	mov	rbx, QWORD PTR -8232[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	eax, DWORD PTR -8328[rbp]
	add	eax, 1
	cmp	DWORD PTR -8324[rbp], eax
	jg	.L3
	mov	eax, DWORD PTR -8328[rbp]
	add	eax, 2
	mov	DWORD PTR -8324[rbp], eax
.L3:
	mov	rdx, QWORD PTR -8320[rbp]
	lea	rax, -8224[rbp]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -8320[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -8324[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_stat_cpu, .-read_stat_cpu
	.section	.rodata
.LC6:
	.string	"Hi %lu\n"
	.text
	.globl	print_cpuutil
	.type	print_cpuutil, @function
print_cpuutil:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_cpuutil, .-print_cpuutil
	.section	.rodata
.LC7:
	.string	"read cpu = %d %d\n"
	.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L10
.L11:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	read_stat_cpu
	mov	ecx, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	print_cpuutil
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -100[rbp], 1
.L10:
	cmp	DWORD PTR -100[rbp], 1
	jle	.L11
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"111077917.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/proc/stat\000"
	.align	2
.LC2:
	.ascii	"cpu \000"
	.align	2
.LC3:
	.ascii	"%llu %llu %llu %llu %llu %llu %llu %llu %llu %llu\000"
	.align	2
.LC4:
	.ascii	"cpu\000"
	.align	2
.LC5:
	.ascii	"%d %llu %llu %llu %llu %llu %llu %llu %llu %llu %ll"
	.ascii	"u\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_stat_cpu
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_stat_cpu, %function
read_stat_cpu:
	@ args = 0, pretend = 0, frame = 8304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #8320
	sub	sp, sp, #28
	sub	r3, fp, #8192
	sub	r3, r3, #28
	str	r0, [r3, #-108]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r4, r3
	ldr	r1, .L8+4
	ldr	r0, .L8+8
	bl	fopen
	str	r0, [r4, #-96]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-96]
	cmp	r3, #0
	bne	.L3
	mov	r0, #2
	bl	exit
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, #4
	ldr	r1, .L8+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, #80
	mov	r1, #0
	ldr	r0, [r3, #-108]
	bl	memset
	sub	r0, fp, #8192
	sub	r0, r0, #28
	sub	r0, r0, #4
	add	r0, r0, #5
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r7, [r3, #-108]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-108]
	add	r8, r3, #8
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-108]
	add	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-108]
	add	r2, r2, #24
	sub	r1, fp, #8192
	sub	r1, r1, #28
	ldr	r1, [r1, #-108]
	add	r1, r1, #32
	sub	ip, fp, #8192
	sub	ip, ip, #28
	ldr	ip, [ip, #-108]
	add	ip, ip, #48
	sub	lr, fp, #8192
	sub	lr, lr, #28
	ldr	lr, [lr, #-108]
	add	lr, lr, #56
	sub	r4, fp, #8192
	sub	r4, r4, #28
	ldr	r4, [r4, #-108]
	add	r4, r4, #40
	sub	r5, fp, #8192
	sub	r5, r5, #28
	ldr	r5, [r5, #-108]
	add	r5, r5, #64
	sub	r6, fp, #8192
	sub	r6, r6, #28
	ldr	r6, [r6, #-108]
	add	r6, r6, #72
	str	r6, [sp, #28]
	str	r5, [sp, #24]
	str	r4, [sp, #20]
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r8
	mov	r2, r7
	ldr	r1, .L8+16
	bl	__isoc99_sscanf
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-100]
	str	r3, [r2, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-100]
	b	.L3
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, #3
	ldr	r1, .L8+20
	mov	r0, r3
	bl	strncmp
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-100]
	str	r3, [r1, #-100]
	cmp	r2, #0
	bne	.L3
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r0, fp, #8192
	sub	r0, r0, #28
	sub	r0, r0, #4
	add	r0, r0, #3
	sub	r1, fp, #8256
	sub	r1, r1, #28
	sub	r1, r1, #24
	sub	r2, fp, #8256
	sub	r2, r2, #28
	sub	r2, r2, #40
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #72
	str	r3, [sp, #32]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #64
	str	r3, [sp, #28]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #40
	str	r3, [sp, #24]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #56
	str	r3, [sp, #20]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #48
	str	r3, [sp, #16]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #32
	str	r3, [sp, #12]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #24
	str	r3, [sp, #8]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #8256
	sub	r3, r3, #28
	sub	r3, r3, #24
	add	r3, r3, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L8+24
	bl	__isoc99_sscanf
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-104]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-108]
	add	r3, r3, r1
	str	r3, [r2, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-92]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r0, r2
	sub	r3, r3, #88
	mov	r2, #80
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-104]
	add	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-100]
	str	r2, [r1, #-100]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-100]
	cmp	r2, r3
	bgt	.L3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-104]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	add	r3, r3, #2
	str	r3, [r2, #-100]
.L3:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #4
	ldr	r2, [r2, #-96]
	mov	r1, #8192
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-96]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-100]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	read_stat_cpu, .-read_stat_cpu
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Hi %lu\012\000"
	.text
	.align	2
	.global	print_cpuutil
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_cpuutil, %function
print_cpuutil:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldmia	r3, {r2-r3}
	ldr	r0, .L11
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.size	print_cpuutil, .-print_cpuutil
	.section	.rodata
	.align	2
.LC8:
	.ascii	"read cpu = %d %d\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 = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L14
.L15:
	sub	r3, fp, #92
	mov	r0, r3
	bl	read_stat_cpu
	mov	r3, r0
	ldr	r2, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L18+4
	bl	printf
	sub	r3, fp, #92
	mov	r0, r3
	bl	print_cpuutil
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L14:
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	ble	.L15
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC9
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
