	.file	"extr_xfs_da_btree.c_xfs_da_grow_inode_int.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_da_grow_inode_int
	.type	xfs_da_grow_inode_int, @function
xfs_da_grow_inode_int:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rcx, rsi
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsx	rbx, edx
	mov	edx, ebx
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	r12, QWORD PTR 8[rdi]
	mov	r14d, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	mov	r13, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [r12]
	mov	r8d, r14d
	mov	rsi, r12
	mov	rdi, r13
	mov	QWORD PTR 16[rsp], rax
	call	xfs_bmap_first_unused@PLT
	mov	r10d, eax
	test	eax, eax
	je	.L28
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r10d
	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
.L28:
	.cfi_restore_state
	mov	r9d, DWORD PTR 4[r15]
	mov	edi, r14d
	mov	DWORD PTR 92[rsp], 1
	mov	DWORD PTR 8[rsp], r9d
	call	xfs_bmapi_aflag@PLT
	lea	rsi, 92[rsp]
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, ebx
	mov	QWORD PTR 32[rsp], rsi
	mov	r8d, DWORD PTR XFS_BMAPI_METADATA[rip]
	push	rsi
	.cfi_def_cfa_offset 200
	or	r8d, DWORD PTR XFS_BMAPI_CONTIG[rip]
	mov	rsi, r12
	or	r8d, eax
	lea	rdi, 104[rsp]
	mov	QWORD PTR 32[rsp], rdi
	push	rdi
	.cfi_def_cfa_offset 208
	mov	r9d, DWORD PTR 24[rsp]
	mov	rdi, r13
	call	xfs_bmapi_write@PLT
	pop	rsi
	.cfi_def_cfa_offset 200
	pop	rdi
	.cfi_def_cfa_offset 192
	mov	r10d, eax
	test	eax, eax
	jne	.L1
	xor	edi, edi
	cmp	DWORD PTR 92[rsp], 1
	mov	DWORD PTR 8[rsp], eax
	setle	dil
	call	ASSERT@PLT
	mov	r11d, DWORD PTR 92[rsp]
	mov	r10d, DWORD PTR 8[rsp]
	cmp	r11d, 1
	je	.L3
	cmp	ebx, 1
	jle	.L13
	test	r11d, r11d
	je	.L30
.L13:
	mov	QWORD PTR 8[rsp], 0
	xor	r11d, r11d
	xor	ecx, ecx
