	.file	"extr_directory.c_test_SetCurrentDirectoryA.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\\some_dummy_dir"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"SetCurrentDirectoryA succeeded\n"
	.section	.rodata.str1.1
.LC2:
	.string	"wrong error %d\n"
.LC3:
	.string	"\\some_dummy\\subdir"
	.text
	.p2align 4
	.type	test_SetCurrentDirectoryA, @function
test_SetCurrentDirectoryA:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edi, edi
	call	SetLastError@PLT
	lea	rdi, .LC0[rip]
	call	SetCurrentDirectoryA@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_FILE_NOT_FOUND[rip], rax
	sete	dil
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ok@PLT
	lea	rdi, .LC3[rip]
	call	SetCurrentDirectoryA@PLT
	xor	edi, edi
	lea	rsi, .LC1[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	xor	eax, eax
	call	GetLastError@PLT
	mov	r12, rax
	xor	eax, eax
	call	GetLastError@PLT
	xor	edi, edi
	mov	rdx, r12
	cmp	QWORD PTR ERROR_PATH_NOT_FOUND[rip], rax
	sete	dil
	lea	rsi, .LC2[rip]
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ok@PLT
	.cfi_endproc
.LFE0:
	.size	test_SetCurrentDirectoryA, .-test_SetCurrentDirectoryA
	.comm	ERROR_PATH_NOT_FOUND,8,8
	.comm	ERROR_FILE_NOT_FOUND,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_directory.c_test_SetCurrentDirectoryA.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\some_dummy_dir\000"
	.align	2
.LC1:
	.ascii	"SetCurrentDirectoryA succeeded\012\000"
	.align	2
.LC2:
	.ascii	"wrong error %d\012\000"
	.align	2
.LC3:
	.ascii	"\\some_dummy\\subdir\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_SetCurrentDirectoryA, %function
test_SetCurrentDirectoryA:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, #0
	bl	SetLastError
	ldr	r0, .L4
	bl	SetCurrentDirectoryA
	clz	r0, r0
	ldr	r6, .L4+4
	lsr	r0, r0, #5
	mov	r1, r6
	bl	ok
	bl	GetLastError
	ldr	r3, .L4+8
	ldr	r5, .L4+12
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	bl	GetLastError
	lsr	r4, r4, #5
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	bl	ok
	ldr	r0, .L4+16
	bl	SetCurrentDirectoryA
	clz	r0, r0
	mov	r1, r6
	lsr	r0, r0, #5
	bl	ok
	bl	GetLastError
	ldr	r3, .L4+20
	ldr	r4, [r3]
	sub	r4, r4, r0
	clz	r4, r4
	bl	GetLastError
	lsr	r4, r4, #5
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	ok
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	ERROR_FILE_NOT_FOUND
	.word	.LC2
	.word	.LC3
	.word	ERROR_PATH_NOT_FOUND
	.size	test_SetCurrentDirectoryA, .-test_SetCurrentDirectoryA
	.comm	ERROR_PATH_NOT_FOUND,4,4
	.comm	ERROR_FILE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
