	.file	"extr_monotonic_x86_64.c_core_up.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	core_up, @function
core_up:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR mt_core_supported[rip]
	test	edx, edx
	jne	.L10
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	ml_get_interrupts_enabled@PLT
	xor	edi, edi
	cmp	QWORD PTR FALSE[rip], rax
	sete	dil
	call	assert@PLT
	mov	eax, DWORD PTR MT_CORE_NFIXED[rip]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, ebx
	mov	esi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	mt_core_set_snap@PLT
	cmp	DWORD PTR MT_CORE_NFIXED[rip], ebx
	jg	.L4
.L3:
	mov	edi, DWORD PTR FIXED_CTR_CTRL[rip]
	mov	esi, DWORD PTR FIXED_CTR_CTRL_INIT[rip]
	or	esi, DWORD PTR FIXED_CTR_CTRL_ENABLE[rip]
	call	wrmsr64@PLT
	mov	esi, DWORD PTR GLOBAL_CTRL_FIXED_EN[rip]
	mov	edi, DWORD PTR GLOBAL_CTRL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	wrmsr64@PLT
	.cfi_endproc
.LFE0:
	.size	core_up, .-core_up
	.comm	mt_core_supported,4,4
	.comm	MT_CORE_NFIXED,4,4
	.comm	GLOBAL_CTRL_FIXED_EN,4,4
	.comm	GLOBAL_CTRL,4,4
	.comm	FIXED_CTR_CTRL_INIT,4,4
	.comm	FIXED_CTR_CTRL_ENABLE,4,4
	.comm	FIXED_CTR_CTRL,4,4
	.comm	FALSE,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_monotonic_x86_64.c_core_up.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	core_up, %function
core_up:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	ml_get_interrupts_enabled
	ldr	r3, .L10+4
	ldr	r6, .L10+8
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L3
	mov	r4, #0
.L4:
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r1, [r3, r4, lsl #2]
	bl	mt_core_set_snap
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L3:
	ldr	r2, .L10+12
	ldr	r3, .L10+16
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+20
	orr	r1, r1, r2
	ldr	r0, [r3]
	bl	wrmsr64
	pop	{r4, r5, r6, lr}
	ldr	r2, .L10+24
	ldr	r3, .L10+28
	ldr	r1, [r2]
	ldr	r0, [r3]
	b	wrmsr64
.L11:
	.align	2
.L10:
	.word	mt_core_supported
	.word	FALSE
	.word	MT_CORE_NFIXED
	.word	FIXED_CTR_CTRL_INIT
	.word	FIXED_CTR_CTRL_ENABLE
	.word	FIXED_CTR_CTRL
	.word	GLOBAL_CTRL_FIXED_EN
	.word	GLOBAL_CTRL
	.size	core_up, .-core_up
	.comm	mt_core_supported,4,4
	.comm	MT_CORE_NFIXED,4,4
	.comm	GLOBAL_CTRL_FIXED_EN,4,4
	.comm	GLOBAL_CTRL,4,4
	.comm	FIXED_CTR_CTRL_INIT,4,4
	.comm	FIXED_CTR_CTRL_ENABLE,4,4
	.comm	FIXED_CTR_CTRL,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
