	.file	"extr_extent.c_extent_recycle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	extent_recycle, @function
extent_recycle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12d, DWORD PTR WITNESS_RANK_CORE[rip]
	mov	rdx, QWORD PTR 152[rsp]
	mov	rax, QWORD PTR 144[rsp]
	mov	QWORD PTR 16[rsp], rcx
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 8[rsp], rax
	mov	rsi, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rsi
	xor	esi, esi
	call	tsdn_witness_tsdp_get@PLT
	mov	r8d, DWORD PTR 160[rsp]
	xor	edx, edx
	mov	esi, r12d
	mov	edi, eax
	test	r8d, r8d
	setne	dl
	call	witness_assert_depth_to_rank@PLT
	mov	r9d, DWORD PTR 128[rsp]
	test	r9d, r9d
	sete	r12b
	test	rbx, rbx
	sete	dil
	or	edi, r12d
	movzx	edi, dil
	call	assert@PLT
	cmp	QWORD PTR 112[rsp], 0
	sete	dil
	or	edi, r12d
	movzx	edi, dil
	call	assert@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	r10d, DWORD PTR [rax]
	test	r10d, r10d
	sete	dil
	or	r12d, edi
	movzx	edi, r12b
	call	assert@PLT
	lea	rsi, 36[rsp]
	mov	rdi, rbp
	call	tsdn_rtree_ctx@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9, rbx
	mov	rdx, r14
	mov	r12, rax
	mov	eax, DWORD PTR 168[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	mov	rcx, r12
	push	rax
	.cfi_def_cfa_offset 128
	mov	eax, DWORD PTR 144[rsp]
	push	rax
	.cfi_def_cfa_offset 136
	push	QWORD PTR 144[rsp]
	.cfi_def_cfa_offset 144
	push	QWORD PTR 144[rsp]
	.cfi_def_cfa_offset 152
	push	r15
	.cfi_def_cfa_offset 160
	mov	r8, QWORD PTR 64[rsp]
	call	extent_recycle_extract@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 112
	test	rax, rax
	je	.L2
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r9, rbx
	mov	rdx, r14
	mov	rsi, r13
	mov	ecx, DWORD PTR 168[rsp]
	mov	rdi, rbp
	push	rcx
	.cfi_def_cfa_offset 128
	mov	rcx, r12
	push	rax
	.cfi_def_cfa_offset 136
	mov	eax, DWORD PTR 160[rsp]
	push	rax
	.cfi_def_cfa_offset 144
	mov	eax, DWORD PTR 160[rsp]
	push	rax
	.cfi_def_cfa_offset 152
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 160
	push	QWORD PTR 160[rsp]
	.cfi_def_cfa_offset 168
	push	r15
	.cfi_def_cfa_offset 176
	mov	r8, QWORD PTR 80[rsp]
	call	extent_recycle_split@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 112
	mov	r15, rax
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rdx]
	test	edi, edi
	je	.L4
	mov	rdi, rax
	call	extent_committed_get@PLT
	test	rax, rax
	je	.L42
.L4:
	mov	rdi, r15
	call	extent_committed_get@PLT
	test	rax, rax
	je	.L8
.L50:
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR [rax], 1
.L8:
	mov	rdi, r15
	call	extent_zeroed_get@PLT
	test	rax, rax
	jne	.L43
	cmp	QWORD PTR 112[rsp], 0
	jne	.L44
.L10:
	mov	rdi, r15
	call	extent_state_get@PLT
	xor	edi, edi
	cmp	QWORD PTR extent_state_active[rip], rax
	sete	dil
	call	assert@PLT
	mov	edx, DWORD PTR 128[rsp]
	test	edx, edx
	jne	.L45
.L11:
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L46
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L47
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L43:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR 112[rsp], 0
	mov	DWORD PTR [rax], 1
	je	.L10
