	.file	"extr_xfs_dir2.c_xfs_dir2_shrink_inode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_dir2_shrink_inode
	.type	xfs_dir2_shrink_inode, @function
xfs_dir2_shrink_inode:
.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, rdx
	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
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	trace_xfs_dir2_shrink_inode@PLT
	mov	r13, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	mov	r15, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR [rsp], rax
	call	xfs_dir2_db_to_da@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	xor	r8d, r8d
	xor	r9d, r9d
	mov	r12, rax
	mov	rax, QWORD PTR [rbx]
	mov	rsi, r13
	mov	rdi, r15
	mov	rdx, r12
	mov	ecx, DWORD PTR 8[rax]
	lea	rax, 36[rsp]
	push	rax
	.cfi_def_cfa_offset 128
	call	xfs_bunmapi@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	mov	r8d, eax
	test	eax, eax
	je	.L10
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 28[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	ASSERT@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	xfs_trans_binval@PLT
	mov	esi, DWORD PTR XFS_DIR2_LEAF_OFFSET[rip]
	mov	rdi, QWORD PTR [rbx]
	call	xfs_dir2_byte_to_db@PLT
	mov	r8d, DWORD PTR 12[rsp]
	cmp	rax, rbp
	jle	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	r14, QWORD PTR 0[r13]
	xor	edx, edx
	lea	rsi, 1[rbp]
	call	xfs_dir2_db_off_to_byte@PLT
	mov	r8d, DWORD PTR 12[rsp]
	cmp	r14, rax
	jg	.L1
	lea	rdx, 32[rsp]
	mov	rsi, r13
	mov	rdi, r15
	mov	QWORD PTR 32[rsp], r12
	mov	ecx, DWORD PTR XFS_DATA_FORK[rip]
	call	xfs_bmap_last_before@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 32[rsp]
	mov	DWORD PTR 12[rsp], r8d
	cmp	QWORD PTR [rax], rbp
	je	.L12
	xor	edi, edi
	test	rdx, rdx
	setg	dil
	call	ASSERT@PLT
	mov	r8d, DWORD PTR 12[rsp]
.L6:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	DWORD PTR 12[rsp], r8d
	call	XFS_FSB_TO_B@PLT
	mov	edx, DWORD PTR XFS_ILOG_CORE[rip]
	mov	rsi, r13
	mov	rdi, r15
	mov	QWORD PTR 0[r13], rax
	call	xfs_trans_log_inode@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	edi, edi
	test	rdx, rdx
	sete	dil
	call	ASSERT@PLT
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L6
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_dir2_shrink_inode, .-xfs_dir2_shrink_inode
	.comm	XFS_ILOG_CORE,4,4
	.comm	XFS_DIR2_LEAF_OFFSET,4,4
	.comm	XFS_DATA_FORK,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_dir2.c_xfs_dir2_shrink_inode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_dir2_shrink_inode
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_dir2_shrink_inode, %function
xfs_dir2_shrink_inode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L13
	sub	sp, sp, #36
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	trace_xfs_dir2_shrink_inode
	ldr	r7, [r4, #8]
	mov	r1, r5
	ldr	r0, [r4]
	ldr	r9, [r4, #4]
	ldr	r10, [r7, #4]
	bl	xfs_dir2_db_to_da
	mov	ip, #0
	mov	r6, r0
	ldr	r3, [r4]
	add	lr, sp, #24
	ldr	r3, [r3, #4]
	mov	r1, r7
	mov	r0, r9
	mov	r2, r6
	str	ip, [sp, #4]
	str	ip, [sp]
	str	lr, [sp, #8]
	bl	xfs_bunmapi
	subs	fp, r0, #0
	beq	.L10
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r0, [sp, #24]
	bl	ASSERT
	mov	r1, r8
	mov	r0, r9
	bl	xfs_trans_binval
	ldr	r3, .L13+4
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	xfs_dir2_byte_to_db
	cmp	r0, r5
	ble	.L1
	mov	r2, fp
	ldr	r0, [r4]
	add	r1, r5, #1
	ldr	r8, [r7]
	bl	xfs_dir2_db_off_to_byte
	cmp	r8, r0
	bgt	.L1
	ldr	r3, .L13+8
	mov	r1, r7
	mov	r0, r9
	ldr	r3, [r3]
	add	r2, sp, #20
	str	r6, [sp, #20]
	bl	xfs_bmap_last_before
	subs	fp, r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [sp, #20]
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L12
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
.L6:
	ldr	r1, [sp, #20]
	mov	r0, r10
	bl	XFS_FSB_TO_B
	ldr	r3, .L13+12
	str	r0, [r7]
	mov	r1, r7
	mov	r0, r9
	ldr	r2, [r3]
	bl	xfs_trans_log_inode
	b	.L1
.L12:
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	b	.L6
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	XFS_DIR2_LEAF_OFFSET
	.word	XFS_DATA_FORK
	.word	XFS_ILOG_CORE
	.size	xfs_dir2_shrink_inode, .-xfs_dir2_shrink_inode
	.comm	XFS_ILOG_CORE,4,4
	.comm	XFS_DIR2_LEAF_OFFSET,4,4
	.comm	XFS_DATA_FORK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
