	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_rsa                        ## -- Begin function gen_rsa
	.p2align	4, 0x90
_gen_rsa:                               ## @gen_rsa
	.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)
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new_id
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_keygen_init
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_EVP_PKEY_CTX_set_rsa_keygen_bits
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_EVP_PKEY_keygen
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_gt
LBB0_4:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	-16(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_RSA,4,2               ## @EVP_PKEY_RSA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_rsa                        ; -- Begin function gen_rsa
	.p2align	2
_gen_rsa:                               ; @gen_rsa
	.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]
Lloh0:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new_id
	mov	x19, x0
	bl	_TEST_ptr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_EVP_PKEY_keygen_init
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #2048
	bl	_EVP_PKEY_CTX_set_rsa_keygen_bits
	mov	w1, #0
	bl	_TEST_int_gt
	cbz	x0, LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_EVP_PKEY_keygen
	mov	w1, #0
	bl	_TEST_int_gt
LBB0_4:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
	ldr	x0, [sp, #8]
	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	_EVP_PKEY_RSA,4,2               ; @EVP_PKEY_RSA
.subsections_via_symbols
