	.file	"extr_move_extent.c_mext_replace_branches.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Donor offset(%u) and the first block of donor extent(%u) should be equal"
	.text
	.p2align 4
	.type	mext_replace_branches, @function
mext_replace_branches:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	mov	rbx, r9
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 72[rsp], rcx
	mov	QWORD PTR 80[rsp], rcx
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 64[rsp], 0
	call	double_down_write_data_sem@PLT
	lea	rax, 56[rsp]
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, rbp
	mov	rdx, rax
	mov	QWORD PTR 16[rsp], rax
	call	get_ext_path@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L2
.L4:
	xor	r13d, r13d
.L3:
	mov	rdi, QWORD PTR 56[rsp]
	test	rdi, rdi
	je	.L9
	call	ext4_ext_drop_refs@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	kfree@PLT
.L9:
	mov	rdi, QWORD PTR 64[rsp]
	test	rdi, rdi
	je	.L10
	call	ext4_ext_drop_refs@PLT
	mov	rdi, QWORD PTR 64[rsp]
	call	kfree@PLT
.L10:
	mov	rdi, rbp
	call	ext4_ext_invalidate_cache@PLT
	mov	rdi, r12
	call	ext4_ext_invalidate_cache@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	double_up_write_data_sem@PLT
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 104
	.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
