	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_pkey_ctrl
_ec_pkey_ctrl:                          ## @ec_pkey_ctrl
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movl	$-2, %r14d
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_22
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r15, %rdi
	callq	_EVP_PKEY_get0_EC_KEY
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EC_KEY_oct2key                 ## TAILCALL
LBB0_3:
	movl	$1, %r14d
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.4:
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_PKCS7_SIGNER_INFO_get0_algs
	jmp	LBB0_5
LBB0_10:
	movq	%r15, %rdi
	callq	_EVP_PKEY_get0_EC_KEY
	movq	_POINT_CONVERSION_UNCOMPRESSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EC_KEY_key2buf                 ## TAILCALL
LBB0_11:
	movq	%r15, %rdi
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_SM2@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.12:
	movq	_NID_sm3@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_13:
	movl	$1, %r14d
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.14:
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_CMS_SignerInfo_get0_algs
LBB0_5:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.7:
	callq	_OBJ_obj2nid
	movl	%eax, %ebx
	movq	_NID_undef@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_EVP_PKEY_id
	leaq	-36(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_OBJ_find_sigid_by_algs
	testl	%eax, %eax
	je	LBB0_9
## %bb.15:
	movq	-48(%rbp), %rbx
	movl	-36(%rbp), %edi
	callq	_OBJ_nid2obj
	movq	_V_ASN1_UNDEF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_X509_ALGOR_set0
	jmp	LBB0_22
LBB0_16:
	movq	_CMS_RECIPINFO_AGREE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.18:
	cmpq	$1, %rbx
	jne	LBB0_22
## %bb.19:
	movq	%r12, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecdh_cms_decrypt               ## TAILCALL
LBB0_9:
	movl	$-1, %r14d
	jmp	LBB0_22
LBB0_20:
	movq	_NID_sha256@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	$1, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r12, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecdh_cms_encrypt               ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_V_ASN1_UNDEF,4,2               ## @V_ASN1_UNDEF
	.comm	_CMS_RECIPINFO_AGREE,4,2        ## @CMS_RECIPINFO_AGREE
	.comm	_EVP_PKEY_SM2,4,2               ## @EVP_PKEY_SM2
	.comm	_NID_sm3,4,2                    ## @NID_sm3
	.comm	_NID_sha256,4,2                 ## @NID_sha256
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ## @POINT_CONVERSION_UNCOMPRESSED
	.no_dead_strip	_ec_pkey_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_pkey_ctrl
_ec_pkey_ctrl:                          ; @ec_pkey_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	w8, w1, #128
	cmp	w8, #6
	b.hi	LBB0_18
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_EVP_PKEY_get0_EC_KEY
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_EC_KEY_oct2key
LBB0_3:
	cbnz	x21, LBB0_22
; %bb.4:
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, #0
	bl	_PKCS7_SIGNER_INFO_get0_algs
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_10
	b	LBB0_19
LBB0_5:
	mov	x0, x19
	bl	_EVP_PKEY_get0_EC_KEY
Lloh2:
	adrp	x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_EC_KEY_key2buf
LBB0_6:
	mov	x0, x19
	bl	_EVP_PKEY_id
Lloh5:
	adrp	x8, _EVP_PKEY_SM2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_PKEY_SM2@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.7:
Lloh8:
	adrp	x8, _NID_sm3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NID_sm3@GOTPAGEOFF]
	b	LBB0_21
LBB0_8:
	cbnz	x21, LBB0_22
; %bb.9:
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_CMS_SignerInfo_get0_algs
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_19
LBB0_10:
	ldr	x0, [x8]
	cbz	x0, LBB0_19
; %bb.11:
	bl	_OBJ_obj2nid
Lloh10:
	adrp	x8, _NID_undef@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.12:
	mov	x20, x0
	mov	x0, x19
	bl	_EVP_PKEY_id
	mov	x2, x0
	add	x0, sp, #28
	mov	x1, x20
	bl	_OBJ_find_sigid_by_algs
	cbz	w0, LBB0_19
; %bb.13:
	ldr	x19, [sp, #8]
	ldr	w0, [sp, #28]
	bl	_OBJ_nid2obj
	mov	x1, x0
Lloh13:
	adrp	x8, _V_ASN1_UNDEF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V_ASN1_UNDEF@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_X509_ALGOR_set0
	b	LBB0_22
LBB0_14:
Lloh16:
	adrp	x8, _CMS_RECIPINFO_AGREE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMS_RECIPINFO_AGREE@GOTPAGEOFF]
	b	LBB0_21
LBB0_15:
	cbz	x21, LBB0_24
; %bb.16:
	cmp	x21, #1
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ecdh_cms_decrypt
LBB0_18:
	mov	w0, #-2
	b	LBB0_23
LBB0_19:
	mov	w0, #-1
	b	LBB0_23
LBB0_20:
Lloh18:
	adrp	x8, _NID_sha256@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NID_sha256@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_22:
	mov	w0, #1
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ecdh_cms_encrypt
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_V_ASN1_UNDEF,4,2               ; @V_ASN1_UNDEF
	.comm	_CMS_RECIPINFO_AGREE,4,2        ; @CMS_RECIPINFO_AGREE
	.comm	_EVP_PKEY_SM2,4,2               ; @EVP_PKEY_SM2
	.comm	_NID_sm3,4,2                    ; @NID_sm3
	.comm	_NID_sha256,4,2                 ; @NID_sha256
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ; @POINT_CONVERSION_UNCOMPRESSED
	.no_dead_strip	_ec_pkey_ctrl
.subsections_via_symbols
