	.file	"extr_lockstat.c_process_aggregate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bad variable ID in aggregation record"
	.align 8
.LC1:
	.string	"bad quantize size in aggregation record"
	.align 8
.LC2:
	.string	"bad avg size in aggregation record"
	.text
	.p2align 4
	.type	process_aggregate, @function
process_aggregate:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR [rdi]
	xor	edi, edi
	mov	rax, QWORD PTR g_nrecs[rip]
	cmp	QWORD PTR [rsi], rax
	setl	dil
	mov	rbx, QWORD PTR 8[rsi]
	call	assert@PLT
	mov	rax, QWORD PTR DTRACE_AGGVARIDNONE[rip]
	mov	rdx, QWORD PTR 0[r13]
	lea	rcx, 1[rax]
	cmp	rdx, rcx
	jle	.L2
	movsx	rcx, DWORD PTR 8[r13]
	mov	rsi, QWORD PTR 16[r13]
	add	rax, 2
	sal	rcx, 4
	lea	r13, -16[rsi+rcx]
	cmp	rdx, rax
	jne	.L13
.L3:
	movsx	rax, DWORD PTR DTRACE_QUANTIZE_NBUCKETS[rip]
	movsx	rdx, DWORD PTR 0[r13]
	mov	rsi, rax
	sal	rax, 3
	cmp	rdx, rax
	jne	.L14
.L4:
	mov	ecx, DWORD PTR DTRACE_QUANTIZE_ZEROBUCKET[rip]
	mov	r8d, DWORD PTR DTRACE_AGGWALK_NEXT[rip]
	add	r12, QWORD PTR 8[r13]
	cmp	ecx, esi
	jge	.L5
	movsx	rdx, ecx
	not	ecx
	add	ecx, esi
	lea	rax, [r12+rdx*8]
	add	rcx, rdx
	neg	rdx
	sal	rdx, 3
	lea	rsi, 8[r12+rcx*8]
	sub	rdx, r12
	add	rdx, QWORD PTR 16[rbx]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rcx, QWORD PTR [rax]
	mov	QWORD PTR [rdx+rax], rcx
	add	rax, 8
	cmp	rsi, rax
	jne	.L6
.L5:
	mov	rax, QWORD PTR g_recsize[rip]
.L7:
	add	rbx, rax
	add	QWORD PTR 0[rbp], 1
	mov	eax, r8d
	mov	QWORD PTR 8[rbp], rbx
	add	rsp, 8
	.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
