	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecdsa_sig_verify
_secp256k1_ecdsa_sig_verify:            ## @secp256k1_ecdsa_sig_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_secp256k1_scalar_is_zero
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_secp256k1_scalar_is_zero
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	leaq	-120(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_inverse_var
	leaq	-116(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_secp256k1_scalar_mul
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_scalar_mul
	leaq	-108(%rbp), %r15
	movq	%r15, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_secp256k1_gej_set_ge
	leaq	-84(%rbp), %r12
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_secp256k1_ecmult
	movq	%r12, %rdi
	callq	_secp256k1_gej_is_infinity
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ecx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_b32
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_fe_set_b32
	leaq	-84(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_secp256k1_gej_eq_x_var
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_secp256k1_ecdsa_const_p_minus_order@GOTPCREL(%rip), %rsi
	leaq	-88(%rbp), %rdi
	callq	_secp256k1_fe_cmp_var
	movl	$0, %ecx
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	_secp256k1_ecdsa_const_order_as_fe@GOTPCREL(%rip), %rsi
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_secp256k1_fe_add
	leaq	-84(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_secp256k1_gej_eq_x_var
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_secp256k1_ecdsa_const_p_minus_order,4,2 ## @secp256k1_ecdsa_const_p_minus_order
	.comm	_secp256k1_ecdsa_const_order_as_fe,4,2 ## @secp256k1_ecdsa_const_order_as_fe
	.no_dead_strip	_secp256k1_ecdsa_sig_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecdsa_sig_verify
_secp256k1_ecdsa_sig_verify:            ; @secp256k1_ecdsa_sig_verify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	x0, x1
	bl	_secp256k1_scalar_is_zero
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_secp256k1_scalar_is_zero
	cbnz	x0, LBB0_3
; %bb.2:
	add	x0, sp, #20
	mov	x1, x23
	bl	_secp256k1_scalar_inverse_var
	add	x0, sp, #16
	add	x1, sp, #20
	mov	x2, x22
	bl	_secp256k1_scalar_mul
	add	x0, sp, #12
	add	x1, sp, #20
	mov	x2, x19
	bl	_secp256k1_scalar_mul
	add	x0, sp, #4
	mov	x1, x21
	bl	_secp256k1_gej_set_ge
	mov	x1, sp
	add	x2, sp, #4
	add	x3, sp, #12
	add	x4, sp, #16
	mov	x0, x20
	bl	_secp256k1_ecmult
	mov	x0, sp
	bl	_secp256k1_gej_is_infinity
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldr	x8, [sp, #56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	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
	add	sp, sp, #128
	ret
LBB0_6:
	add	x0, sp, #24
	mov	x1, x19
	bl	_secp256k1_scalar_get_b32
	add	x0, sp, #8
	add	x1, sp, #24
	bl	_secp256k1_fe_set_b32
	add	x0, sp, #8
	mov	x1, sp
	bl	_secp256k1_gej_eq_x_var
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_4
LBB0_8:
Lloh6:
	adrp	x1, _secp256k1_ecdsa_const_p_minus_order@GOTPAGE
Lloh7:
	ldr	x1, [x1, _secp256k1_ecdsa_const_p_minus_order@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_secp256k1_fe_cmp_var
	tbz	x0, #63, LBB0_3
; %bb.9:
Lloh8:
	adrp	x1, _secp256k1_ecdsa_const_order_as_fe@GOTPAGE
Lloh9:
	ldr	x1, [x1, _secp256k1_ecdsa_const_order_as_fe@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_secp256k1_fe_add
	add	x0, sp, #8
	mov	x1, sp
	bl	_secp256k1_gej_eq_x_var
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_secp256k1_ecdsa_const_p_minus_order,4,2 ; @secp256k1_ecdsa_const_p_minus_order
	.comm	_secp256k1_ecdsa_const_order_as_fe,4,2 ; @secp256k1_ecdsa_const_order_as_fe
	.no_dead_strip	_secp256k1_ecdsa_sig_verify
.subsections_via_symbols
