	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_gen
_secp256k1_ecmult_gen:                  ## @secp256k1_ecmult_gen
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	12(%rbx), %eax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdx
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_add
	movq	$0, -64(%rbp)
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%ecx, %ecx
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %rbx
	leaq	-48(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_ge_from_storage
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rsi
	movq	%r14, %rdx
	callq	_secp256k1_gej_add_ge
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rcx
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_ECMULT_GEN_PREC_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %esi
	imull	%edx, %esi
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_scalar_get_bits
	cmpl	$0, (%rbx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rsi
	addq	%r13, %rsi
	xorl	%edx, %edx
	cmpq	%r12, %r14
	sete	%dl
	movq	%r15, %rdi
	callq	_secp256k1_ge_storage_cmov
	incq	%r12
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r12
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	leaq	-64(%rbp), %rdi
	callq	_secp256k1_ge_clear
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_scalar_clear
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMULT_GEN_PREC_N,4,2          ## @ECMULT_GEN_PREC_N
	.comm	_ECMULT_GEN_PREC_B,4,2          ## @ECMULT_GEN_PREC_B
	.comm	_ECMULT_GEN_PREC_G,4,2          ## @ECMULT_GEN_PREC_G
	.no_dead_strip	_secp256k1_ecmult_gen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecmult_gen
_secp256k1_ecmult_gen:                  ; @secp256k1_ecmult_gen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20, #12]
	str	w8, [x19]
	add	x2, x20, #8
	mov	x0, sp
	mov	x1, x21
	bl	_secp256k1_scalar_add
	str	xzr, [sp, #8]
Lloh0:
	adrp	x21, _ECMULT_GEN_PREC_N@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ECMULT_GEN_PREC_N@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x23, _ECMULT_GEN_PREC_B@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ECMULT_GEN_PREC_B@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ECMULT_GEN_PREC_G@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ECMULT_GEN_PREC_G@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_secp256k1_ge_from_storage
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x19
	bl	_secp256k1_gej_add_ge
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w2, [x23]
	mul	w1, w2, w22
	mov	x0, sp
	bl	_secp256k1_scalar_get_bits
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	x26, #0
	mov	w27, w0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, x22, lsl #3]
	add	x1, x8, x25
	cmp	x27, x26
	cset	w2, eq
	add	x0, sp, #4
	bl	_secp256k1_ge_storage_cmov
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x26, x8
	b.lt	LBB0_5
	b	LBB0_2
LBB0_6:
	add	x0, sp, #8
	bl	_secp256k1_ge_clear
	mov	x0, sp
	bl	_secp256k1_scalar_clear
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMULT_GEN_PREC_N,4,2          ; @ECMULT_GEN_PREC_N
	.comm	_ECMULT_GEN_PREC_B,4,2          ; @ECMULT_GEN_PREC_B
	.comm	_ECMULT_GEN_PREC_G,4,2          ; @ECMULT_GEN_PREC_G
	.no_dead_strip	_secp256k1_ecmult_gen
.subsections_via_symbols
