	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_gen_context_build
_secp256k1_ecmult_gen_context_build:    ## @secp256k1_ecmult_gen_context_build
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %r15
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	imull	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	cmpq	$0, (%rbx)
	jne	LBB0_21
## %bb.1:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdx
	movq	_SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	callq	_manual_alloc
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	_secp256k1_ge_const_g@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_secp256k1_gej_set_ge
	leaq	_secp256k1_ecmult_gen_context_build.nums_b32(%rip), %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_secp256k1_fe_set_b32
	movl	%eax, %edi
	callq	_VERIFY_CHECK
	movq	%r12, %r14
	leaq	-52(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_ge_set_xo_var
	movl	%eax, %edi
	callq	_VERIFY_CHECK
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_secp256k1_gej_set_ge
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	_secp256k1_ge_const_g@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_ge_var
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movl	(%r14), %eax
	imull	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %ecx
	movl	%ecx, -52(%rbp)
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.2:
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%rbx), %eax
	movl	%eax, %edx
	imull	%r13d, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%r14,%rdx,4)
	cmpl	$2, %eax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r13d, %eax
	cltq
	leaq	(%r15,%rax), %rcx
	leaq	(%r14,%rcx,4), %rdi
	addq	$4, %rdi
	addl	%r15d, %eax
	cltq
	leaq	(%r14,%rax,4), %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_var
	movl	(%rbx), %eax
	incq	%r15
	leal	1(%r15), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ECMULT_GEN_PREC_B@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_gej_double_var
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	-52(%rbp), %rdi
	movq	%rdi, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_gej_double_var
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	-2(%rdx), %eax
	cmpl	%eax, %r13d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_gej_neg
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	leaq	-60(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_secp256k1_gej_add_var
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	cmpl	%edx, %r13d
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %rbx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx
	jmp	LBB0_3
LBB0_13:
	imull	(%rbx), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_secp256k1_ge_set_all_gej_var
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_20
## %bb.14:
	movl	(%rbx), %eax
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_20
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	testl	%eax, %eax
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rdi
	addq	%r15, %rdi
	imull	%r14d, %eax
	cltq
	addq	%rbx, %rax
	leaq	(%r12,%rax,4), %rsi
	callq	_secp256k1_ge_to_storage
	incq	%rbx
	movq	_ECMULT_GEN_PREC_G@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_ECMULT_GEN_PREC_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_19
LBB0_20:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_ecmult_gen_blind
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMULT_GEN_PREC_N,4,2          ## @ECMULT_GEN_PREC_N
	.comm	_ECMULT_GEN_PREC_G,4,2          ## @ECMULT_GEN_PREC_G
	.comm	_SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE,8,3 ## @SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE
	.comm	_secp256k1_ge_const_g,4,2       ## @secp256k1_ge_const_g
	.section	__TEXT,__const
	.p2align	4                               ## @secp256k1_ecmult_gen_context_build.nums_b32
_secp256k1_ecmult_gen_context_build.nums_b32:
	.asciz	"The scalar for this x is unknown"

	.comm	_ECMULT_GEN_PREC_B,4,2          ## @ECMULT_GEN_PREC_B
	.comm	_secp256k1_ecmult_static_context,8,3 ## @secp256k1_ecmult_static_context
	.no_dead_strip	_secp256k1_ecmult_gen_context_build
.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_context_build
_secp256k1_ecmult_gen_context_build:    ; @secp256k1_ecmult_gen_context_build
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _ECMULT_GEN_PREC_N@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ECMULT_GEN_PREC_N@GOTPAGEOFF]
Lloh5:
	adrp	x23, _ECMULT_GEN_PREC_G@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ECMULT_GEN_PREC_G@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x23]
	mul	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0]
	cbnz	x8, LBB0_21
; %bb.1:
	ldr	x2, [x1]
Lloh9:
	adrp	x8, _SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
	mov	x0, x1
	mov	x1, x3
	bl	_manual_alloc
	str	x0, [x19]
Lloh12:
	adrp	x21, _secp256k1_ge_const_g@GOTPAGE
Lloh13:
	ldr	x21, [x21, _secp256k1_ge_const_g@GOTPAGEOFF]
	sub	x0, x29, #92
	mov	x1, x21
	bl	_secp256k1_gej_set_ge
