	.file	"extr_cpuidle_sysfs.c_cpuidle_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpuidle_register, @function
cpuidle_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	sched_getcpu@PLT
	mov	edi, eax
	mov	r14d, eax
	call	cpuidle_state_count@PLT
	mov	DWORD PTR cpuidle_sysfs_monitor[rip], eax
	test	eax, eax
	jle	.L9
	xor	ebx, ebx
	lea	r13, cpuidle_sysfs_monitor[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, ebx
	mov	edi, r14d
	call	cpuidle_state_name@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rdi, rax
	lea	r12, [rbx+rbx*4]
	call	map_power_idle_state_name@PLT
	mov	rdi, rbp
	mov	esi, ebx
	sal	r12, 2
	call	fix_up_intel_idle_driver_name@PLT
	mov	rax, QWORD PTR CSTATE_NAME_LEN[rip]
	mov	rsi, rbp
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR cpuidle_cstates[rip]
	mov	edi, DWORD PTR 16[rax+r12]
	call	strncpy@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	esi, ebx
	mov	edi, r14d
	call	cpuidle_state_desc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR CSTATE_DESC_LEN[rip]
	mov	rsi, rbp
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR cpuidle_cstates[rip]
	mov	edi, DWORD PTR 12[rax+r12]
	call	strncpy@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	eax, DWORD PTR RANGE_THREAD[rip]
	add	r12, QWORD PTR cpuidle_cstates[rip]
	mov	DWORD PTR [r12], ebx
	mov	DWORD PTR 8[r12], eax
	mov	eax, DWORD PTR cpuidle_get_count_percent[rip]
	mov	DWORD PTR 4[r12], eax
.L4:
	add	rbx, 1
	cmp	DWORD PTR 0[r13], ebx
	jg	.L6
	mov	eax, DWORD PTR cpu_count[rip]
	lea	edi, 0[0+rax*8]
	call	malloc@PLT
	mov	QWORD PTR previous_count[rip], rax
	mov	eax, DWORD PTR cpu_count[rip]
	lea	edi, 0[0+rax*8]
	call	malloc@PLT
	mov	QWORD PTR current_count[rip], rax
	mov	eax, DWORD PTR cpu_count[rip]
	test	eax, eax
	jle	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 0[r13]
	mov	r12, QWORD PTR previous_count[rip]
	lea	rbx, 0[0+rbp*8]
	add	rbp, 1
	lea	edi, 0[0+rax*8]
	add	r12, rbx
	call	malloc@PLT
	mov	QWORD PTR [r12], rax
	mov	eax, DWORD PTR 0[r13]
	add	rbx, QWORD PTR current_count[rip]
	lea	edi, 0[0+rax*8]
	call	malloc@PLT
	cmp	DWORD PTR cpu_count[rip], ebp
	mov	QWORD PTR [rbx], rax
	jg	.L8
.L7:
	mov	edi, DWORD PTR cpuidle_sysfs_monitor[rip+4]
	call	strlen@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	DWORD PTR cpuidle_sysfs_monitor[rip+8], eax
	pop	r12
	.cfi_def_cfa_offset 24
	lea	rax, cpuidle_sysfs_monitor[rip]
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cpuidle_register, .-cpuidle_register
	.comm	previous_count,8,8
	.comm	current_count,8,8
	.comm	cpuidle_sysfs_monitor,12,8
	.comm	cpuidle_get_count_percent,4,4
	.comm	cpuidle_cstates,8,8
	.comm	cpu_count,4,4
	.comm	RANGE_THREAD,4,4
	.comm	CSTATE_NAME_LEN,8,8
	.comm	CSTATE_DESC_LEN,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cpuidle_sysfs.c_cpuidle_register.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpuidle_register, %function
cpuidle_register:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	bl	sched_getcpu
	mov	r6, r0
	bl	cpuidle_state_count
	ldr	r8, .L17
	cmp	r0, #0
	str	r0, [r8]
	movle	r0, #0
	ble	.L1
	mov	r4, #0
	ldr	r9, .L17+4
	ldr	r7, .L17+8
	ldr	fp, .L17+12
.L6:
	mov	r1, r4
	mov	r0, r6
	bl	cpuidle_state_name
	subs	r5, r0, #0
	add	r10, r4, r4, lsl #2
	beq	.L4
	bl	map_power_idle_state_name
	mov	r1, r4
	mov	r0, r5
	bl	fix_up_intel_idle_driver_name
	ldr	r3, [r7]
	ldr	r2, [r9]
	add	r3, r3, r10, lsl #2
	mov	r1, r5
	ldr	r0, [r3, #16]
	sub	r2, r2, #1
	bl	strncpy
	mov	r0, r5
	bl	free
	mov	r1, r4
	mov	r0, r6
	bl	cpuidle_state_desc
	subs	r5, r0, #0
	lsl	r3, r10, #2
	beq	.L4
	ldr	r1, [r7]
	ldr	r2, [fp]
	add	r1, r1, r3
	sub	r2, r2, #1
	ldr	r0, [r1, #12]
	mov	r1, r5
	str	r3, [sp, #4]
	bl	strncpy
	mov	r0, r5
	bl	free
	ldr	r3, .L17+16
	ldr	r2, [r7]
	ldr	r0, [r3]
	ldr	r3, .L17+20
	ldr	r1, [r3]
	ldr	r3, [sp, #4]
	add	r3, r2, r3
	str	r0, [r3, #8]
	str	r4, [r2, r10, lsl #2]
	str	r1, [r3, #4]
.L4:
	ldr	r5, [r8]
	add	r4, r4, #1
	cmp	r5, r4
	bgt	.L6
	ldr	r3, .L17+24
	ldr	r10, .L17+28
	ldr	r7, [r3]
	ldr	r9, .L17+32
	lsl	r4, r7, #2
	mov	r0, r4
	bl	malloc
	mov	r6, r0
	mov	r0, r4
	str	r6, [r10]
	bl	malloc
	cmp	r7, #0
	str	r0, [r9]
	ble	.L7
	mov	r4, #0
	lsl	r5, r5, #3
	b	.L8
.L16:
	ldr	r6, [r10]
.L8:
	mov	r0, r5
	bl	malloc
	mov	r3, r0
	mov	r0, r5
	str	r3, [r6, r4, lsl #2]
	ldr	r6, [r9]
	bl	malloc
	str	r0, [r6, r4, lsl #2]
	add	r4, r4, #1
	cmp	r7, r4
	bne	.L16
.L7:
	ldr	r0, [r8, #4]
	bl	strlen
	mov	r3, r0
	ldr	r0, .L17
	str	r3, [r8, #8]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	cpuidle_sysfs_monitor
	.word	CSTATE_NAME_LEN
	.word	cpuidle_cstates
	.word	CSTATE_DESC_LEN
	.word	RANGE_THREAD
	.word	cpuidle_get_count_percent
	.word	cpu_count
	.word	previous_count
	.word	current_count
	.size	cpuidle_register, .-cpuidle_register
	.comm	previous_count,4,4
	.comm	current_count,4,4
	.comm	cpuidle_sysfs_monitor,12,4
	.comm	cpuidle_get_count_percent,4,4
	.comm	cpuidle_cstates,4,4
	.comm	cpu_count,4,4
	.comm	RANGE_THREAD,4,4
	.comm	CSTATE_NAME_LEN,4,4
	.comm	CSTATE_DESC_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
