	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_consume                 ## -- Begin function sshbuf_consume
	.p2align	4, 0x90
_sshbuf_consume:                        ## @sshbuf_consume
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_SSHBUF_DBG
	movq	%r14, %rdi
	callq	_sshbuf_check_sanity
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_sshbuf_len
	cmpq	%rbx, %rax
	jae	LBB0_4
## %bb.3:
	movq	_SSH_ERR_MESSAGE_INCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_7
LBB0_4:
	addq	(%r14), %rbx
	movq	%rbx, (%r14)
	cmpq	8(%r14), %rbx
	jne	LBB0_6
## %bb.5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_SSHBUF_TELL
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ## @SSH_ERR_MESSAGE_INCOMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"done"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sshbuf_consume                 ; -- Begin function sshbuf_consume
	.p2align	2
_sshbuf_consume:                        ; @sshbuf_consume
	.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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_SSHBUF_DBG
	mov	x0, x19
	bl	_sshbuf_check_sanity
	cbnz	w0, LBB0_8
; %bb.1:
	cbz	x20, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_sshbuf_len
	cmp	x0, x20
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSH_ERR_MESSAGE_INCOMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_4:
	ldp	x8, x9, [x19]
	add	x8, x8, x20
	cmp	x8, x9
	str	x8, [x19]
	b.ne	LBB0_6
; %bb.5:
	stp	xzr, xzr, [x19]
LBB0_6:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SSHBUF_TELL
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_MESSAGE_INCOMPLETE,4,2 ; @SSH_ERR_MESSAGE_INCOMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"done"

.subsections_via_symbols
