	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsa_do_sign
_dsa_do_sign:                           ## @dsa_do_sign
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	cmpq	$0, 24(%rdx)
	je	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	cmpq	$0, (%rdx)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.7:
	movl	%esi, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_DSA_SIG_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, 8(%r12)
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, (%r12)
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.12:
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_BN_CTX_get
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.16:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	addq	$8, %rcx
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r8                  ## 8-byte Reload
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movl	%r13d, %r9d
	callq	_dsa_sign_setup
	testl	%eax, %eax
	je	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rdi
	callq	_BN_num_bytes
	cmpl	%eax, %r13d
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rdi
	callq	_BN_num_bytes
	movl	%eax, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_BN_bin2bn
	testq	%rax, %rax
	je	LBB0_9
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	callq	_BN_num_bits
	leaq	-1(%rax), %rsi
	movq	_BN_RAND_TOP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BN_RAND_BOTTOM_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_BN_priv_rand
	testl	%eax, %eax
	je	LBB0_9
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r13, %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_BN_set_flags
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_set_flags
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_set_flags
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %r8
	callq	_BN_mod_mul
	testl	%eax, %eax
	je	LBB0_9
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	(%rbx), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%r15, %r8
	callq	_BN_mod_mul
	testl	%eax, %eax
	je	LBB0_9
## %bb.26:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rcx
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %r8
	callq	_BN_mod_mul
	testl	%eax, %eax
	je	LBB0_9
## %bb.27:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rdi
	movq	(%rbx), %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_BN_mod_add_quick
	testl	%eax, %eax
	je	LBB0_9
## %bb.28:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rdi
	movq	-56(%rbp), %rdx
	movq	(%rbx), %rcx
	movq	%rdi, %rsi
	movq	%r15, %r8
	callq	_BN_mod_mul
	testl	%eax, %eax
	je	LBB0_9
## %bb.29:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rbx), %rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	callq	_BN_mod_inverse
	testq	%rax, %rax
	je	LBB0_9
## %bb.30:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rdi
	movq	(%rbx), %rcx
	movq	%rdi, %rsi
	movq	%r13, %rdx
	movq	%r15, %r8
	callq	_BN_mod_mul
	testl	%eax, %eax
	je	LBB0_9
## %bb.31:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_10
LBB0_33:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_17
LBB0_3:
	movq	_DSA_R_MISSING_PARAMETERS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	xorl	%r15d, %r15d
LBB0_8:
	xorl	%r12d, %r12d
LBB0_9:
	movq	_DSA_F_DSA_DO_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_DSAerr
	movq	%r12, %rdi
	callq	_DSA_SIG_free
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r15, %rdi
	callq	_BN_CTX_free
	movq	-56(%rbp), %rdi
	callq	_BN_clear_free
	movq	%r12, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_DSA_R_MISSING_PRIVATE_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
	.comm	_DSA_R_MISSING_PARAMETERS,4,2   ## @DSA_R_MISSING_PARAMETERS
	.comm	_DSA_R_MISSING_PRIVATE_KEY,4,2  ## @DSA_R_MISSING_PRIVATE_KEY
	.comm	_BN_RAND_TOP_ANY,4,2            ## @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ## @BN_RAND_BOTTOM_ANY
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.comm	_DSA_F_DSA_DO_SIGN,4,2          ## @DSA_F_DSA_DO_SIGN
	.no_dead_strip	_dsa_do_sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsa_do_sign
_dsa_do_sign:                           ; @dsa_do_sign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [sp, #24]
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_26
; %bb.1:
	mov	x22, x2
	ldr	x8, [x2]
	cbz	x8, LBB0_26
; %bb.2:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_26
; %bb.3:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_30
; %bb.4:
	mov	x24, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_DSA_SIG_new
	mov	x19, x0
	cbz	x0, LBB0_31
; %bb.5:
	bl	_BN_new
	mov	x25, x19
	str	x0, [x25, #8]!
	bl	_BN_new
	mov	x21, #0
	str	x0, [x19]
	ldr	x8, [x25]
	cbz	x8, LBB0_28
; %bb.6:
	cbz	x0, LBB0_28
; %bb.7:
	bl	_BN_CTX_new
	mov	x21, x0
	cbz	x0, LBB0_28
; %bb.8:
	mov	x0, x21
	bl	_BN_CTX_get
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_BN_CTX_get
	mov	x27, x0
	mov	x0, x21
	bl	_BN_CTX_get
	mov	x26, x0
	mov	x0, x21
	bl	_BN_CTX_get
	cbz	x0, LBB0_28
; %bb.9:
	mov	x28, x0
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	x3, x25
	mov	x4, x23
	mov	x5, x24
	bl	_dsa_sign_setup
	cbz	w0, LBB0_28
; %bb.10:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x26, _BN_RAND_BOTTOM_ANY@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BN_RAND_BOTTOM_ANY@GOTPAGEOFF]
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x0, [x22]
	bl	_BN_num_bytes
	cmp	w24, w0
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x22]
	bl	_BN_num_bytes
	mov	x24, x0
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	mov	x1, x24
	ldr	x2, [sp, #16]                   ; 8-byte Folded Reload
	bl	_BN_bin2bn
	cbz	x0, LBB0_28
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x22]
	bl	_BN_num_bits
	sub	x1, x0, #1
