	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_generate_dsa_nonce          ## -- Begin function BN_generate_dsa_nonce
	.p2align	4, 0x90
_BN_generate_dsa_nonce:                 ## @BN_generate_dsa_nonce
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -248(%rbp)                 ## 8-byte Spill
	movq	%r8, -272(%rbp)                 ## 8-byte Spill
	movq	%rcx, -264(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -256(%rbp)                ## 8-byte Spill
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA512_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -240(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BN_num_bytes
	movl	%eax, %r14d
	addl	$8, %r14d
	movl	%r14d, %edi
	callq	_OPENSSL_malloc
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-208(%rbp), %rsi
	movq	%r15, %rdi
	movl	$96, %edx
	callq	_BN_bn2binpad
	testq	%rax, %rax
	js	LBB0_12
## %bb.3:
	movq	%r13, -232(%rbp)                ## 8-byte Spill
	movl	$0, -212(%rbp)
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.4:
	leaq	-112(%rbp), %rbx
	leaq	-276(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_RAND_priv_bytes
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_SHA512_Init
	movl	$4, %edx
	movq	%r13, %rdi
	leaq	-212(%rbp), %rsi
	xorl	%eax, %eax
	callq	_SHA512_Update
	movl	$96, %edx
	movq	%r13, %rdi
	leaq	-208(%rbp), %rsi
	xorl	%eax, %eax
	callq	_SHA512_Update
	movq	%r13, %rdi
	movq	-264(%rbp), %rsi                ## 8-byte Reload
	movq	-272(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_SHA512_Update
	movl	$64, %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_SHA512_Update
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SHA512_Final
	movl	-212(%rbp), %edi
	movl	%r14d, %r15d
	subl	%edi, %r15d
	movq	_SHA512_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	cmovael	%eax, %r15d
	addq	-224(%rbp), %rdi                ## 8-byte Folded Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addl	-212(%rbp), %r15d
	movl	%r15d, -212(%rbp)
	cmpl	%r14d, %r15d
	jb	LBB0_5
LBB0_8:
	movq	-248(%rbp), %r15                ## 8-byte Reload
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	movq	-256(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	callq	_BN_bin2bn
	testl	%eax, %eax
	movq	-232(%rbp), %r13                ## 8-byte Reload
	movl	$0, %ebx
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	-240(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_BN_mod
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	sete	%bl
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_12:
	movq	_BN_F_BN_GENERATE_DSA_NONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_PRIVATE_KEY_TOO_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	xorl	%ebx, %ebx
	movq	-232(%rbp), %r13                ## 8-byte Reload
LBB0_10:
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	callq	_OPENSSL_free
	leaq	-208(%rbp), %rdi
	movl	$96, %esi
	callq	_OPENSSL_cleanse
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA512_DIGEST_LENGTH,4,2       ## @SHA512_DIGEST_LENGTH
	.comm	_BN_F_BN_GENERATE_DSA_NONCE,4,2 ## @BN_F_BN_GENERATE_DSA_NONCE
	.comm	_BN_R_PRIVATE_KEY_TOO_LARGE,4,2 ## @BN_R_PRIVATE_KEY_TOO_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_generate_dsa_nonce          ; -- Begin function BN_generate_dsa_nonce
	.p2align	2
_BN_generate_dsa_nonce:                 ; @BN_generate_dsa_nonce
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #224
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x27, x2
	mov	x22, x1
	mov	x28, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _SHA512_DIGEST_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA512_DIGEST_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	mov	x0, x1
	bl	_BN_num_bytes
	add	w26, w0, #8
	mov	x0, x26
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	sub	x1, x29, #256
	mov	x0, x27
	mov	w2, #96
	bl	_BN_bn2binpad
	tbnz	x0, #63, LBB0_8
; %bb.2:
	sub	x8, x29, #24
	stur	x28, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #40
	stur	x22, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #32
	stur	x20, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #16
	stur	x21, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #8
	stur	wzr, [x8, #-256]
	cbz	w26, LBB0_6
; %bb.3:
	mov	w21, #4
	sub	x20, x29, #264
	mov	w28, #96
	sub	x22, x29, #256
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #160
	mov	w1, #64
	bl	_RAND_priv_bytes
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x0, x29, #260
	bl	_SHA512_Init
	stp	x20, x21, [sp, #-16]!
	sub	x0, x29, #260
	bl	_SHA512_Update
	add	sp, sp, #16
	stp	x22, x28, [sp, #-16]!
	sub	x0, x29, #260
	bl	_SHA512_Update
	add	sp, sp, #16
	stp	x24, x23, [sp, #-16]!
	sub	x0, x29, #260
	bl	_SHA512_Update
	add	sp, sp, #16
	mov	w9, #64
	sub	x8, x29, #160
	stp	x8, x9, [sp, #-16]!
	sub	x0, x29, #260
	bl	_SHA512_Update
	add	sp, sp, #16
	sub	x1, x29, #260
	mov	x0, x25
	bl	_SHA512_Final
	sub	x8, x29, #8
	ldur	w8, [x8, #-256]
Lloh8:
	adrp	x9, _SHA512_DIGEST_LENGTH@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SHA512_DIGEST_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sub	w10, w26, w8
	cmp	w10, w9
	csel	w27, w10, w9, lo
	add	x0, x19, x8
	mov	x1, x25
	mov	x2, x27
	bl	_memcpy
	sub	x8, x29, #8
	ldur	w8, [x8, #-256]
	add	w8, w8, w27
	cmp	w8, w26
	sub	x9, x29, #8
	stur	w8, [x9, #-256]
	b.lo	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	x1, x26
	sub	x8, x29, #24
	ldur	x20, [x8, #-256]                ; 8-byte Folded Reload
	mov	x2, x20
	bl	_BN_bin2bn
	sub	x8, x29, #16
	ldur	x21, [x8, #-256]                ; 8-byte Folded Reload
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x20
	sub	x8, x29, #40
	ldur	x2, [x8, #-256]                 ; 8-byte Folded Reload
	sub	x8, x29, #32
	ldur	x3, [x8, #-256]                 ; 8-byte Folded Reload
	bl	_BN_mod
	cmp	w0, #1
	cset	w20, eq
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x8, _BN_F_BN_GENERATE_DSA_NONCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BN_F_BN_GENERATE_DSA_NONCE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _BN_R_PRIVATE_KEY_TOO_LARGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BN_R_PRIVATE_KEY_TOO_LARGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_BNerr
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_OPENSSL_free
	sub	x0, x29, #256
	mov	w1, #96
	bl	_OPENSSL_cleanse
	mov	sp, x21
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w20, #0
	sub	x8, x29, #16
	ldur	x21, [x8, #-256]                ; 8-byte Folded Reload
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA512_DIGEST_LENGTH,4,2       ; @SHA512_DIGEST_LENGTH
	.comm	_BN_F_BN_GENERATE_DSA_NONCE,4,2 ; @BN_F_BN_GENERATE_DSA_NONCE
	.comm	_BN_R_PRIVATE_KEY_TOO_LARGE,4,2 ; @BN_R_PRIVATE_KEY_TOO_LARGE
.subsections_via_symbols
