	.file	"extr_extent-tree.c_update_block_group_flags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_block_group_flags, @function
update_block_group_flags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	call	get_restripe_target@PLT
	test	eax, eax
	jne	.L13
	mov	rax, QWORD PTR [rbx]
	mov	r8d, DWORD PTR BTRFS_BLOCK_GROUP_RAID0[rip]
	mov	edi, DWORD PTR BTRFS_BLOCK_GROUP_RAID1[rip]
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID10[rip]
	mov	rcx, QWORD PTR [rax]
	mov	eax, r8d
	or	eax, edi
	mov	edx, DWORD PTR 4[rcx]
	add	edx, DWORD PTR [rcx]
	or	eax, esi
	cmp	edx, 1
	je	.L14
	test	r12d, eax
	jne	.L4
	mov	edx, DWORD PTR BTRFS_BLOCK_GROUP_DUP[rip]
	test	edx, r12d
	jne	.L15
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, DWORD PTR BTRFS_BLOCK_GROUP_DUP[rip]
	or	eax, edx
	not	eax
	and	eax, r12d
	test	r8d, r12d
	jne	.L5
	or	esi, edi
	or	eax, edx
	test	esi, r12d
	cmovne	r12d, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	extended_to_chunk@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	edx, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	not	edx
	pop	rbx
	.cfi_def_cfa_offset 16
	and	r12d, edx
	or	r12d, edi
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	update_block_group_flags, .-update_block_group_flags
	.comm	BTRFS_BLOCK_GROUP_RAID10,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID1,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID0,4,4
	.comm	BTRFS_BLOCK_GROUP_DUP,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_update_block_group_flags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_block_group_flags, %function
update_block_group_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r1
	bl	get_restripe_target
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r5]
	ldr	r1, .L16
	ldr	r2, [r3]
	ldr	r0, .L16+4
	ldm	r2, {r3, ip}
	ldr	r2, .L16+8
	ldr	r1, [r1]
	ldr	r0, [r0]
	add	r3, r3, ip
	ldr	r2, [r2]
	cmp	r3, #1
	orr	r3, r1, r0
	orr	r3, r3, r2
	beq	.L15
	tst	r4, r3
	bne	.L4
	ldr	r2, .L16+12
	ldr	r2, [r2]
	tst	r2, r4
	orrne	r3, r2, r3
	bicne	r4, r4, r3
	orrne	r4, r4, r0
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	ldr	ip, .L16+12
	tst	r1, r4
	ldr	r1, [ip]
	orr	r3, r1, r3
	bic	r3, r4, r3
	movne	r4, r3
	bne	.L4
	orr	r2, r0, r2
	tst	r2, r4
	orrne	r4, r1, r3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	pop	{r4, r5, r6, lr}
	b	extended_to_chunk
.L17:
	.align	2
.L16:
	.word	BTRFS_BLOCK_GROUP_RAID0
	.word	BTRFS_BLOCK_GROUP_RAID1
	.word	BTRFS_BLOCK_GROUP_RAID10
	.word	BTRFS_BLOCK_GROUP_DUP
	.size	update_block_group_flags, .-update_block_group_flags
	.comm	BTRFS_BLOCK_GROUP_RAID10,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID1,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID0,4,4
	.comm	BTRFS_BLOCK_GROUP_DUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
