	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_exhaustive_sign           ## -- Begin function test_exhaustive_sign
	.p2align	4, 0x90
_test_exhaustive_sign:                  ## @test_exhaustive_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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -160(%rbp)                ## 8-byte Spill
	movq	%rdi, -152(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edx
	jl	LBB0_10
## %bb.1:
	movl	%edx, %r13d
	movl	$1, -120(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-120(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	cmpl	%r13d, %eax
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movl	$1, -124(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	-124(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	cmpl	%r13d, %eax
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	movl	$1, -116(%rbp)
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ecx, -132(%rbp)                ## 4-byte Spill
	leaq	-164(%rbp), %rbx
	movq	%rbx, %rdi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	_secp256k1_scalar_set_int
	leaq	-168(%rbp), %r12
	movq	%r12, %rdi
	movl	-124(%rbp), %esi                ## 4-byte Reload
	callq	_secp256k1_scalar_set_int
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_scalar_get_b32
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_b32
	movq	_secp256k1_nonce_function_smallint@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-172(%rbp), %r14
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	leaq	-116(%rbp), %r9
	callq	_secp256k1_ecdsa_sign
	movq	%rbx, %rdi
	leaq	-128(%rbp), %rsi
	leaq	-140(%rbp), %rdx
	movq	%r14, %rcx
	callq	_secp256k1_ecdsa_signature_load
	movl	-116(%rbp), %edx
	leaq	-136(%rbp), %rdi
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	callq	_r_from_k
	movl	-128(%rbp), %eax
	xorl	%edi, %edi
	cmpl	-136(%rbp), %eax
	sete	%dil
	callq	_CHECK
	movl	-116(%rbp), %edi
	movl	-140(%rbp), %ebx
	movl	%ebx, %eax
	imull	%edi, %eax
	cltd
	idivl	%r13d
	movl	%edx, %esi
	movl	-128(%rbp), %eax
	imull	-124(%rbp), %eax                ## 4-byte Folded Reload
	addl	-120(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	%r13d
	movb	$1, %al
	cmpl	%edx, %esi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movl	%edx, %ecx
	movq	_EXHAUSTIVE_TEST_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ebx, %eax
	imull	%edi, %eax
	cltd
	idivl	%r13d
	cmpl	%ecx, %edx
	sete	%al
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=3
	movzbl	%al, %edi
	callq	_CHECK
	movl	-116(%rbp), %eax
	cmpl	-132(%rbp), %eax                ## 4-byte Folded Reload
	jl	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=3
	incl	%eax
	movl	%eax, -116(%rbp)
	movl	%eax, %ecx
	cmpl	%r13d, %eax
	jl	LBB0_5
	jmp	LBB0_8
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_secp256k1_nonce_function_smallint,4,2 ## @secp256k1_nonce_function_smallint
	.comm	_EXHAUSTIVE_TEST_ORDER,4,2      ## @EXHAUSTIVE_TEST_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_exhaustive_sign           ; -- Begin function test_exhaustive_sign
	.p2align	2
_test_exhaustive_sign:                  ; @test_exhaustive_sign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cmp	w2, #2
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w22, #1
Lloh3:
	adrp	x24, _secp256k1_nonce_function_smallint@GOTPAGE
Lloh4:
	ldr	x24, [x24, _secp256k1_nonce_function_smallint@GOTPAGEOFF]
Lloh5:
	adrp	x25, _EXHAUSTIVE_TEST_ORDER@GOTPAGE
Lloh6:
	ldr	x25, [x25, _EXHAUSTIVE_TEST_ORDER@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	cmp	w22, w19
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	mov	w23, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w23, w23, #1
	cmp	w23, w19
	b.eq	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	str	w26, [sp, #36]
	mov	w27, #1
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x0, sp, #24
	mov	x1, x22
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #28
	mov	x1, x23
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #72
	add	x1, sp, #28
	bl	_secp256k1_scalar_get_b32
	add	x0, sp, #40
	add	x1, sp, #24
	bl	_secp256k1_scalar_get_b32
	ldr	w4, [x24]
	add	x1, sp, #32
	add	x2, sp, #40
	add	x3, sp, #72
	add	x5, sp, #36
	mov	x0, x21
	bl	_secp256k1_ecdsa_sign
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #32
	mov	x0, x21
	bl	_secp256k1_ecdsa_signature_load
	ldr	w2, [sp, #36]
	add	x0, sp, #12
	mov	x1, x20
	bl	_r_from_k
	ldr	w8, [sp, #20]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	cset	w0, eq
	bl	_CHECK
	ldr	w8, [sp, #36]
	ldr	w9, [sp, #16]
	mul	w10, w9, w8
	sdiv	w11, w10, w19
	msub	w11, w11, w19, w10
	ldr	w10, [sp, #20]
	madd	w10, w10, w23, w22
	sdiv	w12, w10, w19
	msub	w10, w12, w19, w10
	cmp	w11, w10
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	mov	w0, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=3
	ldr	w11, [x25]
	sub	w9, w11, w9
	mul	w8, w9, w8
	sdiv	w9, w8, w19
	msub	w8, w9, w19, w8
	cmp	w8, w10
	cset	w0, eq
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=3
	bl	_CHECK
	ldr	w8, [sp, #36]
	cmp	w8, w27
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=3
	add	w27, w8, #1
	str	w27, [sp, #36]
	cmp	w27, w19
	b.lt	LBB0_6
	b	LBB0_4
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_secp256k1_nonce_function_smallint,4,2 ; @secp256k1_nonce_function_smallint
	.comm	_EXHAUSTIVE_TEST_ORDER,4,2      ; @EXHAUSTIVE_TEST_ORDER
.subsections_via_symbols
