	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_get_string_direct       ## -- Begin function sshbuf_get_string_direct
	.p2align	4, 0x90
_sshbuf_get_string_direct:              ## @sshbuf_get_string_direct
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	$0, (%r15)
LBB0_4:
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_sshbuf_peek_string_direct
	testl	%eax, %eax
	js	LBB0_12
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rax
	movq	%rax, (%rbx)
LBB0_7:
	movq	-40(%rbp), %rsi
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	%rsi, (%r15)
LBB0_9:
	addq	$4, %rsi
	movq	%r14, %rdi
	callq	_sshbuf_consume
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
	xorl	%eax, %eax
	callq	_SSHBUF_ABORT
	movq	_SSH_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.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_string_direct       ; -- Begin function sshbuf_get_string_direct
	.p2align	2
_sshbuf_get_string_direct:              ; @sshbuf_get_string_direct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	xzr, [x21]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x19
	bl	_sshbuf_peek_string_direct
	tbnz	w0, #31, LBB0_11
; %bb.5:
	cbz	x21, LBB0_7
; %bb.6:
	ldr	x8, [sp]
	str	x8, [x21]
LBB0_7:
	ldr	x8, [sp, #8]
	cbz	x20, LBB0_9
; %bb.8:
	str	x8, [x20]
LBB0_9:
	add	x1, x8, #4
	mov	x0, x19
	bl	_sshbuf_consume
	cbz	x0, LBB0_11
; %bb.10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_DBG
	bl	_SSHBUF_ABORT
Lloh2:
	adrp	x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH_ERR_INTERNAL_ERROR"

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