	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sign_and_verify
_sign_and_verify:                       ## @sign_and_verify
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_dsakey@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DSA_get0_q
	movl	%eax, %edi
	callq	_BN_num_bytes
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %r14
	movq	%r14, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	movslq	%r12d, %rbx
	movq	%rbx, %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_RAND_bytes
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_memset
	movq	%r13, %rdi
	cmpl	%r15d, %r12d
	jge	LBB0_8
## %bb.4:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	jmp	LBB0_9
LBB0_5:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_EVP_PKEY_CTX_free
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	movq	%r13, %rdi
	callq	_OPENSSL_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_8:
	addq	%rbx, %rdi
	subq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movq	%rsi, %r15
LBB0_9:
	callq	_memcpy
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:
	movq	_dsakey@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_EVP_PKEY_set1_DSA
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_23
## %bb.11:
	movq	%r14, %rdi
	callq	_EVP_PKEY_sign_init
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_23
## %bb.12:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_EVP_PKEY_sign
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.13:
	movq	-56(%rbp), %rdi
	callq	_OPENSSL_malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_6
## %bb.14:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_EVP_PKEY_sign
	cmpl	$1, %eax
	jne	LBB0_25
## %bb.15:
	movq	%r14, %rdi
	callq	_EVP_PKEY_verify_init
	movl	%eax, %edi
	movl	$1, %esi
	callq	_TEST_int_eq
	testl	%eax, %eax
	je	LBB0_6
## %bb.16:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_EVP_PKEY_verify
	cmpl	$1, %eax
	jne	LBB0_26
## %bb.17:
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_EVP_PKEY_verify
	cmpl	$1, %eax
	jne	LBB0_27
## %bb.18:
	movq	-56(%rbp), %r8
	movq	_dsakey@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	_DSA_verify
	cmpl	$1, %eax
	jne	LBB0_28
## %bb.19:
	movq	-56(%rbp), %r8
	movq	_dsakey@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%edi, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	_DSA_verify
	cmpl	$1, %eax
	jne	LBB0_29
## %bb.20:
	movl	$1, %r12d
	jmp	LBB0_6
LBB0_23:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_21:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_24:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_30
LBB0_25:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_30
LBB0_26:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_30
LBB0_27:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_30
LBB0_28:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
LBB0_30:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_TEST_error
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dsakey,4,2                     ## @dsakey
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get signature length, len=%d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to sign, len=%d"

L_.str.2:                               ## @.str.2
	.asciz	"EVP verify with unpadded length %d failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"EVP verify with length %d failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Verification with unpadded data failed, len=%d"

L_.str.5:                               ## @.str.5
	.asciz	"verify with length %d failed\n"

	.no_dead_strip	_sign_and_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sign_and_verify
_sign_and_verify:                       ; @sign_and_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x0
Lloh0:
	adrp	x26, _dsakey@GOTPAGE
Lloh1:
	ldr	x26, [x26, _dsakey@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_DSA_get0_q
	bl	_BN_num_bytes
	mov	x20, x0
	sxtw	x22, w21
	mov	x0, x22
	bl	_OPENSSL_malloc
	mov	x19, x0
	sxtw	x24, w20
	mov	x0, x24
	bl	_OPENSSL_malloc
	mov	x20, x0
	mov	x0, x19
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_RAND_bytes
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	cmp	w24, w21
	b.ge	LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	b	LBB0_8
LBB0_5:
	mov	w21, #0
	mov	x25, #0
	mov	x23, #0
	mov	x22, #0
LBB0_6:
	mov	x0, x23
	bl	_EVP_PKEY_CTX_free
	mov	x0, x22
	bl	_EVP_PKEY_free
	mov	x0, x25
	bl	_OPENSSL_free
	mov	x0, x20
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_OPENSSL_free
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_7:
	add	x8, x20, x24
	sub	x0, x8, x22
	mov	x1, x19
	mov	x2, x21
LBB0_8:
	bl	_memcpy
	bl	_EVP_PKEY_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.9:
	ldr	w1, [x26]
	mov	x0, x22
	bl	_EVP_PKEY_set1_DSA
	mov	x0, x22
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_20
; %bb.10:
	mov	x0, x23
	bl	_EVP_PKEY_sign_init
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_20
; %bb.11:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, #0
	mov	x3, x19
	mov	x4, x21
	bl	_EVP_PKEY_sign
	cmp	w0, #1
	b.ne	LBB0_22
; %bb.12:
	ldr	x0, [sp, #8]
	bl	_OPENSSL_malloc
	mov	x25, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_29
; %bb.13:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x25
	mov	x3, x19
	mov	x4, x21
	bl	_EVP_PKEY_sign
	cmp	w0, #1
	b.ne	LBB0_23
; %bb.14:
	mov	x0, x23
	bl	_EVP_PKEY_verify_init
	mov	w1, #1
	bl	_TEST_int_eq
	cbz	w0, LBB0_29
; %bb.15:
	ldr	x2, [sp, #8]
	mov	x0, x23
	mov	x1, x25
	mov	x3, x19
	mov	x4, x21
	bl	_EVP_PKEY_verify
	cmp	w0, #1
	b.ne	LBB0_24
; %bb.16:
	ldr	x2, [sp, #8]
	mov	x0, x23
	mov	x1, x25
	mov	x3, x20
	mov	x4, x24
	bl	_EVP_PKEY_verify
	cmp	w0, #1
	b.ne	LBB0_25
; %bb.17:
	ldr	x4, [sp, #8]
	ldr	w5, [x26]
	mov	w0, #0
	mov	x1, x19
	mov	x2, x21
	mov	x3, x25
	bl	_DSA_verify
	cmp	w0, #1
	b.ne	LBB0_26
; %bb.18:
	ldr	x4, [sp, #8]
	ldr	w5, [x26]
	mov	w0, #0
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	bl	_DSA_verify
	cmp	w0, #1
	b.ne	LBB0_27
; %bb.19:
	mov	w21, #1
	b	LBB0_6
LBB0_20:
	mov	w21, #0
	mov	x25, #0
	b	LBB0_6
LBB0_21:
	mov	w21, #0
	mov	x25, #0
	mov	x23, #0
	b	LBB0_6
LBB0_22:
	mov	x25, #0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_28
LBB0_23:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_24:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_25:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_28
LBB0_26:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_27:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_28:
	mov	x1, x21
	bl	_TEST_error
LBB0_29:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dsakey,4,2                     ; @dsakey
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get signature length, len=%d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to sign, len=%d"

l_.str.2:                               ; @.str.2
	.asciz	"EVP verify with unpadded length %d failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"EVP verify with length %d failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Verification with unpadded data failed, len=%d"

l_.str.5:                               ; @.str.5
	.asciz	"verify with length %d failed\n"

	.no_dead_strip	_sign_and_verify
.subsections_via_symbols
