	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_rsa_keygen
_pkey_rsa_keygen:                       ## @pkey_rsa_keygen
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	cmpq	$0, (%r14)
	je	LBB0_1
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_RSA_new
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	%rax, %r12
	cmpq	$0, 8(%r15)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_GENCB_new
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_evp_pkey_set_cb_translate
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	_RSA_F4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_BN_set_word
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_13
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movl	12(%r14), %esi
	movl	8(%r14), %edx
	movq	(%r14), %rcx
	movq	%r12, %rdi
	movq	%rbx, %r8
	callq	_RSA_generate_multi_prime_key
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_BN_GENCB_free
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_rsa_set_pss_param
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_EVP_PKEY_assign
	jmp	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	callq	_RSA_free
	jmp	LBB0_13
LBB0_10:
	movq	%r12, %rdi
	callq	_RSA_free
	xorl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RSA_F4,4,2                     ## @RSA_F4
	.no_dead_strip	_pkey_rsa_keygen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_rsa_keygen
_pkey_rsa_keygen:                       ; @pkey_rsa_keygen
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x22]
	cbz	x8, LBB0_5
LBB0_1:
	bl	_RSA_new
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.3:
	bl	_BN_GENCB_new
	cbz	x0, LBB0_11
; %bb.4:
	mov	x23, x0
	mov	x1, x20
	bl	_evp_pkey_set_cb_translate
	b	LBB0_8
LBB0_5:
	bl	_BN_new
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.6:
Lloh0:
	adrp	x8, _RSA_F4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RSA_F4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_BN_set_word
	cbnz	w0, LBB0_1
	b	LBB0_12
LBB0_7:
	mov	x23, #0
LBB0_8:
	ldp	w2, w1, [x22, #8]
	ldr	x3, [x22]
	mov	x0, x21
	mov	x4, x23
	bl	_RSA_generate_multi_prime_key
	mov	x22, x0
	mov	x0, x23
	bl	_BN_GENCB_free
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	bl	_rsa_set_pss_param
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_EVP_PKEY_assign
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	bl	_RSA_free
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	bl	_RSA_free
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RSA_F4,4,2                     ; @RSA_F4
	.no_dead_strip	_pkey_rsa_keygen
.subsections_via_symbols
