	.file	"extr_remote-mips.c_mips_expect_timeout.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Expected \""
.LC1:
	.string	"\", got \""
.LC2:
	.string	"\": FAIL\n"
.LC3:
	.string	"\": OK\n"
	.text
	.p2align 4
	.type	mips_expect_timeout, @function
mips_expect_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR remote_debug[rip], 0
	jne	.L15
.L2:
	add	DWORD PTR immediate_quit[rip], 1
	mov	rbp, r12
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR mips_desc[rip]
	mov	esi, r13d
	call	serial_readchar@PLT
	cmp	DWORD PTR SERIAL_TIMEOUT[rip], eax
	mov	ebx, eax
	je	.L16
	cmp	QWORD PTR remote_debug[rip], 0
	jne	.L17
.L6:
	movsx	eax, BYTE PTR 0[rbp]
	cmp	eax, ebx
	je	.L18
	movsx	eax, BYTE PTR [r12]
	xor	ebp, ebp
	cmp	eax, ebx
	sete	bpl
	add	rbp, r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	BYTE PTR 1[rbp], 0
	je	.L19
	add	rbp, 1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR gdb_stdlog[rip]
	mov	edi, eax
	call	fputc_readable@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	xor	r12d, r12d
	cmp	QWORD PTR remote_debug[rip], 0
	jne	.L20
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR gdb_stdlog[rip]
	lea	rsi, .LC0[rip]
	call	fprintf_unfiltered@PLT
	mov	esi, DWORD PTR gdb_stdlog[rip]
	mov	rdi, r12
	call	fputs_readable@PLT
	mov	edi, DWORD PTR gdb_stdlog[rip]
	lea	rsi, .LC1[rip]
	call	fprintf_unfiltered@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR gdb_stdlog[rip]
	lea	rsi, .LC2[rip]
	call	fprintf_unfiltered@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	sub	DWORD PTR immediate_quit[rip], 1
	cmp	QWORD PTR remote_debug[rip], 0
	mov	r12d, 1
	je	.L1
	mov	edi, DWORD PTR gdb_stdlog[rip]
	lea	rsi, .LC3[rip]
	call	fprintf_unfiltered@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mips_expect_timeout, .-mips_expect_timeout
	.comm	remote_debug,8,8
	.comm	mips_desc,4,4
	.comm	immediate_quit,4,4
	.comm	gdb_stdlog,4,4
	.comm	SERIAL_TIMEOUT,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-mips.c_mips_expect_timeout.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Expected \"\000"
	.align	2
.LC1:
	.ascii	"\", got \"\000"
	.align	2
.LC2:
	.ascii	"\": FAIL\012\000"
	.align	2
.LC3:
	.ascii	"\": OK\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mips_expect_timeout, %function
mips_expect_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L28
	mov	r5, r0
	ldr	r3, [r7]
	mov	r6, r1
	cmp	r3, #0
	bne	.L23
.L2:
	mov	r4, r5
	ldr	r2, .L28+4
	ldr	r9, .L28+8
	ldr	r3, [r2]
	ldr	r8, .L28+12
	add	r3, r3, #1
	ldr	r10, .L28+16
	str	r3, [r2]
.L3:
	mov	r1, r6
	ldr	r0, [r9]
	bl	serial_readchar
	ldr	r2, [r8]
	mov	fp, r0
	cmp	r2, r0
	beq	.L24
	ldr	r2, [r7]
	cmp	r2, #0
	bne	.L25
.L6:
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r2, fp
	beq	.L26
	ldrb	r2, [r5]	@ zero_extendqisi2
	cmp	r2, fp
	addeq	r4, r5, #1
	movne	r4, r5
	b	.L3
.L26:
	ldrb	r3, [r4, #1]	@ zero_extendqisi2
	add	r4, r4, #1
	cmp	r3, #0
	bne	.L3
	ldr	r1, .L28+4
	ldr	r2, [r7]
	ldr	r3, [r1]
	cmp	r2, #0
	sub	r3, r3, #1
	str	r3, [r1]
	bne	.L27
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	ldr	r1, [r10]
	bl	fputc_readable
	b	.L6
.L24:
	ldr	r0, [r7]
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L28+16
	ldr	r1, .L28+20
	ldr	r0, [r3]
	bl	fprintf_unfiltered
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r4, .L28+16
	ldr	r1, .L28+24
	ldr	r0, [r4]
	bl	fprintf_unfiltered
	ldr	r1, [r4]
	mov	r0, r5
	bl	fputs_readable
	ldr	r0, [r4]
	ldr	r1, .L28+28
	bl	fprintf_unfiltered
	b	.L2
.L27:
	ldr	r3, .L28+16
	ldr	r1, .L28+32
	ldr	r0, [r3]
	bl	fprintf_unfiltered
	mov	r0, #1
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	.align	2
.L28:
	.word	remote_debug
	.word	immediate_quit
	.word	mips_desc
	.word	SERIAL_TIMEOUT
	.word	gdb_stdlog
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	mips_expect_timeout, .-mips_expect_timeout
	.comm	remote_debug,4,4
	.comm	mips_desc,4,4
	.comm	immediate_quit,4,4
	.comm	gdb_stdlog,4,4
	.comm	SERIAL_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
