	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecx_key_op
_ecx_key_op:                            ## @ecx_key_op
	.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	%r9, %r14
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_KEY_OP_KEYGEN@GOTPCREL(%rip), %rax
	cmpq	%r9, (%rax)
	jne	LBB0_5
LBB0_1:
	movl	$16, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r13
	movq	(%rax), %rdi
	movq	_KEY_OP_PUBLIC@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_13
## %bb.3:
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_EVP_PKEY_assign
	movl	$1, %ebx
	jmp	LBB0_27
LBB0_5:
	movq	%rdx, %rcx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	leaq	-60(%rbp), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_X509_ALGOR_get0
	movl	-60(%rbp), %eax
	movq	_V_ASN1_UNDEF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.7:
	movq	%r13, %rbx
LBB0_8:
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_KEYLENID
	cmpl	%r15d, %eax
	je	LBB0_1
LBB0_10:
	movq	_EC_F_ECX_KEY_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EC_F_ECX_KEY_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	_ECerr
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_13:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_KEYLENID
	movl	%eax, %edi
	callq	_OPENSSL_secure_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_KEY_OP_KEYGEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_KEYLENID
	cmpq	%r14, %r15
	jne	LBB0_21
## %bb.15:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_RAND_priv_bytes
	testq	%rax, %rax
	jle	LBB0_24
## %bb.16:
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	ja	LBB0_4
## %bb.17:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:
	andb	$-4, (%r15)
	movq	_X448_KEYLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	orb	$-128, -1(%rax,%r15)
	jmp	LBB0_23
LBB0_19:
	movq	_EC_F_ECX_KEY_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_27:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_EC_F_ECX_KEY_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_25
LBB0_21:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_memcpy
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	ja	LBB0_4
## %bb.22:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_X448_public_from_private
	jmp	LBB0_4
LBB0_24:
	movq	%r15, %rdi
	callq	_OPENSSL_secure_free
	movq	$0, 8(%r13)
LBB0_25:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_26
LBB0_28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ED448_public_from_private
	jmp	LBB0_4
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ED25519_public_from_private
	jmp	LBB0_4
LBB0_30:
	andb	$-8, (%r15)
	movq	_X25519_KEYLEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	andb	$127, -1(%rcx,%r15)
	movslq	(%rax), %rax
	orb	$64, -1(%rax,%r15)
LBB0_31:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_X25519_public_from_private
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_23
	.long	L0_0_set_31
	.long	L0_0_set_28
	.long	L0_0_set_29
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_30, LBB0_30-LJTI0_1
.set L0_1_set_28, LBB0_28-LJTI0_1
.set L0_1_set_29, LBB0_29-LJTI0_1
LJTI0_1:
	.long	L0_1_set_18
	.long	L0_1_set_30
	.long	L0_1_set_28
	.long	L0_1_set_29
	.end_data_region
                                        ## -- End function
	.comm	_KEY_OP_KEYGEN,8,3              ## @KEY_OP_KEYGEN
	.comm	_V_ASN1_UNDEF,4,2               ## @V_ASN1_UNDEF
	.comm	_EC_F_ECX_KEY_OP,4,2            ## @EC_F_ECX_KEY_OP
	.comm	_EC_R_INVALID_ENCODING,4,2      ## @EC_R_INVALID_ENCODING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_KEY_OP_PUBLIC,8,3              ## @KEY_OP_PUBLIC
	.comm	_X25519_KEYLEN,4,2              ## @X25519_KEYLEN
	.comm	_X448_KEYLEN,4,2                ## @X448_KEYLEN
	.no_dead_strip	_ecx_key_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecx_key_op
_ecx_key_op:                            ; @ecx_key_op
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x25, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _KEY_OP_KEYGEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _KEY_OP_KEYGEN@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, x5
	b.ne	LBB0_5
LBB0_1:
	mov	w0, #16
	bl	_OPENSSL_zalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
	ldr	x22, [x0]
Lloh2:
	adrp	x8, _KEY_OP_PUBLIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KEY_OP_PUBLIC@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ne	LBB0_14
; %bb.3:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_EVP_PKEY_assign
	mov	w0, #1
	b	LBB0_13
LBB0_5:
	mov	x3, x2
	cbz	x2, LBB0_7
; %bb.6:
	add	x1, sp, #12
	mov	x0, #0
	mov	x2, #0
	bl	_X509_ALGOR_get0
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _V_ASN1_UNDEF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V_ASN1_UNDEF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
LBB0_7:
	cbz	x24, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_KEYLENID
	cmp	w0, w23
	b.eq	LBB0_1