.L2:
	.cfi_restore_state
	lea	rax, 64[rsp]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, r12
	mov	rdx, rax
	mov	QWORD PTR 32[rsp], rax
	call	get_ext_path@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L4
	mov	rdi, rbp
	lea	r14, 48[rsp]
	call	ext_depth@PLT
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, r12
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 52[rsp], eax
	call	ext_depth@PLT
	mov	rdx, QWORD PTR 64[rsp]
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r14
	cdqe
	mov	rcx, QWORD PTR 80[rsp]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR 72[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 48[rsp], eax
	lea	rax, 52[rsp]
	mov	rsi, rax
	mov	QWORD PTR 24[rsp], rax
	call	mext_calc_swap_extents@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L4
	lea	rcx, 72[rsp]
	mov	DWORD PTR 4[rsp], eax
	mov	r13, QWORD PTR 24[rsp]
	mov	QWORD PTR 40[rsp], rcx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 56[rsp]
	mov	rcx, r14
	mov	rsi, rbp
	mov	rdi, r15
	call	mext_leaf_block@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L30
	mov	rdx, QWORD PTR 64[rsp]
	lea	r8, 80[rsp]
	mov	rcx, r13
	mov	rsi, r12
	mov	rdi, r15
	call	mext_leaf_block@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L30
	mov	rdi, r14
	call	ext4_ext_get_actual_len@PLT
	movsx	rsi, eax
	add	DWORD PTR 4[rsp], esi
	movsx	rax, DWORD PTR 4[rsp]
	add	QWORD PTR 80[rsp], rsi
	add	rsi, QWORD PTR 72[rsp]
	mov	QWORD PTR 72[rsp], rsi
	mov	QWORD PTR 24[rsp], rax
	cmp	rax, QWORD PTR 8[rsp]
	jge	.L30
	mov	rdi, QWORD PTR 56[rsp]
	test	rdi, rdi
	je	.L6
	call	ext4_ext_drop_refs@PLT
	mov	rsi, QWORD PTR 72[rsp]
.L6:
	mov	rdx, QWORD PTR 16[rsp]
	mov	rdi, rbp
	call	get_ext_path@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L30
	mov	rdi, rbp
	call	ext_depth@PLT
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 64[rsp]
	cdqe
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 52[rsp], eax
	test	rdi, rdi
	je	.L7
	call	ext4_ext_drop_refs@PLT
.L7:
	mov	rdx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, r12
	call	get_ext_path@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L30
	mov	rdi, r12
	call	ext_depth@PLT
	mov	rdx, QWORD PTR 64[rsp]
	mov	rsi, r13
	mov	rdi, r14
	cdqe
	mov	rcx, QWORD PTR 80[rsp]
	mov	r8, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	rdx, QWORD PTR 72[rsp]
	sub	r8, QWORD PTR 24[rsp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 48[rsp], eax
	call	mext_calc_swap_extents@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L30
.L8:
	mov	edi, DWORD PTR 48[rsp]
	call	le32_to_cpu@PLT
	cmp	rax, QWORD PTR 80[rsp]
	je	.L5
	mov	edi, DWORD PTR 48[rsp]
	mov	r13d, DWORD PTR 4[rsp]
	call	le32_to_cpu@PLT
	mov	rdx, QWORD PTR 80[rsp]
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	mov	rcx, rax
	xor	eax, eax
	call	ext4_error@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	mov	DWORD PTR [rbx], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L30:
	mov	r13d, DWORD PTR 4[rsp]
	jmp	.L3
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mext_replace_branches, .-mext_replace_branches
	.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_move_extent.c_mext_replace_branches.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Donor offset(%u) and the first block of donor exten"
	.ascii	"t(%u) should be equal\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mext_replace_branches, %function
mext_replace_branches:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r2, #0
	sub	sp, sp, #52
	str	r3, [sp, #36]
	str	r3, [sp, #40]
	ldr	r3, .L29
	mov	r1, r5
	mov	r8, r0
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	r6, [sp, #92]
	str	r2, [sp, #20]
	str	r2, [sp, #24]
	ldr	r9, [sp, #88]
	bl	double_down_write_data_sem
	mov	r0, r4
	ldr	r1, [sp, #36]
	add	r2, sp, #20
	bl	get_ext_path
	cmp	r0, #0
	str	r0, [r6]
	beq	.L2
.L4:
	mov	r7, #0
.L3:
	ldr	r0, [sp, #20]
	cmp	r0, #0
	beq	.L9
	bl	ext4_ext_drop_refs
	ldr	r0, [sp, #20]
	bl	kfree
.L9:
	ldr	r0, [sp, #24]
	cmp	r0, #0
	beq	.L10
	bl	ext4_ext_drop_refs
	ldr	r0, [sp, #24]
	bl	kfree
.L10:
	mov	r0, r4
	bl	ext4_ext_invalidate_cache
	mov	r0, r5
	bl	ext4_ext_invalidate_cache
	mov	r1, r5
	mov	r0, r4
	bl	double_up_write_data_sem
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r5
	ldr	r1, [sp, #40]
	add	r2, sp, #24
	bl	get_ext_path
	cmp	r0, #0
	str	r0, [r6]
	bne	.L4
	mov	r0, r4
	bl	ext_depth
	mov	r2, r0
	ldr	r3, [sp, #20]
	mov	r0, r5
	ldr	r3, [r3, r2, lsl #2]
	ldr	r3, [r3]
	str	r3, [sp, #32]
	bl	ext_depth
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #36]
	ldr	r3, [r3, r0, lsl #2]
	add	r1, sp, #32
	ldr	ip, [r3]
	add	r0, sp, #28
	ldr	r3, [sp, #40]
	str	r9, [sp]
	str	ip, [sp, #28]
	bl	mext_calc_swap_extents
	cmp	r0, #0
	mov	r7, r0
	str	r0, [r6]
	bne	.L4
	add	r10, sp, #36
	add	fp, sp, #40
	b	.L8
.L5:
	mov	r1, r4
	mov	r0, r8
	ldr	r2, [sp, #20]
	str	r10, [sp]
	add	r3, sp, #28
	bl	mext_leaf_block
	cmp	r0, #0
	str	r0, [r6]
	bne	.L3
	mov	r1, r5
	mov	r0, r8
	ldr	r2, [sp, #24]
	str	fp, [sp]
	add	r3, sp, #32
	bl	mext_leaf_block
	cmp	r0, #0
	str	r0, [r6]
	bne	.L3
	add	r0, sp, #28
	bl	ext4_ext_get_actual_len
	ldr	r3, [sp, #40]
	ldr	r1, [sp, #36]
	add	r7, r7, r0
	add	r3, r3, r0
	add	r1, r0, r1
	cmp	r9, r7
	str	r3, [sp, #40]
	str	r1, [sp, #36]
	ble	.L3
	ldr	r0, [sp, #20]
	cmp	r0, #0
	beq	.L6
	bl	ext4_ext_drop_refs
	ldr	r1, [sp, #36]
.L6:
	mov	r0, r4
	add	r2, sp, #20
	bl	get_ext_path
	cmp	r0, #0
	str	r0, [r6]
	bne	.L3
	mov	r0, r4
	bl	ext_depth
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	ldr	r2, [r2, r0, lsl #2]
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #32]
	beq	.L7
	mov	r0, r3
	bl	ext4_ext_drop_refs
.L7:
	mov	r0, r5
	ldr	r1, [sp, #40]
	add	r2, sp, #24
	bl	get_ext_path
	cmp	r0, #0
	str	r0, [r6]
	bne	.L3
	mov	r0, r5
	bl	ext_depth
	ldr	r3, [sp, #24]
	sub	r1, r9, r7
	ldr	r2, [r3, r0, lsl #2]
	ldr	r3, [sp, #40]
	ldr	ip, [r2]
	add	r0, sp, #28
	str	r1, [sp]
	ldr	r2, [sp, #36]
	add	r1, sp, #32
	str	ip, [sp, #28]
	bl	mext_calc_swap_extents
	cmp	r0, #0
	str	r0, [r6]
	bne	.L3
.L8:
	ldr	r0, [sp, #28]
	bl	le32_to_cpu
	ldr	r2, [sp, #40]
	cmp	r0, r2
	beq	.L5
	ldr	r0, [sp, #28]
	ldr	r8, [r5]
	str	r2, [sp, #12]
	bl	le32_to_cpu
	ldr	r2, [sp, #12]
	mov	r3, r0
	ldr	r1, .L29+4
	mov	r0, r8
	bl	ext4_error
	ldr	r3, .L29+8
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r6]
	b	.L3
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	.LC0
	.word	EIO
	.size	mext_replace_branches, .-mext_replace_branches
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
