	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_blob_buf
_to_blob_buf:                           ## @to_blob_buf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sshkey_is_cert
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %edi
	callq	_sshbuf_len
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movl	(%rbx), %r12d
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movl	%r12d, %edi
	callq	_sshkey_type_plain
	movl	%eax, %r12d
LBB0_9:
	movl	48(%rbx), %esi
	movl	%r12d, %edi
	callq	_sshkey_ssh_name_from_type_nid
	cmpl	$133, %r12d
	je	LBB0_14
## %bb.10:
	cmpl	$132, %r12d
	jne	LBB0_17
## %bb.11:
	movq	64(%rbx), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sshbuf_putb
	testl	%eax, %eax
	jne	LBB0_19
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_4:
	movq	_SSH_ERR_EXPECTED_CERT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.15:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sshbuf_put_cstring
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movq	24(%rbx), %rsi
	movq	_ED25519_PK_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_sshbuf_put_string
	testl	%eax, %eax
	jne	LBB0_19
	jmp	LBB0_13
LBB0_1:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_SSH_ERR_KEY_TYPE_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	movq	_SSH_ERR_KEY_LACKS_CERTBLOB@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_EXPECTED_CERT,4,2      ## @SSH_ERR_EXPECTED_CERT
	.comm	_SSH_ERR_KEY_LACKS_CERTBLOB,4,2 ## @SSH_ERR_KEY_LACKS_CERTBLOB
	.comm	_ED25519_PK_SZ,4,2              ## @ED25519_PK_SZ
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ## @SSH_ERR_KEY_TYPE_UNKNOWN
	.no_dead_strip	_to_blob_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_blob_buf
_to_blob_buf:                           ; @to_blob_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sshkey_is_cert
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	w0, [x8]
	bl	_sshbuf_len
	cbz	x0, LBB0_16
LBB0_4:
	ldr	w22, [x20]
	cbz	w21, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_sshkey_type_plain
	mov	x22, x0
LBB0_6:
	ldr	w1, [x20, #48]
	mov	x0, x22
	bl	_sshkey_ssh_name_from_type_nid
	cmp	w22, #133
	b.eq	LBB0_10
; %bb.7:
	cmp	w22, #132
	b.ne	LBB0_15
; %bb.8:
	ldr	x8, [x20, #64]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sshbuf_putb
	cbnz	w0, LBB0_18
	b	LBB0_13
LBB0_9:
Lloh0:
	adrp	x8, _SSH_ERR_EXPECTED_CERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_EXPECTED_CERT@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_14
; %bb.11:
	mov	x1, x0
	mov	x0, x19
	bl	_sshbuf_put_cstring
	cbnz	w0, LBB0_18
; %bb.12:
	ldr	x1, [x20, #24]
Lloh2:
	adrp	x8, _ED25519_PK_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ED25519_PK_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sshbuf_put_string
	cbnz	w0, LBB0_18
LBB0_13:
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh5:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh7:
	adrp	x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_KEY_TYPE_UNKNOWN@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh9:
	adrp	x8, _SSH_ERR_KEY_LACKS_CERTBLOB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_KEY_LACKS_CERTBLOB@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_EXPECTED_CERT,4,2      ; @SSH_ERR_EXPECTED_CERT
	.comm	_SSH_ERR_KEY_LACKS_CERTBLOB,4,2 ; @SSH_ERR_KEY_LACKS_CERTBLOB
	.comm	_ED25519_PK_SZ,4,2              ; @ED25519_PK_SZ
	.comm	_SSH_ERR_KEY_TYPE_UNKNOWN,4,2   ; @SSH_ERR_KEY_TYPE_UNKNOWN
	.no_dead_strip	_to_blob_buf
.subsections_via_symbols
