	.file	"extr_rgrp.c___rs_deltree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__rs_deltree, @function
__rs_deltree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	gfs2_rs_active@PLT
	test	eax, eax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR TRACE_RS_TREEDEL[rip]
	mov	rdi, rbx
	lea	rbp, 24[rbx]
	call	trace_gfs2_rs@PLT
	lea	rsi, 12[r12]
	mov	rdi, rbp
	call	rb_erase@PLT
	mov	rdi, rbp
	call	rb_init_node@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L1
	mov	rdx, QWORD PTR 16[rbx]
	xor	edi, edi
	cmp	rax, QWORD PTR [rdx]
	setg	dil
	call	BUG_ON@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR GBF_FULL[rip]
	sub	QWORD PTR [rdx], rax
	add	DWORD PTR 8[r12], eax
	mov	QWORD PTR [rbx], 0
	call	clear_bit@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	smp_mb__after_clear_bit@PLT
	.cfi_endproc
.LFE0:
	.size	__rs_deltree, .-__rs_deltree
	.comm	TRACE_RS_TREEDEL,4,4
	.comm	GBF_FULL,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_rgrp.c___rs_deltree.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__rs_deltree, %function
__rs_deltree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	gfs2_rs_active
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L10
	ldr	r6, [r4, #8]
	ldr	r1, [r3]
	add	r5, r4, #12
	mov	r0, r4
	bl	trace_gfs2_rs
	add	r1, r6, #8
	mov	r0, r5
	bl	rb_erase
	mov	r0, r5
	bl	rb_init_node
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, [r4, #8]
	ldr	r0, [r2]
	cmp	r3, r0
	movle	r0, #0
	movgt	r0, #1
	bl	BUG_ON
	mov	ip, #0
	ldr	r1, [r4, #8]
	ldr	r0, [r4]
	ldr	r2, [r1]
	ldr	r3, [r6, #4]
	sub	r2, r2, r0
	str	r2, [r1]
	ldr	r2, .L10+4
	add	r3, r3, r0
	str	r3, [r6, #4]
	ldr	r1, [r4, #4]
	str	ip, [r4]
	ldr	r0, [r2]
	bl	clear_bit
	pop	{r4, r5, r6, lr}
	b	smp_mb__after_clear_bit
.L11:
	.align	2
.L10:
	.word	TRACE_RS_TREEDEL
	.word	GBF_FULL
	.size	__rs_deltree, .-__rs_deltree
	.comm	TRACE_RS_TREEDEL,4,4
	.comm	GBF_FULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
