	.file	"extr_dtrace_vtime.c_dtrace_vtime_switch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dtrace_vtime_switch
	.type	dtrace_vtime_switch, @function
dtrace_vtime_switch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	dtrace_interrupt_disable@PLT
	mov	ebp, eax
	xor	eax, eax
	call	dtrace_gethrtime@PLT
	mov	rdx, QWORD PTR curthread[rip]
	mov	rcx, QWORD PTR [rdx]
	test	rcx, rcx
	je	.L2
	mov	esi, DWORD PTR 8[rdx]
	mov	QWORD PTR [rdx], 0
	sub	esi, ecx
	mov	ecx, esi
	add	ecx, eax
	mov	DWORD PTR 8[rdx], ecx
.L2:
	test	rbx, rbx
	je	.L3
	mov	QWORD PTR [rbx], rax
.L3:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dtrace_interrupt_enable@PLT
	.cfi_endproc
.LFE0:
	.size	dtrace_vtime_switch, .-dtrace_vtime_switch
	.comm	curthread,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_dtrace_vtime.c_dtrace_vtime_switch.c"
	.text
	.align	2
	.global	dtrace_vtime_switch
	.syntax unified
	.arm
	.fpu softvfp
	.type	dtrace_vtime_switch, %function
dtrace_vtime_switch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	dtrace_interrupt_disable
	mov	r5, r0
	bl	dtrace_gethrtime
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L2
	mov	ip, #0
	ldr	r1, [r3, #4]
	sub	r2, r0, r2
	add	r2, r1, r2
	str	r2, [r3, #4]
	str	ip, [r3]
.L2:
	cmp	r4, #0
	strne	r0, [r4]
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	dtrace_interrupt_enable
.L13:
	.align	2
.L12:
	.word	curthread
	.size	dtrace_vtime_switch, .-dtrace_vtime_switch
	.comm	curthread,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
