	.file	"extr_dir.c_test_makepath.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"got '%s' for case %d\n"
.LC1:
	.string	"got '%s' for unicode case %d\n"
	.text
	.p2align 4
	.type	test_makepath, @function
test_makepath:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rbx, rsp
	add	rax, 15
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L3
.L85:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L85
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L86
.L4:
	mov	rcx, rax
	mov	rbx, rsp
	mov	rdx, rax
	mov	QWORD PTR -72[rbp], rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L6
.L87:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L87
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L88
.L7:
	mov	rcx, rax
	mov	rbx, rsp
	mov	rdx, rax
	mov	QWORD PTR -80[rbp], rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L9
.L89:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L89
.L9:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L10
	or	QWORD PTR -8[rsp+rdx], 0
.L10:
	mov	rcx, rax
	mov	rbx, rsp
	mov	rdx, rax
	mov	QWORD PTR -88[rbp], rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L12
.L90:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L90
.L12:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L13
	or	QWORD PTR -8[rsp+rdx], 0
.L13:
	mov	rcx, rax
	mov	rbx, rsp
	mov	rdx, rax
	mov	QWORD PTR -96[rbp], rsp
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L15
.L91:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L91
.L15:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L16
	or	QWORD PTR -8[rsp+rdx], 0
.L16:
	mov	rdx, rax
	mov	rbx, rsp
	and	rax, -4096
	mov	r12, rsp
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L18
.L92:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L92
.L18:
	mov	rax, rdx
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	je	.L19
	or	QWORD PTR -8[rsp+rax], 0
.L19:
	mov	rbx, rsp
	xor	r13d, r13d
	lea	r15, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR makepath_cases[rip]
	call	ARRAY_SIZE@PLT
	cmp	r13d, eax
	jnb	.L93
	mov	eax, r13d
	mov	edx, DWORD PTR MAX_PATH[rip]
	mov	esi, 88
	mov	rdi, rbx
	lea	r10, [rax+rax*2]
	sal	r10, 4
	add	r10, QWORD PTR makepath_cases[rip]
	mov	r14, r10
	call	memset@PLT
	mov	rsi, QWORD PTR [r14]
	test	rsi, rsi
	je	.L21
	mov	rdi, rbx
	call	strcpy@PLT
.L21:
	mov	rax, QWORD PTR USE_BUFF[rip]
	mov	r8, QWORD PTR 32[r14]
	mov	rdi, rbx
	mov	rcx, QWORD PTR 24[r14]
	mov	rdx, QWORD PTR 16[r14]
	cmp	r8, rax
	mov	rsi, QWORD PTR 8[r14]
	cmove	r8, rbx
	cmp	rax, rcx
	cmove	rcx, rbx
	cmp	rax, rdx
	cmove	rdx, rbx
	cmp	rax, rsi
	cmove	rsi, rbx
	call	_makepath@PLT
	mov	eax, DWORD PTR MAX_PATH[rip]
	mov	rsi, rbx
	sub	eax, 1
	cdqe
	mov	BYTE PTR [rbx+rax], 0
	mov	edi, DWORD PTR 40[r14]
	call	strcmp@PLT
	xor	edi, edi
	mov	rdx, rbx
	mov	ecx, r13d
	test	eax, eax
	mov	rsi, r15
	sete	dil
	call	ok@PLT
	mov	rdx, QWORD PTR 8[r14]
	mov	rax, QWORD PTR USE_BUFF[rip]
	cmp	rdx, rax
	je	.L26
	mov	r9d, DWORD PTR MAX_PATH[rip]
	mov	r8, QWORD PTR -72[rbp]
	mov	ecx, -1
	xor	esi, esi
	mov	edi, DWORD PTR CP_ACP[rip]
	call	MultiByteToWideChar@PLT
	mov	rax, QWORD PTR USE_BUFF[rip]
.L26:
	mov	rdx, QWORD PTR 16[r14]
	mov	r9d, DWORD PTR MAX_PATH[rip]
	cmp	rdx, rax
	je	.L27
	mov	r8, QWORD PTR -80[rbp]
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	ecx, -1
	xor	esi, esi
	call	MultiByteToWideChar@PLT
	mov	rax, QWORD PTR USE_BUFF[rip]
	mov	r9d, DWORD PTR MAX_PATH[rip]
.L27:
	mov	rdx, QWORD PTR 24[r14]
	cmp	rdx, rax
	je	.L28
	mov	r8, QWORD PTR -88[rbp]
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	ecx, -1
	xor	esi, esi
	call	MultiByteToWideChar@PLT
	mov	rax, QWORD PTR USE_BUFF[rip]
	mov	r9d, DWORD PTR MAX_PATH[rip]
