	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilenameU2A_FitOrFail          ## -- Begin function FilenameU2A_FitOrFail
	.p2align	4, 0x90
_FilenameU2A_FitOrFail:                 ## @FilenameU2A_FitOrFail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	cmovlq	%rax, %rbx
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_bIsFileApiAnsi@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_RtlUnicodeStringToAnsiSize
	testq	%r15, %r15
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	movl	%r14d, %edi
	callq	_RtlUnicodeStringToOemSize
	testq	%r15, %r15
	je	LBB0_9
LBB0_4:
	cmpq	%rbx, %rax
	jg	LBB0_9
## %bb.5:
	movq	%r15, -40(%rbp)
	movq	%rbx, -48(%rbp)
	cmpq	$0, (%r12)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	je	LBB0_7
## %bb.6:
	callq	_RtlUnicodeStringToAnsiString
	jmp	LBB0_8
LBB0_7:
	callq	_RtlUnicodeStringToOemString
LBB0_8:
	movq	-56(%rbp), %rax
LBB0_9:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,8,3                   ## @MAX_PATH
	.comm	_bIsFileApiAnsi,8,3             ## @bIsFileApiAnsi
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FilenameU2A_FitOrFail          ; -- Begin function FilenameU2A_FitOrFail
	.p2align	2
_FilenameU2A_FitOrFail:                 ; @FilenameU2A_FitOrFail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	csel	x21, x8, x1, lt
Lloh3:
	adrp	x22, _bIsFileApiAnsi@GOTPAGE
Lloh4:
	ldr	x22, [x22, _bIsFileApiAnsi@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_RtlUnicodeStringToAnsiSize
	cbnz	x20, LBB0_3
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_RtlUnicodeStringToOemSize
	cbz	x20, LBB0_8
LBB0_3:
	cmp	x0, x21
	b.gt	LBB0_8
; %bb.4:
	stp	x21, x20, [sp, #16]
	ldr	x8, [x22]
Lloh5:
	adrp	x9, _FALSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	add	x0, sp, #8
	mov	x1, x19
	cbz	x8, LBB0_6
; %bb.5:
	bl	_RtlUnicodeStringToAnsiString
	b	LBB0_7
LBB0_6:
	bl	_RtlUnicodeStringToOemString
LBB0_7:
	ldr	x0, [sp, #8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,8,3                   ; @MAX_PATH
	.comm	_bIsFileApiAnsi,8,3             ; @bIsFileApiAnsi
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
