	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_send_and_receive
_do_send_and_receive:                   ## @do_send_and_receive
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ssh_packet_next
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-48(%rbp), %rsi
	callq	_ssh_output_ptr
	movq	%rax, %r13
	movq	_do_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ssh_output_consume
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ssh_input_append
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_2:
	movl	%eax, %ebx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_ssh_err
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssh_packet_next: %s\n"

	.comm	_do_debug,8,3                   ## @do_debug
L_.str.1:                               ## @.str.1
	.asciz	"%zu"

	.no_dead_strip	_do_send_and_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_send_and_receive
_do_send_and_receive:                   ; @do_send_and_receive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _do_debug@GOTPAGE
Lloh1:
	ldr	x24, [x24, _do_debug@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	bl	_ssh_packet_next
	cbnz	w0, LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_ssh_output_ptr
	mov	x23, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [sp]
	mov	x0, x21
	bl	_printf
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [sp]
	cbz	x1, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_ssh_output_consume
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x2, [sp]
	mov	x0, x19
	mov	x1, x23
	bl	_ssh_input_append
	cbz	w0, LBB0_1
LBB0_8:
	mov	x22, x0
	b	LBB0_11
LBB0_9:
	mov	w22, #0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w19, [x8]
	bl	_ssh_err
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssh_packet_next: %s\n"

	.comm	_do_debug,8,3                   ; @do_debug
l_.str.1:                               ; @.str.1
	.asciz	"%zu"

	.no_dead_strip	_do_send_and_receive
.subsections_via_symbols
