	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nistp521_precompute_mult ## -- Begin function ec_GFp_nistp521_precompute_mult
	.p2align	4, 0x90
_ec_GFp_nistp521_precompute_mult:       ## @ec_GFp_nistp521_precompute_mult
	.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	$104, %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, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_EC_pre_comp_free
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_27
LBB0_3:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_EC_POINT_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%r15, %r12
	movq	%rax, %r15
	movq	_nistp521_curve_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax), %edi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_BN_bin2bn
	movq	_nistp521_curve_params@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax), %edi
	movl	$4, %esi
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_EC_POINT_set_affine_coordinates
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_nistp521_pre_comp_new
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r13
	movq	-128(%rbp), %r15                ## 8-byte Reload
	movq	(%r15), %rdx
	movq	%r15, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_EC_POINT_cmp
	movq	(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movl	8(%rax), %esi
	callq	_BN_to_felem
	testl	%eax, %eax
	je	LBB0_26
## %bb.14:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	movq	(%r15), %rax
	movl	4(%rax), %esi
	callq	_BN_to_felem
	testl	%eax, %eax
	je	LBB0_26
## %bb.15:
	movq	(%r13), %rax
	movq	8(%rax), %rax
	movl	8(%rax), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	callq	_BN_to_felem
	testl	%eax, %eax
	je	LBB0_26
## %bb.16:
	movq	(%r13), %rax
	movq	8(%rax), %rbx
	movq	16(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	callq	_point_double
	movl	$129, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	16(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	%ecx, %edi
	movl	%esi, %r8d
	movl	%edx, %r9d
	callq	_point_double
	decl	%ebx
	jne	LBB0_17
## %bb.18:
	movq	(%r13), %rax
	movq	16(%rax), %rbx
	movq	32(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	callq	_point_double
	movl	$129, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	32(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	%ecx, %edi
	movl	%esi, %r8d
	movl	%edx, %r9d
	callq	_point_double
	decl	%ebx
	jne	LBB0_19
## %bb.20:
	movq	(%r13), %rax
	movq	32(%rax), %rbx
	movq	64(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	callq	_point_double
	movl	$129, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	64(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	movl	8(%rax), %edx
	movl	%ecx, %edi
	movl	%esi, %r8d
	movl	%edx, %r9d
	callq	_point_double
	decl	%ebx
	jne	LBB0_21
## %bb.22:
	movq	(%r13), %rax
	movq	(%rax), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	48(%rax), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movl	8(%rcx), %edx
	movq	16(%rax), %r10
	movq	32(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	(%r10), %r11d
	movl	4(%r10), %ebx
	movl	8(%r10), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	$0
	callq	_point_add
	addq	$32, %rsp
	movq	(%r13), %rax
	movq	80(%rax), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movl	8(%rcx), %edx
	movq	16(%rax), %r10
	movq	64(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	(%r10), %r11d
	movl	4(%r10), %ebx
	movl	8(%r10), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	$0
	callq	_point_add
	addq	$32, %rsp
	movq	(%r13), %rax
	movq	96(%rax), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movl	8(%rcx), %edx
	movq	32(%rax), %r10
	movq	64(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	(%r10), %r11d
	movl	4(%r10), %ebx
	movl	8(%r10), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	$0
	callq	_point_add
	addq	$32, %rsp
	movq	(%r13), %rax
	movq	112(%rax), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movl	8(%rcx), %edx
	movq	16(%rax), %r10
	movq	96(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	movl	8(%rax), %r9d
	movl	(%r10), %r11d
	movl	4(%r10), %ebx
	movl	8(%r10), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r11
	pushq	$0
	callq	_point_add
	addq	$32, %rsp
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	16(%rax,%r12), %rbx
	movq	24(%rax,%r12), %rcx
	movl	(%rcx), %edi
	movl	4(%rcx), %esi
	movl	8(%rcx), %edx
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	movq	8(%rax), %rax
	movl	(%rax), %r10d
	movl	4(%rax), %ebx
	movl	8(%rax), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	pushq	$0
	callq	_point_add
	addq	$32, %rsp
	addq	$16, %r12
	cmpq	$112, %r12
	jne	LBB0_23
## %bb.24:
	movq	(%r13), %rsi
	addq	$8, %rsi
	leaq	-112(%rbp), %rdx
	movl	$15, %edi
	callq	_make_points_affine
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_25
LBB0_6:
	xorl	%r12d, %r12d
LBB0_4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_26:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	%rbx, %rdi
	callq	_EC_POINT_free
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	callq	_BN_CTX_free
	movq	%r13, %rdi
	callq	_EC_nistp521_pre_comp_free
	movl	%r12d, %ebx
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r13d, %r13d
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_26
LBB0_12:
	movq	_gmul@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
LBB0_25:
	movq	_nistp521@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_SETPRECOMP
	movl	$1, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_nistp521_curve_params,8,3      ## @nistp521_curve_params
	.comm	_gmul,4,2                       ## @gmul
	.comm	_nistp521,4,2                   ## @nistp521
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nistp521_precompute_mult ; -- Begin function ec_GFp_nistp521_precompute_mult
	.p2align	2
_ec_GFp_nistp521_precompute_mult:       ; @ec_GFp_nistp521_precompute_mult
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_EC_pre_comp_free
	cbz	x19, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_23
LBB0_3:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x23, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_21
; %bb.4:
	ldr	x8, [x22]
	cbz	x8, LBB0_21
; %bb.5:
	mov	x24, x0
	mov	x0, x22
	bl	_EC_POINT_new
	mov	x21, x0
	cbz	x0, LBB0_22
; %bb.6:
Lloh3:
	adrp	x25, _nistp521_curve_params@GOTPAGE
Lloh4:
	ldr	x25, [x25, _nistp521_curve_params@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w0, [x8, #12]
	mov	w1, #4
	mov	x2, x23
	bl	_BN_bin2bn
	ldr	x8, [x25]
	ldr	w0, [x8, #16]
	mov	w1, #4
	mov	x2, x24
	bl	_BN_bin2bn
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x24
	mov	x4, x19
	bl	_EC_POINT_set_affine_coordinates
	cbz	w0, LBB0_22
; %bb.7:
	bl	_nistp521_pre_comp_new
	mov	x23, x0
	cbz	x0, LBB0_24
; %bb.8:
	ldr	x2, [x22]
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_EC_POINT_cmp
	mov	x8, x0
	ldr	x0, [x23]
	cbz	x8, LBB0_25
; %bb.9:
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	bl	_BN_to_felem
	cbz	w0, LBB0_24
; %bb.10:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
	ldr	x8, [x22]
	ldr	w1, [x8, #4]
	bl	_BN_to_felem
	cbz	w0, LBB0_24
; %bb.11:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #8]
	ldr	x8, [x22]
	ldr	w1, [x8]
	bl	_BN_to_felem
	cbz	w0, LBB0_24
; %bb.12:
	ldr	x8, [x23]
	ldp	x8, x9, [x8, #8]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldp	w3, w4, [x8]
	ldr	w5, [x8, #8]
	bl	_point_double
	mov	w24, #129
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #8]
	mov	x3, x0
	mov	x4, x1
	mov	x5, x2
	bl	_point_double
	subs	w24, w24, #1
	b.ne	LBB0_13
; %bb.14:
	ldr	x8, [x23]
	ldr	x9, [x8, #32]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x8, [x8, #16]
	ldp	w3, w4, [x8]
	ldr	w5, [x8, #8]
	bl	_point_double
	mov	w24, #129
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #32]
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #8]
	mov	x3, x0
	mov	x4, x1
	mov	x5, x2
	bl	_point_double
	subs	w24, w24, #1
	b.ne	LBB0_15
; %bb.16:
	ldr	x8, [x23]
	ldr	x9, [x8, #64]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x8, [x8, #32]
	ldp	w3, w4, [x8]
	ldr	w5, [x8, #8]
	bl	_point_double
	mov	w24, #129
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #64]
	ldp	w0, w1, [x8]
	ldr	w2, [x8, #8]
	mov	x3, x0
	mov	x4, x1
	mov	x5, x2
	bl	_point_double
	subs	w24, w24, #1
	b.ne	LBB0_17
; %bb.18:
	ldr	x8, [x23]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x23]
	ldr	x9, [x8, #48]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x9, [x8, #32]
	ldp	w3, w4, [x9]
	ldr	w5, [x9, #8]
	ldr	x8, [x8, #16]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [sp]
	mov	w6, #0
	bl	_point_add
	ldr	x8, [x23]
	ldr	x9, [x8, #80]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x9, [x8, #64]
	ldp	w3, w4, [x9]
	ldr	w5, [x9, #8]
	ldr	x8, [x8, #16]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [sp]
	mov	w6, #0
	bl	_point_add
	ldr	x8, [x23]
	ldr	x9, [x8, #96]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x9, [x8, #64]
	ldp	w3, w4, [x9]
	ldr	w5, [x9, #8]
	ldr	x8, [x8, #32]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [sp]
	mov	w6, #0
	bl	_point_add
	ldr	x8, [x23]
	ldr	x9, [x8, #112]
	ldp	w0, w1, [x9]
	ldr	w2, [x9, #8]
	ldr	x9, [x8, #96]
	ldp	w3, w4, [x9]
	ldr	w5, [x9, #8]
	ldr	x8, [x8, #16]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [sp]
	mov	w6, #0
	bl	_point_add
	mov	x24, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x9, x8, x24
	ldp	x9, x10, [x9, #16]
	ldp	w0, w1, [x10]
	ldr	w2, [x10, #8]
	ldp	w3, w4, [x9]
	ldr	w5, [x9, #8]
	ldr	x8, [x8, #8]
	ldp	w7, w9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [sp]
	mov	w6, #0
	bl	_point_add
	add	x24, x24, #16
	cmp	x24, #112
	b.ne	LBB0_19
; %bb.20:
	ldr	x8, [x23]
	add	x1, x8, #8
	add	x2, sp, #8
	mov	w0, #15
	bl	_make_points_affine
	b	LBB0_26
LBB0_21:
	mov	w22, #0
	mov	x23, #0
	mov	x21, #0
	b	LBB0_27
LBB0_22:
	mov	w22, #0
	mov	x23, #0
	b	LBB0_27
LBB0_23:
	mov	w22, #0
	b	LBB0_28
LBB0_24:
	mov	w22, #0
	b	LBB0_27
LBB0_25:
Lloh5:
	adrp	x8, _gmul@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gmul@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #8
	bl	_memcpy
LBB0_26:
Lloh8:
	adrp	x8, _nistp521@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nistp521@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x23
	bl	_SETPRECOMP
	mov	x23, #0
	mov	w22, #1
LBB0_27:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x21
	bl	_EC_POINT_free
	mov	x0, x20
	bl	_BN_CTX_free
	mov	x0, x23
	bl	_EC_nistp521_pre_comp_free
LBB0_28:
	ldr	x8, [sp, #72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x22
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_nistp521_curve_params,8,3      ; @nistp521_curve_params
	.comm	_gmul,4,2                       ; @gmul
	.comm	_nistp521,4,2                   ; @nistp521
.subsections_via_symbols
