	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_pkey              ## -- Begin function ssl_generate_pkey
	.p2align	4, 0x90
_ssl_generate_pkey:                     ## @ssl_generate_pkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_keygen_init
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_EVP_PKEY_keygen
	testq	%rax, %rax
	jg	LBB0_6
## %bb.5:
	movq	-16(%rbp), %rdi
	callq	_EVP_PKEY_free
	movq	$0, -16(%rbp)
LBB0_6:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	-16(%rbp), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_generate_pkey              ; -- Begin function ssl_generate_pkey
	.p2align	2
_ssl_generate_pkey:                     ; @ssl_generate_pkey
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_EVP_PKEY_keygen_init
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_keygen
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_EVP_PKEY_free
	str	xzr, [sp, #8]
LBB0_5:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	ldr	x0, [sp, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