Lloh5:
	adrp	x8, _BN_RAND_TOP_ANY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BN_RAND_TOP_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x26]
	mov	x0, x27
	bl	_BN_priv_rand
	cbz	w0, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x27
	bl	_BN_is_zero
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh8:
	adrp	x8, _BN_FLG_CONSTTIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x27
	bl	_BN_set_flags
Lloh11:
	adrp	x8, _BN_FLG_CONSTTIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_BN_set_flags
Lloh14:
	adrp	x8, _BN_FLG_CONSTTIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BN_FLG_CONSTTIME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x28
	bl	_BN_set_flags
	ldp	x3, x2, [x22]
	mov	x0, x28
	mov	x1, x27
	mov	x4, x21
	bl	_BN_mod_mul
	cbz	w0, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x2, [x25]
	ldr	x3, [x22]
	mov	x0, x28
	mov	x1, x28
	mov	x4, x21
	bl	_BN_mod_mul
	cbz	w0, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x28, [sp]                       ; 8-byte Folded Spill
	ldr	x3, [x22]
	ldp	x28, x2, [sp, #8]               ; 16-byte Folded Reload
	mov	x0, x28
	mov	x1, x27
	mov	x4, x21
	bl	_BN_mod_mul
	cbz	w0, LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	ldr	x3, [x22]
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	mov	x2, x28
	bl	_BN_mod_add_quick
	cbz	w0, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	ldr	x2, [sp, #24]
	ldr	x3, [x22]
	mov	x1, x0
	mov	x4, x21
	bl	_BN_mod_mul
	cbz	w0, LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x2, [x22]
	mov	x0, x27
	mov	x1, x27
	mov	x3, x21
	bl	_BN_mod_inverse
	cbz	x0, LBB0_28
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	ldr	x3, [x22]
	mov	x1, x0
	mov	x2, x27
	mov	x4, x21
	bl	_BN_mod_mul
	cbz	w0, LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x25]
	bl	_BN_is_zero
	cbnz	x0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	bl	_BN_is_zero
	cbz	x0, LBB0_29
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x21
	mov	x3, x25
	mov	x4, x23
	mov	x5, x24
	bl	_dsa_sign_setup
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	cbnz	w0, LBB0_11
	b	LBB0_28
LBB0_26:
	mov	x21, #0
	mov	x19, #0
Lloh17:
	adrp	x8, _DSA_R_MISSING_PARAMETERS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DSA_R_MISSING_PARAMETERS@GOTPAGEOFF]
LBB0_27:
	ldr	w20, [x8]
LBB0_28:
Lloh19:
	adrp	x8, _DSA_F_DSA_DO_SIGN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DSA_F_DSA_DO_SIGN@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_DSAerr
	mov	x0, x19
	bl	_DSA_SIG_free
	mov	x19, #0
LBB0_29:
	mov	x0, x21
	bl	_BN_CTX_free
	ldr	x0, [sp, #24]
	bl	_BN_clear_free
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_30:
	mov	x21, #0
	mov	x19, #0
Lloh22:
	adrp	x8, _DSA_R_MISSING_PRIVATE_KEY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DSA_R_MISSING_PRIVATE_KEY@GOTPAGEOFF]
	b	LBB0_27
LBB0_31:
	mov	x21, #0
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
	.comm	_DSA_R_MISSING_PARAMETERS,4,2   ; @DSA_R_MISSING_PARAMETERS
	.comm	_DSA_R_MISSING_PRIVATE_KEY,4,2  ; @DSA_R_MISSING_PRIVATE_KEY
	.comm	_BN_RAND_TOP_ANY,4,2            ; @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ; @BN_RAND_BOTTOM_ANY
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.comm	_DSA_F_DSA_DO_SIGN,4,2          ; @DSA_F_DSA_DO_SIGN
	.no_dead_strip	_dsa_do_sign
.subsections_via_symbols
