	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CRYPT_RegReadSerializedFromReg
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CRYPT_RegReadSerializedFromReg:        ## @CRYPT_RegReadSerializedFromReg
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -316(%rbp)                ## 4-byte Spill
	movl	%esi, -320(%rbp)                ## 4-byte Spill
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-308(%rbp), %r13
	movq	_KEY_READ@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	movl	%ebx, -324(%rbp)                ## 4-byte Spill
	jmp	LBB0_1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_context_from_ptr
	movl	%eax, %edi
	callq	_Context_Release
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-336(%rbp), %r13                ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_CryptMemFree
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-312(%rbp), %edi
	callq	_RegCloseKey
	leaq	-308(%rbp), %r13
	movl	-324(%rbp), %ebx                ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -308(%rbp)
	subq	$16, %rsp
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RegEnumKeyExW
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %ecx
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	leaq	-312(%rbp), %r8
	callq	_RegOpenKeyExW
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -308(%rbp)
	movl	-312(%rbp), %edi
	movq	_BlobW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r13, %r9
	callq	_RegQueryValueExW
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-308(%rbp), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	movl	-312(%rbp), %edi
	movq	_BlobW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	leaq	-308(%rbp), %r9
	callq	_RegQueryValueExW
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	-308(%rbp), %esi
	movq	%r13, -336(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	-320(%rbp), %edx                ## 4-byte Reload
	leaq	-328(%rbp), %rcx
	callq	_CRYPT_ReadSerializedElement
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movl	-328(%rbp), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cltq
	leaq	l_switch.table.CRYPT_RegReadSerializedFromReg(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$80, -308(%rbp)
	movq	_CERT_HASH_PROP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-128(%rbp), %rdx
	leaq	-308(%rbp), %rcx
	callq	*8(%r13)
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	-128(%rbp), %rdi
	leaq	-304(%rbp), %rsi
	callq	_CRYPT_HashToStr
	leaq	-304(%rbp), %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r12, %rdi
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_TRACE
	leaq	-304(%rbp), %rdi
	movq	%r12, %rsi
	callq	_lstrcmpW
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CERT_STORE_ADD_REPLACE_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-316(%rbp), %edi                ## 4-byte Reload
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	*(%r13)
	jmp	LBB0_13
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_BlobW,4,2                      ## @BlobW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding cert with hash %s\n"

	.comm	_pCertInterface,8,3             ## @pCertInterface
	.comm	_pCRLInterface,8,3              ## @pCRLInterface
	.comm	_pCTLInterface,8,3              ## @pCTLInterface
	.comm	_CERT_HASH_PROP_ID,4,2          ## @CERT_HASH_PROP_ID
L_.str.1:                               ## @.str.1
	.asciz	"comparing %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"with %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"hash matches, adding\n"

	.comm	_CERT_STORE_ADD_REPLACE_EXISTING,4,2 ## @CERT_STORE_ADD_REPLACE_EXISTING
L_.str.4:                               ## @.str.4
	.asciz	"hash doesn't match, ignoring\n"

	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.no_dead_strip	_CRYPT_RegReadSerializedFromReg
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.CRYPT_RegReadSerializedFromReg
l_switch.table.CRYPT_RegReadSerializedFromReg:
	.quad	_pCTLInterface
	.quad	_pCRLInterface
	.quad	_pCertInterface

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_RegReadSerializedFromReg
_CRYPT_RegReadSerializedFromReg:        ; @CRYPT_RegReadSerializedFromReg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #288
	mov	x19, sp
	stp	w2, w1, [x19, #8]               ; 8-byte Folded Spill
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	w24, #0
Lloh8:
	adrp	x27, _KEY_READ@GOTPAGE
Lloh9:
	ldr	x27, [x27, _KEY_READ@GOTPAGEOFF]
Lloh10:
	adrp	x25, _BlobW@GOTPAGE
Lloh11:
	ldr	x25, [x25, _BlobW@GOTPAGEOFF]
Lloh12:
	adrp	x26, l_.str@PAGE
Lloh13:
	add	x26, x26, l_.str@PAGEOFF
Lloh14:
	adrp	x20, _ERROR_SUCCESS@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ERROR_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_1:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_context_from_ptr
	bl	_Context_Release
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x21
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x28
	bl	_CryptMemFree
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #20]
	bl	_RegCloseKey
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	add	w24, w24, #1
	cbnz	w8, LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_ARRAY_SIZE
	str	w0, [x19, #24]
	add	x3, x19, #24
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RegEnumKeyExW
	cbnz	w0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w3, [x27]
	add	x4, x19, #20
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_RegOpenKeyExW
	cbnz	w0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [x19, #24]
	ldr	w0, [x19, #20]
	ldr	w1, [x25]
	add	x5, x19, #24
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_RegQueryValueExW
	cbnz	w0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x19, #24]
	bl	_CryptMemAlloc
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
	ldr	w0, [x19, #20]
	ldr	w1, [x25]
	add	x5, x19, #24
	mov	x2, #0
	mov	x3, #0
	mov	x4, x28
	bl	_RegQueryValueExW
	cbnz	w0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x21, x26
	mov	x0, x26
	bl	_TRACE
	add	sp, sp, #16
	ldr	w1, [x19, #24]
	add	x3, x19, #16
	mov	x0, x28
	ldr	w2, [x19, #12]                  ; 4-byte Folded Reload
	bl	_CRYPT_ReadSerializedElement
	cbz	x0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #16]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh18:
	adrp	x9, l_switch.table.CRYPT_RegReadSerializedFromReg@PAGE
Lloh19:
	add	x9, x9, l_switch.table.CRYPT_RegReadSerializedFromReg@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x9, [x8]
	cbz	x9, LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	mov	w8, #80
	str	w8, [x19, #24]
	str	x9, [x19]                       ; 8-byte Folded Spill
	ldr	x8, [x9, #8]
Lloh20:
	adrp	x9, _CERT_HASH_PROP_ID@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CERT_HASH_PROP_ID@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	sub	x2, x29, #176
	add	x3, x19, #24
	blr	x8
	cbz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x0, x29, #176
	add	x1, x19, #28
	bl	_CRYPT_HashToStr
	add	x0, x19, #28
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	mov	x0, x23
	bl	_debugstr_w
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	add	sp, sp, #16
	add	x0, x19, #28
	mov	x1, x23
	bl	_lstrcmpW
	cbnz	w0, LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x19]                       ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _CERT_STORE_ADD_REPLACE_EXISTING@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CERT_STORE_ADD_REPLACE_EXISTING@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x9]
	ldr	w0, [x19, #8]                   ; 4-byte Folded Reload
	mov	x1, x26
	mov	x3, #0
	blr	x8
	b	LBB0_2
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_BlobW,4,2                      ; @BlobW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding cert with hash %s\n"

	.comm	_pCertInterface,8,3             ; @pCertInterface
	.comm	_pCRLInterface,8,3              ; @pCRLInterface
	.comm	_pCTLInterface,8,3              ; @pCTLInterface
	.comm	_CERT_HASH_PROP_ID,4,2          ; @CERT_HASH_PROP_ID
l_.str.1:                               ; @.str.1
	.asciz	"comparing %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"with %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"hash matches, adding\n"

	.comm	_CERT_STORE_ADD_REPLACE_EXISTING,4,2 ; @CERT_STORE_ADD_REPLACE_EXISTING
l_.str.4:                               ; @.str.4
	.asciz	"hash doesn't match, ignoring\n"

	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.no_dead_strip	_CRYPT_RegReadSerializedFromReg
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.CRYPT_RegReadSerializedFromReg
l_switch.table.CRYPT_RegReadSerializedFromReg:
	.quad	_pCTLInterface
	.quad	_pCRLInterface
	.quad	_pCertInterface

.subsections_via_symbols
