	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_context_build
_secp256k1_ecmult_context_build:        ## @secp256k1_ecmult_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r13
	movq	_secp256k1_ge_const_g@GOTPCREL(%rip), %rsi
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_gej_set_ge
	movq	_WINDOW_G@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_ECMULT_TABLE_SIZE
	cltq
	movabsq	$4611686018427387903, %r12      ## imm = 0x3FFFFFFFFFFFFFFF
	andq	%rax, %r12
	movl	(%r14), %edi
	callq	_ECMULT_TABLE_SIZE
	cltq
	xorl	%edi, %edi
	cmpq	%rax, %r12
	sete	%dil
	callq	_VERIFY_CHECK
	movl	(%r14), %edi
	callq	_ECMULT_TABLE_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_manual_alloc
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	callq	_ECMULT_TABLE_SIZE
	movq	8(%rbx), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	leaq	-44(%rbp), %rdx
	callq	_secp256k1_ecmult_odd_multiples_table_storage_var
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE,8,3 ## @SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE
	.comm	_secp256k1_ge_const_g,4,2       ## @secp256k1_ge_const_g
	.comm	_WINDOW_G,4,2                   ## @WINDOW_G
	.no_dead_strip	_secp256k1_ecmult_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_context_build
_secp256k1_ecmult_context_build:        ; @secp256k1_ecmult_context_build
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	x22, [x1]
Lloh3:
	adrp	x1, _secp256k1_ge_const_g@GOTPAGE
Lloh4:
	ldr	x1, [x1, _secp256k1_ge_const_g@GOTPAGEOFF]
	add	x0, sp, #12
	bl	_secp256k1_gej_set_ge
Lloh5:
	adrp	x23, _WINDOW_G@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WINDOW_G@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ECMULT_TABLE_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	and	x24, x8, #0x3fffffffffffffff
	ldr	w0, [x23]
	bl	_ECMULT_TABLE_SIZE
	cmp	x24, w0, sxtw
	cset	w0, eq
	bl	_VERIFY_CHECK
	ldr	w0, [x23]
	bl	_ECMULT_TABLE_SIZE
	lsl	w1, w0, #2
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_manual_alloc
	str	x0, [x19, #8]
	ldr	w0, [x23]
	bl	_ECMULT_TABLE_SIZE
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	add	x2, sp, #12
	bl	_secp256k1_ecmult_odd_multiples_table_storage_var
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE,8,3 ; @SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE
	.comm	_secp256k1_ge_const_g,4,2       ; @secp256k1_ge_const_g
	.comm	_WINDOW_G,4,2                   ; @WINDOW_G
	.no_dead_strip	_secp256k1_ecmult_context_build
.subsections_via_symbols
