	.file	"extr_kern_time.c_get_process_cputime.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_process_cputime, @function
get_process_cputime:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	PROC_STATLOCK@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	rufetch@PLT
	mov	rax, QWORD PTR curthread[rip]
	mov	r13d, DWORD PTR 0[rbp]
	cmp	QWORD PTR [rax], rbp
	je	.L6
.L2:
	mov	rdi, rbp
	call	PROC_STATUNLOCK@PLT
	mov	rsi, r12
	mov	edi, r13d
	call	cputick2timespec@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	eax, eax
	call	cpu_ticks@PLT
	mov	edi, DWORD PTR switchtime[rip]
	mov	rbx, rax
	call	PCPU_GET@PLT
	sub	rbx, rax
	add	r13d, ebx
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_process_cputime, .-get_process_cputime
	.comm	switchtime,4,4
	.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_kern_time.c_get_process_cputime.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_process_cputime, %function
get_process_cputime:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L8
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r1
	bl	PROC_STATLOCK
	mov	r0, r4
	mov	r1, sp
	bl	rufetch
	ldr	r3, .L8+4
	ldr	r5, [r4]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L6
.L2:
	mov	r0, r4
	bl	PROC_STATUNLOCK
	mov	r1, r6
	mov	r0, r5
	bl	cputick2timespec
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	bl	cpu_ticks
	ldr	r3, .L8+8
	mov	r7, r0
	ldr	r0, [r3]
	bl	PCPU_GET
	sub	r7, r7, r0
	add	r5, r5, r7
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	curthread
	.word	switchtime
	.size	get_process_cputime, .-get_process_cputime
	.comm	switchtime,4,4
	.comm	curthread,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
