	.file	"extr_hsw_ext_idle.c_hsw_ext_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hsw_ext_start, @function
hsw_ext_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR HSW_EXT_CSTATE_COUNT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	test	edx, edx
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR cpu_count[rip]
	mov	r12d, r14d
	lea	rbp, 0[0+r14*8]
	xor	ebx, ebx
	test	eax, eax
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, ebx
	mov	rsi, r13
	mov	edi, r12d
	call	hsw_ext_get_count@PLT
	mov	rax, QWORD PTR previous_count[rip]
	mov	rdx, QWORD PTR [rsp]
	mov	rax, QWORD PTR [rax+rbp]
	mov	QWORD PTR [rax+rbx*8], rdx
	add	rbx, 1
	cmp	DWORD PTR cpu_count[rip], ebx
	jg	.L4
.L6:
	add	r14, 1
	cmp	DWORD PTR HSW_EXT_CSTATE_COUNT[rip], r14d
	jg	.L2
.L3:
	mov	edx, DWORD PTR base_cpu[rip]
	mov	edi, DWORD PTR TSC[rip]
	lea	rsi, tsc_at_measure_start[rip]
	call	hsw_ext_get_count@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L15:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hsw_ext_start, .-hsw_ext_start
	.comm	tsc_at_measure_start,8,8
	.comm	previous_count,8,8
	.comm	cpu_count,4,4
	.comm	base_cpu,4,4
	.comm	TSC,4,4
	.comm	HSW_EXT_CSTATE_COUNT,4,4
	.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_hsw_ext_idle.c_hsw_ext_start.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hsw_ext_start, %function
hsw_ext_start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L13
	ldr	r8, .L13+4
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L3
	mov	r5, #0
	ldr	r6, .L13+8
	ldr	r9, .L13+12
.L2:
	ldr	r3, [r6]
	cmp	r3, #0
	movgt	r4, #0
	lslgt	r7, r5, #2
	ble	.L6
.L4:
	mov	r2, r4
	mov	r1, sp
	mov	r0, r5
	bl	hsw_ext_get_count
	ldmia	sp, {r0-r1}
	ldr	r3, [r9]
	ldr	r2, [r6]
	ldr	r3, [r3, r7]
	add	r3, r3, r4, lsl #3
	add	r4, r4, #1
	cmp	r2, r4
	stm	r3, {r0-r1}
	bgt	.L4
.L6:
	ldr	r3, [r8]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L2
.L3:
	ldr	r3, .L13+16
	ldr	r2, .L13+20
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, .L13+24
	bl	hsw_ext_get_count
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	HSW_EXT_CSTATE_COUNT
	.word	cpu_count
	.word	previous_count
	.word	TSC
	.word	base_cpu
	.word	tsc_at_measure_start
	.size	hsw_ext_start, .-hsw_ext_start
	.comm	tsc_at_measure_start,8,8
	.comm	previous_count,4,4
	.comm	cpu_count,4,4
	.comm	base_cpu,4,4
	.comm	TSC,4,4
	.comm	HSW_EXT_CSTATE_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
