	.file	"extr_glops.c_rgrp_go_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rgrp_go_sync, @function
rgrp_go_sync:
.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
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r12, QWORD PTR 40[rdi]
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L2
	call	gfs2_rgrp_brelse@PLT
.L2:
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	edi, DWORD PTR GLF_DIRTY[rip]
	lea	rsi, 32[rbx]
	call	test_and_clear_bit@PLT
	test	eax, eax
	jne	.L13
	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
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR LM_ST_EXCLUSIVE[rip]
	xor	esi, esi
	cmp	QWORD PTR [rbx], rax
	mov	rdi, rbx
	setne	sil
	call	GLOCK_BUG_ON@PLT
	mov	edx, DWORD PTR GFS2_LOG_HEAD_FLUSH_NORMAL[rip]
	mov	rsi, rbx
	mov	rdi, r12
	or	edx, DWORD PTR GFS2_LFC_RGRP_GO_SYNC[rip]
	call	gfs2_log_flush@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, r12
	call	filemap_fdatawrite_range@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, r12
	call	filemap_fdatawait_range@PLT
	mov	rdi, r12
	mov	esi, eax
	call	mapping_set_error@PLT
	mov	rdi, rbx
	call	gfs2_ail_empty_gl@PLT
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L4
	call	gfs2_free_clones@PLT
.L4:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	rgrp_go_sync, .-rgrp_go_sync
	.comm	LM_ST_EXCLUSIVE,8,8
	.comm	GLF_DIRTY,4,4
	.comm	GFS2_LOG_HEAD_FLUSH_NORMAL,4,4
	.comm	GFS2_LFC_RGRP_GO_SYNC,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_glops.c_rgrp_go_sync.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rgrp_go_sync, %function
rgrp_go_sync:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r5, r0, #4
	mov	r0, r5
	ldr	r6, [r4, #24]
	bl	spin_lock
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L2
	bl	gfs2_rgrp_brelse
.L2:
	mov	r0, r5
	bl	spin_unlock
	ldr	r3, .L13
	add	r1, r4, #20
	ldr	r0, [r3]
	bl	test_and_clear_bit
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L13+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	subs	r1, r1, r3
	movne	r1, #1
	bl	GLOCK_BUG_ON
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r4
	orr	r2, r2, r3
	mov	r0, r6
	bl	gfs2_log_flush
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	mov	r0, r6
	bl	filemap_fdatawrite_range
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	mov	r0, r6
	bl	filemap_fdatawait_range
	mov	r1, r0
	mov	r0, r6
	bl	mapping_set_error
	mov	r0, r4
	bl	gfs2_ail_empty_gl
	mov	r0, r5
	bl	spin_lock
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L4
	bl	gfs2_free_clones
.L4:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_unlock
.L14:
	.align	2
.L13:
	.word	GLF_DIRTY
	.word	LM_ST_EXCLUSIVE
	.word	GFS2_LOG_HEAD_FLUSH_NORMAL
	.word	GFS2_LFC_RGRP_GO_SYNC
	.size	rgrp_go_sync, .-rgrp_go_sync
	.comm	LM_ST_EXCLUSIVE,4,4
	.comm	GLF_DIRTY,4,4
	.comm	GFS2_LOG_HEAD_FLUSH_NORMAL,4,4
	.comm	GFS2_LFC_RGRP_GO_SYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
