	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RSA_X931_generate_key_ex       ## -- Begin function RSA_X931_generate_key_ex
	.p2align	4, 0x90
_RSA_X931_generate_key_ex:              ## @RSA_X931_generate_key_ex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	_BN_X931_generate_Xpq
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	%rbx, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, (%rbx)
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.4:
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r15, %r9
	subq	$8, %rsp
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_BN_X931_generate_prime_ex
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	subq	$8, %rsp
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_BN_X931_generate_prime_ex
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	subq	$64, %rsp
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 48(%rsp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	$0, 32(%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_RSA_X931_derive_ex
	addq	$64, %rsp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_8:
	movq	%r13, %rdi
	callq	_BN_CTX_end
	movq	%r13, %rdi
	callq	_BN_CTX_free
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_RSA_X931_generate_key_ex       ; -- Begin function RSA_X931_generate_key_ex
	.p2align	2
_RSA_X931_generate_key_ex:              ; @RSA_X931_generate_key_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x21, x2
	mov	x25, x1
	mov	x20, x0
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_8
; %bb.2:
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	x3, x19
	bl	_BN_X931_generate_Xpq
	cbz	w0, LBB0_8
; %bb.3:
	bl	_BN_new
	str	x0, [x20, #8]
	bl	_BN_new
	mov	x8, x0
	mov	w25, #0
	str	x0, [x20]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_9
; %bb.4:
	cbz	x8, LBB0_9
; %bb.5:
	str	x22, [sp]
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, x24
	mov	x6, x21
	mov	x7, x19
	bl	_BN_X931_generate_prime_ex
	cbz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x20]
	str	x22, [sp]
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, x23
	mov	x6, x21
	mov	x7, x19
	bl	_BN_X931_generate_prime_ex
	cbz	w0, LBB0_8
; %bb.7:
	stp	xzr, xzr, [sp]
	stp	x21, x22, [sp, #24]
	str	xzr, [sp, #16]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_RSA_X931_derive_ex
	cmp	w0, #0
	cset	w25, ne
	b	LBB0_9
LBB0_8:
	mov	w25, #0
LBB0_9:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
