	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_peek_string_direct      ## -- Begin function sshbuf_peek_string_direct
	.p2align	4, 0x90
_sshbuf_peek_string_direct:             ## @sshbuf_peek_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	%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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_sshbuf_ptr
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movq	$0, (%r12)
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	$0, (%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_sshbuf_len
	cmpl	$3, %eax
	jg	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_SSHBUF_DBG
	movq	_SSH_ERR_MESSAGE_INCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_6:
	movq	%r15, %rdi
	callq	_PEEK_U32
	movl	%eax, %r13d
	movq	_SSHBUF_SIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	cmpl	%eax, %r13d
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_SSHBUF_DBG
	movq	_SSH_ERR_STRING_TOO_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, %rdi
	callq	_sshbuf_len
	addl	$-4, %eax
	cmpl	%r13d, %eax
	jl	LBB0_5
## %bb.9:
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	addq	$16, %r15
	movq	%r15, (%r12)
LBB0_11:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movslq	%r13d, %rcx
	movq	%rcx, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSH_ERR_MESSAGE_INCOMPLETE"

	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ## @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSHBUF_SIZE_MAX,4,2            ## @SSHBUF_SIZE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"SSH_ERR_STRING_TOO_LARGE"

	.comm	_SSH_ERR_STRING_TOO_LARGE,4,2   ## @SSH_ERR_STRING_TOO_LARGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_peek_string_direct      ; -- Begin function sshbuf_peek_string_direct
	.p2align	2
_sshbuf_peek_string_direct:             ; @sshbuf_peek_string_direct
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_sshbuf_ptr
	mov	x21, x0
	cbz	x20, LBB0_2
; %bb.1:
	str	xzr, [x20]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	str	xzr, [x19]
LBB0_4:
	mov	x0, x22
	bl	_sshbuf_len
	cmp	w0, #3
	b.gt	LBB0_6
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SSHBUF_DBG
Lloh2:
	adrp	x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_6:
	mov	x0, x21
	bl	_PEEK_U32
Lloh5:
	adrp	x8, _SSHBUF_SIZE_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSHBUF_SIZE_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	sub	w8, w8, #4
	cmp	w0, w8
	b.le	LBB0_8
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SSHBUF_DBG
Lloh10:
	adrp	x8, _SSH_ERR_STRING_TOO_LARGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSH_ERR_STRING_TOO_LARGE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_8:
	mov	x23, x0
	mov	x0, x22
	bl	_sshbuf_len
	sub	w8, w0, #4
	cmp	w8, w23
	b.lt	LBB0_5
; %bb.9:
	cbz	x20, LBB0_11
; %bb.10:
	add	x8, x21, #16
	str	x8, [x20]
LBB0_11:
	mov	w0, #0
	cbz	x19, LBB0_13
; %bb.12:
	sxtw	x8, w23
	str	x8, [x19]
LBB0_13:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSH_ERR_MESSAGE_INCOMPLETE"

	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ; @SSH_ERR_MESSAGE_INCOMPLETE
	.comm	_SSHBUF_SIZE_MAX,4,2            ; @SSHBUF_SIZE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"SSH_ERR_STRING_TOO_LARGE"

	.comm	_SSH_ERR_STRING_TOO_LARGE,4,2   ; @SSH_ERR_STRING_TOO_LARGE
.subsections_via_symbols
