	.file	"178264650.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Invalid command. Syntax:\n"
	.align 8
.LC1:
	.string	"\tfreqset <frequency|governor> <freq-level|governor-name>\n"
	.align 8
.LC2:
	.string	"Unable to assume root privileges\n"
.LC3:
	.string	"frequency"
.LC4:
	.string	"scaling_setspeed"
	.align 8
.LC5:
	.string	"Unable to open frequency interface for writing.\n"
.LC6:
	.string	"governor"
.LC7:
	.string	"scaling_governor"
	.align 8
.LC8:
	.string	"Unable to open governor interface for writing.\n"
.LC9:
	.string	"ondemand"
.LC10:
	.string	"0"
.LC11:
	.string	"ondemand/ignore_nice_load"
.LC12:
	.string	"conservative"
.LC13:
	.string	"conservative/ignore_nice_load"
.LC14:
	.string	"Unknown command.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 3
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	edi, 0
	call	seteuid@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	sys_cpu_setall
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L6:
	mov	eax, 0
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	sys_cpu_setall
	test	eax, eax
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L3
.L8:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	sys_cpufreq_set
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	lea	rsi, .LC10[rip]
	lea	rdi, .LC13[rip]
	call	sys_cpufreq_set
.L10:
	mov	eax, 0
	jmp	.L3
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC15:
	.string	"/sys/devices/system/cpu/cpu%i/cpufreq/%s"
.LC16:
	.string	"w"
.LC17:
	.string	"%s\n"
	.text
	.type	sys_cpu_setall, @function
sys_cpu_setall:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	QWORD PTR -4136[rbp], rdi
	mov	QWORD PTR -4144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4124[rbp], 0
.L14:
	mov	rcx, QWORD PTR -4136[rbp]
	mov	edx, DWORD PTR -4124[rbp]
	lea	rax, -4112[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC15[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -4112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -4124[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	jmp	.L16
.L12:
	mov	rdx, QWORD PTR -4144[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	add	DWORD PTR -4124[rbp], 1
	jmp	.L14
.L16:
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sys_cpu_setall, .-sys_cpu_setall
	.section	.rodata
	.align 8
.LC18:
	.string	"/sys/devices/system/cpu/cpufreq/%s"
	.text
	.type	sys_cpufreq_set, @function
sys_cpufreq_set:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	QWORD PTR -4136[rbp], rdi
	mov	QWORD PTR -4144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	rcx, rdx
	lea	rdx, .LC18[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -4112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L18
	mov	rdx, QWORD PTR -4144[rbp]
	mov	rax, QWORD PTR -4136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sys_cpu_setall
	test	eax, eax
	jle	.L19
	mov	eax, 1
	jmp	.L21
.L19:
	mov	eax, -1
	jmp	.L21
.L18:
	mov	rdx, QWORD PTR -4144[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
.L21:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sys_cpufreq_set, .-sys_cpufreq_set
	.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	"178264650.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid command. Syntax:\012\000"
	.align	2
.LC1:
	.ascii	"\011freqset <frequency|governor> <freq-level|govern"
	.ascii	"or-name>\012\000"
	.align	2
.LC2:
	.ascii	"Unable to assume root privileges\012\000"
	.align	2
.LC3:
	.ascii	"frequency\000"
	.align	2
.LC4:
	.ascii	"scaling_setspeed\000"
	.align	2
.LC5:
	.ascii	"Unable to open frequency interface for writing.\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"governor\000"
	.align	2
.LC7:
	.ascii	"scaling_governor\000"
	.align	2
.LC8:
	.ascii	"Unable to open governor interface for writing.\012\000"
	.align	2
.LC9:
	.ascii	"ondemand\000"
	.align	2
.LC10:
	.ascii	"0\000"
	.align	2
.LC11:
	.ascii	"ondemand/ignore_nice_load\000"
	.align	2
.LC12:
	.ascii	"conservative\000"
	.align	2
.LC13:
	.ascii	"conservative/ignore_nice_load\000"
	.align	2
.LC14:
	.ascii	"Unknown command.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L11+4
	bl	fwrite
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L11+8
	bl	fwrite
	mov	r3, #1
	b	.L3
.L2:
	mov	r0, #0
	bl	seteuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+20
	bl	sys_cpu_setall
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L11+24
	bl	fwrite
	mov	r3, #1
	b	.L3
.L6:
	mov	r3, #0
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+32
	bl	sys_cpu_setall
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L11+36
	bl	fwrite
	mov	r3, #1
	b	.L3
.L8:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L11+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r1, .L11+44
	ldr	r0, .L11+48
	bl	sys_cpufreq_set
	b	.L10
.L9:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L11+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r1, .L11+44
	ldr	r0, .L11+56
	bl	sys_cpufreq_set
.L10:
	mov	r3, #0
	b	.L3
.L7:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L11+60
	bl	fwrite
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"/sys/devices/system/cpu/cpu%i/cpufreq/%s\000"
	.align	2
.LC16:
	.ascii	"w\000"
	.align	2
.LC17:
	.ascii	"%s\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_cpu_setall, %function
sys_cpu_setall:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	str	r3, [sp]
	ldr	r3, [r2, #-12]
	ldr	r2, .L19+4
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	b	.L18
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r1, .L19+12
	ldr	r0, [r3, #-8]
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
	b	.L16
.L18:
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC18
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	sys_cpu_setall, .-sys_cpu_setall
	.section	.rodata
	.align	2
.LC19:
	.ascii	"/sys/devices/system/cpu/cpufreq/%s\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_cpufreq_set, %function
sys_cpufreq_set:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-16]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-12]
	ldr	r2, .L27+4
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L27+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L22
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-16]
	ldr	r0, [r3, #-12]
	bl	sys_cpu_setall
	mov	r3, r0
	cmp	r3, #0
	ble	.L23
	mov	r3, #1
	b	.L25
.L23:
	mvn	r3, #0
	b	.L25
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r1, .L27+12
	ldr	r0, [r3, #-8]
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-8]
	bl	fclose
	mov	r3, #1
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC20
	.word	.LC19
	.word	.LC16
	.word	.LC17
	.size	sys_cpufreq_set, .-sys_cpufreq_set
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
