	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_exhaustive_addition       ## -- Begin function test_exhaustive_addition
	.p2align	4, 0x90
_test_exhaustive_addition:              ## @test_exhaustive_addition
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_secp256k1_ge_is_infinity
	movl	%eax, %edi
	callq	_CHECK
	movq	%r12, %rdi
	callq	_secp256k1_gej_is_infinity
	movl	%eax, %edi
	callq	_CHECK
	movl	%ebx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %ebx
	jl	LBB0_3
## %bb.1:
	leaq	16(%r12), %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	-1(%rax), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_secp256k1_ge_is_infinity
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movq	%r14, %rdi
	callq	_secp256k1_gej_is_infinity
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	addq	$16, %r14
	addq	$12, %rbx
	decq	%r15
	jne	LBB0_2
LBB0_3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_13
## %bb.4:
	leaq	-80(%rbp), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-112(%rbp), %r14                ## 8-byte Reload
	incq	%r14
	cmpq	%rax, %r14
	je	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rax
	shlq	$4, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leaq	(%rax,%r13), %rbx
	leaq	(%rax,%r13), %rsi
	addq	$12, %rsi
	leaq	-92(%rbp), %rdi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	callq	_secp256k1_fe_inv
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	leaq	(%r14,%r14,2), %rax
	leaq	(%r15,%rax,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_ge_var
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ge_equals_gej
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	-4(%rcx), %eax
	movl	%eax, -96(%rbp)
	movl	-8(%rcx), %eax
	movl	%eax, -100(%rbp)
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, -104(%rbp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	leaq	-104(%rbp), %rdx
	leaq	-92(%rbp), %rcx
	callq	_secp256k1_gej_add_zinv_var
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ge_equals_gej
	incq	%r14
	addq	$16, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r14, %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_var
	movq	-112(%rbp), %r12                ## 8-byte Reload
	leal	(%r12,%r14), %eax
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%r15,%rax,4), %r15
	movq	%r15, %rdi
	leaq	-80(%rbp), %rsi
	callq	_ge_equals_gej
	testq	%r12, %r12
	leaq	-80(%rbp), %r12
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_secp256k1_gej_add_ge
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ge_equals_gej
	jmp	LBB0_8
LBB0_10:
	movq	%rax, %r12
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_secp256k1_gej_double_var
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ge_equals_gej
	cmpl	$1, %r12d
	je	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rbx
	movl	$1, %r13d
	movl	$2, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_gej_double_nonzero
	movl	%r14d, %eax
	cltd
	idivl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%rdx,%rdx,2), %rax
	leaq	(%r15,%rax,4), %r12
	movq	%r12, %rdi
	leaq	-80(%rbp), %rsi
	callq	_ge_equals_gej
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_gej_double_var
	movq	%r12, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	callq	_ge_equals_gej
	incq	%r13
	addl	$2, %r14d
	addq	$16, %rbx
	cmpq	%r13, %r12
	jne	LBB0_12
LBB0_13:
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	movq	%r12, %r14
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_16
## %bb.14:
	decq	%r14
	leaq	(%r14,%r14,2), %rax
	leaq	(%r15,%rax,4), %rbx
	addq	$16, %r12
	addq	$12, %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_ge_neg
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ge_equals_ge
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_gej_neg
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ge_equals_gej
	addq	$-12, %rbx
	addq	$16, %r12
	addq	$12, %r15
	decq	%r14
	jne	LBB0_15
LBB0_16:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_exhaustive_addition       ; -- Begin function test_exhaustive_addition
	.p2align	2
_test_exhaustive_addition:              ; @test_exhaustive_addition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x25, x0
	bl	_secp256k1_ge_is_infinity
	bl	_CHECK
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_secp256k1_gej_is_infinity
	bl	_CHECK
	mov	w26, w21
	cmp	w21, #1
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, #16
	add	x23, x25, #12
	sub	x19, x26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_secp256k1_ge_is_infinity
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	mov	x0, x22
	bl	_secp256k1_gej_is_infinity
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	add	x22, x22, #16
	add	x23, x23, #12
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_3:
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x27, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x27, x27, #1
	cmp	x27, x26
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	add	x22, x24, x27, lsl #4
	add	x1, x22, #12
	add	x0, sp, #44
	bl	_secp256k1_fe_inv
	mov	x20, #0
	mov	w8, #12
	madd	x23, x27, x8, x25
	add	x19, x22, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x0, sp, #16
	mov	x1, x24
	mov	x2, x23
	mov	x3, #0
	bl	_secp256k1_gej_add_ge_var
	add	x1, sp, #16
	mov	x0, x25
	bl	_ge_equals_gej
	ldr	w8, [x19]
	str	w8, [sp, #40]
	ldr	d0, [x22]
	str	d0, [sp, #32]
	add	x0, sp, #16
	add	x2, sp, #32
	add	x3, sp, #44
	mov	x1, x24
	bl	_secp256k1_gej_add_zinv_var
	add	x1, sp, #16
	mov	x0, x25
	bl	_ge_equals_gej
	add	x20, x20, #1
	add	x24, x24, #16
	cmp	x26, x20
	mov	x25, x28
	b.eq	LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #16
	mov	x1, x24
	mov	x2, x22
	mov	x3, #0
	bl	_secp256k1_gej_add_var
	add	w8, w27, w20
	sdiv	w9, w8, w21
	msub	w8, w9, w21, w8
	mov	x28, x25
	mov	w9, #12
	umaddl	x25, w8, w9, x25
	add	x1, sp, #16
	mov	x0, x25
	bl	_ge_equals_gej
	cbz	x27, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x0, sp, #16
	mov	x1, x24
	mov	x2, x23
	bl	_secp256k1_gej_add_ge
	add	x1, sp, #16
	mov	x0, x25
	bl	_ge_equals_gej
	b	LBB0_7
LBB0_10:
	add	x0, sp, #16
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, #0
	bl	_secp256k1_gej_double_var
	add	x1, sp, #16
	mov	x0, x25
	bl	_ge_equals_gej
	cmp	w26, #1
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, #16
	mov	w19, #2
	mov	w20, #1
	mov	w24, #12
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, #0
	bl	_secp256k1_gej_double_nonzero
	sdiv	w8, w19, w26
	msub	w8, w8, w26, w19
	umaddl	x23, w8, w24, x25
	add	x1, sp, #16
	mov	x0, x23
	bl	_ge_equals_gej
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, #0
	bl	_secp256k1_gej_double_var
	add	x1, sp, #16
	mov	x0, x23
	bl	_ge_equals_gej
	add	x20, x20, #1
	add	w19, w19, #2
	add	x22, x22, #16
	cmp	x26, x20
	b.ne	LBB0_12
LBB0_13:
	cmp	w21, #1
	b.le	LBB0_16
; %bb.14:
	mov	x8, #-12
	mov	w19, #12
	umaddl	x22, w21, w19, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x20, x8, #16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	x1, x25, x19
	add	x0, sp, #32
	bl	_secp256k1_ge_neg
	add	x21, x25, x22
	add	x1, sp, #32
	mov	x0, x21
	bl	_ge_equals_ge
	add	x0, sp, #16
	mov	x1, x20
	bl	_secp256k1_gej_neg
	add	x1, sp, #16
	mov	x0, x21
	bl	_ge_equals_gej
	add	x20, x20, #16
	add	x19, x19, #12
	subs	x22, x22, #12
	b.ne	LBB0_15
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
