	.file	"extr_test_kex.c_do_send_and_receive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ssh_packet_next: %s\n"
.LC1:
	.string	"%zu"
	.text
	.p2align 4
	.type	do_send_and_receive, @function
do_send_and_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 8[rsp]
	lea	r14, 16[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR 16[rsp]
	test	rsi, rsi
	je	.L1
.L14:
	mov	rdi, rbx
	call	ssh_output_consume@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r15
	mov	rdi, rbp
	call	ssh_input_append@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L6:
	mov	rsi, r13
	mov	rdi, rbx
	call	ssh_packet_next@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	cmp	QWORD PTR 8[rsp], 0
	jne	.L1
	mov	rsi, r14
	mov	rdi, rbx
	call	ssh_output_ptr@PLT
	cmp	QWORD PTR do_debug[rip], 0
	mov	r15, rax
	je	.L5
	mov	rsi, QWORD PTR 16[rsp]
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	rsi, QWORD PTR 16[rsp]
	test	rsi, rsi
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, eax
	call	ssh_err@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_send_and_receive, .-do_send_and_receive
	.comm	stderr,4,4
	.comm	do_debug,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_test_kex.c_do_send_and_receive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ssh_packet_next: %s\012\000"
	.align	2
.LC1:
	.ascii	"%zu\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_send_and_receive, %function
do_send_and_receive:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L19
	sub	sp, sp, #20
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r8, .L19+4
	ldr	r9, .L19+8
	b	.L6
.L5:
	ldr	r1, [sp, #8]
	cmp	r1, #0
	beq	.L1
.L17:
	mov	r0, r6
	bl	ssh_output_consume
	subs	r5, r0, #0
	bne	.L1
	mov	r1, r4
	mov	r0, r7
	ldr	r2, [sp, #8]
	bl	ssh_input_append
	subs	r5, r0, #0
	bne	.L1
.L6:
	mov	r0, r6
	add	r1, sp, #4
	bl	ssh_packet_next
	subs	r5, r0, #0
	bne	.L16
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L1
	mov	r0, r6
	add	r1, sp, #8
	bl	ssh_output_ptr
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, #0
	beq	.L5
	ldr	r1, [sp, #8]
	mov	r0, r9
	bl	printf
	ldr	r1, [sp, #8]
	cmp	r1, #0
	bne	.L17
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r3, .L19+12
	ldr	r4, [r3]
	bl	ssh_err
	ldr	r1, .L19+16
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	do_debug
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	do_send_and_receive, .-do_send_and_receive
	.comm	stderr,4,4
	.comm	do_debug,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