LBB0_9:
Lloh8:
	adrp	x8, _EC_F_ECX_KEY_OP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EC_F_ECX_KEY_OP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EC_R_INVALID_ENCODING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EC_R_INVALID_ENCODING@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x8, _EC_F_ECX_KEY_OP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EC_F_ECX_KEY_OP@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x0, x19
	bl	_KEYLENID
	bl	_OPENSSL_secure_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_20
; %bb.15:
	mov	x23, x0
	ldr	x26, [x26]
	mov	x0, x19
	bl	_KEYLENID
	mov	x2, x0
	mov	x0, x23
	cmp	x26, x25
	b.ne	LBB0_21
; %bb.16:
	mov	x1, x2
	bl	_RAND_priv_bytes
	cmp	x0, #0
	b.le	LBB0_24
; %bb.17:
	sub	w8, w19, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.18:
Lloh18:
	adrp	x9, lJTI0_1@PAGE
Lloh19:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_19
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_19:
	ldrb	w8, [x23]
	and	w8, w8, #0xfc
Lloh20:
	adrp	x9, _X448_KEYLEN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _X448_KEYLEN@GOTPAGEOFF]
	strb	w8, [x23]
Lloh22:
	ldrsw	x8, [x9]
	add	x8, x8, x23
	ldurb	w9, [x8, #-1]
	orr	w9, w9, #0x80
	sturb	w9, [x8, #-1]
	b	LBB0_23
LBB0_20:
Lloh23:
	adrp	x8, _EC_F_ECX_KEY_OP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EC_F_ECX_KEY_OP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_ECerr
	b	LBB0_25
LBB0_21:
	mov	x1, x24
	bl	_memcpy
	sub	w8, w19, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.22:
Lloh29:
	adrp	x9, lJTI0_0@PAGE
Lloh30:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_23
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:
	mov	x0, x22
	mov	x1, x23
	bl	_X448_public_from_private
	b	LBB0_4
LBB0_24:
	mov	x0, x23
	bl	_OPENSSL_secure_free
	str	xzr, [x21, #8]
LBB0_25:
	mov	x0, x21
	bl	_OPENSSL_free
	b	LBB0_12
LBB0_26:
	mov	x0, x22
	mov	x1, x23
	bl	_ED448_public_from_private
	b	LBB0_4
LBB0_27:
	mov	x0, x22
	mov	x1, x23
	bl	_ED25519_public_from_private
	b	LBB0_4
LBB0_28:
	ldrb	w8, [x23]
	and	w8, w8, #0xf8
	strb	w8, [x23]
Lloh31:
	adrp	x8, _X25519_KEYLEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _X25519_KEYLEN@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	x9, x9, x23
	ldurb	w10, [x9, #-1]
	and	w10, w10, #0x7f
	sturb	w10, [x9, #-1]
	ldrsw	x8, [x8]
	add	x8, x8, x23
	ldurb	w9, [x8, #-1]
	orr	w9, w9, #0x40
	sturb	w9, [x8, #-1]
LBB0_29:
	mov	x0, x22
	mov	x1, x23
	bl	_X25519_public_from_private
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_29-LBB0_23)>>2
	.byte	(LBB0_26-LBB0_23)>>2
	.byte	(LBB0_27-LBB0_23)>>2
lJTI0_1:
	.byte	(LBB0_19-LBB0_19)>>2
	.byte	(LBB0_28-LBB0_19)>>2
	.byte	(LBB0_26-LBB0_19)>>2
	.byte	(LBB0_27-LBB0_19)>>2
                                        ; -- End function
	.comm	_KEY_OP_KEYGEN,8,3              ; @KEY_OP_KEYGEN
	.comm	_V_ASN1_UNDEF,4,2               ; @V_ASN1_UNDEF
	.comm	_EC_F_ECX_KEY_OP,4,2            ; @EC_F_ECX_KEY_OP
	.comm	_EC_R_INVALID_ENCODING,4,2      ; @EC_R_INVALID_ENCODING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_KEY_OP_PUBLIC,8,3              ; @KEY_OP_PUBLIC
	.comm	_X25519_KEYLEN,4,2              ; @X25519_KEYLEN
	.comm	_X448_KEYLEN,4,2                ; @X448_KEYLEN
	.no_dead_strip	_ecx_key_op
.subsections_via_symbols