.L4:
	cmp	ebx, ecx
	jne	.L9
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rsi], rdx
	jne	.L9
	movsx	rax, r11d
	add	rbx, rdx
	sal	rax, 4
	lea	rcx, -16[rsi+rax]
	mov	rax, QWORD PTR 8[rcx]
	add	rax, QWORD PTR [rcx]
	cmp	rax, rbx
	je	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r10d, DWORD PTR ENOSPC[rip]
	neg	r10d
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR 24[rsp]
	cmp	rdi, rax
	je	.L1
	mov	DWORD PTR 8[rsp], r10d
	call	kmem_free@PLT
	mov	r10d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 104[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 16[rsp]
	add	eax, DWORD PTR 4[r15]
	sub	eax, DWORD PTR [r12]
	mov	DWORD PTR 4[r15], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, ebx
	xor	esi, esi
	mov	DWORD PTR 40[rsp], r10d
	sal	edi, 4
	call	kmem_alloc@PLT
	mov	rdx, QWORD PTR 0[rbp]
	xor	r11d, r11d
	xor	r8d, r8d
	mov	r10d, DWORD PTR 40[rsp]
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, ebx
	mov	QWORD PTR 56[rsp], r13
	mov	r13d, r11d
	mov	DWORD PTR 72[rsp], r14d
	mov	r14, rdx
	mov	QWORD PTR 48[rsp], r15
	mov	r15, r8
	mov	QWORD PTR 64[rsp], rax
	mov	DWORD PTR 76[rsp], r10d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L32:
	mov	edx, DWORD PTR 92[rsp]
	test	edx, edx
	jle	.L6
	add	r13d, edx
	mov	rsi, QWORD PTR 8[rsp]
	movsx	r15, r13d
	mov	rdx, r15
	sal	rdx, 4
	lea	rcx, -16[rsi+rdx]
	mov	rdx, QWORD PTR 8[rcx]
	add	rdx, QWORD PTR [rcx]
	mov	rcx, QWORD PTR 64[rsp]
	add	rcx, QWORD PTR 0[rbp]
	mov	r14, rdx
	cmp	rcx, rdx
	jle	.L31
.L7:
	mov	edi, DWORD PTR XFS_BMAP_MAX_NMAP[rip]
	mov	esi, ebx
	sal	r15, 4
	call	min@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 72[rsp]
	add	r15, QWORD PTR 8[rsp]
	mov	DWORD PTR 92[rsp], eax
	add	ecx, ebx
	sub	ecx, r14d
	mov	DWORD PTR 44[rsp], ecx
	mov	rcx, QWORD PTR 48[rsp]
	mov	r9d, DWORD PTR 4[rcx]
	mov	DWORD PTR 40[rsp], r9d
	call	xfs_bmapi_aflag@PLT
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 200
	mov	rdx, r14
	mov	rsi, r12
	or	eax, DWORD PTR XFS_BMAPI_METADATA[rip]
	push	r15
	.cfi_def_cfa_offset 208
	mov	r9d, DWORD PTR 56[rsp]
	mov	ecx, DWORD PTR 60[rsp]
	mov	r8d, eax
	mov	rdi, QWORD PTR 72[rsp]
	call	xfs_bmapi_write@PLT
	pop	rdx
	.cfi_def_cfa_offset 200
	pop	rcx
	.cfi_def_cfa_offset 192
	test	eax, eax
	je	.L32
	mov	r10d, eax
	jmp	.L5
.L6:
	mov	r10d, DWORD PTR 76[rsp]
	mov	r15, QWORD PTR 48[rsp]
	mov	r11d, r13d
	mov	ecx, eax
	test	r13d, r13d
	je	.L9
.L8:
	mov	rax, QWORD PTR 8[rsp]
	lea	rdx, 8[rax]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L10:
	add	eax, 1
	add	ecx, DWORD PTR [rdx]
	add	rdx, 16
	cmp	eax, r11d
	jl	.L10
	jmp	.L4
.L31:
	mov	r10d, DWORD PTR 76[rsp]
	mov	r15, QWORD PTR 48[rsp]
	mov	r11d, r13d
	mov	ecx, eax
	jmp	.L8
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_da_grow_inode_int, .-xfs_da_grow_inode_int
	.comm	XFS_BMAP_MAX_NMAP,4,4
	.comm	XFS_BMAPI_METADATA,4,4
	.comm	XFS_BMAPI_CONTIG,4,4
	.comm	ENOSPC,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_xfs_da_btree.c_xfs_da_grow_inode_int.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_da_grow_inode_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_da_grow_inode_int, %function
xfs_da_grow_inode_int:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r9, [r0, #8]
	ldr	r10, [r0, #12]
	ldr	r3, [r9]
	ldr	fp, [r0]
	sub	sp, sp, #60
	ldr	ip, .L27
	str	r3, [sp, #20]
	str	fp, [sp]
	mov	r5, r0
	mov	r1, r9
	mov	r0, r10
	mov	r3, r6
	ldr	ip, [ip]
	str	ip, [sp, #52]
	mov	ip,#0
	mov	r7, r2
	bl	xfs_bmap_first_unused
	subs	r4, r0, #0
	beq	.L22
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r3, #1
	mov	r0, fp
	ldr	r4, [r6]
	str	r3, [sp, #40]
	bl	xfs_bmapi_aflag
	ldr	r2, .L27+4
	ldr	r3, .L27+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r5, #4]
	orr	r3, r3, r2
	orr	r0, r3, r0
	add	r3, sp, #40
	str	r3, [sp, #12]
	add	r3, sp, #44
	stm	sp, {r0, r1}
	mov	r2, r4
	str	r3, [sp, #8]
	mov	r1, r9
	mov	r3, r7
	mov	r0, r10
	bl	xfs_bmapi_write
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #40]
	cmp	r0, #1
	movgt	r0, #0
	movle	r0, #1
	bl	ASSERT
	ldr	r8, [sp, #40]
	cmp	r8, #1
	beq	.L3
	cmp	r7, #1
	movle	r3, #0
	movgt	r3, #1
	cmp	r8, #0
	movne	r3, #0
	cmp	r3, #0
	moveq	r8, r4
	moveq	r0, r4
	streq	r4, [sp, #24]
	bne	.L24
.L4:
	cmp	r7, r0
	bne	.L9
	ldr	r0, [sp, #24]
	ldr	r2, [r6]
	ldr	r3, [r0]
	cmp	r3, r2
	bne	.L9
	sub	r8, r8, #-536870911
	add	r2, r0, r8, lsl #3
	ldr	r1, [r2, #4]
	ldr	r2, [r0, r8, lsl #3]
	add	r7, r3, r7
	add	r3, r2, r1
	cmp	r3, r7
	beq	.L11
.L9:
	ldr	r3, .L27+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L5:
	ldr	r3, [sp, #24]
	add	r2, sp, #44
	cmp	r3, r2
	beq	.L1
	mov	r0, r3
	bl	kmem_free
	b	.L1
.L3:
	add	r3, sp, #44
	ldr	r0, [sp, #48]
	str	r3, [sp, #24]
	b	.L4
.L11:
	ldr	r2, [r9]
	ldr	r1, [sp, #20]
	ldr	r3, [r5, #4]
	sub	r2, r2, r1
	sub	r3, r3, r2
	str	r3, [r5, #4]
	b	.L5
.L24:
	mov	r1, r4
	lsl	r0, r7, #3
	bl	kmem_alloc
	ldr	r2, [r6]
	mov	r8, r4
	str	r4, [sp, #36]
	str	r5, [sp, #32]
	mov	r4, r0
	mov	r5, r2
	str	r0, [sp, #24]
	b	.L7
.L26:
	ldr	r3, [sp, #40]
	cmp	r3, #0
	ble	.L6
	add	r8, r8, r3
	sub	r3, r8, #-536870911
	add	r2, r4, r3, lsl #3
	ldr	r1, [r4, r3, lsl #3]
	ldr	r2, [r2, #4]
	ldr	r3, [r6]
	add	r5, r1, r2
	add	r3, r7, r3
	cmp	r3, r5
	ble	.L25
.L7:
	ldr	r3, .L27+16
	mov	r1, r7
	ldr	r0, [r3]
	bl	min
	mov	r1, r0
	ldr	r3, [r6]
	mov	r0, fp
	add	r3, r7, r3
	sub	r3, r3, r5
	str	r1, [sp, #40]
	str	r3, [sp, #28]
	bl	xfs_bmapi_aflag
	ldr	r3, .L27+8
	add	r2, sp, #40
	ldr	r1, [r3]
	ldr	r3, [sp, #32]
	orr	r0, r0, r1
	ldr	ip, [r3, #4]
	add	r1, r4, r8, lsl #3
	stm	sp, {r0, ip}
	str	r2, [sp, #12]
	str	r1, [sp, #8]
	mov	r2, r5
	mov	r1, r9
	mov	r0, r10
	ldr	r3, [sp, #28]
	bl	xfs_bmapi_write
	cmp	r0, #0
	beq	.L26
	mov	r4, r0
	b	.L5
.L6:
	cmp	r8, #0
	ldr	r4, [sp, #36]
	ldr	r5, [sp, #32]
	beq	.L9
.L8:
	mov	r3, #0
	ldr	r2, [sp, #24]
	add	r1, r2, #4
.L10:
	ldr	r2, [r1, r3, lsl #3]
	add	r3, r3, #1
	cmp	r8, r3
	add	r0, r0, r2
	bgt	.L10
	b	.L4
.L25:
	ldr	r4, [sp, #36]
	ldr	r5, [sp, #32]
	b	.L8
.L23:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	XFS_BMAPI_CONTIG
	.word	XFS_BMAPI_METADATA
	.word	ENOSPC
	.word	XFS_BMAP_MAX_NMAP
	.size	xfs_da_grow_inode_int, .-xfs_da_grow_inode_int
	.comm	XFS_BMAP_MAX_NMAP,4,4
	.comm	XFS_BMAPI_METADATA,4,4
	.comm	XFS_BMAPI_CONTIG,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