Lloh14:
	adrp	x1, _secp256k1_ecmult_gen_context_build.nums_b32@PAGE
Lloh15:
	add	x1, x1, _secp256k1_ecmult_gen_context_build.nums_b32@PAGEOFF
	sub	x0, x29, #100
	bl	_secp256k1_fe_set_b32
	bl	_VERIFY_CHECK
	sub	x0, x29, #104
	sub	x1, x29, #100
	mov	w2, #0
	bl	_secp256k1_ge_set_xo_var
	bl	_VERIFY_CHECK
	sub	x0, x29, #96
	sub	x1, x29, #104
	bl	_secp256k1_gej_set_ge
	sub	x0, x29, #96
	sub	x1, x29, #96
	mov	x2, x21
	mov	x3, #0
	bl	_secp256k1_gej_add_ge_var
	mov	x24, sp
	ldr	w8, [x22]
	ldr	w9, [x23]
	mul	w8, w9, w8
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x21, x9, x8
	mov	sp, x21
	ldp	w9, w8, [x29, #-96]
	stp	w9, w8, [x29, #-104]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w25, #0
Lloh18:
	adrp	x26, _ECMULT_GEN_PREC_B@GOTPAGE
Lloh19:
	ldr	x26, [x26, _ECMULT_GEN_PREC_B@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w8, [x23]
	mul	w10, w8, w25
	str	w9, [x21, w10, sxtw #2]
	cmp	w8, #1
	b.le	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w25, w8
	add	x9, x27, w8, sxtw
	add	x9, x21, x9, lsl #2
	add	x0, x9, #4
	add	w8, w27, w8
	add	x1, x21, w8, sxtw #2
	sub	x2, x29, #100
	mov	x3, #0
	bl	_secp256k1_gej_add_var
	ldr	w8, [x23]
	add	x27, x27, #1
	add	w9, w27, #1
	cmp	w9, w8
	b.lt	LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w27, #0
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x0, x29, #100
	sub	x1, x29, #100
	mov	x2, #0
	bl	_secp256k1_gej_double_var
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #104
	sub	x1, x29, #104
	mov	x2, #0
	bl	_secp256k1_gej_double_var
	ldr	w8, [x22]
	sub	w9, w8, #2
	cmp	w25, w9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x29, #104
	sub	x1, x29, #104
	bl	_secp256k1_gej_neg
	sub	x0, x29, #104
	sub	x1, x29, #104
	sub	x2, x29, #96
	mov	x3, #0
	bl	_secp256k1_gej_add_var
	ldr	w8, [x22]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w9, [x29, #-104]
	b	LBB0_3
LBB0_13:
	ldr	w9, [x23]
	mul	w2, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_secp256k1_ge_set_all_gej_var
	mov	sp, x24
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.14:
	mov	x21, #0
	ldr	w8, [x23]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_20
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x24
	mul	w8, w21, w8
	add	x8, x25, w8, sxtw
	add	x1, x20, x8, lsl #2
	bl	_secp256k1_ge_to_storage
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_18
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w9, [x22]
	b	LBB0_15
LBB0_20:
	mov	x0, x19
	mov	x1, #0
	bl	_secp256k1_ecmult_gen_blind
LBB0_21:
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #80
	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
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMULT_GEN_PREC_N,4,2          ; @ECMULT_GEN_PREC_N
	.comm	_ECMULT_GEN_PREC_G,4,2          ; @ECMULT_GEN_PREC_G
	.comm	_SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE,8,3 ; @SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE
	.comm	_secp256k1_ge_const_g,4,2       ; @secp256k1_ge_const_g
	.section	__TEXT,__const
_secp256k1_ecmult_gen_context_build.nums_b32: ; @secp256k1_ecmult_gen_context_build.nums_b32
	.asciz	"The scalar for this x is unknown"

	.comm	_ECMULT_GEN_PREC_B,4,2          ; @ECMULT_GEN_PREC_B
	.comm	_secp256k1_ecmult_static_context,8,3 ; @secp256k1_ecmult_static_context
	.no_dead_strip	_secp256k1_ecmult_gen_context_build
.subsections_via_symbols
