	.file	"extr_builtin-timechart.c_pid_put_sample.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pid_put_sample, @function
pid_put_sample:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 12[rsp], edx
	call	find_create_pid@PLT
	mov	r15, QWORD PTR 24[rax]
	mov	r14, rax
	test	r15, r15
	je	.L24
.L2:
	mov	edi, 32
	call	zalloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbx, rax
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 16[r15]
	cmp	DWORD PTR TYPE_RUNNING[rip], r13d
	mov	QWORD PTR 24[rbx], rbp
	mov	QWORD PTR 16[rbx], r12
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], r13d
	mov	DWORD PTR 4[rbx], eax
	mov	QWORD PTR 16[r15], rbx
	je	.L25
.L3:
	mov	rax, QWORD PTR [r15]
	test	rax, rax
	je	.L8
	cmp	rax, rbp
	jle	.L4
.L8:
	mov	QWORD PTR [r15], rbp
.L4:
	mov	rax, QWORD PTR [r14]
	test	rax, rax
	je	.L9
	cmp	rax, rbp
	jle	.L1
.L9:
	mov	QWORD PTR [r14], rbp
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	cmp	rbp, r12
	jge	.L3
	test	rbp, rbp
	jle	.L3
	sub	r12d, ebp
	add	DWORD PTR 8[r15], r12d
	add	DWORD PTR 8[r14], r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, 32
	call	zalloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r15, rax
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 16[r14]
	mov	QWORD PTR 24[r14], r15
	mov	QWORD PTR 24[r15], rax
	mov	QWORD PTR 16[r14], r15
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pid_put_sample, .-pid_put_sample
	.comm	TYPE_RUNNING,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_builtin-timechart.c_pid_put_sample.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pid_put_sample, %function
pid_put_sample:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r10, [sp, #32]
	mov	r8, r1
	mov	r9, r2
	mov	r5, r3
	bl	find_create_pid
	ldr	r6, [r0, #12]
	mov	r7, r0
	cmp	r6, #0
	beq	.L17
.L2:
	mov	r0, #20
	bl	zalloc
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r2, .L19
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	str	r5, [r4, #16]
	cmp	r2, r8
	str	r10, [r4, #12]
	str	r8, [r4]
	str	r3, [r4, #8]
	str	r9, [r4, #4]
	str	r4, [r6, #8]
	beq	.L18
.L3:
	ldr	r2, [r6]
	cmp	r2, r5
	movle	r3, #0
	movgt	r3, #1
	cmp	r2, #0
	moveq	r3, #1
	ldr	r2, [r7]
	cmp	r3, #0
	strne	r5, [r6]
	cmp	r2, r5
	movle	r3, #0
	movgt	r3, #1
	cmp	r2, #0
	moveq	r3, #1
	cmp	r3, #0
	strne	r5, [r7]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	cmp	r5, r10
	movge	r3, #0
	movlt	r3, #1
	cmp	r5, #0
	movle	r3, #0
	cmp	r3, #0
	beq	.L3
	ldr	r2, [r6, #4]
	ldr	r3, [r7, #4]
	sub	r10, r10, r5
	add	r2, r2, r10
	add	r10, r3, r10
	str	r2, [r6, #4]
	str	r10, [r7, #4]
	b	.L3
.L17:
	mov	r0, #16
	bl	zalloc
	mov	r6, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	ldr	r3, [r7, #8]
	str	r6, [r7, #12]
	str	r3, [r6, #12]
	str	r6, [r7, #8]
	b	.L2
.L20:
	.align	2
.L19:
	.word	TYPE_RUNNING
	.size	pid_put_sample, .-pid_put_sample
	.comm	TYPE_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
