	.file	"extr_xfs_reflink.c_xfs_reflink_trim_around_shared.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_reflink_trim_around_shared
	.type	xfs_reflink_trim_around_shared, @function
xfs_reflink_trim_around_shared:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	xfs_is_cow_inode@PLT
	test	eax, eax
	jne	.L2
.L4:
	mov	DWORD PTR [r12], 0
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	xfs_bmap_is_real_extent@PLT
	test	eax, eax
	je	.L4
	mov	rsi, rbp
	mov	rdi, rbx
	call	trace_xfs_reflink_trim_around_shared@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rbx]
	call	XFS_FSB_TO_AGNO@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	r14d, eax
	call	XFS_FSB_TO_AGBNO@PLT
	push	1
	.cfi_def_cfa_offset 88
	mov	r8, QWORD PTR 0[rbp]
	mov	edx, r14d
	mov	r13, rax
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	mov	rcx, r13
	lea	rax, 24[rsp]
	push	rax
	.cfi_def_cfa_offset 96
	lea	r9, 24[rsp]
	call	xfs_reflink_find_shared@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR 8[rsp]
	cmp	rdx, QWORD PTR NULLAGBLOCK[rip]
	mov	DWORD PTR [r12], 0
	je	.L1
	cmp	rdx, r13
	je	.L13
	sub	rdx, r13
	mov	QWORD PTR 0[rbp], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR 0[rbp], rdx
	mov	DWORD PTR [r12], 1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_reflink_trim_around_shared, .-xfs_reflink_trim_around_shared
	.comm	NULLAGBLOCK,8,8
	.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_reflink.c_xfs_reflink_trim_around_shared.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_reflink_trim_around_shared
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_reflink_trim_around_shared, %function
xfs_reflink_trim_around_shared:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L13
	sub	sp, sp, #36
	mov	r4, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	bl	xfs_is_cow_inode
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r0, #0
	str	r0, [r6]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	mov	r0, r4
	bl	xfs_bmap_is_real_extent
	cmp	r0, #0
	beq	.L4
	mov	r1, r4
	mov	r0, r5
	bl	trace_xfs_reflink_trim_around_shared
	ldr	r1, [r4, #4]
	ldr	r0, [r5]
	bl	XFS_FSB_TO_AGNO
	ldr	r1, [r4, #4]
	mov	r8, r0
	ldr	r0, [r5]
	bl	XFS_FSB_TO_AGBNO
	mov	r9, #1
	mov	r7, r0
	ldr	r1, [r4]
	ldr	r0, [r5]
	add	ip, sp, #24
	str	r1, [sp]
	add	r1, sp, #20
	stmib	sp, {r1, ip}
	mov	r2, r8
	mov	r3, r7
	mov	r1, #0
	str	r9, [sp, #12]
	bl	xfs_reflink_find_shared
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L13+4
	ldr	r3, [sp, #20]
	ldr	r2, [r2]
	str	r0, [r6]
	cmp	r3, r2
	beq	.L1
	cmp	r3, r7
	ldreq	r3, [sp, #24]
	subne	r3, r3, r7
	streq	r3, [r4]
	strne	r3, [r4]
	streq	r9, [r6]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	NULLAGBLOCK
	.size	xfs_reflink_trim_around_shared, .-xfs_reflink_trim_around_shared
	.comm	NULLAGBLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
