	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_CreateContext
_CRYPT_CreateContext:                   ## @CRYPT_CreateContext
	.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	$88, %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, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdi), %eax
	cmpl	$1, %eax
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_ERROR_INVALID_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	$0, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	8(%r15), %rdi
	leaq	-48(%rbp), %rsi
	callq	_decode_base64_blob
	movq	_CERT_QUERY_OBJECT_BLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_CERT_QUERY_FORMAT_FLAG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptQueryObject
	movq	%rax, %r12
	movl	-48(%rbp), %edi
	callq	_CryptMemFree
	testq	%r12, %r12
	jne	LBB0_23
	jmp	LBB0_7
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	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
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	je	LBB0_20
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_CRYPT_E_NO_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jae	LBB0_20
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%r13, %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_decode_base64_blob
	movq	_CERT_QUERY_OBJECT_BLOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_CERT_QUERY_FORMAT_FLAG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rax
	movq	%rax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptQueryObject
	movq	%rax, %r12
	movl	-48(%rbp), %edi
	callq	_CryptMemFree
	testq	%r12, %r12
	jne	LBB0_16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %rsi
	addq	%r13, %rsi
	movq	_CERT_QUERY_FORMAT_FLAG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-72(%rbp), %rax
	movq	%rax, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptQueryObject
	movq	%rax, %r12
	testq	%r12, %r12
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rsi
	movq	_CERT_STORE_ADD_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_5:
	movq	8(%r15), %rsi
	movq	_CERT_QUERY_FORMAT_FLAG_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, 32(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptQueryObject
	movq	%rax, %r12
	testq	%r12, %r12
	jne	LBB0_23
LBB0_7:
	movq	_CRYPT_E_NO_MATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_23
LBB0_21:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
LBB0_23:
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_ERROR_INVALID_DATA,4,2         ## @ERROR_INVALID_DATA
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_CERT_QUERY_OBJECT_BLOB,4,2     ## @CERT_QUERY_OBJECT_BLOB
	.comm	_CERT_QUERY_FORMAT_FLAG_BINARY,4,2 ## @CERT_QUERY_FORMAT_FLAG_BINARY
	.comm	_CRYPT_E_NO_MATCH,4,2           ## @CRYPT_E_NO_MATCH
	.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	_CERT_STORE_ADD_ALWAYS,4,2      ## @CERT_STORE_ADD_ALWAYS
	.no_dead_strip	_CRYPT_CreateContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_CreateContext
_CRYPT_CreateContext:                   ; @CRYPT_CreateContext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _ERROR_INVALID_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR_INVALID_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SetLastError
	str	xzr, [x19]
	b	LBB0_17
LBB0_3:
	ldr	x0, [x21, #8]
	add	x1, sp, #40
	bl	_decode_base64_blob
	mov	x8, x0
Lloh3:
	adrp	x9, _CERT_QUERY_OBJECT_BLOB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CERT_QUERY_OBJECT_BLOB@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	cbz	x8, LBB0_15
; %bb.4:
Lloh6:
	adrp	x8, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	stp	xzr, xzr, [sp]
	add	x1, sp, #40
	str	x19, [sp, #16]
	mov	x2, x20
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptQueryObject
	mov	x24, x0
	ldr	w0, [sp, #40]
	bl	_CryptMemFree
	cbnz	x24, LBB0_20
	b	LBB0_16
LBB0_5:
	mov	x22, x2
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
Lloh12:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	mov	x23, x0
	cbz	x0, LBB0_18
; %bb.6:
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x21]
	cbz	w8, LBB0_14
; %bb.7:
	mov	x25, #0
	mov	x26, #0
Lloh18:
	adrp	x28, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGE
Lloh19:
	ldr	x28, [x28, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGEOFF]
	add	x19, sp, #32
Lloh20:
	adrp	x27, _FALSE@GOTPAGE
Lloh21:
	ldr	x27, [x27, _FALSE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
Lloh22:
	adrp	x8, _CRYPT_E_NO_MATCH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CRYPT_E_NO_MATCH@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_SetLastError
	ldr	x24, [x27]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x21]
	add	x25, x25, #4
	cmp	x26, x8
	b.hs	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x25
	add	x1, sp, #40
	bl	_decode_base64_blob
	mov	x8, x0
Lloh25:
	adrp	x9, _CERT_QUERY_OBJECT_BLOB@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CERT_QUERY_OBJECT_BLOB@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x9]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w3, [x28]
	stp	xzr, xzr, [sp]
	add	x1, sp, #40
	str	x19, [sp, #16]
	mov	x2, x20
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptQueryObject
	mov	x24, x0
	ldr	w0, [sp, #40]
	bl	_CryptMemFree
	cbnz	x24, LBB0_13
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, x25
	ldr	w3, [x28]
	stp	xzr, xzr, [sp]
	str	x19, [sp, #16]
	mov	x2, x20
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptQueryObject
	mov	x24, x0
	cbz	x24, LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [sp, #32]
Lloh28:
	adrp	x8, _CERT_STORE_ADD_ALWAYS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CERT_STORE_ADD_ALWAYS@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x3, #0
	blr	x22
	ldr	x8, [x27]
	cmp	w0, #0
	csel	x24, x8, x24, eq
	b	LBB0_9
LBB0_14:
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_19
LBB0_15:
	ldr	x1, [x21, #8]
Lloh31:
	adrp	x8, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CERT_QUERY_FORMAT_FLAG_BINARY@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	stp	xzr, xzr, [sp]
	str	x19, [sp, #16]
	mov	x2, x20
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptQueryObject
	mov	x24, x0
	cbnz	x24, LBB0_20
LBB0_16:
Lloh34:
	adrp	x8, _CRYPT_E_NO_MATCH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CRYPT_E_NO_MATCH@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_17:
Lloh37:
	adrp	x8, _FALSE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh39:
	ldr	x24, [x8]
	b	LBB0_20
LBB0_18:
Lloh40:
	adrp	x8, _FALSE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh42:
	ldr	x24, [x8]
LBB0_19:
	str	x23, [x19]
LBB0_20:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_ERROR_INVALID_DATA,4,2         ; @ERROR_INVALID_DATA
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_CERT_QUERY_OBJECT_BLOB,4,2     ; @CERT_QUERY_OBJECT_BLOB
	.comm	_CERT_QUERY_FORMAT_FLAG_BINARY,4,2 ; @CERT_QUERY_FORMAT_FLAG_BINARY
	.comm	_CRYPT_E_NO_MATCH,4,2           ; @CRYPT_E_NO_MATCH
	.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	_CERT_STORE_ADD_ALWAYS,4,2      ; @CERT_STORE_ADD_ALWAYS
	.no_dead_strip	_CRYPT_CreateContext
.subsections_via_symbols
