	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eckey_pub_encode
_eckey_pub_encode:                      ## @eckey_pub_encode
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	movq	$0, -40(%rbp)
	leaq	-28(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_eckey_param2type
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_i2o_ECPublicKey
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i2o_ECPublicKey
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movl	-28(%rbp), %edx
	movq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %r8
	movl	%ebx, %r9d
	callq	_X509_PUBKEY_set0_param
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_7
LBB0_1:
	movq	_EC_F_ECKEY_PUB_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_11
LBB0_4:
	xorl	%r15d, %r15d
LBB0_7:
	movl	-28(%rbp), %eax
	movq	_V_ASN1_OBJECT@GOTPCREL(%rip), %rcx
	movq	-40(%rbp), %rdi
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	callq	_ASN1_OBJECT_free
	jmp	LBB0_10
LBB0_9:
	callq	_ASN1_STRING_free
LBB0_10:
	movq	%r15, %rdi
	callq	_OPENSSL_free
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECKEY_PUB_ENCODE,4,2      ## @EC_F_ECKEY_PUB_ENCODE
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.comm	_EVP_PKEY_EC,4,2                ## @EVP_PKEY_EC
	.comm	_V_ASN1_OBJECT,4,2              ## @V_ASN1_OBJECT
	.no_dead_strip	_eckey_pub_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eckey_pub_encode
_eckey_pub_encode:                      ; @eckey_pub_encode
	.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
	mov	x20, x0
	ldr	x21, [x1]
	str	xzr, [sp, #24]
	add	x0, sp, #20
	add	x1, sp, #24
	mov	x2, x21
	bl	_eckey_param2type
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	bl	_i2o_ECPublicKey
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.3:
	str	x19, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_i2o_ECPublicKey
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, x0
Lloh0:
	adrp	x8, _EVP_PKEY_EC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_EC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x1, x0
	ldr	w2, [sp, #20]
	ldr	x3, [sp, #24]
	mov	x0, x20
	mov	x4, x19
	mov	x5, x21
	bl	_X509_PUBKEY_set0_param
	cbz	x0, LBB0_8
; %bb.5:
	mov	w0, #1
	b	LBB0_13
LBB0_6:
Lloh3:
	adrp	x8, _EC_F_ECKEY_PUB_ENCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_ECKEY_PUB_ENCODE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ECerr
	b	LBB0_12
LBB0_7:
	mov	x19, #0
LBB0_8:
	ldr	w8, [sp, #20]
Lloh9:
	adrp	x9, _V_ASN1_OBJECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V_ASN1_OBJECT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ldr	x0, [sp, #24]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	bl	_ASN1_OBJECT_free
	b	LBB0_11
LBB0_10:
	bl	_ASN1_STRING_free
LBB0_11:
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECKEY_PUB_ENCODE,4,2      ; @EC_F_ECKEY_PUB_ENCODE
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.comm	_EVP_PKEY_EC,4,2                ; @EVP_PKEY_EC
	.comm	_V_ASN1_OBJECT,4,2              ; @V_ASN1_OBJECT
	.no_dead_strip	_eckey_pub_encode
.subsections_via_symbols