.L44:
	mov	rdx, QWORD PTR 120[rsp]
	mov	rsi, r15
	mov	rdi, rbp
	call	extent_addr_randomize@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, r15
	call	extent_base_get@PLT
	mov	rdi, r15
	mov	rbp, rax
	call	extent_size_get@PLT
	mov	rdi, r15
	mov	r12, rax
	call	extent_zeroed_get@PLT
	test	rax, rax
	je	.L48
	cmp	QWORD PTR config_debug[rip], 0
	je	.L1
	shr	r12, 3
	je	.L1
	mov	rbx, rbp
	lea	rbp, 0[rbp+r12*8]
	.p2align 4,,10
	.p2align 3
.L13:
	xor	edi, edi
	cmp	QWORD PTR [rbx], 0
	sete	dil
	add	rbx, 8
	call	assert@PLT
	cmp	rbx, rbp
	jne	.L13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	mov	esi, DWORD PTR 128[rsp]
	mov	rdi, r15
	call	extent_slab_set@PLT
	mov	rdx, r15
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, DWORD PTR 136[rsp]
	call	extent_interior_register@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r15d, r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, r15
	call	extent_size_get@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rcx, r15
	mov	rsi, r13
	mov	r9, rax
	mov	eax, DWORD PTR 168[rsp]
	xor	r8d, r8d
	mov	rdx, r14
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 128
	call	extent_commit_impl@PLT
	pop	rcx
	.cfi_def_cfa_offset 120
	pop	rsi
	.cfi_def_cfa_offset 112
	test	rax, rax
	jne	.L49
	mov	rdi, r15
	mov	esi, 1
	call	extent_zeroed_set@PLT
	mov	rdi, r15
	call	extent_committed_get@PLT
	test	rax, rax
	je	.L8
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rsi, r12
	mov	rdi, rbp
	call	pages_purge_forced@PLT
	test	rax, rax
	je	.L1
	mov	rdx, r12
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	mov	rcx, QWORD PTR 16[rsp]
	mov	r8, r15
	mov	rdx, r14
	mov	rsi, r13
	mov	r9d, DWORD PTR 160[rsp]
	mov	rdi, rbp
	xor	r15d, r15d
	call	extent_record@PLT
	jmp	.L1
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	extent_recycle, .-extent_recycle
	.comm	extent_state_active,8,8
	.comm	config_debug,8,8
	.comm	WITNESS_RANK_CORE,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_extent.c_extent_recycle.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	extent_recycle, %function
