	.file	"extr_remote-sds.c_read_frame.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Timeout in mid-message, retrying\n"
	.align 8
.LC1:
	.string	"Saw new packet start in middle of old one\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Received encoded: \"%s\"\n"
.LC3:
	.string	"Message too long: "
.LC4:
	.string	"\n"
	.text
	.p2align 4
	.type	read_frame, @function
read_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	eax, 13
	jne	.L6
.L5:
	mov	edi, DWORD PTR sds_timeout[rip]
	call	readchar@PLT
	cmp	eax, 36
	je	.L2
.L23:
	jg	.L3
	cmp	eax, 10
	jne	.L21
	mov	BYTE PTR [r12], 0
	mov	eax, DWORD PTR remote_debug[rip]
	mov	r12d, 1
	test	eax, eax
	jne	.L22
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	eax, 128
	jne	.L6
	mov	r12d, DWORD PTR remote_debug[rip]
	test	r12d, r12d
	je	.L1
	mov	esi, DWORD PTR gdb_stdlog[rip]
	lea	rdi, .LC0[rip]
	xor	r12d, r12d
	call	fputs_filtered@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rdx, DWORD PTR PBUFSIZ[rip]
	lea	rdx, -1[rbp+rdx]
	cmp	r12, rdx
	jnb	.L8
	mov	BYTE PTR [r12], al
	mov	edi, DWORD PTR sds_timeout[rip]
	add	r12, 1
	call	readchar@PLT
	cmp	eax, 36
	jne	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR remote_debug[rip]
	test	r12d, r12d
	je	.L1
	mov	esi, DWORD PTR gdb_stdlog[rip]
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	call	fputs_filtered@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	BYTE PTR [r12], 0
	lea	rdi, .LC3[rip]
	xor	r12d, r12d
	call	puts_filtered@PLT
	mov	rdi, rbp
	call	puts_filtered@PLT
	lea	rdi, .LC4[rip]
	call	puts_filtered@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edi, DWORD PTR gdb_stdlog[rip]
	mov	rdx, rbp
	lea	rsi, .LC2[rip]
	call	fprintf_unfiltered@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	read_frame, .-read_frame
	.comm	sds_timeout,4,4
	.comm	remote_debug,4,4
	.comm	gdb_stdlog,4,4
	.comm	PBUFSIZ,4,4
	.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_remote-sds.c_read_frame.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Timeout in mid-message, retrying\012\000"
	.align	2
.LC1:
	.ascii	"Saw new packet start in middle of old one\012\000"
	.align	2
.LC2:
	.ascii	"Received encoded: \"%s\"\012\000"
	.align	2
.LC3:
	.ascii	"Message too long: \000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_frame, %function
read_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r0
	ldr	r5, .L24
	ldr	r7, .L24+4
	b	.L5
.L21:
	cmp	r0, #13
	bne	.L6
.L5:
	ldr	r0, [r5]
	bl	readchar
	cmp	r0, #36
	beq	.L2
.L23:
	bgt	.L3
	cmp	r0, #10
	bne	.L21
	mov	r2, #0
	ldr	r3, .L24+8
	strb	r2, [r6]
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L22
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	cmp	r0, #128
	bne	.L6
	ldr	r3, .L24+8
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L24+12
	ldr	r0, .L24+16
	ldr	r1, [r3]
	bl	fputs_filtered
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r7]
	sub	r3, r3, #1
	add	r3, r4, r3
	cmp	r6, r3
	bcs	.L8
	strb	r0, [r6], #1
	ldr	r0, [r5]
	bl	readchar
	cmp	r0, #36
	bne	.L23
.L2:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L24+12
	ldr	r0, .L24+20
	ldr	r1, [r3]
	bl	fputs_filtered
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r5, #0
	ldr	r0, .L24+24
	strb	r5, [r6]
	bl	puts_filtered
	mov	r0, r4
	bl	puts_filtered
	ldr	r0, .L24+28
	bl	puts_filtered
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r3, .L24+12
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L24+32
	bl	fprintf_unfiltered
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	.align	2
.L24:
	.word	sds_timeout
	.word	PBUFSIZ
	.word	remote_debug
	.word	gdb_stdlog
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	.LC2
	.size	read_frame, .-read_frame
	.comm	sds_timeout,4,4
	.comm	remote_debug,4,4
	.comm	gdb_stdlog,4,4
	.comm	PBUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
