	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_to_base64               ## -- Begin function sshkey_to_base64
	.p2align	4, 0x90
_sshkey_to_base64:                      ## @sshkey_to_base64
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%r15)
LBB0_2:
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sshkey_putb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r14, %rdi
	callq	_sshbuf_free
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_13
LBB0_3:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_sshbuf_dtob64
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	%r12, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshkey_to_base64               ; -- Begin function sshkey_to_base64
	.p2align	2
_sshkey_to_base64:                      ; @sshkey_to_base64
	.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
	mov	x21, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	bl	_sshbuf_new
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_sshkey_putb
	cbz	w0, LBB0_9
; %bb.4:
	mov	x20, x0
LBB0_5:
	mov	x22, #0
LBB0_6:
	mov	x0, x19
	bl	_sshbuf_free
	mov	x0, x22
	bl	_free
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	mov	x0, x19
	bl	_sshbuf_dtob64
	mov	x22, x0
	cbz	x0, LBB0_12
; %bb.10:
	mov	w20, #0
	cbz	x21, LBB0_6
; %bb.11:
	str	x22, [x21]
	b	LBB0_5
LBB0_12:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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
.subsections_via_symbols