.L28:
	mov	rdx, QWORD PTR 32[r14]
	cmp	rdx, rax
	je	.L29
	mov	r8, QWORD PTR -96[rbp]
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	ecx, -1
	xor	esi, esi
	call	MultiByteToWideChar@PLT
	mov	r9d, DWORD PTR MAX_PATH[rip]
.L29:
	mov	edx, r9d
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	r9d, DWORD PTR MAX_PATH[rip]
	test	r9d, r9d
	je	.L30
	lea	edx, -1[r9]
	mov	rax, r12
	lea	rdx, 1[r12+rdx]
	.p2align 4,,10
	.p2align 3
.L31:
	mov	BYTE PTR [rax], 88
	add	rax, 1
	cmp	rax, rdx
	jne	.L31
.L30:
	mov	rdx, QWORD PTR [r14]
	test	rdx, rdx
	je	.L32
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r8, r12
	mov	ecx, -1
	xor	esi, esi
	call	MultiByteToWideChar@PLT
.L32:
	mov	r8, QWORD PTR 32[r14]
	mov	rax, QWORD PTR USE_BUFF[rip]
	cmp	r8, rax
	je	.L44
	mov	rcx, QWORD PTR 24[r14]
	test	r8, r8
	cmovne	r8, QWORD PTR -96[rbp]
	cmp	rax, rcx
	je	.L45
.L94:
	mov	rdx, QWORD PTR 16[r14]
	test	rcx, rcx
	cmovne	rcx, QWORD PTR -88[rbp]
	cmp	rax, rdx
	je	.L46
.L95:
	mov	rsi, QWORD PTR 8[r14]
	test	rdx, rdx
	cmovne	rdx, QWORD PTR -80[rbp]
	cmp	rax, rsi
	je	.L47
.L96:
	test	rsi, rsi
	cmovne	rsi, QWORD PTR -72[rbp]
.L36:
	mov	rdi, r12
	call	_wmakepath@PLT
	mov	edi, DWORD PTR CP_ACP[rip]
	mov	r8, rbx
	xor	esi, esi
	mov	r9d, DWORD PTR MAX_PATH[rip]
	mov	ecx, -1
	mov	rdx, r12
	lea	eax, -1[r9]
	cdqe
	mov	BYTE PTR [r12+rax], 0
	push	0
	push	0
	call	WideCharToMultiByte@PLT
	mov	edi, DWORD PTR 40[r14]
	mov	rsi, rbx
	call	strcmp@PLT
	xor	edi, edi
	mov	ecx, r13d
	mov	rdx, rbx
	test	eax, eax
	lea	rsi, .LC1[rip]
	sete	dil
	add	r13d, 1
	call	ok@PLT
	pop	rax
	pop	rdx
	jmp	.L20
.L86:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L88:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rcx, QWORD PTR 24[r14]
	mov	r8, r12
	cmp	rax, rcx
	jne	.L94
.L45:
	mov	rdx, QWORD PTR 16[r14]
	mov	rcx, r12
	cmp	rax, rdx
	jne	.L95
.L46:
	mov	rsi, QWORD PTR 8[r14]
	mov	rdx, r12
	cmp	rax, rsi
	jne	.L96
.L47:
	mov	rsi, r12
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L93:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L97
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L97:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_makepath, .-test_makepath
	.comm	makepath_cases,8,8
	.comm	USE_BUFF,8,8
	.comm	MAX_PATH,4,4
	.comm	CP_ACP,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_dir.c_test_makepath.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"got '%s' for case %d\012\000"
	.align	2
.LC1:
	.ascii	"got '%s' for unicode case %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_makepath, %function
