	.file	"extr_suballoc.c_ocfs2_claim_suballoc_bits.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Chain allocator dinode %llu has %u used bits but only %u total."
	.align 8
.LC1:
	.string	"Search of victim chain %u came up with nothing, trying all chains now.\n"
	.text
	.p2align 4
	.type	ocfs2_claim_suballoc_bits, @function
ocfs2_claim_suballoc_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r15, QWORD PTR 32[rsi]
	mov	rax, QWORD PTR 128[rsp]
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR [rsp], r8
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 136[rsp]
	mov	QWORD PTR 16[rsp], r9
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 48[rsp], 0
	call	mlog_entry_void@PLT
	mov	rax, QWORD PTR 8[rbx]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	setge	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 8[rbx]
	sub	rax, QWORD PTR [rbx]
	xor	edi, edi
	cmp	rax, r12
	setl	dil
	call	BUG_ON@PLT
	xor	edi, edi
	cmp	QWORD PTR 40[rbx], 0
	sete	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	OCFS2_IS_VALID_DINODE@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r13, rax
	call	le32_to_cpu@PLT
	cmp	r13, rax
	jge	.L26
	lea	rax, 48[rsp]
	mov	QWORD PTR 40[rsp], rax
	test	r15, r15
	je	.L4
	push	rax
	.cfi_def_cfa_offset 136
	mov	rdx, r12
	mov	rdi, rbx
	push	r15
	.cfi_def_cfa_offset 144
	mov	r9, QWORD PTR 40[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	ocfs2_search_one_group@PLT
	pop	r8
	.cfi_def_cfa_offset 136
	pop	r9
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	test	eax, eax
	je	.L27
	js	.L28
.L4:
	mov	rdi, rbp
	call	ocfs2_find_victim_chain@PLT
	mov	DWORD PTR 24[rbx], 1
	mov	rdi, rbx
	mov	rdx, r12
	mov	QWORD PTR 16[rbx], rax
	mov	r14, rax
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 144
	mov	r9, QWORD PTR 40[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	ocfs2_search_chain@PLT
	pop	rsi
	.cfi_def_cfa_offset 136
	pop	rdi
	.cfi_def_cfa_offset 128
	mov	r13d, eax
	test	eax, eax
	je	.L11
	jns	.L8
	add	eax, DWORD PTR ENOSPC[rip]
	jne	.L24
.L8:
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	xor	edi, edi
	xor	r15d, r15d
	call	mlog@PLT
	mov	rax, rbp
	mov	DWORD PTR 24[rbx], 0
	mov	rbp, r15
	mov	r15, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	add	rbp, 1
.L9:
	mov	edi, DWORD PTR 8[r15]
	call	le16_to_cpu@PLT
	cmp	rax, rbp
	jbe	.L6
	cmp	rbp, r14
	je	.L10
	mov	rax, QWORD PTR [r15]
	mov	ecx, DWORD PTR [rax+rbp*4]
	test	ecx, ecx
	je	.L10
	mov	QWORD PTR 16[rbx], rbp
	mov	rdx, r12
	mov	rdi, rbx
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 40[rsp]
	.cfi_def_cfa_offset 144
	mov	r9, QWORD PTR 40[rsp]
	mov	r8, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	call	ocfs2_search_chain@PLT
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 136
	pop	rdx
	.cfi_def_cfa_offset 128
	test	r13d, r13d
	je	.L11
	jns	.L10
	mov	eax, r13d
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L10
.L24:
	mov	edi, r13d
	call	mlog_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r13d, r13d
.L6:
	mov	eax, r13d
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L3
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 48[rsp], rax
	jnb	.L13
	mov	QWORD PTR 32[rbx], 0
.L3:
	mov	edi, r13d
	call	mlog_exit@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 32[rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 4[rbp]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rbx, rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	r12, rax
	call	le64_to_cpu@PLT
	mov	edi, DWORD PTR [r14]
	mov	r8, rbx
	mov	rcx, r12
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	call	ocfs2_error@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L28:
	add	eax, DWORD PTR ENOSPC[rip]
	je	.L4
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR [rax], r15
	jmp	.L6
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_claim_suballoc_bits, .-ocfs2_claim_suballoc_bits
	.comm	ENOSPC,4,4
	.comm	EIO,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_suballoc.c_ocfs2_claim_suballoc_bits.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Chain allocator dinode %llu has %u used bits but on"
	.ascii	"ly %u total.\000"
	.align	2
.LC1:
	.ascii	"Search of victim chain %u came up with nothing, try"
	.ascii	"ing all chains now.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_claim_suballoc_bits, %function
ocfs2_claim_suballoc_bits:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r1, #0
	mov	r9, r3
	ldr	r3, .L34
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r3, [sp, #92]
	mov	r10, r2
	str	r3, [sp, #20]
	ldr	r3, [sp, #96]
	str	r1, [sp, #40]
	str	r3, [sp, #24]
	ldr	r3, [sp, #100]
	mov	r5, r0
	str	r3, [sp, #28]
	ldr	r4, [r6, #16]
	ldr	fp, [sp, #88]
	bl	mlog_entry_void
	ldm	r6, {r0, r3}
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	BUG_ON
	ldr	r3, [r6]
	ldr	r0, [r6, #4]
	sub	r0, r0, r3
	cmp	r0, r9
	movge	r0, #0
	movlt	r0, #1
	bl	BUG_ON
	ldr	r0, [r6, #20]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, [r6, #20]
	ldr	r7, [r3]
	mov	r0, r7
	bl	OCFS2_IS_VALID_DINODE
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r0, [r7, #8]
	bl	le32_to_cpu
	mov	r8, r0
	ldr	r0, [r7, #4]
	bl	le32_to_cpu
	cmp	r8, r0
	bge	.L31
	add	r3, sp, #40
	cmp	r4, #0
	str	r3, [sp, #32]
	bne	.L24
	ldr	r3, .L34+4
	str	r3, [sp, #36]
.L4:
	mov	r0, r7
	bl	ocfs2_find_victim_chain
	mov	r3, #1
	ldr	r2, [sp, #32]
	mov	r8, r0
	str	r2, [sp, #12]
	ldr	r2, [sp, #28]
	str	r0, [r6, #8]
	str	r2, [sp, #8]
	ldr	r2, [sp, #24]
	mov	r1, r10
	str	r2, [sp, #4]
	ldr	r2, [sp, #20]
	mov	r0, r6
	str	r2, [sp]
	str	r3, [r6, #12]
	mov	r2, r9
	mov	r3, fp
	bl	ocfs2_search_chain
	subs	r5, r0, #0
	beq	.L11
	bge	.L8
	ldr	r3, [sp, #36]
	ldr	r3, [r3]
	cmn	r5, r3
	bne	.L29
.L8:
	mov	r4, #0
	mov	r2, r8
	mov	r0, #0
	ldr	r1, .L34+8
	bl	mlog
	str	r4, [r6, #12]
	b	.L9
.L10:
	add	r4, r4, #1
.L9:
	ldr	r0, [r7, #4]
	bl	le16_to_cpu
	cmp	r0, r4
	bls	.L6
	cmp	r4, r8
	beq	.L10
	ldr	r3, [r7]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [sp, #32]
	str	r4, [r6, #8]
	str	r3, [sp, #12]
	ldr	r3, [sp, #28]
	mov	r2, r9
	str	r3, [sp, #8]
	ldr	r3, [sp, #24]
	mov	r1, r10
	str	r3, [sp, #4]
	ldr	r3, [sp, #20]
	mov	r0, r6
	str	r3, [sp]
	mov	r3, fp
	bl	ocfs2_search_chain
	subs	r5, r0, #0
	beq	.L11
	bge	.L10
	ldr	r3, [sp, #36]
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L10
.L29:
	bl	mlog_errno
	b	.L3
.L24:
	ldr	r2, [sp, #24]
	str	r3, [sp, #12]
	str	r2, [sp, #4]
	ldr	r2, [sp, #20]
	mov	r3, fp
	str	r2, [sp]
	mov	r1, r10
	mov	r2, r9
	mov	r0, r6
	str	r4, [sp, #8]
	bl	ocfs2_search_one_group
	subs	r5, r0, #0
	beq	.L32
	ldr	r3, .L34+4
	str	r3, [sp, #36]
	bge	.L4
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L4
	b	.L29
.L32:
	ldr	r3, [sp, #28]
	str	r4, [r3]
	ldr	r3, .L34+4
	str	r3, [sp, #36]
.L6:
	ldr	r3, [sp, #36]
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L3
	ldr	r3, [sp, #40]
	cmp	r3, fp
	movcc	r3, #0
	ldrcs	r3, [sp, #28]
	ldrcs	r3, [r3]
	str	r3, [r6, #16]
.L3:
	mov	r0, r5
	bl	mlog_exit
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r5
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r5, #0
	b	.L6
.L31:
	ldr	r0, [r7, #12]
	ldr	r6, [r5]
	bl	le64_to_cpu
	mov	r4, r0
	ldr	r0, [r7, #8]
	bl	le32_to_cpu
	mov	r5, r0
	ldr	r0, [r7, #4]
	bl	le32_to_cpu
	str	r5, [sp]
	str	r0, [sp, #4]
	asr	r3, r4, #31
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L34+12
	bl	ocfs2_error
	ldr	r3, .L34+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC2
	.word	ENOSPC
	.word	.LC1
	.word	.LC0
	.word	EIO
	.size	ocfs2_claim_suballoc_bits, .-ocfs2_claim_suballoc_bits
	.comm	ENOSPC,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
