	.file	"extr_block-group.c_btrfs_reduce_alloc_profile.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	btrfs_reduce_alloc_profile, @function
btrfs_reduce_alloc_profile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	ebx, DWORD PTR [rax]
	call	spin_lock@PLT
	mov	rdi, r12
	mov	esi, ebp
	call	get_restripe_target@PLT
	mov	rdi, r12
	test	eax, eax
	je	.L2
	mov	r13d, eax
	mov	eax, DWORD PTR BTRFS_EXTENDED_PROFILE_MASK[rip]
	and	eax, ebp
	test	eax, r13d
	jne	.L19
.L2:
	call	spin_unlock@PLT
	mov	eax, DWORD PTR BTRFS_NR_RAID_TYPES[rip]
	test	eax, eax
	jle	.L7
	mov	rdx, QWORD PTR btrfs_raid_array[rip]
	lea	ecx, -1[rax]
	lea	rax, 8[rdx]
	lea	rsi, [rax+rcx*8]
	xor	ecx, ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	add	rax, 8
.L5:
	cmp	DWORD PTR [rdx], ebx
	jg	.L4
	or	ecx, DWORD PTR 4[rdx]
.L4:
	mov	rdx, rax
	cmp	rax, rsi
	jne	.L20
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID6[rip]
	and	ecx, ebp
	test	esi, ecx
	je	.L21
.L6:
	mov	edi, DWORD PTR BTRFS_BLOCK_GROUP_PROFILE_MASK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	not	edi
	and	ebp, edi
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	or	edi, esi
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	extended_to_chunk@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID5[rip]
	test	esi, ecx
	jne	.L6
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID10[rip]
	test	esi, ecx
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID1[rip]
	test	esi, ecx
	jne	.L6
	mov	esi, DWORD PTR BTRFS_BLOCK_GROUP_RAID0[rip]
	test	esi, ecx
	cmove	esi, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	extended_to_chunk@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	ecx, ecx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	btrfs_reduce_alloc_profile, .-btrfs_reduce_alloc_profile
	.comm	btrfs_raid_array,8,8
	.comm	BTRFS_NR_RAID_TYPES,4,4
	.comm	BTRFS_EXTENDED_PROFILE_MASK,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID6,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID5,4,4
	.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_PROFILE_MASK,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_block-group.c_btrfs_reduce_alloc_profile.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btrfs_reduce_alloc_profile, %function
btrfs_reduce_alloc_profile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r4, r1
	ldr	r3, [r0, #4]
	ldr	r5, [r3]
	bl	spin_lock
	mov	r1, r4
	mov	r0, r6
	bl	get_restripe_target
	subs	r7, r0, #0
	mov	r0, r6
	beq	.L2
	ldr	r3, .L19
	ldr	r3, [r3]
	and	r3, r3, r4
	tst	r3, r7
	bne	.L17
.L2:
	bl	spin_unlock
	ldr	r3, .L19+4
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L7
	mov	r0, #0
	ldr	r3, .L19+8
	ldr	r3, [r3]
	add	r3, r3, #4
	add	ip, r3, ip, lsl #3
.L5:
	ldr	r2, [r3, #-4]
	add	r3, r3, #8
	cmp	r2, r5
	ldrle	r2, [r3, #-8]
	orrle	r0, r0, r2
	cmp	r3, ip
	bne	.L5
	ldr	r2, .L19+12
	and	r3, r0, r4
	ldr	r0, [r2]
	tst	r0, r3
	beq	.L18
.L6:
	ldr	r3, .L19+16
	ldr	r1, [r3]
	bic	r4, r4, r1
	orr	r0, r4, r0
	pop	{r4, r5, r6, r7, r8, lr}
	b	extended_to_chunk
.L18:
	ldr	r2, .L19+20
	ldr	r0, [r2]
	tst	r0, r3
	bne	.L6
	ldr	r2, .L19+24
	ldr	r0, [r2]
	tst	r0, r3
	bne	.L6
.L3:
	ldr	r2, .L19+28
	ldr	r0, [r2]
	tst	r0, r3
	bne	.L6
	ldr	r2, .L19+32
	ldr	r0, [r2]
	tst	r0, r3
	moveq	r0, r3
	b	.L6
.L17:
	bl	spin_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	extended_to_chunk
.L7:
	mov	r3, #0
	b	.L3
.L20:
	.align	2
.L19:
	.word	BTRFS_EXTENDED_PROFILE_MASK
	.word	BTRFS_NR_RAID_TYPES
	.word	btrfs_raid_array
	.word	BTRFS_BLOCK_GROUP_RAID6
	.word	BTRFS_BLOCK_GROUP_PROFILE_MASK
	.word	BTRFS_BLOCK_GROUP_RAID5
	.word	BTRFS_BLOCK_GROUP_RAID10
	.word	BTRFS_BLOCK_GROUP_RAID1
	.word	BTRFS_BLOCK_GROUP_RAID0
	.size	btrfs_reduce_alloc_profile, .-btrfs_reduce_alloc_profile
	.comm	btrfs_raid_array,4,4
	.comm	BTRFS_NR_RAID_TYPES,4,4
	.comm	BTRFS_EXTENDED_PROFILE_MASK,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID6,4,4
	.comm	BTRFS_BLOCK_GROUP_RAID5,4,4
	.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_PROFILE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
