	.file	"extr_dir.c_sysv_find_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sysv_find_entry
	.type	sysv_find_entry, @function
sysv_find_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
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 16[rdi]
	mov	r15, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR 20[rsp], eax
	call	d_inode@PLT
	mov	rdi, rax
	mov	r12, rax
	call	dir_pages@PLT
	mov	QWORD PTR [rbx], 0
	mov	rdi, r12
	mov	r14, rax
	mov	QWORD PTR 8[rsp], rax
	call	SYSV_I@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, 0
	cmp	r14, rdx
	cmova	rax, rdx
	mov	QWORD PTR [rsp], rax
	mov	r14, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	add	r14, 1
	mov	eax, 0
	cmp	QWORD PTR 8[rsp], r14
	cmovbe	r14, rax
	cmp	QWORD PTR [rsp], r14
	je	.L17
.L9:
	mov	rdi, r12
	mov	rsi, r14
	call	dir_get_page@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	page_address@PLT
	mov	rbx, QWORD PTR PAGE_SIZE[rip]
	mov	r13, rax
	add	rbx, rax
	sub	rbx, QWORD PTR SYSV_DIRSIZE[rip]
	cmp	rax, rbx
	ja	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	je	.L5
	mov	ecx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR SYSV_NAMELEN[rip]
	mov	rdx, r15
	mov	edi, DWORD PTR 20[rsp]
	call	namecompare@PLT
	test	rax, rax
	jne	.L18
.L5:
	add	r13, 8
	cmp	rbx, r13
	jnb	.L7
.L4:
	mov	rdi, rbp
	call	dir_put_page@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	xor	r13d, r13d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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	rdi, r12
	call	SYSV_I@PLT
	mov	QWORD PTR [rax], r14
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], rbp
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sysv_find_entry, .-sysv_find_entry
	.comm	SYSV_NAMELEN,4,4
	.comm	SYSV_DIRSIZE,8,8
	.comm	PAGE_SIZE,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_dir.c_sysv_find_entry.c"
	.text
	.align	2
	.global	sysv_find_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysv_find_entry, %function
sysv_find_entry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, [r0]
	sub	sp, sp, #12
	mov	r4, r1
	ldr	fp, [r3, #4]
	ldr	r10, [r3, #8]
	str	r1, [sp, #4]
	bl	d_inode
	mov	r9, r0
	bl	dir_pages
	mov	r2, #0
	mov	r3, r0
	str	r2, [r4]
	mov	r0, r9
	mov	r4, r3
	str	r3, [sp]
	bl	SYSV_I
	ldr	r8, [r0]
	cmp	r4, r8
	movls	r8, #0
	mov	r5, r8
	b	.L9
.L3:
	ldr	r3, [sp]
	add	r5, r5, #1
	cmp	r3, r5
	movls	r5, #0
	cmp	r8, r5
	beq	.L20
.L9:
	mov	r1, r5
	mov	r0, r9
	bl	dir_get_page
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L3
	mov	r0, r6
	bl	page_address
	ldr	r3, .L22
	mov	r4, r0
	ldr	r7, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	sub	r7, r7, r3
	adds	r7, r0, r7
	bcs	.L4
.L7:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L22+8
	mov	r2, fp
	mov	r0, r10
	ldr	r3, [r4]
	ldr	r1, [r1]
	bl	namecompare
	cmp	r0, #0
	bne	.L21
.L5:
	add	r4, r4, #8
	cmp	r7, r4
	bcs	.L7
.L4:
	mov	r0, r6
	bl	dir_put_page
	b	.L3
.L20:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r9
	bl	SYSV_I
	str	r5, [r0]
	mov	r0, r4
	ldr	r3, [sp, #4]
	str	r6, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	.align	2
.L22:
	.word	PAGE_SIZE
	.word	SYSV_DIRSIZE
	.word	SYSV_NAMELEN
	.size	sysv_find_entry, .-sysv_find_entry
	.comm	SYSV_NAMELEN,4,4
	.comm	SYSV_DIRSIZE,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
