	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_FileNameOpenStoreA       ## -- Begin function CRYPT_FileNameOpenStoreA
	.p2align	4, 0x90
_CRYPT_FileNameOpenStoreA:              ## @CRYPT_FileNameOpenStoreA
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	%rdx, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %r13d
	leal	(,%r13,4), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r12
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$-1, %ecx
	movq	%r12, %r8
	movl	%r13d, %r9d
	callq	_MultiByteToWideChar
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	_CRYPT_FileNameOpenStoreW
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_CryptMemFree
	movq	%rbx, %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%ld, %08x, %s)\n"

	.comm	_ERROR_FILE_NOT_FOUND,4,2       ## @ERROR_FILE_NOT_FOUND
	.comm	_CP_ACP,4,2                     ## @CP_ACP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_FileNameOpenStoreA       ; -- Begin function CRYPT_FileNameOpenStoreA
	.p2align	2
_CRYPT_FileNameOpenStoreA:              ; @CRYPT_FileNameOpenStoreA
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_debugstr_a
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	cbz	x21, LBB0_4
; %bb.1:
Lloh2:
	adrp	x24, _CP_ACP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	cbz	w0, LBB0_5
; %bb.2:
	mov	x23, x0
	lsl	w0, w0, #2
	bl	_CryptMemAlloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	ldr	w0, [x24]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x4, x22
	mov	x5, x23
	bl	_MultiByteToWideChar
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_CRYPT_FileNameOpenStoreW
	mov	x19, x0
	mov	x0, x22
	bl	_CryptMemFree
	mov	x0, x19
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%ld, %08x, %s)\n"

	.comm	_ERROR_FILE_NOT_FOUND,4,2       ; @ERROR_FILE_NOT_FOUND
	.comm	_CP_ACP,4,2                     ; @CP_ACP
.subsections_via_symbols
