	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nist_group_set_curve    ## -- Begin function ec_GFp_nist_group_set_curve
	.p2align	4, 0x90
_ec_GFp_nist_group_set_curve:           ## @ec_GFp_nist_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	%r8, %rbx
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BN_CTX_start
	xorl	%eax, %eax
	callq	_BN_get0_nist_prime_192
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	xorl	%eax, %eax
	callq	_BN_get0_nist_prime_224
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_BN_get0_nist_prime_256
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	xorl	%eax, %eax
	callq	_BN_get0_nist_prime_384
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_get0_nist_prime_521
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_BN_ucmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_EC_F_EC_GFP_NIST_GROUP_SET_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_NOT_A_NIST_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_15
LBB0_4:
	movq	_BN_nist_mod_192@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_BN_nist_mod_224@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_BN_nist_mod_256@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_BN_nist_mod_384@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_13:
	movq	_BN_nist_mod_521@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%r12, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	callq	_ec_GFp_simple_group_set_curve
	movl	%eax, %r14d
LBB0_15:
	movq	%rbx, %rdi
	callq	_BN_CTX_end
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_nist_mod_192,4,2            ## @BN_nist_mod_192
	.comm	_BN_nist_mod_224,4,2            ## @BN_nist_mod_224
	.comm	_BN_nist_mod_256,4,2            ## @BN_nist_mod_256
	.comm	_BN_nist_mod_384,4,2            ## @BN_nist_mod_384
	.comm	_BN_nist_mod_521,4,2            ## @BN_nist_mod_521
	.comm	_EC_F_EC_GFP_NIST_GROUP_SET_CURVE,4,2 ## @EC_F_EC_GFP_NIST_GROUP_SET_CURVE
	.comm	_EC_R_NOT_A_NIST_PRIME,4,2      ## @EC_R_NOT_A_NIST_PRIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_nist_group_set_curve    ; -- Begin function ec_GFp_nist_group_set_curve
	.p2align	2
_ec_GFp_nist_group_set_curve:           ; @ec_GFp_nist_group_set_curve
	.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
	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	x19, x0
	mov	x20, x0
	cbz	x0, LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_BN_CTX_start
	bl	_BN_get0_nist_prime_192
	mov	x1, x23
	bl	_BN_ucmp
	cbz	x0, LBB0_9
; %bb.4:
	bl	_BN_get0_nist_prime_224
	mov	x1, x23
	bl	_BN_ucmp
	cbz	x0, LBB0_10
; %bb.5:
	bl	_BN_get0_nist_prime_256
	mov	x1, x23
	bl	_BN_ucmp
	cbz	x0, LBB0_12
; %bb.6:
	bl	_BN_get0_nist_prime_384
	mov	x1, x23
	bl	_BN_ucmp
	cbz	x0, LBB0_13
; %bb.7:
	bl	_BN_get0_nist_prime_521
	mov	x1, x23
	bl	_BN_ucmp
	cbz	x0, LBB0_14
; %bb.8:
Lloh0:
	adrp	x8, _EC_F_EC_GFP_NIST_GROUP_SET_CURVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_GFP_NIST_GROUP_SET_CURVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EC_R_NOT_A_NIST_PRIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_NOT_A_NIST_PRIME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w21, #0
	b	LBB0_16
LBB0_9:
Lloh6:
	adrp	x8, _BN_nist_mod_192@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BN_nist_mod_192@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh8:
	adrp	x8, _BN_nist_mod_224@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BN_nist_mod_224@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	w21, #0
	b	LBB0_17
LBB0_12:
Lloh10:
	adrp	x8, _BN_nist_mod_256@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BN_nist_mod_256@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh12:
	adrp	x8, _BN_nist_mod_384@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BN_nist_mod_384@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh14:
	adrp	x8, _BN_nist_mod_521@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BN_nist_mod_521@GOTPAGEOFF]
LBB0_15:
	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
LBB0_16:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
LBB0_17:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_nist_mod_192,4,2            ; @BN_nist_mod_192
	.comm	_BN_nist_mod_224,4,2            ; @BN_nist_mod_224
	.comm	_BN_nist_mod_256,4,2            ; @BN_nist_mod_256
	.comm	_BN_nist_mod_384,4,2            ; @BN_nist_mod_384
	.comm	_BN_nist_mod_521,4,2            ; @BN_nist_mod_521
	.comm	_EC_F_EC_GFP_NIST_GROUP_SET_CURVE,4,2 ; @EC_F_EC_GFP_NIST_GROUP_SET_CURVE
	.comm	_EC_R_NOT_A_NIST_PRIME,4,2      ; @EC_R_NOT_A_NIST_PRIME
.subsections_via_symbols
