	.file	"extr_extents.c_btree_ptr_bad_expensive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"inconsistent btree pointer %s: bucket %zi pin %i prio %i gen %i last_gc %i mark %llu"
	.text
	.p2align 4
	.type	btree_ptr_bad_expensive, @function
btree_ptr_bad_expensive:
.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	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	mutex_trylock@PLT
	test	rax, rax
	je	.L1
	xor	r12d, r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	add	r12d, 1
.L2:
	mov	rdi, rbp
	call	KEY_PTRS@PLT
	cmp	eax, r12d
	jbe	.L15
	mov	rdi, QWORD PTR 0[r13]
	mov	edx, r12d
	mov	rsi, rbp
	call	ptr_available@PLT
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR 0[r13]
	mov	edx, r12d
	mov	rsi, rbp
	call	PTR_BUCKET@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	KEY_DIRTY@PLT
	mov	rdi, QWORD PTR 0[r13]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR BTREE_PRIO[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L6
	cmp	QWORD PTR 8[rdi], 0
	je	.L4
	mov	rdi, rbx
	call	GC_MARK@PLT
	cmp	rax, QWORD PTR GC_MARK_METADATA[rip]
	je	.L4
	mov	rdi, QWORD PTR 0[r13]
	.p2align 4,,10
	.p2align 3
.L6:
	call	mutex_unlock@PLT
	lea	r15, 16[rsp]
	mov	rdx, rbp
	mov	esi, 80
	mov	rdi, r15
	call	bch_extent_to_text@PLT
	mov	rdi, rbx
	call	GC_MARK@PLT
	mov	r11d, DWORD PTR 8[rbx]
	mov	r9, QWORD PTR [rbx]
	lea	rdi, 16[rbx]
	mov	r10d, DWORD PTR 12[rbx]
	mov	r14, rax
	mov	DWORD PTR 12[rsp], r11d
	mov	DWORD PTR 8[rsp], r10d
	mov	QWORD PTR [rsp], r9
	call	atomic_read@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	edx, r12d
	mov	rsi, rbp
	mov	ebx, eax
	call	PTR_BUCKET_NR@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 184
	mov	r8d, ebx
	mov	rdx, r15
	push	r14
	.cfi_def_cfa_offset 192
	mov	r11d, DWORD PTR 28[rsp]
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	push	r11
	.cfi_def_cfa_offset 200
	mov	r10d, DWORD PTR 32[rsp]
	push	r10
	.cfi_def_cfa_offset 208
	mov	r9, QWORD PTR 32[rsp]
	call	btree_bug@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 176
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 120
	.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
.L15:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[r13]
	call	mutex_unlock@PLT
	xor	eax, eax
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btree_ptr_bad_expensive, .-btree_ptr_bad_expensive
	.comm	GC_MARK_METADATA,8,8
	.comm	BTREE_PRIO,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_extents.c_btree_ptr_bad_expensive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"inconsistent btree pointer %s: bucket %zi pin %i pr"
	.ascii	"io %i gen %i last_gc %i mark %llu\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btree_ptr_bad_expensive, %function
btree_ptr_bad_expensive:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #116
	mov	r6, r0
	ldr	r0, [r0]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #108]
	mov	r3,#0
	bl	mutex_trylock
	cmp	r0, #0
	beq	.L1
	mov	r4, #0
	ldr	r8, .L21+4
	ldr	r9, .L21+8
	b	.L2
.L4:
	add	r4, r4, #1
.L2:
	mov	r0, r5
	bl	KEY_PTRS
	cmp	r0, r4
	bls	.L19
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	ptr_available
	cmp	r0, #0
	beq	.L4
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	PTR_BUCKET
	mov	r7, r0
	mov	r0, r5
	bl	KEY_DIRTY
	cmp	r0, #0
	bne	.L17
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r0, [r6]
	cmp	r2, r3
	bne	.L6
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L4
	mov	r0, r7
	bl	GC_MARK
	ldr	r3, [r9]
	cmp	r0, r3
	beq	.L4
.L17:
	ldr	r0, [r6]
.L6:
	bl	mutex_unlock
	mov	r2, r5
	mov	r1, #80
	add	r0, sp, #28
	bl	bch_extent_to_text
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	PTR_BUCKET_NR
	mov	r4, r0
	add	r0, r7, #12
	bl	atomic_read
	mov	r5, r0
	mov	r0, r7
	ldr	r8, [r7]
	ldmib	r7, {r7, r9}
	bl	GC_MARK
	mov	r3, r4
	str	r0, [sp, #16]
	stmib	sp, {r8, r9}
	mov	r0, r6
	ldr	r1, .L21+12
	str	r5, [sp]
	str	r7, [sp, #12]
	add	r2, sp, #28
	bl	btree_bug
	mov	r0, #1
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #108]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #116
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	ldr	r0, [r6]
	bl	mutex_unlock
	mov	r0, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	BTREE_PRIO
	.word	GC_MARK_METADATA
	.word	.LC0
	.size	btree_ptr_bad_expensive, .-btree_ptr_bad_expensive
	.comm	GC_MARK_METADATA,4,4
	.comm	BTREE_PRIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
