	.file	"extr_posix_w32.c_lstat_w.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lstat_w, @function
lstat_w:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GetFileExInfoStandard[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rdx, r13
	call	GetFileAttributesExW@PLT
	test	rax, rax
	je	.L2
	xor	eax, eax
	test	rbp, rbp
	je	.L1
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	git_win32__file_attribute_to_stat@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L30
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	GetLastError@PLT
	mov	edx, 1
	mov	r8d, eax
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	r8d, 128
	jne	.L5
	mov	rax, QWORD PTR EACCES[rip]
	cmp	QWORD PTR ENOENT[rip], rax
	sete	dl
.L5:
	mov	QWORD PTR errno[rip], rax
	test	ebx, ebx
	je	.L28
	test	dl, dl
	je	.L28
	mov	rdi, r12
	call	wcslen@PLT
	mov	rbx, rax
	.p2align 4,,10
	.p2align 3
.L13:
	sub	rbx, 1
	je	.L28
	lea	rbp, [r12+rbx*4]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rbp, 4
	sub	rbx, 1
	je	.L28
.L9:
	mov	edi, DWORD PTR 0[rbp]
	call	WIN32_IS_WSEP@PLT
	test	eax, eax
	je	.L10
	mov	DWORD PTR 0[rbp], 0
	mov	rdi, r12
	call	GetFileAttributesW@PLT
	cmp	DWORD PTR INVALID_FILE_ATTRIBUTES[rip], eax
	je	.L13
	test	DWORD PTR FILE_ATTRIBUTE_DIRECTORY[rip], eax
	jne	.L28
	mov	rax, QWORD PTR ENOTDIR[rip]
	mov	QWORD PTR errno[rip], rax
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, -1
	jmp	.L1
.L30:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lstat_w, .-lstat_w
	.comm	errno,8,8
	.comm	INVALID_FILE_ATTRIBUTES,4,4
	.comm	GetFileExInfoStandard,4,4
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	ENOTDIR,8,8
	.comm	ENOENT,8,8
	.comm	EACCES,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_posix_w32.c_lstat_w.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lstat_w, %function
lstat_w:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	ldr	r2, .L25
	sub	sp, sp, #8
	ldr	r3, .L25+4
	mov	r4, r1
	ldr	r1, [r2]
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	GetFileAttributesExW
	cmp	r0, #0
	beq	.L2
	cmp	r4, #0
	moveq	r0, r4
	beq	.L1
	mov	r2, r7
	mov	r1, sp
	mov	r0, r4
	bl	git_win32__file_attribute_to_stat
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	GetLastError
	cmp	r0, #128
	ldreq	r3, .L25+8
	ldreq	r2, .L25+12
	ldreq	r3, [r3]
	ldreq	r2, [r2]
	ldrne	r2, .L25+8
	subeq	r3, r3, r2
	clzeq	r3, r3
	movne	r3, #1
	lsreq	r3, r3, #5
	ldrne	r2, [r2]
	cmp	r5, #0
	moveq	r3, #0
	ldr	r9, .L25+16
	cmp	r3, #0
	str	r2, [r9]
	beq	.L7
	mov	r0, r7
	bl	wcslen
	mov	r8, #0
	mov	r4, r0
	ldr	r10, .L25+20
.L12:
	subs	r4, r4, #1
	beq	.L7
	add	r5, r7, r4, lsl #2
	b	.L8
.L9:
	subs	r4, r4, #1
	beq	.L7
.L8:
	ldr	r0, [r5]
	bl	WIN32_IS_WSEP
	cmp	r0, #0
	mov	r6, r5
	sub	r5, r5, #4
	beq	.L9
	mov	r0, r7
	str	r8, [r6]
	bl	GetFileAttributesW
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L12
	ldr	r3, .L25+24
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L7
	ldr	r3, .L25+28
	mvn	r0, #0
	ldr	r3, [r3]
	str	r3, [r9]
	b	.L1
.L7:
	mvn	r0, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	GetFileExInfoStandard
	.word	.LC0
	.word	ENOENT
	.word	EACCES
	.word	errno
	.word	INVALID_FILE_ATTRIBUTES
	.word	FILE_ATTRIBUTE_DIRECTORY
	.word	ENOTDIR
	.size	lstat_w, .-lstat_w
	.comm	errno,4,4
	.comm	INVALID_FILE_ATTRIBUTES,4,4
	.comm	GetFileExInfoStandard,4,4
	.comm	FILE_ATTRIBUTE_DIRECTORY,4,4
	.comm	ENOTDIR,4,4
	.comm	ENOENT,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
