	.file	"extr_ext4_extents.c_ext4_ext_create_new_leaf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ext4_ext_create_new_leaf, @function
ext4_ext_create_new_leaf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbp, QWORD PTR [r9]
	mov	rax, QWORD PTR 96[rsp]
	mov	QWORD PTR [rsp], rdi
	mov	QWORD PTR 8[rsp], rsi
	mov	DWORD PTR 28[rsp], r8d
	mov	QWORD PTR 16[rsp], rax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r12
	call	ext_depth@PLT
	mov	ebx, eax
	cdqe
	lea	r14, 0[rbp+rax*8]
	test	ebx, ebx
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	sub	r14, 8
	sub	ebx, 1
	je	.L4
.L3:
	mov	rdi, r14
	call	EXT_HAS_FREE_INDEX@PLT
	test	rax, rax
	je	.L5
.L4:
	mov	rdi, r14
	call	EXT_HAS_FREE_INDEX@PLT
	test	rax, rax
	jne	.L19
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rsp]
	mov	ecx, r15d
	mov	rdx, r12
	call	ext4_ext_grow_indepth@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	rdi, r12
	mov	rdx, r13
	mov	rsi, rax
	call	ext4_find_extent@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	rdi, r12
	call	ext_depth@PLT
	cdqe
	mov	rax, QWORD PTR 0[rbp+rax*8]
	mov	rdx, QWORD PTR 8[rax]
	cmp	QWORD PTR [rax], rdx
	je	.L2
.L10:
	xor	eax, eax
.L7:
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L19:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	ecx, r15d
	mov	rdx, r12
	mov	r8, rbp
	push	rbx
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	r9, rbx
	call	ext4_ext_split@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR [rbx]
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR 28[rsp]
	mov	rdi, r12
	mov	rdx, r13
	mov	rsi, rax
	call	ext4_find_extent@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L10
.L17:
	add	rsp, 40
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	ext4_ext_create_new_leaf, .-ext4_ext_create_new_leaf
	.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_ext4_extents.c_ext4_ext_create_new_leaf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext4_ext_create_new_leaf, %function
ext4_ext_create_new_leaf:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r7, r1
	mov	r5, r2
	sub	sp, sp, #28
	mov	r8, r3
	ldr	r3, [sp, #64]
	ldr	r9, [sp, #68]
	str	r3, [sp, #20]
	ldr	r3, [sp, #72]
	ldr	r4, [r9]
	str	r3, [sp, #16]
.L2:
	mov	r0, r5
	bl	ext_depth
	cmp	r0, #0
	mov	r10, r0
	add	fp, r4, r0, lsl #2
	bgt	.L3
	b	.L4
.L5:
	subs	r10, r10, #1
	sub	fp, fp, #4
	beq	.L4
.L3:
	mov	r0, fp
	bl	EXT_HAS_FREE_INDEX
	cmp	r0, #0
	beq	.L5
.L4:
	mov	r0, fp
	bl	EXT_HAS_FREE_INDEX
	cmp	r0, #0
	bne	.L19
	mov	r3, r8
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	ext4_ext_grow_indepth
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #16]
	ldr	r0, [r3]
	bl	le32_to_cpu
	mov	r2, r9
	mov	r1, r0
	ldr	r3, [sp, #20]
	mov	r0, r5
	bl	ext4_find_extent
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	mov	r0, r5
	bl	ext_depth
	ldr	r3, [r4, r0, lsl #2]
	ldm	r3, {r2, r3}
	cmp	r2, r3
	beq	.L2
.L10:
	mov	r0, #0
.L7:
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	str	r10, [sp, #8]
	ldr	r10, [sp, #16]
	mov	r3, r8
	mov	r1, r7
	mov	r0, r6
	mov	r2, r5
	stm	sp, {r4, r10}
	bl	ext4_ext_split
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r10]
	bl	le32_to_cpu
	mov	r2, r9
	mov	r1, r0
	ldr	r3, [sp, #20]
	mov	r0, r5
	bl	ext4_find_extent
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L10
.L17:
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
	.size	ext4_ext_create_new_leaf, .-ext4_ext_create_new_leaf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
