	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keygen_test_init
_keygen_test_init:                      ## @keygen_test_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_OBJ_sn2nid
	movq	_NID_undef@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_OBJ_ln2nid
	xorl	%ecx, %ecx
	cmpl	(%r15), %eax
	je	LBB0_10
LBB0_2:
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new_id
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_keygen_init
	testq	%rax, %rax
	jle	LBB0_5
## %bb.7:
	movl	$16, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movq	%rbx, 8(%r15)
	movq	$0, (%r15)
	movq	%r15, 16(%r14)
	movq	$0, 8(%r14)
	jmp	LBB0_9
LBB0_3:
	movl	$1, (%r14)
LBB0_9:
	movl	$1, %ecx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%r14)
LBB0_6:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_CTX_free
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_undef,4,2                  ## @NID_undef
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KEYGEN_INIT_ERROR"

	.no_dead_strip	_keygen_test_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keygen_test_init
_keygen_test_init:                      ; @keygen_test_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_OBJ_sn2nid
Lloh0:
	adrp	x21, _NID_undef@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_OBJ_ln2nid
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_9
LBB0_2:
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new_id
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_EVP_PKEY_keygen_init
	cmp	x0, #0
	b.le	LBB0_7
; %bb.4:
	mov	w0, #16
	bl	_OPENSSL_malloc
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_8
; %bb.5:
	stp	xzr, x20, [x21]
	mov	w0, #1
	stp	xzr, x21, [x19, #8]
	b	LBB0_10
LBB0_6:
	mov	w0, #1
	str	w0, [x19]
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #8]
LBB0_8:
	mov	x0, x20
	bl	_EVP_PKEY_CTX_free
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_undef,4,2                  ; @NID_undef
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KEYGEN_INIT_ERROR"

	.no_dead_strip	_keygen_test_init
.subsections_via_symbols
