	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_sm2_ctrl_str
_pkey_sm2_ctrl_str:                     ## @pkey_sm2_ctrl_str
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movl	$-2, %r15d
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r12, %rdi
	callq	_EC_curve_nist2nid
	movq	_NID_undef@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	callq	_OBJ_sn2nid
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	callq	_OBJ_ln2nid
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.4:
	movq	_SM2_F_PKEY_SM2_CTRL_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM2_R_INVALID_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM2err
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVP_PKEY_CTX_set_ec_paramgen_curve_nid ## TAILCALL
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.11:
	movq	_OPENSSL_EC_NAMED_CURVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_12
LBB0_9:
	xorl	%esi, %esi
LBB0_12:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVP_PKEY_CTX_set_ec_param_enc  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ec_paramgen_curve"

	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_SM2_F_PKEY_SM2_CTRL_STR,4,2    ## @SM2_F_PKEY_SM2_CTRL_STR
	.comm	_SM2_R_INVALID_CURVE,4,2        ## @SM2_R_INVALID_CURVE
L_.str.1:                               ## @.str.1
	.asciz	"ec_param_enc"

L_.str.2:                               ## @.str.2
	.asciz	"explicit"

L_.str.3:                               ## @.str.3
	.asciz	"named_curve"

	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ## @OPENSSL_EC_NAMED_CURVE
	.no_dead_strip	_pkey_sm2_ctrl_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_sm2_ctrl_str
_pkey_sm2_ctrl_str:                     ; @pkey_sm2_ctrl_str
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
LBB0_2:
	mov	w0, #-2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	bl	_EC_curve_nist2nid
	mov	x1, x0
Lloh4:
	adrp	x21, _NID_undef@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_OBJ_sn2nid
	mov	x1, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_OBJ_ln2nid
	mov	x1, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _SM2_F_PKEY_SM2_CTRL_STR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SM2_F_PKEY_SM2_CTRL_STR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SM2_R_INVALID_CURVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SM2_R_INVALID_CURVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SM2err
	mov	w0, #0
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EVP_PKEY_CTX_set_ec_paramgen_curve_nid
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_2
; %bb.11:
Lloh16:
	adrp	x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OPENSSL_EC_NAMED_CURVE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	b	LBB0_13
LBB0_12:
	mov	w1, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EVP_PKEY_CTX_set_ec_param_enc
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ec_paramgen_curve"

	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_SM2_F_PKEY_SM2_CTRL_STR,4,2    ; @SM2_F_PKEY_SM2_CTRL_STR
	.comm	_SM2_R_INVALID_CURVE,4,2        ; @SM2_R_INVALID_CURVE
l_.str.1:                               ; @.str.1
	.asciz	"ec_param_enc"

l_.str.2:                               ; @.str.2
	.asciz	"explicit"

l_.str.3:                               ; @.str.3
	.asciz	"named_curve"

	.comm	_OPENSSL_EC_NAMED_CURVE,4,2     ; @OPENSSL_EC_NAMED_CURVE
	.no_dead_strip	_pkey_sm2_ctrl_str
.subsections_via_symbols
