	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_pippenger_max_points
_secp256k1_pippenger_max_points:        ## @secp256k1_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PIPPENGER_SCRATCH_OBJECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_secp256k1_scratch_max_allocation
	movq	%rax, %r14
	movl	$1, %ebx
	xorl	%r15d, %r15d
	movq	_PIPPENGER_MAX_BUCKET_WINDOW@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %rcx
	cmovaq	%rcx, %r15
	incq	%rbx
	cmpq	%rax, %r12
	ja	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jg	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_secp256k1_pippenger_bucket_window_inv
	movq	%rax, %r12
	leal	1(%rbx), %edi
	callq	_WNAF_SIZE
	movl	$4, %edx
	movl	%ebx, %ecx
	shlq	%cl, %rdx
	movslq	%eax, %rcx
	leaq	(%rdx,%rcx,4), %rdx
	addq	$20, %rdx
	movq	%r14, %rax
	subq	%rdx, %rax
	jb	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	16(,%rcx,4), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rcx
	cmpq	%r12, %rax
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rcx
	jmp	LBB0_8
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIPPENGER_SCRATCH_OBJECTS,4,2  ## @PIPPENGER_SCRATCH_OBJECTS
	.comm	_PIPPENGER_MAX_BUCKET_WINDOW,4,2 ## @PIPPENGER_MAX_BUCKET_WINDOW
	.no_dead_strip	_secp256k1_pippenger_max_points
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_pippenger_max_points
_secp256k1_pippenger_max_points:        ; @secp256k1_pippenger_max_points
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _PIPPENGER_SCRATCH_OBJECTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIPPENGER_SCRATCH_OBJECTS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_secp256k1_scratch_max_allocation
	mov	x20, x0
	mov	x19, #0
	mov	w21, #1
Lloh3:
	adrp	x23, _PIPPENGER_MAX_BUCKET_WINDOW@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PIPPENGER_MAX_BUCKET_WINDOW@GOTPAGEOFF]
	mov	w24, #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.gt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_secp256k1_pippenger_bucket_window_inv
	mov	x22, x0
	add	w0, w21, #1
	bl	_WNAF_SIZE
	add	w8, w0, #1
	sbfiz	x8, x8, #2, #32
	add	x8, x8, #12
	lsl	x9, x24, x21
	add	x9, x9, x8
	add	x9, x9, #4
	subs	x9, x20, x9
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	udiv	x8, x9, x8
	cmp	x8, x22
	csel	x9, x8, x22, lo
	cmp	x9, x19
	csel	x19, x9, x19, hi
	add	x21, x21, #1
	cmp	x22, x8
	b.ls	LBB0_1
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIPPENGER_SCRATCH_OBJECTS,4,2  ; @PIPPENGER_SCRATCH_OBJECTS
	.comm	_PIPPENGER_MAX_BUCKET_WINDOW,4,2 ; @PIPPENGER_MAX_BUCKET_WINDOW
	.no_dead_strip	_secp256k1_pippenger_max_points
.subsections_via_symbols
