	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nistp256_group_set_curve ## -- Begin function ec_GFp_nistp256_group_set_curve
	.p2align	4, 0x90
_ec_GFp_nistp256_group_set_curve:       ## @ec_GFp_nistp256_group_set_curve
	.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	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	testq	%r8, %r8
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r8, %r15
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_start
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r13
	movq	_nistp256_curve_params@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	movq	%r14, %rdx
	callq	_BN_bin2bn
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	$4, %esi
	movq	%r12, %rdx
	callq	_BN_bin2bn
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movl	$4, %esi
	movq	%r13, %rdx
	callq	_BN_bin2bn
	movq	%r14, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	_EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_WRONG_CURVE_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_BN_CTX_end
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
                                        ## kill: def $ebx killed $ebx killed $rbx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_BN_nist_mod_256@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, (%rdi)
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_ec_GFp_simple_group_set_curve
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_nistp256_curve_params,8,3      ## @nistp256_curve_params
	.comm	_EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE,4,2 ## @EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE
	.comm	_EC_R_WRONG_CURVE_PARAMETERS,4,2 ## @EC_R_WRONG_CURVE_PARAMETERS
	.comm	_BN_nist_mod_256,4,2            ## @BN_nist_mod_256
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nistp256_group_set_curve ; -- Begin function ec_GFp_nistp256_group_set_curve
	.p2align	2
_ec_GFp_nistp256_group_set_curve:       ; @ec_GFp_nistp256_group_set_curve
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cbz	x4, LBB0_2
; %bb.1:
	mov	x19, x4
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x27, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x26, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_8
; %bb.4:
	mov	x25, x0
Lloh0:
	adrp	x28, _nistp256_curve_params@GOTPAGE
Lloh1:
	ldr	x28, [x28, _nistp256_curve_params@GOTPAGEOFF]
	ldr	x8, [x28]
	ldr	w0, [x8]
	mov	w1, #4
	mov	x2, x27
	bl	_BN_bin2bn
	ldr	x8, [x28]
	ldr	w0, [x8, #4]
	mov	w1, #4
	mov	x2, x26
	bl	_BN_bin2bn
	ldr	x8, [x28]
	ldr	w0, [x8, #8]
	mov	w1, #4
	mov	x2, x25
	bl	_BN_bin2bn
	mov	x0, x27
	mov	x1, x23
	bl	_BN_cmp
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x26
	mov	x1, x22
	bl	_BN_cmp
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x25
	mov	x1, x21
	bl	_BN_cmp
	cbz	x0, LBB0_12
LBB0_7:
Lloh2:
	adrp	x8, _EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _EC_R_WRONG_CURVE_PARAMETERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EC_R_WRONG_CURVE_PARAMETERS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
LBB0_10:
	mov	x0, x21
	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_11:
	mov	w21, #0
	b	LBB0_10
LBB0_12:
Lloh8:
	adrp	x8, _BN_nist_mod_256@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BN_nist_mod_256@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x24]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_ec_GFp_simple_group_set_curve
	mov	x21, x0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_nistp256_curve_params,8,3      ; @nistp256_curve_params
	.comm	_EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE,4,2 ; @EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE
	.comm	_EC_R_WRONG_CURVE_PARAMETERS,4,2 ; @EC_R_WRONG_CURVE_PARAMETERS
	.comm	_BN_nist_mod_256,4,2            ; @BN_nist_mod_256
.subsections_via_symbols