.L14:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	xor	edi, edi
	call	fail@PLT
	mov	esi, DWORD PTR DTRACE_QUANTIZE_NBUCKETS[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC0[rip]
	xor	edi, edi
	call	fail@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 8[r13]
	mov	rcx, r12
	mov	rdi, rbx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR 16[r13]
	lea	rsi, 16[rax]
	call	lsrec_fill@PLT
	movsx	rax, DWORD PTR 8[r13]
	mov	rdx, QWORD PTR 16[r13]
	sal	rax, 4
	lea	r13, -16[rdx+rax]
	cmp	DWORD PTR 0[r13], 16
	je	.L8
	lea	rsi, .LC2[rip]
	xor	edi, edi
	call	fail@PLT
.L8:
	add	r12, QWORD PTR 8[r13]
	mov	r8d, DWORD PTR DTRACE_AGGWALK_NEXT[rip]
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR g_recsize[rip]
	cmp	rax, QWORD PTR LS_HIST[rip]
	jl	.L7
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	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
	.cfi_endproc
.LFE0:
	.size	process_aggregate, .-process_aggregate
	.comm	g_recsize,8,8
	.comm	g_nrecs,8,8
	.comm	LS_HIST,8,8
	.comm	DTRACE_QUANTIZE_ZEROBUCKET,4,4
	.comm	DTRACE_QUANTIZE_NBUCKETS,4,4
	.comm	DTRACE_AGGWALK_NEXT,4,4
	.comm	DTRACE_AGGVARIDNONE,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_lockstat.c_process_aggregate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bad variable ID in aggregation record\000"
	.align	2
.LC1:
	.ascii	"bad quantize size in aggregation record\000"
	.align	2
.LC2:
	.ascii	"bad avg size in aggregation record\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_aggregate, %function
process_aggregate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	ldr	r2, .L19
	ldr	r0, [r1]
	ldr	r2, [r2]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r0, r2
	movge	r0, #0
	movlt	r0, #1
	ldr	r6, [r3, #4]
	mov	r4, r1
	ldr	r7, [r3]
	ldr	r5, [r1, #4]
	bl	assert
	ldr	r3, .L19+4
	ldr	r1, [r6]
	ldr	r3, [r3]
	add	r2, r3, #1
	cmp	r1, r2
	ldr	r2, [r6, #4]
	ble	.L2
	ldr	r8, [r6, #8]
	add	r3, r3, #2
	sub	r6, r2, #-536870911
	cmp	r1, r3
	add	r10, r8, r6, lsl #3
	bne	.L17
.L3:
	ldr	r9, .L19+8
	ldr	r2, [r8, r6, lsl #3]
	ldr	r3, [r9]
	cmp	r2, r3, lsl #2
	bne	.L18
.L4:
	ldr	r2, .L19+12
	ldr	r1, [r10, #4]
	ldr	ip, [r2]
	ldr	r2, .L19+16
	cmp	ip, r3
	ldr	r0, [r2]
	add	r7, r7, r1
	bge	.L5
	ldr	r2, [r5, #8]
	rsb	r1, r2, ip, lsl #2
	sub	lr, r2, ip, lsl #2
	add	ip, lr, r3, lsl #2
	add	r1, r1, r7
.L6:
	ldr	r3, [r1, r2]
	str	r3, [r2], #4
	cmp	ip, r2
	bne	.L6
.L5:
	ldr	r3, .L19+20
	ldr	r2, [r3]
.L7:
	ldr	r3, [r4]
	add	r5, r5, r2
	add	r3, r3, #1
	stm	r4, {r3, r5}
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	mov	r0, #0
	ldr	r1, .L19+24
	bl	fail
	ldr	r3, [r9]
	b	.L4
.L17:
	ldr	r1, .L19+28
	mov	r0, #0
	bl	fail
	b	.L3
.L2:
	ldr	r1, [r6, #8]
	mov	r3, r7
	sub	r2, r2, #1
	mov	r0, r5
	add	r1, r1, #8
	bl	lsrec_fill
	ldmib	r6, {r2, r3}
	sub	r6, r2, #-536870911
	ldr	r2, [r3, r6, lsl #3]
	add	r6, r3, r6, lsl #3
	cmp	r2, #8
	beq	.L8
	mov	r0, #0
	ldr	r1, .L19+32
	bl	fail
.L8:
	ldr	r1, [r6, #4]
	ldr	r3, .L19+36
	ldr	r0, [r7, r1]
	ldr	r2, .L19+20
	str	r0, [r5, #4]
	ldr	r2, [r2]
	ldr	r0, [r3]
	add	r7, r7, r1
	ldr	r1, [r7, #4]
	ldr	r3, .L19+16
	cmp	r2, r0
	str	r1, [r5]
	ldr	r0, [r3]
	blt	.L7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	.align	2
.L19:
	.word	g_nrecs
	.word	DTRACE_AGGVARIDNONE
	.word	DTRACE_QUANTIZE_NBUCKETS
	.word	DTRACE_QUANTIZE_ZEROBUCKET
	.word	DTRACE_AGGWALK_NEXT
	.word	g_recsize
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	LS_HIST
	.size	process_aggregate, .-process_aggregate
	.comm	g_recsize,4,4
	.comm	g_nrecs,4,4
	.comm	LS_HIST,4,4
	.comm	DTRACE_QUANTIZE_ZEROBUCKET,4,4
	.comm	DTRACE_QUANTIZE_NBUCKETS,4,4
	.comm	DTRACE_AGGWALK_NEXT,4,4
	.comm	DTRACE_AGGVARIDNONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
