	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nist_field_sqr          ## -- Begin function ec_GFp_nist_field_sqr
	.p2align	4, 0x90
_ec_GFp_nist_field_sqr:                 ## @ec_GFp_nist_field_sqr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.5:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_BN_sqr
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	*8(%r14)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_10
LBB0_3:
	movq	_EC_F_EC_GFP_NIST_FIELD_SQR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_PASSED_NULL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_8:
	xorl	%r15d, %r15d
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	callq	_BN_CTX_free
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GFP_NIST_FIELD_SQR,4,2 ## @EC_F_EC_GFP_NIST_FIELD_SQR
	.comm	_EC_R_PASSED_NULL_PARAMETER,4,2 ## @EC_R_PASSED_NULL_PARAMETER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nist_field_sqr          ; -- Begin function ec_GFp_nist_field_sqr
	.p2align	2
_ec_GFp_nist_field_sqr:                 ; @ec_GFp_nist_field_sqr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x23, x2
	cbz	x2, LBB0_5
; %bb.3:
	mov	x21, x3
	mov	x22, x0
	cbz	x3, LBB0_6
; %bb.4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _EC_F_EC_GFP_NIST_FIELD_SQR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_GFP_NIST_FIELD_SQR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EC_R_PASSED_NULL_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_PASSED_NULL_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w20, #0
	mov	x19, #0
	b	LBB0_10
LBB0_6:
	bl	_BN_CTX_new
	mov	x21, x0
	mov	x19, x0
	cbz	x0, LBB0_9
LBB0_7:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_BN_sqr
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x22, #8]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x20
	mov	x3, x21
	blr	x8
	cmp	w0, #0
	cset	w20, ne
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GFP_NIST_FIELD_SQR,4,2 ; @EC_F_EC_GFP_NIST_FIELD_SQR
	.comm	_EC_R_PASSED_NULL_PARAMETER,4,2 ; @EC_R_PASSED_NULL_PARAMETER
.subsections_via_symbols
