	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ecdsa_sign_verify         ## -- Begin function test_ecdsa_sign_verify
	.p2align	4, 0x90
_test_ecdsa_sign_verify:                ## @test_ecdsa_sign_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
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	callq	_random_scalar_order_test
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_random_scalar_order_test
	movq	_ctx@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	$4, %rdi
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_secp256k1_ecmult_gen
	leaq	-60(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_ge_set_gej
	movl	$1, %edi
	callq	_secp256k1_rand_bits
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	leaq	-44(%rbp), %r8
	cmoveq	%rax, %r8
	leaq	-52(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_random_sign
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$4, -44(%rbp)
	setb	%dil
	callq	_CHECK
LBB0_2:
	movq	(%r12), %rdi
	leaq	-52(%rbp), %r12
	leaq	-48(%rbp), %r14
	leaq	-60(%rbp), %r15
	leaq	-56(%rbp), %r13
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_secp256k1_ecdsa_sig_verify
	movl	%eax, %edi
	callq	_CHECK
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_scalar_add
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_secp256k1_ecdsa_sig_verify
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ecdsa_sign_verify         ; -- Begin function test_ecdsa_sign_verify
	.p2align	2
_test_ecdsa_sign_verify:                ; @test_ecdsa_sign_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	add	x0, sp, #16
	bl	_random_scalar_order_test
	add	x0, sp, #12
	bl	_random_scalar_order_test
Lloh0:
	adrp	x20, _ctx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ctx@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #4
	sub	x1, x29, #20
	add	x2, sp, #12
	bl	_secp256k1_ecmult_gen
	add	x0, sp, #24
	sub	x1, x29, #20
	bl	_secp256k1_ge_set_gej
	mov	w0, #1
	bl	_secp256k1_rand_bits
	mov	x19, x0
	cmp	w0, #0
	mov	x8, sp
	csel	x4, xzr, x8, eq
	add	x0, sp, #8
	add	x1, sp, #4
	add	x2, sp, #12
	add	x3, sp, #16
	bl	_random_sign
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w8, [sp]
	cmp	w8, #4
	cset	w0, lo
	bl	_CHECK
LBB0_2:
	ldr	x0, [x20]
	add	x1, sp, #8
	add	x2, sp, #4
	add	x3, sp, #24
	add	x4, sp, #16
	bl	_secp256k1_ecdsa_sig_verify
	bl	_CHECK
	add	x0, sp, #20
	mov	w1, #1
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #16
	add	x1, sp, #16
	add	x2, sp, #20
	bl	_secp256k1_scalar_add
	ldr	x0, [x20]
	add	x1, sp, #8
	add	x2, sp, #4
	add	x3, sp, #24
	add	x4, sp, #16
	bl	_secp256k1_ecdsa_sig_verify
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
.subsections_via_symbols
