	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_QuerySerializedStoreFromFile
_CRYPT_QuerySerializedStoreFromFile:    ## @CRYPT_QuerySerializedStoreFromFile
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	$0, (%rsp)
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_CreateFileW
	movq	%rax, %r13
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_9
## %bb.1:
	movq	%r14, %rbx
	movq	_CERT_STORE_PROV_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CERT_STORE_CREATE_NEW_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_CertOpenStore
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_CRYPT_ReadSerializedStoreFromFile
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	movq	_CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
LBB0_6:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_CertDuplicateStore
	movl	%eax, (%rbx)
LBB0_8:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_CertCloseStore
	movq	%r13, %rdi
	callq	_CloseHandle
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_TRACE
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ## @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ## @CERT_STORE_CREATE_NEW_FLAG
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_CERT_QUERY_CONTENT_SERIALIZED_STORE,4,2 ## @CERT_QUERY_CONTENT_SERIALIZED_STORE
L_.str.1:                               ## @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_QuerySerializedStoreFromFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_QuerySerializedStoreFromFile
_CRYPT_QuerySerializedStoreFromFile:    ; @CRYPT_QuerySerializedStoreFromFile
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_debugstr_w
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh5:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFileW
Lloh14:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.1:
	mov	x23, x0
Lloh17:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_CRYPT_ReadSerializedStoreFromFile
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.2:
	cbz	x22, LBB0_4
; %bb.3:
Lloh23:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	mov	x0, x24
	bl	_CertDuplicateStore
	str	w0, [x19]
LBB0_8:
	mov	x0, x24
	mov	w1, #0
	bl	_CertCloseStore
	mov	x0, x23
	bl	_CloseHandle
LBB0_9:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ; @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ; @CERT_STORE_CREATE_NEW_FLAG
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_CERT_QUERY_CONTENT_SERIALIZED_STORE,4,2 ; @CERT_QUERY_CONTENT_SERIALIZED_STORE
l_.str.1:                               ; @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_QuerySerializedStoreFromFile
.subsections_via_symbols
