	.file	"945799.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"physical id"
.LC1:
	.string	"rb"
.LC2:
	.string	"/proc/cpuinfo"
	.text
	.globl	num_cpus
	.type	num_cpus, @function
num_cpus:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -52[rbp], eax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L8
.L2:
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -56[rbp], 0
.L7:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, -40[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	DWORD PTR -56[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L8
.L5:
	mov	eax, DWORD PTR -56[rbp]
	jmp	.L8
.L4:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	jl	.L7
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	add	DWORD PTR -56[rbp], 1
	jmp	.L7
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	num_cpus, .-num_cpus
	.section	.rodata
.LC3:
	.string	"r"
	.align 8
.LC4:
	.string	"/sys/fs/cgroup/memory/memory.stat"
.LC5:
	.string	"%63s %llu"
.LC6:
	.string	"hierarchical_memory_limit"
	.text
	.globl	total_mem
	.type	total_mem, @function
total_mem:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -192[rbp]
	mov	rdi, rax
	call	sysinfo@PLT
	test	eax, eax
	je	.L11
	mov	eax, 0
	jmp	.L19
.L11:
	mov	rax, QWORD PTR -160[rbp]
	mov	edx, DWORD PTR -88[rbp]
	mov	edx, edx
	imul	rax, rdx
	mov	QWORD PTR -208[rbp], rax
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	fopen@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L13
	mov	rax, QWORD PTR -208[rbp]
	jmp	.L19
.L13:
	mov	QWORD PTR -216[rbp], -1
.L17:
	lea	rcx, -224[rbp]
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], 2
	jne	.L21
	lea	rax, -80[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -216[rbp], rax
	jmp	.L15
.L21:
	nop
.L15:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -216[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	jnb	.L18
	mov	rax, QWORD PTR -216[rbp]
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -208[rbp]
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	total_mem, .-total_mem
	.globl	pid_is_running
	.type	pid_is_running, @function
pid_is_running:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jns	.L23
	mov	eax, 0
	jmp	.L24
.L23:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	kill@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L26
.L25:
	mov	eax, 1
	jmp	.L24
.L26:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	pid_is_running, .-pid_is_running
	.globl	kill_process
	.type	kill_process, @function
kill_process:
.LFB9:
	.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jne	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	kill_process, .-kill_process
	.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	"945799.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"physical id\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"/proc/cpuinfo\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	num_cpus
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_cpus, %function
num_cpus:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L10+4
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r1, .L10+8
	ldr	r0, .L10+12
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L8
.L2:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L7:
	sub	r1, fp, #32
	sub	r3, fp, #36
	ldr	r2, [fp, #-16]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L4
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L8
.L5:
	ldr	r3, [fp, #-28]
	b	.L8
.L4:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L7
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L7
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	num_cpus, .-num_cpus
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"/sys/fs/cgroup/memory/memory.stat\000"
	.align	2
.LC6:
	.ascii	"%63s %llu\000"
	.align	2
.LC7:
	.ascii	"hierarchical_memory_limit\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	total_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	total_mem, %function
total_mem:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #168
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #144
	mov	r0, r3
	bl	sysinfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mov	r2, #0
	mov	r3, #0
	b	.L21
.L13:
	ldr	r3, [fp, #-128]
	mov	r4, r3
	mov	r5, #0
	ldr	r3, [fp, #-92]
	mov	r0, r3
	mov	r1, #0
	mul	r2, r0, r5
	mul	r3, r4, r1
	add	ip, r2, r3
	umull	r2, r3, r4, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	str	r2, [fp, #-156]
	str	r3, [fp, #-152]
	ldr	r1, .L24+4
	ldr	r0, .L24+8
	bl	fopen
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
	b	.L21
.L15:
	mvn	r2, #0
	mvn	r3, #0
	str	r2, [fp, #-164]
	str	r3, [fp, #-160]
.L19:
	sub	r3, fp, #172
	sub	r2, fp, #80
	ldr	r1, .L24+12
	ldr	r0, [fp, #-180]
	bl	__isoc99_fscanf
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #2
	bne	.L23
	sub	r3, fp, #80
	ldr	r1, .L24+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #172
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-164]
	str	r3, [fp, #-160]
	b	.L17
.L23:
	nop
.L17:
	ldr	r0, [fp, #-180]
	bl	fclose
	sub	r1, fp, #164
	ldmia	r1, {r0-r1}
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L20
	sub	r3, fp, #164
	ldmia	r3, {r2-r3}
	b	.L21
.L20:
	sub	r3, fp, #156
	ldmia	r3, {r2-r3}
.L21:
	ldr	r1, .L24
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	total_mem, .-total_mem
	.align	2
	.global	pid_is_running
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_is_running, %function
pid_is_running:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L27
	mov	r3, #0
	b	.L28
.L27:
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	kill
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L30
.L29:
	mov	r3, #1
	b	.L28
.L30:
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pid_is_running, .-pid_is_running
	.align	2
	.global	kill_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_process, %function
kill_process:
	@ 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]
	rsb	r3, r3, #0
	mov	r1, #9
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r3, #1
	b	.L33
.L32:
	mov	r3, #0
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	kill_process, .-kill_process
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
