	.file	"extr_ext2_lookup.c_ext2_add_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ext2_direnter: compact1"
.LC1:
	.string	"ext2_direnter: compact2"
	.text
	.p2align 4
	.globl	ext2_add_entry
	.type	ext2_add_entry, @function
ext2_add_entry:
.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
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 16[rsp], rsi
	mov	QWORD PTR 8[rsp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	VTOI@PLT
	mov	rsi, QWORD PTR [rax]
	mov	r13, rax
	movsx	rax, DWORD PTR 8[rax]
	add	rax, rsi
	cmp	rax, QWORD PTR 16[r13]
	jle	.L2
	mov	QWORD PTR 16[r13], rax
.L2:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rcx, 40[rsp]
	lea	rdx, 48[rsp]
	call	ext2_blkatoff@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	je	.L18
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	mov	eax, DWORD PTR 24[rsp]
	add	rsp, 72
	.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
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 16[rax]
	call	EXT2_DIR_REC_LEN@PLT
	mov	rbp, QWORD PTR 48[rsp]
	mov	DWORD PTR 28[rsp], eax
	mov	edi, DWORD PTR 16[rbp]
	call	EXT2_DIR_REC_LEN@PLT
	mov	ebx, DWORD PTR 0[rbp]
	mov	r14d, eax
	mov	r12d, ebx
	sub	r12d, eax
	cmp	ebx, DWORD PTR 8[r13]
	jl	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	rdx, r14d
	mov	DWORD PTR 0[rbp], r14d
	add	rbp, rdx
.L6:
	mov	edi, DWORD PTR 16[r15]
	call	EXT2_DIR_REC_LEN@PLT
	mov	edi, r15d
	mov	r14d, eax
	mov	eax, DWORD PTR [r15]
	mov	edx, r14d
	mov	esi, eax
	add	ebx, eax
	sub	esi, r14d
	add	r12d, esi
	mov	esi, ebp
	call	bcopy@PLT
	cmp	DWORD PTR 8[r13], ebx
	jle	.L4
.L7:
	movsx	rcx, ebx
	add	rcx, QWORD PTR 48[rsp]
	cmp	QWORD PTR 8[rbp], 0
	mov	r15, rcx
	jne	.L20
	add	r12d, r14d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR 8[rbp], 0
	jne	.L8
	add	r12d, r14d
	cmp	r12d, DWORD PTR 28[rsp]
	jl	.L21
.L9:
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [rax], r12d
.L10:
	mov	edx, DWORD PTR 28[rsp]
	mov	edi, DWORD PTR 16[rsp]
	mov	esi, ebp
	call	bcopy@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax]
	call	ext2_dirent_csum_set@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	DOINGASYNC@PLT
	mov	rdi, QWORD PTR 40[rsp]
	test	rax, rax
	je	.L12
	call	bdwrite@PLT
.L13:
	mov	eax, DWORD PTR IN_CHANGE[rip]
	or	eax, DWORD PTR IN_UPDATE[rip]
	or	DWORD PTR 24[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	DWORD PTR 28[rsp], r12d
	jg	.L22
.L11:
	mov	rax, QWORD PTR 16[rsp]
	movsx	rdx, r14d
	mov	DWORD PTR [rax], r12d
	mov	DWORD PTR 0[rbp], r14d
	add	rbp, rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	call	bwrite@PLT
	mov	DWORD PTR 24[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC1[rip]
	call	panic@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC0[rip]
	call	panic@PLT
	jmp	.L9
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ext2_add_entry, .-ext2_add_entry
	.comm	IN_UPDATE,4,4
	.comm	IN_CHANGE,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_ext2_lookup.c_ext2_add_entry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ext2_direnter: compact1\000"
	.align	2
.LC1:
	.ascii	"ext2_direnter: compact2\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ext2_add_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	ext2_add_entry, %function
ext2_add_entry:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L22
	sub	sp, sp, #28
	str	r1, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r9, r0
	bl	VTOI
	ldr	r2, [r0, #8]
	ldm	r0, {r1, r3}
	add	r3, r1, r3
	cmp	r3, r2
	strgt	r3, [r0, #8]
	mov	r7, r0
	add	r3, sp, #12
	mov	r0, r9
	add	r2, sp, #16
	bl	ext2_blkatoff
	subs	r8, r0, #0
	beq	.L18
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, [sp]
	ldr	r0, [r3, #8]
	bl	EXT2_DIR_REC_LEN
	ldr	fp, [sp, #16]
	str	r0, [sp, #4]
	ldr	r0, [fp, #8]
	bl	EXT2_DIR_REC_LEN
	ldr	r10, [fp]
	ldr	r2, [r7, #4]
	mov	r4, r0
	cmp	r10, r2
	sub	r6, r10, r0
	bge	.L4
.L7:
	ldr	r2, [fp, #4]
	ldr	r5, [sp, #16]
	cmp	r2, #0
	add	r5, r5, r10
	strne	r4, [fp], r4
	ldr	r0, [r5, #8]
	addeq	r6, r6, r4
	bl	EXT2_DIR_REC_LEN
	mov	r4, r0
	ldr	ip, [r5]
	mov	r2, r4
	sub	lr, ip, r4
	mov	r0, r5
	mov	r1, fp
	add	r10, r10, ip
	add	r6, r6, lr
	bl	bcopy
	ldr	r2, [r7, #4]
	cmp	r2, r10
	bgt	.L7
.L4:
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [sp, #4]
	add	r4, r6, r4
	cmp	r4, r3
	blt	.L20
.L9:
	ldr	r3, [sp]
	str	r4, [r3]
.L10:
	ldr	r2, [sp, #4]
	mov	r1, fp
	ldr	r0, [sp]
	bl	bcopy
	ldr	r3, [sp, #12]
	mov	r0, r7
	ldr	r1, [r3]
	bl	ext2_dirent_csum_set
	mov	r0, r9
	bl	DOINGASYNC
	cmp	r0, #0
	ldr	r0, [sp, #12]
	beq	.L12
	bl	bdwrite
.L13:
	ldr	r3, .L22+4
	ldr	r2, .L22+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r7, #12]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r3, [r7, #12]
	b	.L1
.L8:
	ldr	r3, [sp, #4]
	cmp	r3, r6
	bgt	.L21
.L11:
	ldr	r3, [sp]
	str	r6, [r3]
	str	r4, [fp], r4
	b	.L10
.L12:
	bl	bwrite
	mov	r8, r0
	b	.L13
.L21:
	ldr	r0, .L22+12
	bl	panic
	b	.L11
.L20:
	ldr	r0, .L22+16
	bl	panic
	b	.L9
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	IN_UPDATE
	.word	IN_CHANGE
	.word	.LC1
	.word	.LC0
	.size	ext2_add_entry, .-ext2_add_entry
	.comm	IN_UPDATE,4,4
	.comm	IN_CHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
