	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_eckey               ## -- Begin function sshbuf_get_eckey
	.p2align	4, 0x90
_sshbuf_get_eckey:                      ## @sshbuf_get_eckey
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_EC_KEY_get0_group
	movl	%eax, %edi
	callq	_EC_POINT_new
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sshbuf_peek_string_direct
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rbx
	movq	-48(%rbp), %r13
	movq	%r15, %rdi
	callq	_EC_KEY_get0_group
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_get_ec
	testl	%eax, %eax
	je	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_EC_POINT_free
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_EC_KEY_set_public_key
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_EC_POINT_free
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.9:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sshbuf_get_string_direct
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_SSHBUF_DBG
	xorl	%eax, %eax
	callq	_SSHBUF_ABORT
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSH_ERR_ALLOC_FAIL"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_eckey               ; -- Begin function sshbuf_get_eckey
	.p2align	2
_sshbuf_get_eckey:                      ; @sshbuf_get_eckey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_EC_KEY_get0_group
	bl	_EC_POINT_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_sshbuf_peek_string_direct
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldp	x23, x22, [sp]
	mov	x0, x21
	bl	_EC_KEY_get0_group
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_get_ec
	cbz	w0, LBB0_8
LBB0_3:
	mov	x22, x0
	mov	x0, x20
	bl	_EC_POINT_free
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_DBG
LBB0_5:
Lloh2:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
LBB0_6:
	ldr	w22, [x8]
LBB0_7:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_EC_KEY_set_public_key
	mov	x21, x0
	mov	x0, x20
	bl	_EC_POINT_free
	cmp	w21, #1
	b.ne	LBB0_5
; %bb.9:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_sshbuf_get_string_direct
	cbz	x0, LBB0_11
; %bb.10:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SSHBUF_DBG
	bl	_SSHBUF_ABORT
Lloh6:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	mov	w22, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH_ERR_ALLOC_FAIL"

	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"SSH_ERR_INTERNAL_ERROR"

	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
.subsections_via_symbols
