	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ecmult_multi_pippenger_max_points ## -- Begin function test_ecmult_multi_pippenger_max_points
	.p2align	4, 0x90
_test_ecmult_multi_pippenger_max_points: ## @test_ecmult_multi_pippenger_max_points
	.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
	movl	$256, %edi                      ## imm = 0x100
	callq	_secp256k1_rand_int
	movq	%rax, %r12
	movq	_PIPPENGER_MAX_BUCKET_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	decl	%edi
	callq	_secp256k1_pippenger_bucket_window_inv
	leaq	512(%rax), %rdi
	movl	$12, %esi
	callq	_secp256k1_pippenger_scratch_size
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	jae	LBB0_9
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ctx@GOTPCREL(%rip), %r15
	movq	_PIPPENGER_SCRATCH_OBJECTS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_secp256k1_scratch_alloc
	movl	%eax, %edi
	callq	_CHECK
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_secp256k1_scratch_apply_checkpoint
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scratch_destroy
	addq	$256, %r12                      ## imm = 0x100
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_secp256k1_scratch_create
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_CHECK
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scratch_checkpoint
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_pippenger_max_points
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_secp256k1_pippenger_bucket_window
                                        ## kill: def $eax killed $eax def $rax
	movq	%r14, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %esi
	callq	_secp256k1_pippenger_scratch_size
	cmpl	$1, (%r13)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	movl	$1, %edx
	movq	%rbx, %rsi
	callq	_secp256k1_scratch_alloc
	movl	%eax, %edi
	callq	_CHECK
	incq	%r14
	movslq	(%r13), %rax
	decq	%rax
	cmpq	%rax, %r14
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%r14, %rax
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	movq	_PIPPENGER_MAX_BUCKET_WINDOW@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rax), %ecx
	sete	%dil
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CHECK                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPPENGER_MAX_BUCKET_WINDOW,4,2 ## @PIPPENGER_MAX_BUCKET_WINDOW
	.comm	_ctx,8,3                        ## @ctx
	.comm	_PIPPENGER_SCRATCH_OBJECTS,4,2  ## @PIPPENGER_SCRATCH_OBJECTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_ecmult_multi_pippenger_max_points ; -- Begin function test_ecmult_multi_pippenger_max_points
	.p2align	2
_test_ecmult_multi_pippenger_max_points: ; @test_ecmult_multi_pippenger_max_points
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w0, #256
	bl	_secp256k1_rand_int
	mov	x19, x0
Lloh0:
	adrp	x25, _PIPPENGER_MAX_BUCKET_WINDOW@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PIPPENGER_MAX_BUCKET_WINDOW@GOTPAGEOFF]
	ldr	w8, [x25]
	sub	w0, w8, #1
	bl	_secp256k1_pippenger_bucket_window_inv
	add	x0, x0, #512
	mov	w1, #12
	bl	_secp256k1_pippenger_scratch_size
	cmp	x19, x0
	b.hs	LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w21, #0
Lloh2:
	adrp	x26, _ctx@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ctx@GOTPAGEOFF]
Lloh4:
	adrp	x27, _PIPPENGER_SCRATCH_OBJECTS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PIPPENGER_SCRATCH_OBJECTS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	mov	x1, x22
	mov	x2, x24
	bl	_secp256k1_scratch_alloc
	bl	_CHECK
	ldr	x0, [x26]
	mov	x1, x22
	mov	x2, x23
	bl	_secp256k1_scratch_apply_checkpoint
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x26]
	mov	x1, x22
	bl	_secp256k1_scratch_destroy
	add	x19, x19, #256
	cmp	x19, x20
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x26]
	mov	x1, x19
	bl	_secp256k1_scratch_create
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_CHECK
	ldr	x0, [x26]
	mov	x1, x22
	bl	_secp256k1_scratch_checkpoint
	mov	x23, x0
	ldr	x0, [x26]
	mov	x1, x22
	bl	_secp256k1_pippenger_max_points
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	bl	_secp256k1_pippenger_bucket_window
	mov	x21, x0
	mov	x0, x24
	mov	x1, x21
	bl	_secp256k1_pippenger_scratch_size
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w8, #1
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x26]
	mov	x1, x22
	mov	w2, #1
	bl	_secp256k1_scratch_alloc
	bl	_CHECK
	add	x28, x28, #1
	ldrsw	x8, [x27]
	sub	x8, x8, #1
	cmp	x28, x8
	b.lo	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x24, x24, x28
	b	LBB0_2
LBB0_9:
	mov	w21, #0
LBB0_10:
	ldr	w8, [x25]
	cmp	w21, w8
	cset	w0, eq
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_CHECK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPPENGER_MAX_BUCKET_WINDOW,4,2 ; @PIPPENGER_MAX_BUCKET_WINDOW
	.comm	_ctx,8,3                        ; @ctx
	.comm	_PIPPENGER_SCRATCH_OBJECTS,4,2  ; @PIPPENGER_SCRATCH_OBJECTS
.subsections_via_symbols