extent_recycle:
	@ args = 36, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #60
	ldr	r9, [sp, #112]
	mov	r5, r0
	clz	r6, r9
	mov	r8, r2
	ldr	r2, .L55
	str	r3, [sp, #40]
	mov	r7, r1
	ldr	r4, [sp, #96]
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	ldr	r10, [sp, #120]
	ldr	fp, [sp, #124]
	bl	tsdn_witness_tsdp_get
	ldr	r2, [sp, #128]
	ldr	r3, .L55+4
	subs	r2, r2, #0
	ldr	r1, [r3]
	movne	r2, #1
	bl	witness_assert_depth_to_rank
	lsr	r6, r6, #5
	cmp	r4, #0
	movne	r0, r6
	moveq	r0, #1
	bl	assert
	ldr	r2, [sp, #104]
	cmp	r2, #0
	movne	r0, r6
	moveq	r0, #1
	bl	assert
	ldr	r0, [r10]
	cmp	r0, #0
	movne	r0, r6
	moveq	r0, #1
	bl	assert
	add	r1, sp, #48
	mov	r0, r5
	bl	tsdn_rtree_ctx
	ldr	r2, [sp, #128]
	ldr	r3, [sp, #40]
	str	r2, [sp, #24]
	ldr	r2, [sp, #108]
	str	r3, [sp]
	str	r2, [sp, #16]
	ldr	r2, [sp, #104]
	mov	r3, r0
	str	r2, [sp, #12]
	ldr	r2, [sp, #100]
	mov	r6, r0
	str	r2, [sp, #8]
	mov	r1, r7
	mov	r2, r8
	mov	r0, r5
	str	r9, [sp, #20]
	str	r4, [sp, #4]
	bl	extent_recycle_extract
	cmp	r0, #0
	beq	.L2
	ldr	r2, [sp, #128]
	ldr	r3, [sp, #40]
	str	r2, [sp, #32]
	ldr	r2, [sp, #116]
	str	r0, [sp, #28]
	str	r2, [sp, #24]
	ldr	r2, [sp, #108]
	str	r4, [sp, #4]
	str	r2, [sp, #16]
	ldr	r2, [sp, #104]
	str	r3, [sp]
	str	r2, [sp, #12]
	ldr	r2, [sp, #100]
	mov	r3, r6
	str	r2, [sp, #8]
	mov	r1, r7
	mov	r2, r8
	mov	r0, r5
	str	r9, [sp, #20]
	bl	extent_recycle_split
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, [fp]
	cmp	r3, #0
	bne	.L48
.L4:
	mov	r0, r4
	bl	extent_committed_get
	cmp	r0, #0
	movne	r3, #1
	mov	r0, r4
	strne	r3, [fp]
	bl	extent_zeroed_get
	cmp	r0, #0
	movne	r3, #1
	strne	r3, [r10]
	ldr	r3, [sp, #104]
	cmp	r3, #0
	bne	.L49
.L10:
	mov	r0, r4
	bl	extent_state_get
	ldr	r3, .L55+8
	ldr	r3, [r3]
	sub	r0, r3, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	cmp	r9, #0
	bne	.L50
.L11:
	ldr	r3, [r10]
	cmp	r3, #0
	bne	.L51
.L1:
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L52
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	bl	extent_committed_get
	subs	r3, r0, #0
	str	r3, [sp, #44]
	bne	.L4
	mov	r0, r4
	bl	extent_size_get
	ldr	r3, [sp, #128]
	mov	r2, r8
	stmib	sp, {r0, r3}
	ldr	r3, [sp, #44]
	mov	r1, r7
	str	r3, [sp]
	mov	r0, r5
	mov	r3, r4
	bl	extent_commit_impl
	cmp	r0, #0
	bne	.L53
	mov	r1, #1
	mov	r0, r4
	bl	extent_zeroed_set
	b	.L4
.L51:
	mov	r0, r4
	bl	extent_base_get
	mov	r5, r0
	mov	r0, r4
	bl	extent_size_get
	mov	r6, r0
	mov	r0, r4
	bl	extent_zeroed_get
	subs	r7, r0, #0
	beq	.L54
	ldr	r3, .L55+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	lsrs	r6, r6, #2
	beq	.L1
	sub	r5, r5, #4
	add	r6, r5, r6, lsl #2
.L13:
	ldr	r0, [r5, #4]!
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	cmp	r5, r6
	bne	.L13
	b	.L1
.L50:
	mov	r1, r9
	mov	r0, r4
	bl	extent_slab_set
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [sp, #116]
	bl	extent_interior_register
	b	.L11
.L49:
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [sp, #108]
	bl	extent_addr_randomize
	b	.L10
.L2:
	mov	r4, #0
	b	.L1
.L54:
	mov	r1, r6
	mov	r0, r5
	bl	pages_purge_forced
	cmp	r0, #0
	beq	.L1
	mov	r2, r6
	mov	r1, r7
	mov	r0, r5
	bl	memset
	b	.L1
.L53:
	ldr	r3, [sp, #128]
	str	r4, [sp]
	str	r3, [sp, #4]
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	ldr	r3, [sp, #40]
	bl	extent_record
	ldr	r4, [sp, #44]
	b	.L1
.L52:
	bl	__stack_chk_fail
.L56:
	.align	2
.L55:
	.word	.LC0
	.word	WITNESS_RANK_CORE
	.word	extent_state_active
	.word	config_debug
	.size	extent_recycle, .-extent_recycle
	.comm	extent_state_active,4,4
	.comm	config_debug,4,4
	.comm	WITNESS_RANK_CORE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
