	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_GenKey
_CRYPT_GenKey:                          ## @CRYPT_GenKey
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	movq	_CRYPT_GenKey.set(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CryptInitOIDFunctionSet
	movq	%rax, %rdi
	movq	%rax, _CRYPT_GenKey.set(%rip)
LBB0_2:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	leaq	-32(%rbp), %r8
	leaq	-20(%rbp), %r9
	xorl	%ecx, %ecx
	callq	_CryptGetOIDFunctionAddress
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*%rax
	movl	%eax, %ebx
	movl	-20(%rbp), %edi
	xorl	%esi, %esi
	callq	_CryptFreeOIDFunctionAddress
	jmp	LBB0_5
LBB0_4:
	movl	4(%rbx), %edi
	movq	_CRYPT_EXPORTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	movq	%rbx, %rcx
	callq	_CryptGenKey
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_CRYPT_GenKey.set,8,3 ## @CRYPT_GenKey.set
	.comm	_CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC,4,2 ## @CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_CRYPT_EXPORTABLE,4,2           ## @CRYPT_EXPORTABLE
	.no_dead_strip	_CRYPT_GenKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_GenKey
_CRYPT_GenKey:                          ; @CRYPT_GenKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	adrp	x21, _CRYPT_GenKey.set@PAGE
	ldr	x0, [x21, _CRYPT_GenKey.set@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CryptInitOIDFunctionSet
	str	x0, [x21, _CRYPT_GenKey.set@PAGEOFF]
LBB0_2:
Lloh3:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	add	x4, sp, #8
	add	x5, sp, #4
	mov	w3, #0
	bl	_CryptGetOIDFunctionAddress
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	blr	x8
	mov	x19, x0
	ldr	w0, [sp, #4]
	mov	w1, #0
	bl	_CryptFreeOIDFunctionAddress
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _CRYPT_EXPORTABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPT_EXPORTABLE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, x19
	bl	_CryptGenKey
	mov	x19, x0
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_CRYPT_GenKey.set,8,3 ; @CRYPT_GenKey.set
	.comm	_CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC,4,2 ; @CMSG_OID_GEN_CONTENT_ENCRYPT_KEY_FUNC
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_CRYPT_EXPORTABLE,4,2           ; @CRYPT_EXPORTABLE
	.no_dead_strip	_CRYPT_GenKey
.subsections_via_symbols
