	.file	"extr_msdosfs_lookup.c_msdosfs_lookup_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	msdosfs_lookup_, @function
msdosfs_lookup_:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rax, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, -1
	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, 216
	.cfi_def_cfa_offset 272
	mov	QWORD PTR 48[rsp], rdi
	mov	QWORD PTR 40[rsp], rsi
	mov	QWORD PTR 16[rsp], rdx
	mov	QWORD PTR 120[rsp], rcx
	mov	rdx, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rdx
	xor	edx, edx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	mov	QWORD PTR 168[rsp], 0
	mov	DWORD PTR 84[rsp], edx
	mov	DWORD PTR 60[rsp], eax
	call	VTODE@PLT
	mov	DWORD PTR 36[rsp], 1
	mov	QWORD PTR 64[rsp], rax
	mov	r15, QWORD PTR 24[rax]
	lea	rax, 188[rsp]
	mov	DWORD PTR 12[rsp], 1
	mov	DWORD PTR 32[rsp], 0
	mov	QWORD PTR 72[rsp], rax
	mov	DWORD PTR 56[rsp], r14d
.L2:
	mov	rax, QWORD PTR 40[rsp]
	test	rax, rax
	je	.L3
	mov	QWORD PTR [rax], 0
.L3:
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR 48[rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR VV_ROOT[rip], eax
	je	.L4
	cmp	BYTE PTR [rdi], 46
	jne	.L4
	cmp	edx, 1
	je	.L5
	cmp	edx, 2
	jne	.L4
	cmp	BYTE PTR 1[rdi], 46
	je	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 72[rsp]
	xor	ecx, ecx
	mov	r8, r15
	call	unix2dosfn@PLT
	cmp	eax, 2
	je	.L7
	cmp	eax, 3
	je	.L8
	test	eax, eax
	je	.L115
.L9:
	mov	ebx, DWORD PTR 36[rsp]
	mov	eax, DWORD PTR [r15]
	mov	edx, 1
	and	eax, DWORD PTR MSDOSFSMNT_SHORTNAME[rip]
	mov	rax, QWORD PTR 16[rsp]
	cmovne	ebx, edx
	cmove	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 16[rax]
	mov	rdi, QWORD PTR 8[rax]
	mov	DWORD PTR 36[rsp], ebx
	mov	r12d, edx
	mov	DWORD PTR 12[rsp], edx
	call	winLenFixup@PLT
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR 60[rsp]
	cmp	DWORD PTR CREATE[rip], eax
	je	.L12
	cmp	DWORD PTR RENAME[rip], eax
	je	.L12
.L13:
	lea	rbx, 140[rsp]
	mov	r14d, r12d
	xor	ebp, ebp
	mov	QWORD PTR 160[rsp], 0
	mov	rdi, rbx
	mov	r12, rbx
	call	mbnambuf_init@PLT
	lea	rax, 152[rsp]
	mov	DWORD PTR 80[rsp], 0
	mov	QWORD PTR 104[rsp], rax
	lea	rax, 148[rsp]
	mov	QWORD PTR 96[rsp], rax
	lea	rax, 144[rsp]
	mov	QWORD PTR 88[rsp], rax
	lea	rax, 168[rsp]
	mov	QWORD PTR 112[rsp], rax
.L31:
	mov	r8, QWORD PTR 104[rsp]
	mov	rcx, QWORD PTR 96[rsp]
	mov	rdx, QWORD PTR 88[rsp]
	mov	esi, DWORD PTR 80[rsp]
	mov	rdi, QWORD PTR 64[rsp]
	call	pcbmap@PLT
	test	eax, eax
	jne	.L116
	mov	edi, DWORD PTR 16[r15]
	mov	r8, QWORD PTR 112[rsp]
	mov	ecx, DWORD PTR NOCRED[rip]
	mov	edx, DWORD PTR 152[rsp]
	mov	esi, DWORD PTR 144[rsp]
	call	bread@PLT
	test	eax, eax
	jne	.L109
	mov	ecx, DWORD PTR 152[rsp]
	mov	rdi, QWORD PTR 168[rsp]
	test	ecx, ecx
	jle	.L16
	xor	ebx, ebx
	mov	rax, r12
	mov	r11d, DWORD PTR 56[rsp]
	mov	r12d, r14d
	mov	r14d, ebx
	mov	rbx, rax
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, 0
	cmp	DWORD PTR 12[rsp], r12d
	cmovg	r12d, eax
	mov	eax, DWORD PTR ATTR_WIN95[rip]
	cmp	DWORD PTR 8[r13], eax
	jne	.L22
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR MSDOSFSMNT_SHORTNAME[rip], eax
	je	.L117
	.p2align 4,,10
	.p2align 3
.L20:
	add	r14d, 24
	add	ebp, 24
	cmp	r14d, DWORD PTR 152[rsp]
	jge	.L118
.L30:
	movsx	r13, r14d
	add	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR SLOT_EMPTY[rip]
	je	.L17
	cmp	rax, QWORD PTR SLOT_DELETED[rip]
	jne	.L18
.L17:
	mov	rdi, rbx
	call	mbnambuf_init@PLT
	cmp	DWORD PTR 12[rsp], r12d
	jle	.L19
	mov	DWORD PTR 32[rsp], ebp
	add	r12d, 1
.L19:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR 168[rsp]
	mov	rcx, QWORD PTR SLOT_EMPTY[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L119
	mov	r11d, -1
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	ecx, r11d
	mov	r8, r15
	mov	rdi, rbx
	mov	rsi, QWORD PTR 8[rax]
	call	winChkName@PLT
	mov	r11d, eax
	cmp	eax, -2
	je	.L112
	mov	eax, DWORD PTR 8[r13]
	and	eax, DWORD PTR ATTR_VOLUME[rip]
	mov	DWORD PTR 28[rsp], eax
	jne	.L112
	mov	rdi, QWORD PTR 0[r13]
	mov	DWORD PTR 56[rsp], r11d
	call	winChksum@PLT
	mov	r11d, DWORD PTR 56[rsp]
	cmp	eax, r11d
	je	.L25
	mov	edx, DWORD PTR 36[rsp]
	test	edx, edx
	je	.L112
	mov	rsi, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR 72[rsp]
	mov	edx, 11
	mov	DWORD PTR 56[rsp], r11d
	call	bcmp@PLT
	mov	r11d, DWORD PTR 56[rsp]
	test	rax, rax
	jne	.L112
	mov	rax, QWORD PTR 64[rsp]
	mov	DWORD PTR 56[rsp], r11d
	mov	ebx, r14d
	mov	DWORD PTR 4[rax], ebp
	xor	eax, eax
.L54:
	mov	rdx, QWORD PTR 64[rsp]
	mov	edi, DWORD PTR 16[r13]
	mov	DWORD PTR 8[rdx], eax
	mov	eax, DWORD PTR 8[r13]
	and	eax, DWORD PTR ATTR_DIRECTORY[rip]
	mov	r14d, eax
	call	getushort@PLT
	mov	rdi, r15
	mov	r12d, eax
	call	FAT32@PLT
	test	rax, rax
	jne	.L28
.L113:
	mov	eax, DWORD PTR MSDOSFSROOT[rip]
	test	r14d, r14d
	je	.L38
	mov	DWORD PTR 148[rsp], r12d
	cmp	r12d, eax
	jne	.L39
.L55:
	mov	eax, DWORD PTR MSDOSFSROOT_OFS[rip]
	mov	DWORD PTR 28[rsp], eax
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L112:
	mov	rdi, QWORD PTR 168[rsp]
	mov	r11d, -1
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L117:
	mov	edx, r11d
	mov	rdi, rbx
	mov	rcx, r15
	mov	rsi, r13
	call	win2unixfn@PLT
	mov	rdi, QWORD PTR 168[rsp]
	mov	r11d, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L118:
	mov	DWORD PTR 56[rsp], r11d
	mov	r14d, r12d
	mov	r12, rbx
.L16:
	call	brelse@PLT
	add	DWORD PTR 80[rsp], 1
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 84[rsp]
	mov	r12d, 0
	test	DWORD PTR ISLASTCN[rip], eax
	cmove	r12d, DWORD PTR 12[rsp]
	jmp	.L13
.L28:
	mov	edi, DWORD PTR 12[r13]
	call	getushort@PLT
	sal	eax, 16
	or	r12d, eax
	cmp	DWORD PTR 4[r15], r12d
	jne	.L113
	mov	r12d, DWORD PTR MSDOSFSROOT[rip]
	test	r14d, r14d
	jne	.L37
	mov	eax, r12d
	.p2align 4,,10
	.p2align 3
.L38:
	cmp	DWORD PTR 148[rsp], eax
	cmovne	ebp, ebx
	mov	DWORD PTR 28[rsp], ebp
.L39:
	mov	rdi, QWORD PTR 168[rsp]
	call	brelse@PLT
	mov	QWORD PTR 168[rsp], 0
.L6:
	mov	rdi, r15
	call	FAT32@PLT
	test	rax, rax
	je	.L40
	cmp	DWORD PTR MSDOSFSROOT[rip], r12d
	jne	.L40
	mov	r12d, DWORD PTR 4[r15]
	.p2align 4,,10
	.p2align 3
.L40:
	cmp	QWORD PTR 120[rsp], 0
	jne	.L120
	mov	eax, DWORD PTR 60[rsp]
	cmp	DWORD PTR DELETE[rip], eax
	je	.L121
	mov	eax, DWORD PTR 60[rsp]
	cmp	DWORD PTR RENAME[rip], eax
	je	.L122
.L43:
	mov	eax, DWORD PTR 84[rsp]
	test	DWORD PTR ISDOTDOT[rip], eax
	je	.L48
	mov	eax, DWORD PTR 148[rsp]
	mov	r8, QWORD PTR 40[rsp]
	lea	rdx, 180[rsp]
	mov	esi, DWORD PTR msdosfs_deget_dotdot[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	DWORD PTR 180[rsp], eax
	mov	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR 184[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rax]
	call	vn_vget_ino_gen@PLT
	test	eax, eax
	jne	.L123
	mov	rdx, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	xor	esi, esi
	lea	rcx, 156[rsp]
	call	msdosfs_lookup_
	test	eax, eax
	jne	.L124
	mov	rbx, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR [rbx]
	call	VTODE@PLT
	mov	edx, DWORD PTR 156[rsp]
	cmp	DWORD PTR 20[rax], edx
	je	.L51
	mov	rdi, QWORD PTR [rbx]
	call	vput@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ATTR_DIRECTORY[rip]
	mov	r12d, DWORD PTR MSDOSFSROOT[rip]
	mov	r14d, eax
	mov	eax, DWORD PTR MSDOSFSROOT_OFS[rip]
	mov	DWORD PTR 148[rsp], r12d
	mov	DWORD PTR 28[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L115:
	mov	r8d, DWORD PTR EINVAL[rip]
.L1:
	mov	rax, QWORD PTR 200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L125
	add	rsp, 216
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, r15
	mov	esi, DWORD PTR 16[rax]
	mov	rdi, QWORD PTR 8[rax]
	call	winSlotCnt@PLT
	mov	DWORD PTR 36[rsp], 0
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, r15
	mov	esi, DWORD PTR 16[rax]
	mov	rdi, QWORD PTR 8[rax]
	call	winSlotCnt@PLT
	add	eax, 1
	mov	DWORD PTR 12[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L121:
	mov	eax, DWORD PTR 84[rsp]
	test	DWORD PTR ISLASTCN[rip], eax
	je	.L43
	mov	eax, DWORD PTR 28[rsp]
	cmp	DWORD PTR MSDOSFSROOT_OFS[rip], eax
	mov	ebx, r12d
	je	.L46
	mov	rax, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR VWRITE[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 24[rax]
	mov	edx, DWORD PTR 28[rax]
	call	VOP_ACCESS@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 64[rsp]
	cmp	DWORD PTR 16[rax], ebx
	jne	.L45
	test	r14d, r14d
	jne	.L126
.L45:
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR 148[rsp]
	lea	rcx, 160[rsp]
	mov	rdi, r15
	call	deget@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 160[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	DETOV@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	r8d, DWORD PTR 12[rsp]
	mov	QWORD PTR [rdx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L119:
	call	brelse@PLT
.L15:
	test	r12d, r12d
	jne	.L32
	mov	DWORD PTR 32[rsp], ebp
	mov	r12d, 1
.L32:
	mov	eax, DWORD PTR 12[rsp]
	cmp	r12d, eax
	jl	.L127
.L33:
	mov	eax, DWORD PTR 60[rsp]
	cmp	DWORD PTR CREATE[rip], eax
	je	.L34
	cmp	DWORD PTR RENAME[rip], eax
	je	.L34
.L35:
	mov	r8d, DWORD PTR ENOENT[rip]
	jmp	.L1
.L34:
	mov	eax, DWORD PTR 84[rsp]
	test	DWORD PTR ISLASTCN[rip], eax
	je	.L35
	mov	rax, QWORD PTR 64[rsp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L35
	mov	rbx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR VWRITE[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR 28[rbx]
	call	VOP_ACCESS@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 64[rsp]
	mov	eax, DWORD PTR 32[rsp]
	mov	r8d, DWORD PTR EJUSTRETURN[rip]
	mov	DWORD PTR 4[rsi], eax
	mov	eax, DWORD PTR 12[rsp]
	sub	eax, 1
	mov	DWORD PTR 8[rsi], eax
	mov	eax, DWORD PTR SAVENAME[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 64[rsp]
	mov	esi, DWORD PTR 60[rsp]
	mov	DWORD PTR 56[rsp], r11d
	mov	ebx, r14d
	mov	DWORD PTR 4[rax], ebp
	mov	eax, DWORD PTR 12[rsp]
	sub	eax, 1
	cmp	DWORD PTR RENAME[rip], esi
	cmovne	eax, DWORD PTR 28[rsp]
	jmp	.L54
.L122:
	mov	eax, DWORD PTR 84[rsp]
	test	DWORD PTR ISLASTCN[rip], eax
	je	.L43
	mov	eax, DWORD PTR 28[rsp]
	cmp	DWORD PTR MSDOSFSROOT_OFS[rip], eax
	mov	ebx, r12d
	je	.L46
	mov	rax, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR VWRITE[rip]
	mov	rdi, QWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 24[rax]
	mov	edx, DWORD PTR 28[rax]
	call	VOP_ACCESS@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 64[rsp]
	cmp	DWORD PTR 16[rax], ebx
	jne	.L47
	mov	r8d, DWORD PTR EISDIR[rip]
	test	r14d, r14d
	jne	.L1
.L47:
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR 148[rsp]
	lea	rcx, 160[rsp]
	mov	rdi, r15
	call	deget@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 160[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	DETOV@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	r8d, DWORD PTR 12[rsp]
	mov	QWORD PTR [rsi], rax
	mov	eax, DWORD PTR SAVENAME[rip]
	or	DWORD PTR [rdx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L127:
	mov	edx, DWORD PTR 32[rsp]
	sub	eax, r12d
	lea	eax, [rax+rax*2]
	lea	eax, [rdx+rax*8]
	mov	DWORD PTR 32[rsp], eax
	jmp	.L33
.L37:
	mov	DWORD PTR 148[rsp], r12d
	jmp	.L55
.L116:
	cmp	DWORD PTR E2BIG[rip], eax
	mov	r12d, r14d
	mov	r8d, eax
	je	.L15
	jmp	.L1
.L109:
	mov	r8d, eax
	jmp	.L1
.L48:
	mov	rax, QWORD PTR 64[rsp]
	mov	esi, r12d
	cmp	DWORD PTR 16[rax], esi
	jne	.L52
	test	r14d, r14d
	jne	.L128
.L52:
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR 148[rsp]
	lea	rcx, 160[rsp]
	mov	rdi, r15
	call	deget@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 160[rsp]
	call	DETOV@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	QWORD PTR [rdx], rax
.L51:
	mov	rax, QWORD PTR 16[rsp]
	mov	r8d, DWORD PTR [rax]
	and	r8d, DWORD PTR MAKEENTRY[rip]
	je	.L1
	mov	rdx, rax
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR [rax]
	call	cache_enter@PLT
	xor	r8d, r8d
	jmp	.L1
.L124:
	mov	rbx, QWORD PTR 40[rsp]
	mov	DWORD PTR 12[rsp], eax
	mov	rdi, QWORD PTR [rbx]
	call	vput@PLT
	mov	QWORD PTR [rbx], 0
	mov	r8d, DWORD PTR 12[rsp]
	jmp	.L1
.L123:
	mov	r8d, eax
	mov	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR [rax], 0
	jmp	.L1
.L120:
	mov	eax, DWORD PTR 8[r15]
	mov	rdx, QWORD PTR 120[rsp]
	xor	r8d, r8d
	imul	eax, r12d
	add	eax, DWORD PTR 28[rsp]
	mov	DWORD PTR [rdx], eax
	jmp	.L1
.L46:
	mov	r8d, DWORD PTR EBUSY[rip]
	jmp	.L1
.L128:
	mov	rbx, QWORD PTR 48[rsp]
	mov	rdi, rbx
	call	VREF@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	QWORD PTR [rdx], rbx
	jmp	.L51
.L126:
	mov	rbx, QWORD PTR 48[rsp]
	mov	DWORD PTR 12[rsp], r8d
	mov	rdi, rbx
	call	VREF@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	r8d, DWORD PTR 12[rsp]
	mov	QWORD PTR [rax], rbx
	jmp	.L1
.L125:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	msdosfs_lookup_, .-msdosfs_lookup_
	.comm	msdosfs_deget_dotdot,4,4
	.comm	VWRITE,4,4
	.comm	VV_ROOT,4,4
	.comm	SLOT_EMPTY,8,8
	.comm	SLOT_DELETED,8,8
	.comm	SAVENAME,4,4
	.comm	RENAME,4,4
	.comm	NOCRED,4,4
	.comm	MSDOSFSROOT_OFS,4,4
	.comm	MSDOSFSROOT,4,4
	.comm	MSDOSFSMNT_SHORTNAME,4,4
	.comm	MAKEENTRY,4,4
	.comm	ISLASTCN,4,4
	.comm	ISDOTDOT,4,4
	.comm	ENOENT,4,4
	.comm	EJUSTRETURN,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	E2BIG,4,4
	.comm	DELETE,4,4
	.comm	CREATE,4,4
	.comm	ATTR_WIN95,4,4
	.comm	ATTR_VOLUME,4,4
	.comm	ATTR_DIRECTORY,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_msdosfs_lookup.c_msdosfs_lookup_.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msdosfs_lookup_, %function
msdosfs_lookup_:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #124
	str	r3, [sp, #60]
	ldr	r3, .L114
	str	r2, [sp, #8]
	str	r1, [sp, #28]
	ldr	r3, [r3]
	str	r3, [sp, #116]
	mov	r3,#0
	mov	r3, r2
	mov	r4, #0
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	str	r3, [sp, #36]
	str	r2, [sp, #56]
	str	r0, [sp, #32]
	str	r4, [sp, #88]
	bl	VTODE
	mov	r3, #1
	mvn	r9, #0
	ldr	fp, [r0, #24]
	ldr	r10, .L114+4
	str	r3, [sp, #52]
	str	r0, [sp, #44]
	str	r4, [sp, #20]
	str	r3, [sp, #24]
.L2:
	ldr	r2, [sp, #28]
	ldr	r1, [sp, #8]
	cmp	r2, #0
	movne	r3, #0
	strne	r3, [r2]
	ldr	r3, [sp, #32]
	ldr	r0, [r1, #8]
	ldr	r2, [r3]
	ldr	r3, .L114+8
	ldr	r3, [r3]
	tst	r2, r3
	ldr	r2, [r1, #12]
	beq	.L4
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
	cmp	r2, #1
	beq	.L5
	cmp	r2, #2
	bne	.L4
	ldrb	r3, [r0, #1]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L4
.L5:
	ldr	r5, .L114+12
	ldr	r3, .L114+16
	ldr	r2, .L114+20
	ldr	r6, [r5]
	ldr	r3, [r3]
	ldr	r7, [r2]
	str	r6, [sp, #76]
	str	r3, [sp, #12]
.L6:
	mov	r0, fp
	bl	FAT32
	cmp	r0, #0
	beq	.L40
	ldr	r3, [r5]
	cmp	r3, r6
	ldreq	r6, [fp, #4]
.L40:
	ldr	r3, [sp, #60]
	cmp	r3, #0
	bne	.L100
	ldr	r3, .L114+24
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L101
	ldr	r3, .L114+28
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L102
.L43:
	ldr	r3, .L114+32
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L48
	ldr	r2, [sp, #28]
	ldr	r3, .L114+36
	str	r2, [sp]
	ldr	r1, [r3]
	ldr	r0, [sp, #12]
	ldr	r3, [sp, #8]
	ldr	ip, [sp, #76]
	str	r0, [sp, #100]
	ldr	r3, [r3, #16]
	ldr	r0, [sp, #32]
	add	r2, sp, #96
	str	ip, [sp, #96]
	bl	vn_vget_ino_gen
	subs	r1, r0, #0
	bne	.L103
	ldr	r2, [sp, #8]
	ldr	r0, [sp, #32]
	add	r3, sp, #92
	bl	msdosfs_lookup_
	subs	r1, r0, #0
	bne	.L104
	ldr	r4, [sp, #28]
	ldr	r0, [r4]
	bl	VTODE
	ldr	r3, [sp, #92]
	ldr	r2, [r0, #20]
	cmp	r2, r3
	beq	.L51
	ldr	r0, [r4]
	bl	vput
	b	.L2
.L4:
	mov	r3, #0
	str	fp, [sp]
	add	r1, sp, #104
	bl	unix2dosfn
	cmp	r0, #2
	beq	.L7
	cmp	r0, #3
	beq	.L8
	cmp	r0, #0
	beq	.L105
.L9:
	ldr	r3, .L114+40
	ldr	r2, [fp]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r3, #1
	strne	r3, [sp, #52]
	strne	r3, [sp, #24]
	ldr	r3, [sp, #8]
	ldr	r1, [r3, #12]
	ldr	r0, [r3, #8]
	bl	winLenFixup
	ldr	r3, .L114+44
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	str	r0, [sp, #16]
	cmp	r3, r2
	beq	.L12
	ldr	r3, .L114+28
	ldr	r3, [r3]
	cmp	r3, r2
	ldrne	r7, [sp, #24]
	beq	.L12
.L13:
	mov	r3, #0
	add	r0, sp, #68
	mov	r8, r3
	str	r3, [sp, #84]
	str	r3, [sp, #48]
	bl	mbnambuf_init
	ldr	r6, .L114+48
.L31:
	add	r3, sp, #80
	str	r3, [sp]
	ldr	r1, [sp, #48]
	ldr	r0, [sp, #44]
	add	r3, sp, #76
	add	r2, sp, #72
	bl	pcbmap
	subs	r4, r0, #0
	bne	.L106
	add	r3, sp, #88
	ldr	r0, [fp, #12]
	str	r3, [sp]
	ldr	r3, .L114+52
	ldr	r2, [sp, #80]
	ldr	r3, [r3]
	ldr	r1, [sp, #72]
	bl	bread
	subs	r4, r0, #0
	bne	.L1
	ldr	lr, [sp, #80]
	ldr	ip, [sp, #88]
	cmp	lr, #0
	ble	.L16
	mov	r3, r9
	ldr	r9, [sp, #24]
	b	.L30
.L18:
	ldr	r2, .L114+56
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	cmp	r9, r7
	movgt	r7, #0
	cmp	r1, r2
	bne	.L22
	ldr	r2, .L114+40
	ldr	r1, [fp]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L107
.L20:
	add	r4, r4, #16
	cmp	lr, r4
	add	r8, r8, #16
	ble	.L108
.L30:
	ldr	r5, [ip]
	ldr	r1, [r6]
	ldr	r2, [r4, r5]
	add	r5, r4, r5
	ldr	r2, [r2]
	cmp	r2, r1
	beq	.L17
	ldr	r1, [r10]
	cmp	r2, r1
	bne	.L18
.L17:
	add	r0, sp, #68
	bl	mbnambuf_init
	ldr	r2, [r5]
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r9, r7
	strgt	r8, [sp, #20]
	addgt	r7, r7, #1
	cmp	r2, r3
	ldr	ip, [sp, #88]
	beq	.L109
	ldr	lr, [sp, #80]
	add	r4, r4, #16
	cmp	lr, r4
	mvn	r3, #0
	add	r8, r8, #16
	bgt	.L30
.L108:
	mov	r9, r3
.L16:
	mov	r0, ip
	bl	brelse
	ldr	r3, [sp, #48]
	add	r3, r3, #1
	str	r3, [sp, #48]
	b	.L31
.L22:
	ldr	r1, [sp, #8]
	str	fp, [sp]
	ldr	r2, [sp, #16]
	ldr	r1, [r1, #8]
	add	r0, sp, #68
	bl	winChkName
	cmn	r0, #2
	beq	.L98
	ldr	r2, .L114+60
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	ands	r2, r1, r2
	str	r2, [sp, #12]
	bne	.L98
	str	r0, [sp, #40]
	ldr	r0, [r5]
	bl	winChksum
	ldr	r3, [sp, #40]
	cmp	r0, r3
	beq	.L25
	ldr	r2, [sp, #52]
	cmp	r2, #0
	beq	.L98
	mov	r2, #11
	ldr	r1, [r5]
	add	r0, sp, #104
	str	r3, [sp, #40]
	bl	memcmp
	cmp	r0, #0
	ldr	r3, [sp, #40]
	bne	.L98
	mov	r9, r3
	ldr	r3, [sp, #44]
	str	r8, [r3, #4]
.L54:
	ldr	r2, .L114+20
	ldr	r3, [r5, #4]
	ldr	r7, [r2]
	ldr	r2, [sp, #44]
	and	r7, r7, r3
	str	r0, [r2, #8]
	ldr	r0, [r5, #12]
	bl	getushort
	mov	r6, r0
	mov	r0, fp
	bl	FAT32
	cmp	r0, #0
	bne	.L28
	ldr	r5, .L114+12
	ldr	r3, [r5]
.L29:
	cmp	r7, #0
	bne	.L110
.L38:
	ldr	r2, [sp, #76]
	cmp	r2, r3
	moveq	r4, r8
	str	r4, [sp, #12]
.L39:
	ldr	r0, [sp, #88]
	bl	brelse
	mov	r3, #0
	str	r3, [sp, #88]
	b	.L6
.L98:
	mvn	r3, #0
	ldr	ip, [sp, #88]
	ldr	lr, [sp, #80]
	b	.L20
.L107:
	mov	r2, r3
	mov	r1, r5
	mov	r3, fp
	add	r0, sp, #68
	bl	win2unixfn
	ldr	ip, [sp, #88]
	mov	r3, r0
	ldr	lr, [sp, #80]
	b	.L20
.L101:
	ldr	r3, .L114+64
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L43
	ldr	r3, .L114+16
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L46
	ldr	r0, [sp, #8]
	ldr	r2, .L114+68
	ldr	r3, [r0, #20]
	ldr	r1, [r2]
	ldr	r2, [r0, #24]
	ldr	r0, [sp, #32]
	bl	VOP_ACCESS
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #44]
	cmp	r7, #0
	ldr	r3, [r3, #16]
	sub	r6, r3, r6
	clz	r6, r6
	lsr	r6, r6, #5
	moveq	r6, #0
	cmp	r6, #0
	bne	.L111
	mov	r0, fp
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #76]
	add	r3, sp, #84
	bl	deget
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #84]
	bl	DETOV
	ldr	r3, [sp, #28]
	str	r0, [r3]
.L1:
	ldr	r3, .L114
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L112
	mov	r0, r4
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r3, .L114+64
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	tst	r2, r3
	ldr	r3, [sp, #24]
	movne	r7, #0
	moveq	r7, r3
	b	.L13
.L110:
	cmp	r6, r3
	str	r6, [sp, #76]
	bne	.L39
.L55:
	ldr	r3, .L114+16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	b	.L39
.L105:
	ldr	r3, .L114+72
	ldr	r4, [r3]
	b	.L1
.L8:
	ldr	r3, [sp, #8]
	mov	r2, fp
	ldr	r1, [r3, #12]
	ldr	r0, [r3, #8]
	bl	winSlotCnt
	mov	r3, #0
	str	r3, [sp, #52]
	add	r3, r0, #1
	str	r3, [sp, #24]
	b	.L9
.L7:
	ldr	r3, [sp, #8]
	mov	r2, fp
	ldr	r1, [r3, #12]
	ldr	r0, [r3, #8]
	bl	winSlotCnt
	add	r3, r0, #1
	str	r3, [sp, #24]
	b	.L9
.L109:
	mov	r0, ip
	bl	brelse
.L15:
	cmp	r7, #0
	moveq	r7, #1
	ldr	r3, [sp, #24]
	streq	r8, [sp, #20]
	cmp	r7, r3
	ldrlt	r2, [sp, #20]
	sublt	r3, r3, r7
	addlt	r3, r2, r3, lsl #4
	strlt	r3, [sp, #20]
	ldr	r3, .L114+44
	ldr	r2, [sp, #36]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L34
	ldr	r3, .L114+28
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L34
.L35:
	ldr	r3, .L114+76
	ldr	r4, [r3]
	b	.L1
.L25:
	ldr	r2, [sp, #44]
	mov	r9, r3
	ldr	r3, .L114+28
	str	r8, [r2, #4]
	ldr	r3, [r3]
	ldr	r2, [sp, #36]
	cmp	r3, r2
	beq	.L53
	ldr	r0, [sp, #12]
	b	.L54
.L28:
	ldr	r0, [r5, #8]
	bl	getushort
	ldr	r3, [fp, #4]
	orr	r6, r6, r0, lsl #16
	cmp	r3, r6
	ldr	r5, .L114+12
	beq	.L36
	ldr	r3, [r5]
	b	.L29
.L102:
	ldr	r3, .L114+64
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L43
	ldr	r3, .L114+16
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r3, r2
	beq	.L46
	ldr	r2, [sp, #8]
	ldr	r3, .L114+68
	ldr	r0, [sp, #32]
	ldr	r1, [r3]
	ldr	r3, [r2, #20]
	ldr	r2, [r2, #24]
	bl	VOP_ACCESS
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [sp, #44]
	cmp	r7, #0
	ldr	r3, [r3, #16]
	sub	r6, r3, r6
	clz	r6, r6
	lsr	r6, r6, #5
	moveq	r6, #0
	cmp	r6, #0
	ldrne	r3, .L114+80
	ldrne	r4, [r3]
	bne	.L1
	mov	r0, fp
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #76]
	add	r3, sp, #84
	bl	deget
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #84]
	bl	DETOV
	ldr	r1, [sp, #8]
	ldr	r2, .L114+84
	ldr	r3, [r1]
	ldr	r2, [r2]
	ldr	ip, [sp, #28]
	orr	r3, r3, r2
	str	r0, [ip]
	str	r3, [r1]
	b	.L1
.L36:
	ldr	r6, [r5]
	cmp	r7, #0
	moveq	r3, r6
	beq	.L38
	str	r6, [sp, #76]
	b	.L55
.L34:
	ldr	r3, .L114+64
	ldr	r2, [sp, #56]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L35
	ldr	r3, [sp, #44]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L35
	ldr	r5, [sp, #8]
	ldr	r3, .L114+68
	ldr	r0, [sp, #32]
	ldr	r1, [r3]
	ldr	r2, [r5, #24]
	ldr	r3, [r5, #20]
	bl	VOP_ACCESS
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L114+84
	ldr	ip, [sp, #44]
	ldr	r1, [r3]
	ldr	r3, [sp, #24]
	ldr	r2, [r5]
	sub	r3, r3, #1
	str	r3, [ip, #8]
	mov	r3, ip
	orr	r2, r2, r1
	ldr	ip, [sp, #20]
	ldr	r1, .L114+88
	str	ip, [r3, #4]
	ldr	r4, [r1]
	str	r2, [r5]
	b	.L1
.L53:
	ldr	r3, [sp, #24]
	sub	r0, r3, #1
	b	.L54
.L106:
	ldr	r3, .L114+92
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L15
	b	.L1
.L48:
	ldr	r3, [sp, #44]
	cmp	r7, #0
	ldr	r3, [r3, #16]
	sub	r6, r3, r6
	clz	r6, r6
	lsr	r6, r6, #5
	moveq	r6, #0
	cmp	r6, #0
	bne	.L113
	mov	r0, fp
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #76]
	add	r3, sp, #84
	bl	deget
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp, #84]
	bl	DETOV
	ldr	r3, [sp, #28]
	str	r0, [r3]
.L51:
	ldr	r3, .L114+96
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ands	r4, r1, r3
	beq	.L1
	ldr	r3, [sp, #28]
	ldr	r0, [sp, #32]
	ldr	r1, [r3]
	bl	cache_enter
	mov	r4, #0
	b	.L1
.L100:
	ldr	r3, [fp, #8]
	ldr	r2, [sp, #12]
	mov	r4, #0
	mla	r2, r3, r6, r2
	ldr	r3, [sp, #60]
	str	r2, [r3]
	b	.L1
.L104:
	ldr	r5, [sp, #28]
	mov	r4, r1
	ldr	r0, [r5]
	bl	vput
	mov	r3, #0
	str	r3, [r5]
	b	.L1
.L103:
	mov	r3, #0
	ldr	r2, [sp, #28]
	mov	r4, r1
	str	r3, [r2]
	b	.L1
.L46:
	ldr	r3, .L114+100
	ldr	r4, [r3]
	b	.L1
.L113:
	ldr	r4, [sp, #32]
	mov	r0, r4
	bl	VREF
	ldr	r2, [sp, #28]
	str	r4, [r2]
	b	.L51
.L112:
	bl	__stack_chk_fail
.L111:
	ldr	r5, [sp, #32]
	mov	r0, r5
	bl	VREF
	ldr	r3, [sp, #28]
	str	r5, [r3]
	b	.L1
.L115:
	.align	2
.L114:
	.word	.LC0
	.word	SLOT_DELETED
	.word	VV_ROOT
	.word	MSDOSFSROOT
	.word	MSDOSFSROOT_OFS
	.word	ATTR_DIRECTORY
	.word	DELETE
	.word	RENAME
	.word	ISDOTDOT
	.word	msdosfs_deget_dotdot
	.word	MSDOSFSMNT_SHORTNAME
	.word	CREATE
	.word	SLOT_EMPTY
	.word	NOCRED
	.word	ATTR_WIN95
	.word	ATTR_VOLUME
	.word	ISLASTCN
	.word	VWRITE
	.word	EINVAL
	.word	ENOENT
	.word	EISDIR
	.word	SAVENAME
	.word	EJUSTRETURN
	.word	E2BIG
	.word	MAKEENTRY
	.word	EBUSY
	.size	msdosfs_lookup_, .-msdosfs_lookup_
	.comm	msdosfs_deget_dotdot,4,4
	.comm	VWRITE,4,4
	.comm	VV_ROOT,4,4
	.comm	SLOT_EMPTY,4,4
	.comm	SLOT_DELETED,4,4
	.comm	SAVENAME,4,4
	.comm	RENAME,4,4
	.comm	NOCRED,4,4
	.comm	MSDOSFSROOT_OFS,4,4
	.comm	MSDOSFSROOT,4,4
	.comm	MSDOSFSMNT_SHORTNAME,4,4
	.comm	MAKEENTRY,4,4
	.comm	ISLASTCN,4,4
	.comm	ISDOTDOT,4,4
	.comm	ENOENT,4,4
	.comm	EJUSTRETURN,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.comm	E2BIG,4,4
	.comm	DELETE,4,4
	.comm	CREATE,4,4
	.comm	ATTR_WIN95,4,4
	.comm	ATTR_VOLUME,4,4
	.comm	ATTR_DIRECTORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
