	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CDecodeSignedMsg_VerifySignatureWithKey
_CDecodeSignedMsg_VerifySignatureWithKey: ## @CDecodeSignedMsg_VerifySignatureWithKey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rax
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
LBB0_2:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	-20(%rbp), %r8
	movq	%rax, %rdi
	movl	%ecx, %edx
	movq	%r8, %rcx
	callq	_CryptImportPublicKeyInfo
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rax), %rax
	movq	%r14, %rdx
	shlq	$4, %rdx
	leaq	(%rax,%rdx), %rsi
	cmpq	$0, 8(%rax,%rdx)
	leaq	(%rcx,%r14,8), %rax
	leaq	4(%rcx,%r14,8), %rcx
	cmoveq	%rax, %rcx
	movl	(%rcx), %ebx
	leaq	-32(%rbp), %rdi
	callq	_CRYPT_ConstructBlob
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	-32(%rbp), %rdi
	callq	_CRYPT_ReverseBytes
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	%ebx, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptVerifySignatureW
	movq	%rax, %rbx
	movl	-32(%rbp), %edi
	callq	_CryptMemFree
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	-20(%rbp), %edi
	callq	_CryptDestroyKey
LBB0_8:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.no_dead_strip	_CDecodeSignedMsg_VerifySignatureWithKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CDecodeSignedMsg_VerifySignatureWithKey
_CDecodeSignedMsg_VerifySignatureWithKey: ; @CDecodeSignedMsg_VerifySignatureWithKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x3
	mov	x19, x2
	mov	x9, x1
	mov	x20, x0
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	x9, [x20, #16]
LBB0_2:
Lloh0:
	adrp	x10, _X509_ASN_ENCODING@GOTPAGE
Lloh1:
	ldr	x10, [x10, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	add	x3, sp, #12
	mov	x0, x9
	mov	x2, x8
	bl	_CryptImportPublicKeyInfo
	cbz	x0, LBB0_5
; %bb.3:
	ldp	x8, x9, [x20]
	ldr	x8, [x8]
	add	x1, x8, x19, lsl #4
	ldr	x8, [x1, #8]
	add	x9, x9, x19, lsl #3
	add	x10, x9, #4
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w19, [x8]
	mov	x0, sp
	bl	_CRYPT_ConstructBlob
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, sp
	bl	_CRYPT_ReverseBytes
	ldp	w1, w2, [sp]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x4, #0
	mov	w5, #0
	bl	_CryptVerifySignatureW
	mov	x19, x0
	ldr	w0, [sp]
	bl	_CryptMemFree
	b	LBB0_7
LBB0_5:
	mov	x19, #0
	b	LBB0_8
LBB0_6:
	mov	x19, #0
LBB0_7:
	ldr	w0, [sp, #12]
	bl	_CryptDestroyKey
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.no_dead_strip	_CDecodeSignedMsg_VerifySignatureWithKey
.subsections_via_symbols
