	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sshkey_from_blob_internal
_sshkey_from_blob_internal:             ## @sshkey_from_blob_internal
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	movq	%r14, %rdi
	callq	_sshbuf_fromb
	movq	%rax, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_sshbuf_get_cstring
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
LBB0_6:
	xorl	%r12d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	xorl	%r12d, %r12d
LBB0_8:
	callq	_sshbuf_free
	movq	%r12, %rdi
	callq	_sshkey_free
	xorl	%edi, %edi
	callq	_free
	movq	-64(%rbp), %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_free
	movq	-56(%rbp), %rdi
	callq	_free
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-64(%rbp), %rdi
	callq	_sshkey_type_from_name
	movl	%eax, %r12d
	testl	%ebx, %ebx
	je	LBB0_15
LBB0_10:
	cmpl	$134, %r12d
	je	LBB0_13
## %bb.11:
	cmpl	$133, %r12d
	jne	LBB0_17
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sshbuf_get_string_direct
	testl	%eax, %eax
	jne	LBB0_4
LBB0_13:
	leaq	-56(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sshbuf_get_string
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movl	%eax, %r13d
	jmp	LBB0_6
LBB0_15:
	movl	%r12d, %edi
	callq	_sshkey_type_is_cert
	testq	%rax, %rax
	je	LBB0_10
## %bb.16:
	movq	_SSH_ERR_KEY_CERT_INVALID_SIGN_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_17:
	movq	_SSH_ERR_KEY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_18:
	movq	-72(%rbp), %rax
	movq	_ED25519_PK_SZ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.19:
	movl	%r12d, %edi
	callq	_sshkey_new
	testq	%rax, %rax
	je	LBB0_25
## %bb.20:
	movq	%rax, %r12
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	movq	$0, -56(%rbp)
	movq	%r12, %rdi
	callq	_sshkey_is_cert
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_cert_parse
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_23:
	movq	%r14, %rdi
	callq	_sshbuf_len
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_25:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_26:
	testq	%r15, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_28
## %bb.27:
	movq	%r12, (%r15)
	xorl	%r12d, %r12d
LBB0_28:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_KEY_CERT_INVALID_SIGN_KEY,4,2 ## @SSH_ERR_KEY_CERT_INVALID_SIGN_KEY
	.comm	_ED25519_PK_SZ,8,3              ## @ED25519_PK_SZ
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ## @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_EC_CURVE_INVALID,4,2   ## @SSH_ERR_EC_CURVE_INVALID
	.comm	_SSH_ERR_EC_CURVE_MISMATCH,4,2  ## @SSH_ERR_EC_CURVE_MISMATCH
	.comm	_SSH_ERR_KEY_INVALID_EC_VALUE,4,2 ## @SSH_ERR_KEY_INVALID_EC_VALUE
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_sshkey_from_blob_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sshkey_from_blob_internal
_sshkey_from_blob_internal:             ; @sshkey_from_blob_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	str	xzr, [sp, #24]
	str	xzr, [sp, #8]
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	mov	x0, x22
	bl	_sshbuf_fromb
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	add	x1, sp, #24
	mov	x0, x22
	mov	x2, #0
	bl	_sshbuf_get_cstring
	cbz	x0, LBB0_10
LBB0_4:
	mov	x21, #0
LBB0_5:
Lloh0:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x21, #0
LBB0_7:
Lloh2:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
LBB0_9:
	mov	x0, x19
	bl	_sshbuf_free
	mov	x0, x21
	bl	_sshkey_free
	mov	x0, #0
	bl	_free
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, #0
	bl	_free
	ldr	x0, [sp, #8]
	bl	_free
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	x0, [sp, #24]
	bl	_sshkey_type_from_name
	mov	x21, x0
	cbz	w23, LBB0_17
LBB0_11:
	cmp	w21, #134
	b.eq	LBB0_14
; %bb.12:
	cmp	w21, #133
	b.ne	LBB0_19
; %bb.13:
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	bl	_sshbuf_get_string_direct
	cbnz	w0, LBB0_4
LBB0_14:
	add	x1, sp, #8
	add	x2, sp, #16
	mov	x0, x22
	bl	_sshbuf_get_string
	cbz	w0, LBB0_20
; %bb.15:
	mov	x23, x0
LBB0_16:
	mov	x21, #0
	b	LBB0_9
LBB0_17:
	mov	x0, x21
	bl	_sshkey_type_is_cert
	cbz	x0, LBB0_11
; %bb.18:
	mov	x21, #0
Lloh4:
	adrp	x8, _SSH_ERR_KEY_CERT_INVALID_SIGN_KEY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SSH_ERR_KEY_CERT_INVALID_SIGN_KEY@GOTPAGEOFF]
	b	LBB0_8
LBB0_19:
	mov	x21, #0
Lloh6:
	adrp	x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_20:
	ldr	x8, [sp, #16]
Lloh8:
	adrp	x9, _ED25519_PK_SZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ED25519_PK_SZ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.21:
	mov	x0, x21
	bl	_sshkey_new
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.22:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	str	xzr, [sp, #8]
	mov	x0, x21
	bl	_sshkey_is_cert
	cbz	x0, LBB0_25
; %bb.23:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_cert_parse
	cbz	w0, LBB0_25
; %bb.24:
	mov	x23, x0
	b	LBB0_9
LBB0_25:
	mov	x0, x22
	bl	_sshbuf_len
	cbnz	x0, LBB0_5
; %bb.26:
	mov	w23, #0
	cbz	x20, LBB0_9
; %bb.27:
	str	x21, [x20]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_KEY_CERT_INVALID_SIGN_KEY,4,2 ; @SSH_ERR_KEY_CERT_INVALID_SIGN_KEY
	.comm	_ED25519_PK_SZ,8,3              ; @ED25519_PK_SZ
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ; @SSH_ERR_KEY_TYPE_UNKNOWN
	.comm	_SSH_ERR_EC_CURVE_INVALID,4,2   ; @SSH_ERR_EC_CURVE_INVALID
	.comm	_SSH_ERR_EC_CURVE_MISMATCH,4,2  ; @SSH_ERR_EC_CURVE_MISMATCH
	.comm	_SSH_ERR_KEY_INVALID_EC_VALUE,4,2 ; @SSH_ERR_KEY_INVALID_EC_VALUE
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_sshkey_from_blob_internal
.subsections_via_symbols
