	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecx_pub_encode
_ecx_pub_encode:                        ## @ecx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rax), %r15d
	movq	%rsi, %rdi
	callq	_KEYLEN
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_OPENSSL_memdup
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_OBJ_nid2obj
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_V_ASN1_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_KEYLEN
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	movl	%eax, %r9d
	callq	_X509_PUBKEY_set0_param
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_5
LBB0_1:
	movq	_EC_R_INVALID_KEY@GOTPCREL(%rip), %r12
LBB0_5:
	movq	_EC_F_ECX_PUB_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_ECerr
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECX_PUB_ENCODE,4,2        ## @EC_F_ECX_PUB_ENCODE
	.comm	_EC_R_INVALID_KEY,4,2           ## @EC_R_INVALID_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_UNDEF,4,2               ## @V_ASN1_UNDEF
	.no_dead_strip	_ecx_pub_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecx_pub_encode
_ecx_pub_encode:                        ; @ecx_pub_encode
	.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
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w20, [x8]
	mov	x0, x1
	bl	_KEYLEN
	mov	x1, x0
	mov	x0, x20
	bl	_OPENSSL_memdup
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_OBJ_nid2obj
	mov	x22, x0
Lloh0:
	adrp	x8, _V_ASN1_UNDEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_UNDEF@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_KEYLEN
	mov	x5, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, #0
	mov	x4, x20
	bl	_X509_PUBKEY_set0_param
	cbz	w0, LBB0_5
; %bb.3:
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _EC_R_INVALID_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_INVALID_KEY@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_OPENSSL_free
LBB0_6:
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
LBB0_7:
Lloh7:
	adrp	x9, _EC_F_ECX_PUB_ENCODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EC_F_ECX_PUB_ENCODE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_ECerr
	mov	w0, #0
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECX_PUB_ENCODE,4,2        ; @EC_F_ECX_PUB_ENCODE
	.comm	_EC_R_INVALID_KEY,4,2           ; @EC_R_INVALID_KEY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_UNDEF,4,2               ; @V_ASN1_UNDEF
	.no_dead_strip	_ecx_pub_encode
.subsections_via_symbols