test_makepath:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	mov	r6, #0
	mov	r10, #88
	ldr	r3, .L52
	ldr	r7, .L52+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r3, [r7]
	ldr	r9, .L52+8
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r2, sp, #16
	sub	sp, sp, r3
	str	r2, [fp, #-56]
	add	r2, sp, #16
	sub	sp, sp, r3
	str	r2, [fp, #-60]
	add	r2, sp, #16
	sub	sp, sp, r3
	str	r2, [fp, #-64]
	add	r2, sp, #16
	sub	sp, sp, r3
	add	r8, sp, #16
	sub	sp, sp, r3
	str	r2, [fp, #-68]
	add	r5, sp, #16
.L2:
	ldr	r3, .L52+12
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	cmp	r6, r0
	bcs	.L50
	ldr	r3, .L52+12
	mov	r1, #88
	ldr	r4, [r3]
	ldr	r2, [r7]
	add	r3, r6, r6, lsl #1
	mov	r0, r5
	str	r4, [fp, #-52]
	str	r3, [fp, #-48]
	bl	memset
	add	r2, r6, r6, lsl #1
	ldr	r1, [r4, r2, lsl #3]
	add	r4, r4, r2, lsl #3
	cmp	r1, #0
	beq	.L3
	mov	r0, r5
	bl	strcpy
.L3:
	ldr	r0, [r9]
	ldr	ip, [r4, #16]
	ldr	r1, [r4, #4]
	cmp	r0, ip
	moveq	ip, r5
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r1, r0
	moveq	r1, r5
	cmp	r0, r2
	moveq	r2, r5
	cmp	r0, r3
	moveq	r3, r5
	str	ip, [sp]
	mov	r0, r5
	bl	_makepath
	mov	r2, #0
	ldr	r3, [r7]
	mov	r1, r5
	add	r3, r5, r3
	strb	r2, [r3, #-1]
	ldr	r0, [r4, #20]
	bl	strcmp
	clz	r0, r0
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L52+16
	lsr	r0, r0, #5
	bl	ok
	ldr	r2, [r4, #4]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [r7]
	ldr	r1, [fp, #-56]
	ldr	r0, .L52+20
	stm	sp, {r1, r3}
	mvn	r3, #0
	mov	r1, #0
	ldr	r0, [r0]
	bl	MultiByteToWideChar
	ldr	r3, [r9]
.L8:
	ldr	r2, [r4, #8]
	ldr	r1, [r7]
	cmp	r2, r3
	beq	.L9
	ldr	r3, [fp, #-60]
	ldr	r0, .L52+20
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, #0
	mvn	r3, #0
	ldr	r0, [r0]
	bl	MultiByteToWideChar
	ldr	r3, [r9]
	ldr	r1, [r7]
.L9:
	ldr	r2, [r4, #12]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-64]
	ldr	r0, .L52+20
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, #0
	mvn	r3, #0
	ldr	r0, [r0]
	bl	MultiByteToWideChar
	ldr	r3, [r9]
	ldr	r1, [r7]
.L10:
	ldr	r2, [r4, #16]
	cmp	r2, r3
	beq	.L11
	ldr	r3, [fp, #-68]
	ldr	r0, .L52+20
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r1, #0
	mvn	r3, #0
	ldr	r0, [r0]
	bl	MultiByteToWideChar
	ldr	r1, [r7]
.L11:
	mov	r2, r1
	mov	r0, r5
	mov	r1, #0
	bl	memset
	ldr	r1, [r7]
	cmp	r1, #0
	beq	.L12
	sub	r2, r1, #1
	add	r2, r8, r2
	sub	r3, r8, #1
.L13:
	strb	r10, [r3, #1]!
	cmp	r3, r2
	bne	.L13
.L12:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-48]
	ldr	r2, [r3, r2, lsl #3]
	cmp	r2, #0
	beq	.L14
	ldr	r0, .L52+20
	str	r1, [sp, #4]
	str	r8, [sp]
	mvn	r3, #0
	mov	r1, #0
	ldr	r0, [r0]
	bl	MultiByteToWideChar
.L14:
	ldr	r1, [r4, #4]
	ldr	ip, [r9]
	cmp	r1, ip
	moveq	r1, r8
	beq	.L15
	ldr	r3, [fp, #-56]
	cmp	r1, #0
	movne	r1, r3
.L15:
	ldr	r2, [r4, #8]
	cmp	ip, r2
	moveq	r2, r8
	beq	.L16
	ldr	r3, [fp, #-60]
	cmp	r2, #0
	movne	r2, r3
.L16:
	ldr	r3, [r4, #12]
	cmp	ip, r3
	moveq	r3, r8
	beq	.L17
	ldr	r0, [fp, #-64]
	cmp	r3, #0
	movne	r3, r0
.L17:
	ldr	r0, [r4, #16]
	cmp	ip, r0
	moveq	r0, r8
	beq	.L18
	ldr	ip, [fp, #-68]
	cmp	r0, #0
	movne	r0, ip
.L18:
	str	r0, [sp]
	mov	r0, r8
	bl	_wmakepath
	mov	r0, #0
	ldr	r1, [r7]
	mvn	r3, #0
	add	r2, r8, r1
	strb	r0, [r2, #-1]
	str	r1, [sp, #4]
	mov	r1, #0
	ldr	r0, .L52+20
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r5, [sp]
	mov	r2, r8
	ldr	r0, [r0]
	bl	WideCharToMultiByte
	mov	r1, r5
	ldr	r0, [r4, #20]
	bl	strcmp
	clz	r0, r0
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L52+24
	lsr	r0, r0, #5
	bl	ok
	add	r6, r6, #1
	b	.L2
.L50:
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L51
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	bl	__stack_chk_fail
.L53:
	.align	2
.L52:
	.word	.LC2
	.word	MAX_PATH
	.word	USE_BUFF
	.word	makepath_cases
	.word	.LC0
	.word	CP_ACP
	.word	.LC1
	.size	test_makepath, .-test_makepath
	.comm	makepath_cases,4,4
	.comm	USE_BUFF,4,4
	.comm	MAX_PATH,4,4
	.comm	CP_ACP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
