	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function to_blob
_to_blob:                               ## @to_blob
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	$0, (%r14)
LBB0_4:
	xorl	%eax, %eax
	callq	_sshbuf_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_to_blob_buf
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_13:
	movq	%r15, %rdi
	callq	_sshbuf_free
	jmp	LBB0_14
LBB0_5:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_sshbuf_len
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%r13, (%rbx)
LBB0_9:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_sshbuf_ptr
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_memcpy
	jmp	LBB0_13
LBB0_11:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_13
	.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
	.no_dead_strip	_to_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function to_blob
_to_blob:                               ; @to_blob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
	cbz	x2, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
	bl	_sshbuf_new
	cbz	x0, LBB0_12
; %bb.5:
	mov	x19, x0
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	bl	_to_blob_buf
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_sshbuf_len
	mov	x22, x0
	cbz	x21, LBB0_8
; %bb.7:
	str	x22, [x21]
LBB0_8:
	cbz	x20, LBB0_11
; %bb.9:
	mov	x0, x22
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_13
; %bb.10:
	mov	x21, x0
	mov	x0, x19
	bl	_sshbuf_ptr
	mov	x1, x0
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
LBB0_11:
	mov	w22, #0
	b	LBB0_14
LBB0_12:
Lloh0:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_15
LBB0_13:
Lloh3:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
LBB0_14:
	mov	x0, x19
	bl	_sshbuf_free
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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
	.no_dead_strip	_to_blob
.subsections_via_symbols
