	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_process_incoming    ## -- Begin function ssh_packet_process_incoming
	.p2align	4, 0x90
_ssh_packet_process_incoming:           ## @ssh_packet_process_incoming
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	$0, 16(%rbx)
	cmpq	%r14, %rax
	jg	LBB0_4
## %bb.2:
	callq	_ssh_packet_stop_discard
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
LBB0_4:
	subq	%r14, %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	8(%rbx), %edi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sshbuf_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_packet_process_incoming    ; -- Begin function ssh_packet_process_incoming
	.p2align	2
_ssh_packet_process_incoming:           ; @ssh_packet_process_incoming
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x20, [x0]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.1:
	str	xzr, [x20, #16]
	cmp	x8, x19
	b.gt	LBB0_4
; %bb.2:
	bl	_ssh_packet_stop_discard
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
LBB0_4:
	mov	w0, #0
	sub	x8, x8, x19
	str	x8, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x20, #8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sshbuf_put
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
