	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ec
_get_ec:                                ## @get_ec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rax
	movq	_SSHBUF_MAX_ECPOINT@GOTPCREL(%rip), %rsi
	cmpq	%rax, (%rsi)
	jb	LBB0_2
## %bb.3:
	movq	%rdi, %r8
	movq	(%rdi), %rsi
	movq	_POINT_CONVERSION_UNCOMPRESSED@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.5:
	movq	%rcx, %rdi
	movq	%rdx, %rsi
	movq	%r8, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_EC_POINT_oct2point
	cmpl	$1, %eax
	je	LBB0_8
LBB0_6:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_SSH_ERR_ECPOINT_TOO_LARGE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSHBUF_MAX_ECPOINT,8,3         ## @SSHBUF_MAX_ECPOINT
	.comm	_SSH_ERR_ECPOINT_TOO_LARGE,4,2  ## @SSH_ERR_ECPOINT_TOO_LARGE
	.comm	_POINT_CONVERSION_UNCOMPRESSED,8,3 ## @POINT_CONVERSION_UNCOMPRESSED
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.no_dead_strip	_get_ec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ec
_get_ec:                                ; @get_ec
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_5
; %bb.1:
	mov	x8, x1
Lloh0:
	adrp	x10, _SSHBUF_MAX_ECPOINT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SSHBUF_MAX_ECPOINT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x10, x1
	b.lo	LBB0_5
; %bb.2:
	mov	x9, x0
	ldr	x10, [x0]
Lloh3:
	adrp	x11, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_6
; %bb.3:
	cbz	x2, LBB0_8
; %bb.4:
	mov	x0, x3
	mov	x1, x2
	mov	x2, x9
	mov	x3, x8
	mov	x4, #0
	bl	_EC_POINT_oct2point
Lloh6:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh9:
	adrp	x8, _SSH_ERR_ECPOINT_TOO_LARGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_ECPOINT_TOO_LARGE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SSHBUF_MAX_ECPOINT,8,3         ; @SSHBUF_MAX_ECPOINT
	.comm	_SSH_ERR_ECPOINT_TOO_LARGE,4,2  ; @SSH_ERR_ECPOINT_TOO_LARGE
	.comm	_POINT_CONVERSION_UNCOMPRESSED,8,3 ; @POINT_CONVERSION_UNCOMPRESSED
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.no_dead_strip	_get_ec
.subsections_via_symbols
