	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_exhaustive_ecmult         ## -- Begin function test_exhaustive_ecmult
	.p2align	4, 0x90
_test_exhaustive_ecmult:                ## @test_exhaustive_ecmult
	.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
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.1:
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	leaq	4(%rsi), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	$1, %ecx
	leaq	-64(%rbp), %r15
	leaq	-60(%rbp), %r12
	leaq	-68(%rbp), %r13
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rbx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r12, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_secp256k1_scalar_set_int
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r12, %r8
	callq	_secp256k1_ecmult
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rdi
	movq	%r13, %rsi
	callq	_ge_equals_gej
	movl	$1, %r12d
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_secp256k1_scalar_set_int
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_secp256k1_scalar_set_int
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	leaq	-68(%rbp), %r14
	movq	%r14, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r13, %r8
	movq	%r13, %rbx
	callq	_secp256k1_ecmult
	movl	%r15d, %eax
	cltd
	idivl	-88(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx def $rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rdi
	movq	%r14, %rsi
	callq	_ge_equals_gej
	movq	%r14, %rdi
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	movl	$256, %ecx                      ## imm = 0x100
	callq	_secp256k1_ecmult_const
	movl	%ebx, %eax
	cltd
	idivl	-56(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx def $rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rdi
	movq	%r14, %rsi
	callq	_ge_equals_gej
	incq	%r12
	addl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	-104(%rbp), %r15d               ## 4-byte Folded Reload
	addq	$4, %r13
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	cmpq	%r12, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %rdx
	leaq	-64(%rbp), %r15
	leaq	-60(%rbp), %r12
	leaq	-68(%rbp), %r13
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_7:
	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_ecmult         ; -- Begin function test_exhaustive_ecmult
	.p2align	2
_test_exhaustive_ecmult:                ; @test_exhaustive_ecmult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w3, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	w27, w3
	add	x8, x1, #4
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w9, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
                                        ;       Child Loop BB0_4 Depth 3
	mov	x23, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x22, x8, x9, lsl #2
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	mov	x28, x9
	str	x22, [sp, #40]                  ; 8-byte Folded Spill
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_4 Depth 3
	add	x0, sp, #56
	mov	w1, #0
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #52
	mov	x1, x23
	bl	_secp256k1_scalar_set_int
	add	x1, sp, #60
	add	x3, sp, #56
	add	x4, sp, #52
	mov	x0, x20
	mov	x2, x22
	bl	_secp256k1_ecmult
	add	x0, x21, x23, lsl #2
	add	x1, sp, #60
	bl	_ge_equals_gej
	ldp	x25, x24, [sp, #16]             ; 16-byte Folded Reload
	str	w28, [sp, #36]                  ; 4-byte Folded Spill
	mov	x22, x23
	mov	w26, #1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_3 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x0, sp, #56
	mov	x1, x26
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #52
	mov	x1, x23
	bl	_secp256k1_scalar_set_int
	add	x1, sp, #60
	add	x3, sp, #56
	add	x4, sp, #52
	mov	x0, x20
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_secp256k1_ecmult
	sdiv	w8, w28, w27
	msub	w8, w8, w27, w28
	add	x0, x21, w8, uxtw #2
	add	x1, sp, #60
	bl	_ge_equals_gej
	add	x0, sp, #60
	add	x2, sp, #52
	mov	x1, x25
	mov	w3, #256
	bl	_secp256k1_ecmult_const
	sdiv	w8, w22, w19
	msub	w8, w8, w19, w22
	add	x0, x21, w8, uxtw #2
	add	x1, sp, #60
	bl	_ge_equals_gej
	add	x26, x26, #1
	add	w22, w22, w23
	add	w28, w28, w24
	add	x25, x25, #4
	cmp	x27, x26
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	add	x23, x23, #1
	ldr	w28, [sp, #36]                  ; 4-byte Folded Reload
	add	w28, w28, #1
	cmp	x23, x27
	ldr	x22, [sp, #40]                  ; 8-byte Folded Reload
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x9, x9, #1
	cmp	x9, x27
	b.ne	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
