	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_builtin_keygen
_dsa_builtin_keygen:                    ## @dsa_builtin_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_secure_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	callq	_BN_priv_rand_range
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	movq	8(%r15), %r13
	testq	%r13, %r13
	jne	LBB0_7
## %bb.6:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r14
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BN_with_flags
	movl	16(%r15), %ecx
	movl	20(%r15), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_BN_mod_exp
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_BN_free
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	%rbx, (%r15)
	movq	%r13, 8(%r15)
	movl	$1, %r12d
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpq	8(%r15), %r13
	jne	LBB0_14
	jmp	LBB0_15
LBB0_11:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	cmpq	8(%r15), %r13
	je	LBB0_15
LBB0_14:
	movq	%r13, %rdi
	callq	_BN_free
LBB0_15:
	cmpq	(%r15), %rbx
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	callq	_BN_free
LBB0_17:
	movq	%r14, %rdi
	callq	_BN_CTX_free
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r12d, %r12d
LBB0_13:
	xorl	%r13d, %r13d
	cmpq	8(%r15), %r13
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.no_dead_strip	_dsa_builtin_keygen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_builtin_keygen
_dsa_builtin_keygen:                    ; @dsa_builtin_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	x20, x0
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x21, [x20]
	cbnz	x21, LBB0_3
; %bb.2:
	bl	_BN_secure_new
	mov	x21, x0
	cbz	x0, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #24]
	mov	x0, x21
	bl	_BN_priv_rand_range
	cbz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_BN_is_zero
	cbnz	x0, LBB0_3
; %bb.5:
	ldr	x22, [x20, #8]
	cbnz	x22, LBB0_7
; %bb.6:
	bl	_BN_new
	mov	x22, x0
	cbz	x0, LBB0_17
LBB0_7:
	bl	_BN_new
	mov	x23, x0
	cbz	x0, LBB0_12
; %bb.8:
Lloh0:
	adrp	x8, _BN_FLG_CONSTTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x21
	bl	_BN_with_flags
	ldp	w3, w1, [x20, #16]
	mov	x0, x22
	mov	x2, x23
	mov	x4, x19
	bl	_BN_mod_exp
	mov	x24, x0
	mov	x0, x23
	bl	_BN_free
	cbz	w24, LBB0_17
; %bb.9:
	stp	x21, x22, [x20]
	mov	w23, #1
	b	LBB0_12
LBB0_10:
	mov	w23, #0
	mov	x22, #0
	mov	x21, #0
	b	LBB0_12
LBB0_11:
	mov	w23, #0
	mov	x22, #0
LBB0_12:
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x22
	bl	_BN_free
LBB0_14:
	ldr	x8, [x20]
	cmp	x21, x8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_BN_free
LBB0_16:
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x23
	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_17:
	mov	w23, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.no_dead_strip	_dsa_builtin_keygen
.subsections_via_symbols
