	.file	"extr_extent-tree.c_btrfs_set_block_group_ro.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	btrfs_set_block_group_ro
	.type	btrfs_set_block_group_ro, @function
btrfs_set_block_group_ro:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 16[rsi]
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	btrfs_join_transaction@PLT
	mov	rdi, rax
	mov	r14, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	update_block_group_flags@PLT
	mov	rcx, rax
	cmp	QWORD PTR [r12], rax
	je	.L6
	mov	r8d, DWORD PTR CHUNK_ALLOC_FORCE[rip]
	mov	edx, 2097152
	mov	rsi, rbp
	mov	rdi, r14
	call	do_chunk_alloc@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L4
.L6:
	xor	esi, esi
	mov	rdi, r12
	call	set_block_group_ro@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L14
.L4:
	mov	rsi, rbp
	mov	rdi, r14
	call	btrfs_end_transaction@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	get_alloc_profile@PLT
	mov	edx, 2097152
	mov	rsi, rbp
	mov	rdi, r14
	mov	r8d, DWORD PTR CHUNK_ALLOC_FORCE[rip]
	mov	rcx, rax
	call	do_chunk_alloc@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L4
	xor	esi, esi
	mov	rdi, r12
	call	set_block_group_ro@PLT
	mov	r13d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r14
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	btrfs_set_block_group_ro, .-btrfs_set_block_group_ro
	.comm	CHUNK_ALLOC_FORCE,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-tree.c_btrfs_set_block_group_ro.c"
	.text
	.align	2
	.global	btrfs_set_block_group_ro
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_set_block_group_ro, %function
btrfs_set_block_group_ro:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	sub	sp, sp, #12
	ldr	r0, [r1, #8]
	mov	r5, r1
	bl	BUG_ON
	mov	r0, r4
	bl	btrfs_join_transaction
	mov	r7, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	mov	r0, r4
	ldr	r1, [r5]
	bl	update_block_group_flags
	ldr	r2, [r5]
	mov	r3, r0
	cmp	r2, r0
	beq	.L6
	ldr	r2, .L15
	mov	r0, r7
	ldr	r1, [r2]
	mov	r2, #2097152
	str	r1, [sp]
	mov	r1, r4
	bl	do_chunk_alloc
	subs	r6, r0, #0
	blt	.L4
.L6:
	mov	r1, #0
	mov	r0, r5
	bl	set_block_group_ro
	subs	r6, r0, #0
	bne	.L14
.L4:
	mov	r1, r4
	mov	r0, r7
	bl	btrfs_end_transaction
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r3, [r5, #4]
	mov	r0, r4
	ldr	r1, [r3]
	bl	get_alloc_profile
	ldr	r2, .L15
	mov	r3, r0
	ldr	r1, [r2]
	mov	r0, r7
	str	r1, [sp]
	mov	r2, #2097152
	mov	r1, r4
	bl	do_chunk_alloc
	subs	r6, r0, #0
	blt	.L4
	mov	r0, r5
	mov	r1, #0
	bl	set_block_group_ro
	mov	r6, r0
	b	.L4
.L13:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L16:
	.align	2
.L15:
	.word	CHUNK_ALLOC_FORCE
	.size	btrfs_set_block_group_ro, .-btrfs_set_block_group_ro
	.comm	CHUNK_ALLOC_FORCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
