	.file	"extr_winefile.c_prompt_target.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prompt_target, @function
prompt_target:
.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
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L38:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L38
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L39
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rsp
	mov	r14, rsp
	call	get_path@PLT
	mov	ecx, DWORD PTR DestinationDlgProc[rip]
	mov	edi, DWORD PTR IDD_SELECT_DESTINATION[rip]
	mov	r15d, DWORD PTR 8[rbx]
	mov	DWORD PTR -68[rbp], ecx
	call	MAKEINTRESOURCEW@PLT
	mov	ecx, DWORD PTR -68[rbp]
	mov	r8d, esp
	mov	edx, r15d
	mov	edi, DWORD PTR Globals[rip]
	mov	esi, eax
	call	DialogBoxParamW@PLT
	cmp	rax, QWORD PTR IDOK[rip]
	je	.L5
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L40
	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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r13
	call	get_path@PLT
	cmp	BYTE PTR [rsp], 47
	je	.L7
	cmp	BYTE PTR 1[rsp], 58
	jne	.L41
.L7:
	mov	rdi, r12
	mov	rsi, r14
	call	lstrcpyW@PLT
	mov	rdi, r14
	call	is_directory@PLT
	test	rax, rax
	jne	.L42
.L10:
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, r12
	mov	rdi, QWORD PTR [rax]
	call	get_path@PLT
	mov	rdi, r12
	call	lstrlenW@PLT
	movsx	rdi, eax
	movzx	edx, BYTE PTR -1[r12+rdi]
	cmp	dl, 92
	je	.L8
	cmp	dl, 47
	je	.L8
	mov	BYTE PTR [r12+rdi], 47
	lea	edi, 1[rax]
	movsx	rdi, edi
.L8:
	add	rdi, r12
	mov	rsi, r14
	call	lstrcpyW@PLT
	mov	rdi, r14
	call	is_directory@PLT
	test	rax, rax
	je	.L10
.L42:
	movsx	rax, DWORD PTR _MAX_FNAME[rip]
	mov	rcx, rsp
	mov	rbx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L12
.L43:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L43
.L12:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L13
	or	QWORD PTR -8[rsp+rdx], 0
.L13:
	movsx	rax, DWORD PTR _MAX_EXT[rip]
	mov	rcx, rsp
	mov	r15, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L15
.L44:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L44
.L15:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L16
	or	QWORD PTR -8[rsp+rdx], 0
.L16:
	mov	r8, rsp
	mov	rcx, r15
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r13
	call	_wsplitpath@PLT
	mov	r8, rsp
	mov	rcx, r15
	mov	rdx, r14
	lea	rsi, sAppend.1978[rip]
	mov	rdi, r12
	call	wsprintfW@PLT
	mov	rsp, rbx
	jmp	.L10
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	prompt_target, .-prompt_target
	.section	.rodata
	.align 8
	.type	sAppend.1978, @object
	.size	sAppend.1978, 8
sAppend.1978:
	.string	"%s/%s%s"
	.comm	_MAX_FNAME,4,4
	.comm	_MAX_EXT,4,4
	.comm	TRUE,4,4
	.comm	MAX_PATH,4,4
	.comm	IDOK,8,8
	.comm	IDD_SELECT_DESTINATION,4,4
	.comm	Globals,4,4
	.comm	FALSE,4,4
	.comm	DestinationDlgProc,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_winefile.c_prompt_target.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prompt_target, %function
prompt_target:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r3, .L26
	mov	r4, r0
	ldr	r3, [r3]
	mov	r7, r1
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r5, sp, #8
	ldr	r3, .L26+4
	mov	r1, r5
	ldr	r0, [r0]
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	get_path
	ldr	r2, .L26+8
	ldr	r3, .L26+12
	ldr	r0, [r2]
	ldr	r8, [r3]
	bl	MAKEINTRESOURCEW
	ldr	r3, .L26+16
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	mov	r0, r8
	str	r5, [sp]
	bl	DialogBoxParamW
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L26+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	mov	r1, r7
	ldr	r0, [r4]
	bl	get_path
	ldrb	r3, [sp, #8]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L4
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L24
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	lstrcpyW
	mov	r0, r5
	bl	is_directory
	cmp	r0, #0
	bne	.L25
.L7:
	ldr	r3, .L26+28
	ldr	r0, [r3]
	b	.L1
.L24:
	ldr	r3, [r4]
	mov	r1, r6
	ldr	r0, [r3]
	bl	get_path
	mov	r0, r6
	bl	lstrlenW
	mov	r3, r0
	add	r0, r6, r0
	ldrb	r2, [r0, #-1]	@ zero_extendqisi2
	mov	r1, r5
	cmp	r2, #92
	cmpne	r2, #47
	movne	r2, #47
	strbne	r2, [r6, r3]
	addne	r3, r3, #1
	addne	r0, r6, r3
	bl	lstrcpyW
	mov	r0, r5
	bl	is_directory
	cmp	r0, #0
	beq	.L7
.L25:
	mov	r2, #0
	mov	r4, sp
	ldr	r3, .L26+32
	ldr	r1, .L26+36
	ldr	r3, [r3]
	ldr	r1, [r1]
	add	r3, r3, #7
	bic	r3, r3, #7
	add	r1, r1, #7
	sub	sp, sp, r3
	bic	r1, r1, #7
	add	r8, sp, #8
	sub	sp, sp, r1
	add	r9, sp, #8
	mov	r1, r2
	mov	r3, r8
	str	r9, [sp]
	mov	r0, r7
	bl	_wsplitpath
	str	r9, [sp]
	mov	r3, r8
	mov	r2, r5
	mov	r0, r6
	ldr	r1, .L26+40
	bl	wsprintfW
	mov	sp, r4
	b	.L7
.L23:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	MAX_PATH
	.word	.LC0
	.word	IDD_SELECT_DESTINATION
	.word	Globals
	.word	DestinationDlgProc
	.word	IDOK
	.word	FALSE
	.word	TRUE
	.word	_MAX_FNAME
	.word	_MAX_EXT
	.word	.LANCHOR0
	.size	prompt_target, .-prompt_target
	.comm	_MAX_FNAME,4,4
	.comm	_MAX_EXT,4,4
	.comm	TRUE,4,4
	.comm	MAX_PATH,4,4
	.comm	IDOK,4,4
	.comm	IDD_SELECT_DESTINATION,4,4
	.comm	Globals,4,4
	.comm	FALSE,4,4
	.comm	DestinationDlgProc,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	sAppend.4262, %object
	.size	sAppend.4262, 8
sAppend.4262:
	.ascii	"%s/%s%s\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
