	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_multi_var
_secp256k1_ecmult_multi_var:            ## @secp256k1_ecmult_multi_var
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rbx
	movq	16(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_secp256k1_gej_set_infinity
	movl	$1, %r14d
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.5:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_secp256k1_pippenger_max_points
	leaq	-64(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_secp256k1_ecmult_multi_batch_size_helper
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	-88(%rbp), %rax
	movq	_ECMULT_PIPPENGER_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_8
## %bb.9:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_secp256k1_strauss_max_points
	leaq	-64(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	movl	%eax, %edx
	movq	%rbx, %rcx
	callq	_secp256k1_ecmult_multi_batch_size_helper
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	_secp256k1_ecmult_strauss_batch@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_scalar_set_int
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_secp256k1_ecmult
	jmp	LBB0_17
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_secp256k1_ecmult_multi_simple_var ## TAILCALL
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rbx, %r9
	callq	_secp256k1_ecmult_multi_simple_var
	movl	%eax, %r14d
	jmp	LBB0_17
LBB0_8:
	movq	_secp256k1_ecmult_pippenger_batch@GOTPCREL(%rip), %rax
LBB0_11:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpq	$0, -64(%rbp)
	je	LBB0_17
## %bb.12:
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax
	cmpq	%rax, %rbx
	movq	%rax, %r12
	cmovbq	%rbx, %r12
	imulq	%r14, %rax
	testq	%r14, %r14
	movl	$0, %r8d
	cmoveq	%r15, %r8
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	-96(%rbp), %rcx
	movl	-92(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r12
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	*-104(%rbp)                     ## 8-byte Folded Reload
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r13, %rdi
	movq	%r13, %rsi
	leaq	-96(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_var
	subq	%r12, %rbx
	incq	%r14
	cmpq	-64(%rbp), %r14
	jb	LBB0_13
## %bb.16:
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_14:
	xorl	%r14d, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMULT_PIPPENGER_THRESHOLD,8,3 ## @ECMULT_PIPPENGER_THRESHOLD
	.no_dead_strip	_secp256k1_ecmult_multi_var
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecmult_multi_var
_secp256k1_ecmult_multi_var:            ; @secp256k1_ecmult_multi_var
	.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	x20, x7
	mov	x22, x6
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
	mov	x25, x2
	mov	x24, x1
	mov	x26, x0
	mov	x0, x3
	bl	_secp256k1_gej_set_infinity
	cbnz	x19, LBB0_2
; %bb.1:
	cbz	x20, LBB0_9
LBB0_2:
	cbz	x20, LBB0_8
; %bb.3:
	cbz	x25, LBB0_11
; %bb.4:
	mov	x0, x26
	mov	x1, x25
	bl	_secp256k1_pippenger_max_points
	mov	x2, x0
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x3, x20
	bl	_secp256k1_ecmult_multi_batch_size_helper
	cbz	w0, LBB0_12
; %bb.5:
	ldr	x8, [sp, #32]
Lloh0:
	adrp	x9, _ECMULT_PIPPENGER_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ECMULT_PIPPENGER_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_13
; %bb.6:
	mov	x0, x26
	mov	x1, x25
	bl	_secp256k1_strauss_max_points
	mov	x2, x0
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x3, x20
	bl	_secp256k1_ecmult_multi_batch_size_helper
	cbz	w0, LBB0_12
; %bb.7:
Lloh3:
	adrp	x8, _secp256k1_ecmult_strauss_batch@GOTPAGE
Lloh4:
	ldr	x8, [x8, _secp256k1_ecmult_strauss_batch@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	add	x0, sp, #40
	mov	w1, #0
	bl	_secp256k1_scalar_set_int
	add	x3, sp, #40
	mov	x0, x24
	mov	x1, x21
	mov	x2, x21
	mov	x4, x19
	bl	_secp256k1_ecmult
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
LBB0_11:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	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
	b	_secp256k1_ecmult_multi_simple_var
LBB0_12:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	mov	x5, x20
	bl	_secp256k1_ecmult_multi_simple_var
	b	LBB0_10
LBB0_13:
Lloh5:
	adrp	x8, _secp256k1_ecmult_pippenger_batch@GOTPAGE
Lloh6:
	ldr	x8, [x8, _secp256k1_ecmult_pippenger_batch@GOTPAGEOFF]
LBB0_14:
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_9
; %bb.15:
	mov	x28, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	cmp	x20, x8
	csel	x27, x20, x8, lo
	mul	x8, x8, x28
	cmp	x28, #0
	csel	x4, x19, xzr, eq
	str	x8, [sp]
	add	x3, sp, #28
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	mov	x5, x23
	mov	x6, x22
	mov	x7, x27
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	blr	x8
	cbz	w0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x21
	mov	x3, #0
	bl	_secp256k1_gej_add_var
	sub	x20, x20, x27
	add	x28, x28, #1
	ldr	x8, [sp, #40]
	cmp	x28, x8
	b.lo	LBB0_16
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMULT_PIPPENGER_THRESHOLD,8,3 ; @ECMULT_PIPPENGER_THRESHOLD
	.no_dead_strip	_secp256k1_ecmult_multi_var
.subsections_via_symbols
