	.file	"extr_slabs.c_slab_rebalance_finish.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"finished a slab move\n"
	.text
	.p2align 4
	.type	slab_rebalance_finish, @function
slab_rebalance_finish:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rdi, slabs_lock[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR slab_rebal[rip]
	mov	rdi, QWORD PTR slabclass[rip]
	mov	r8, QWORD PTR slab_rebal[rip+8]
	sal	rax, 4
	add	rax, rdi
	mov	rdx, r8
	mov	ecx, DWORD PTR 4[rax]
	sal	rdx, 4
	add	rdi, rdx
	lea	edx, -1[rcx]
	mov	DWORD PTR 4[rax], edx
	test	edx, edx
	jle	.L2
	mov	rdx, QWORD PTR 8[rax]
	sub	ecx, 2
	lea	rax, 8[rdx]
	lea	rsi, [rax+rcx*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	add	rax, 8
.L3:
	mov	rcx, QWORD PTR 8[rdx]
	mov	QWORD PTR [rdx], rcx
	mov	rdx, rax
	cmp	rsi, rax
	jne	.L10
.L2:
	movsx	rax, DWORD PTR 4[rdi]
	mov	rdx, QWORD PTR 8[rdi]
	cmp	r8, QWORD PTR SLAB_GLOBAL_PAGE_POOL[rip]
	lea	ecx, 1[rax]
	mov	DWORD PTR 4[rdi], ecx
	mov	rcx, QWORD PTR slab_rebal[rip+24]
	mov	QWORD PTR [rdx+rax*8], rcx
	ja	.L11
	je	.L12
.L5:
	mov	edi, DWORD PTR slab_rebal[rip+40]
	mov	r13, QWORD PTR slab_rebal[rip+80]
	mov	QWORD PTR slab_rebal[rip+96], 0
	mov	r12, QWORD PTR slab_rebal[rip+72]
	mov	r14, QWORD PTR slab_rebal[rip+64]
	mov	QWORD PTR slab_rebal[rip+88], 0
	mov	rbp, QWORD PTR slab_rebal[rip+56]
	mov	rbx, QWORD PTR slab_rebal[rip+48]
	mov	QWORD PTR slab_rebal[rip], 0
	mov	QWORD PTR slab_rebal[rip+8], 0
	mov	QWORD PTR slab_rebal[rip+24], 0
	mov	QWORD PTR slab_rebal[rip+32], 0
	mov	QWORD PTR slab_rebal[rip+16], 0
	mov	QWORD PTR slab_rebal[rip+80], 0
	mov	QWORD PTR slab_rebal[rip+72], 0
	mov	QWORD PTR slab_rebal[rip+64], 0
	mov	QWORD PTR slab_rebal[rip+56], 0
	mov	QWORD PTR slab_rebal[rip+48], 0
	mov	QWORD PTR slab_rebalance_signal[rip], 0
	call	free@PLT
	lea	rdi, slabs_lock[rip]
	call	pthread_mutex_unlock@PLT
	xor	eax, eax
	call	STATS_LOCK@PLT
	xor	eax, eax
	add	DWORD PTR stats[rip+20], 1
	add	DWORD PTR stats[rip+16], r14d
	add	DWORD PTR stats[rip+12], r13d
	add	DWORD PTR stats[rip+8], r12d
	add	DWORD PTR stats[rip+4], ebp
	add	DWORD PTR stats[rip], ebx
	mov	DWORD PTR stats_state[rip], 0
	call	STATS_UNLOCK@PLT
	cmp	DWORD PTR settings[rip], 1
	jg	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	fprintf@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR settings[rip+8]
	mov	rdi, QWORD PTR slab_rebal[rip+24]
	xor	esi, esi
	call	memset@PLT
	mov	rsi, QWORD PTR slab_rebal[rip+8]
	mov	rdi, QWORD PTR slab_rebal[rip+24]
	call	split_slab_page_into_freelist@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR slab_rebal[rip+24]
	mov	edx, 1
	xor	esi, esi
	call	memset@PLT
	xor	eax, eax
	mov	DWORD PTR mem_limit_reached[rip], 0
	call	memory_release@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	slab_rebalance_finish, .-slab_rebalance_finish
	.comm	stderr,4,4
	.comm	stats_state,4,4
	.comm	stats,24,16
	.comm	slabs_lock,4,4
	.comm	slabclass,8,8
	.comm	slab_rebalance_signal,8,8
	.comm	slab_rebal,104,32
	.comm	settings,16,16
	.comm	mem_limit_reached,4,4
	.comm	SLAB_GLOBAL_PAGE_POOL,8,8
	.comm	ITEM_SLABBED,4,4
	.comm	ITEM_FETCHED,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_slabs.c_slab_rebalance_finish.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"finished a slab move\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slab_rebalance_finish, %function
slab_rebalance_finish:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L14
	ldr	r4, .L14+4
	bl	pthread_mutex_lock
	ldr	r2, .L14+8
	ldr	r3, [r4]
	ldr	r0, [r2]
	add	r3, r3, r3, lsl #1
	add	r3, r0, r3, lsl #2
	ldr	lr, [r3, #4]
	ldr	ip, [r4, #4]
	sub	r2, lr, #1
	add	r1, ip, ip, lsl #1
	cmp	r2, #0
	add	r0, r0, r1, lsl #2
	str	r2, [r3, #4]
	ble	.L2
	ldr	r3, [r3, #8]
	sub	r1, r3, #4
	add	r1, r1, lr, lsl #2
.L3:
	ldr	r2, [r3, #4]
	str	r2, [r3], #4
	cmp	r3, r1
	bne	.L3
.L2:
	ldr	r2, .L14+12
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	ldr	r1, [r4, #12]
	cmp	ip, r2
	ldr	r2, [r0, #8]
	add	lr, r3, #1
	str	lr, [r0, #4]
	str	r1, [r2, r3, lsl #2]
	bhi	.L13
	beq	.L9
.L11:
	ldr	r6, .L14+16
.L5:
	mov	r5, #0
	ldr	r3, .L14+20
	ldr	r0, [r4, #20]
	ldr	r10, [r4, #40]
	ldr	r9, [r4, #36]
	ldr	fp, [r4, #32]
	ldr	r8, [r4, #28]
	ldr	r7, [r4, #24]
	str	r5, [r3]
	str	r5, [r4, #48]
	str	r5, [r4, #44]
	str	r5, [r4]
	str	r5, [r4, #4]
	str	r5, [r4, #12]
	str	r5, [r4, #16]
	str	r5, [r4, #8]
	str	r5, [r4, #40]
	str	r5, [r4, #36]
	str	r5, [r4, #32]
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	bl	free
	ldr	r0, .L14
	bl	pthread_mutex_unlock
	bl	STATS_LOCK
	ldr	r3, .L14+24
	ldr	r2, .L14+28
	ldr	r4, [r3, #16]
	ldr	lr, [r3, #12]
	ldr	ip, [r3, #8]
	ldr	r0, [r3, #4]
	ldr	r1, [r3]
	str	r5, [r2]
	ldr	r2, [r3, #20]
	add	lr, lr, r10
	add	ip, ip, r9
	add	r0, r0, r8
	add	r1, r1, r7
	add	r2, r2, #1
	add	r4, r4, fp
	stmib	r3, {r0, ip, lr}
	str	r4, [r3, #16]
	str	r1, [r3]
	str	r2, [r3, #20]
	bl	STATS_UNLOCK
	ldr	r3, [r6]
	cmp	r3, #1
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L14+32
	ldr	r1, .L14+36
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	fprintf
.L13:
	ldr	r6, .L14+16
	mov	r1, #0
	ldr	r2, [r6, #4]
	ldr	r0, [r4, #12]
	bl	memset
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #12]
	bl	split_slab_page_into_freelist
	b	.L5
.L9:
	mov	r3, #0
	ldr	r1, [r4, #12]
	ldr	r2, .L14+40
	strb	r3, [r1]
	str	r3, [r2]
	bl	memory_release
	b	.L11
.L15:
	.align	2
.L14:
	.word	slabs_lock
	.word	slab_rebal
	.word	slabclass
	.word	SLAB_GLOBAL_PAGE_POOL
	.word	settings
	.word	slab_rebalance_signal
	.word	stats
	.word	stats_state
	.word	stderr
	.word	.LC0
	.word	mem_limit_reached
	.size	slab_rebalance_finish, .-slab_rebalance_finish
	.comm	stderr,4,4
	.comm	stats_state,4,4
	.comm	stats,24,4
	.comm	slabs_lock,4,4
	.comm	slabclass,4,4
	.comm	slab_rebalance_signal,4,4
	.comm	slab_rebal,52,4
	.comm	settings,8,4
	.comm	mem_limit_reached,4,4
	.comm	SLAB_GLOBAL_PAGE_POOL,4,4
	.comm	ITEM_SLABBED,4,4
	.comm	ITEM_FETCHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
