	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_strauss_batch
_secp256k1_ecmult_strauss_batch:        ## @secp256k1_ecmult_strauss_batch
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -112(%rbp)                 ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rdx, %rsi
	callq	_secp256k1_scratch_checkpoint
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_secp256k1_gej_set_infinity
	movq	24(%rbp), %rcx
	movl	$1, %eax
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_15
LBB0_2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %r12
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_WINDOW_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %rbx
	callq	_ECMULT_TABLE_SIZE
	imulq	%r12, %rax
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -144(%rbp)
	movl	(%rbx), %edi
	callq	_ECMULT_TABLE_SIZE
	imulq	%r12, %rax
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%r13, %rbx
	movq	%rax, %r14
	movq	%rax, -152(%rbp)
	movq	_WINDOW_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ECMULT_TABLE_SIZE
	imulq	%r12, %rax
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%rax, %r13
	movq	%rax, -160(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_secp256k1_scratch_alloc
	movq	%rax, -136(%rbp)
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.3:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.4:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.5:
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:
	testq	%r13, %r13
	je	LBB0_11
## %bb.7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 24(%rbp)
	je	LBB0_14
## %bb.8:
	movq	32(%rbp), %rbx
	leaq	-116(%rbp), %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	24(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	16(%rbp), %rcx
	callq	*-112(%rbp)                     ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_gej_set_ge
	addq	$4, %r14
	incq	%rbx
	addq	$4, %r15
	decq	%r13
	jne	LBB0_9
LBB0_14:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	-160(%rbp), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rbp), %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_secp256k1_ecmult_strauss_wnaf
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_secp256k1_scratch_apply_checkpoint
	movl	$1, %eax
	jmp	LBB0_15
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	jmp	LBB0_12
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_12:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_secp256k1_scratch_apply_checkpoint
	xorl	%eax, %eax
LBB0_15:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_A,4,2                   ## @WINDOW_A
	.no_dead_strip	_secp256k1_ecmult_strauss_batch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecmult_strauss_batch
_secp256k1_ecmult_strauss_batch:        ; @secp256k1_ecmult_strauss_batch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	x23, x7
	mov	x25, x6
	mov	x27, x5
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x26, x1
	mov	x21, x0
	mov	x1, x2
	bl	_secp256k1_scratch_checkpoint
	mov	x20, x0
	mov	x0, x24
	bl	_secp256k1_gej_set_infinity
	cbnz	x22, LBB0_2
; %bb.1:
	cbz	x23, LBB0_10
LBB0_2:
	stp	x24, x26, [sp]                  ; 16-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	str	x20, [sp, #32]                  ; 8-byte Folded Spill
	lsl	x20, x23, #2
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_secp256k1_scratch_alloc
	mov	x24, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_secp256k1_scratch_alloc
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x22, _WINDOW_A@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WINDOW_A@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ECMULT_TABLE_SIZE
	mul	x2, x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_secp256k1_scratch_alloc
	mov	x28, x0
	str	x0, [sp, #72]
	ldr	w0, [x22]
	bl	_ECMULT_TABLE_SIZE
	mul	x2, x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_secp256k1_scratch_alloc
	mov	x26, x0
	str	x0, [sp, #64]
	ldr	w0, [x22]
	bl	_ECMULT_TABLE_SIZE
	mul	x2, x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_secp256k1_scratch_alloc
	mov	x22, x0
	str	x0, [sp, #56]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_secp256k1_scratch_alloc
	str	x0, [sp, #80]
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	cbz	x24, LBB0_11
; %bb.3:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_11
; %bb.4:
	cmp	x28, #0
	ccmp	x26, #0, #4, ne
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_11
; %bb.5:
	cbz	x23, LBB0_9
; %bb.6:
	ldr	x20, [x29, #16]
	ldr	x28, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	mov	x22, x23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #52
	mov	x0, x28
	mov	x2, x20
	mov	x3, x25
	blr	x27
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #52
	mov	x0, x26
	bl	_secp256k1_gej_set_ge
	add	x26, x26, #4
	add	x20, x20, #1
	add	x28, x28, #4
	subs	x22, x22, #1
	b.ne	LBB0_7
LBB0_9:
	add	x1, sp, #56
	ldp	x2, x0, [sp]                    ; 16-byte Folded Reload
	mov	x3, x23
	ldp	x6, x4, [sp, #16]               ; 16-byte Folded Reload
	ldr	x5, [sp, #40]                   ; 8-byte Folded Reload
	bl	_secp256k1_ecmult_strauss_wnaf
	mov	x0, x21
	mov	x1, x19
	ldr	x2, [sp, #32]                   ; 8-byte Folded Reload
	bl	_secp256k1_scratch_apply_checkpoint
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	ldr	x2, [sp, #32]                   ; 8-byte Folded Reload
	bl	_secp256k1_scratch_apply_checkpoint
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_A,4,2                   ; @WINDOW_A
	.no_dead_strip	_secp256k1_ecmult_strauss_batch
.subsections_via_symbols
