	.file	"extr_rgrp.c___rs_deltree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__rs_deltree, @function
__rs_deltree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	gfs2_rs_active@PLT
	test	eax, eax
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L12:
	.cfi_restore_state
	mov	r12, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR TRACE_RS_TREEDEL[rip]
	mov	rdi, rbx
	lea	rbp, 16[rbx]
	call	trace_gfs2_rs@PLT
	lea	rsi, 12[r12]
	mov	rdi, rbp
	call	rb_erase@PLT
	mov	rdi, rbp
	call	RB_CLEAR_NODE@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L1
	lea	r14, 8[rbx]
	mov	rdi, r14
	call	gfs2_rbm_to_block@PLT
	mov	r13, QWORD PTR [rbx]
	xor	edi, edi
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	r13, QWORD PTR [rax]
	mov	QWORD PTR [rsp], rax
	setg	dil
	call	BUG_ON@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rbx]
	lea	rsi, -1[rbp+r13]
	mov	rbp, rsp
	sub	QWORD PTR [rdx], rax
	mov	rdi, rbp
	add	DWORD PTR 8[r12], eax
	mov	QWORD PTR [rbx], 0
	call	gfs2_rbm_from_block@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r14
	call	rbm_bi@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	rbm_bi@PLT
	lea	rbp, 4[rax]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR GBF_FULL[rip]
	mov	rsi, rbx
	add	rbx, 4
	call	clear_bit@PLT
	cmp	rbx, rbp
	jne	.L6
	jmp	.L1
.L13:
	call	__stack_chk_fail@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
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__rs_deltree, %function
__rs_deltree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L17
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	gfs2_rs_active
	cmp	r0, #0
	bne	.L15
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, .L17+4
	ldr	r6, [r4, #4]
	ldr	r1, [r3]
	add	r5, r4, #8
	mov	r0, r4
	bl	trace_gfs2_rs
	add	r1, r6, #8
	mov	r0, r5
	bl	rb_erase
	mov	r0, r5
	bl	RB_CLEAR_NODE
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L1
	add	r7, r4, #4
	mov	r0, r7
	bl	gfs2_rbm_to_block
	ldr	r3, [r4, #4]
	ldr	r8, [r4]
	ldr	r2, [r3]
	mov	r5, r0
	cmp	r8, r2
	movle	r0, #0
	movgt	r0, #1
	str	r3, [sp]
	bl	BUG_ON
	mov	lr, #0
	ldr	r0, [r4, #4]
	ldr	ip, [r4]
	ldr	r2, [r0]
	ldr	r3, [r6, #4]
	sub	r2, r2, ip
	add	r3, r3, ip
	add	r1, r5, r8
	str	r2, [r0]
	sub	r1, r1, #1
	str	r3, [r6, #4]
	mov	r0, sp
	str	lr, [r4]
	bl	gfs2_rbm_from_block
	cmp	r0, #0
	bne	.L1
	mov	r0, r7
	bl	rbm_bi
	mov	r4, r0
	mov	r0, sp
	bl	rbm_bi
	ldr	r6, .L17+8
	add	r5, r0, #4
.L6:
	mov	r1, r4
	ldr	r0, [r6]
	add	r4, r4, #4
	bl	clear_bit
	cmp	r4, r5
	bne	.L6
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.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
