	.file	"extr_remote-utils.c_gr_multi_scan.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gr_multi_scan
	.type	gr_multi_scan, @function
gr_multi_scan:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8, rdi
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -84[rbp], esi
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L14
	mov	ebx, 1
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR -72[rbp], r8
	lea	r15d, -1[rbx]
	mov	r14, rbx
	call	strlen@PLT
	mov	r8, QWORD PTR -72[rbp]
	cmp	r13d, eax
	cmovl	r13d, eax
	add	rbx, 1
	mov	rdi, QWORD PTR -8[r8+rbx*8]
	test	rdi, rdi
	jne	.L3
	lea	edi, [r13+r13]
	movsx	r15, r15d
	call	alloca@PLT
	lea	edi, 0[0+r14*8]
	mov	QWORD PTR -80[rbp], rax
	call	alloca@PLT
	mov	r8, QWORD PTR -72[rbp]
	lea	rcx, 8[0+r15*8]
	mov	r13, rax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR [r8+rax]
	mov	QWORD PTR 0[r13+rax], rdx
	add	rax, 8
	cmp	rcx, rax
	jne	.L4
	xor	eax, eax
	mov	QWORD PTR -72[rbp], r8
	call	sr_readchar@PLT
	mov	r12, QWORD PTR -80[rbp]
	mov	r8, QWORD PTR -72[rbp]
	mov	r14d, eax
.L12:
	xor	eax, eax
	xor	edi, edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	sil, 63
	je	.L17
	mov	rdx, QWORD PTR [r8+rax*8]
	mov	QWORD PTR 0[r13+rax*8], rdx
.L7:
	lea	rdx, 1[rax]
	cmp	r15, rax
	je	.L23
.L15:
	mov	rax, rdx
.L8:
	mov	rdx, QWORD PTR 0[r13+rax*8]
	mov	r10d, eax
	movsx	esi, BYTE PTR [rdx]
	cmp	esi, r14d
	jne	.L24
.L17:
	lea	rcx, 1[rdx]
	mov	QWORD PTR 0[r13+rax*8], rcx
	cmp	BYTE PTR 1[rdx], 0
	je	.L1
	test	edi, edi
	jne	.L7
	mov	BYTE PTR [r12], r14b
	mov	edi, 1
	add	r12, 1
	lea	rdx, 1[rax]
	cmp	r15, rax
	jne	.L15
.L23:
	test	edi, edi
	jne	.L9
	mov	eax, DWORD PTR -84[rbp]
	test	eax, eax
	jne	.L25
	mov	r12, QWORD PTR -80[rbp]
.L9:
	xor	eax, eax
	mov	QWORD PTR -72[rbp], r8
	call	sr_readchar@PLT
	mov	r8, QWORD PTR -72[rbp]
	mov	r14d, eax
	jmp	.L12
.L14:
	mov	r10d, -1
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	mov	eax, r10d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L25:
	.cfi_restore_state
	mov	rax, QWORD PTR -80[rbp]
	cmp	r12, rax
	jbe	.L10
	mov	rbx, rax
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	edi, BYTE PTR [rbx]
	mov	esi, DWORD PTR gdb_stdout[rip]
	add	rbx, 1
	mov	QWORD PTR -72[rbp], r8
	call	fputc_unfiltered@PLT
	cmp	r12, rbx
	mov	r8, QWORD PTR -72[rbp]
	jne	.L11
.L10:
	mov	esi, DWORD PTR gdb_stdout[rip]
	mov	edi, r14d
	mov	QWORD PTR -72[rbp], r8
	call	fputc_unfiltered@PLT
	mov	r12, QWORD PTR -80[rbp]
	mov	r8, QWORD PTR -72[rbp]
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gr_multi_scan, .-gr_multi_scan
	.comm	gdb_stdout,4,4
	.comm	QUIT,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-utils.c_gr_multi_scan.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gr_multi_scan
	.syntax unified
	.arm
	.fpu softvfp
	.type	gr_multi_scan, %function
gr_multi_scan:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r9, [r0]
	ldr	r3, .L31
	str	r1, [fp, #-48]
	cmp	r9, #0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L14
	mov	r6, #0
	mov	r7, r0
	mov	r5, r0
	mov	r4, r6
	mov	r8, r0
	mov	r3, r9
.L3:
	mov	r0, r3
	bl	strlen
	ldr	r3, [r8, #4]!
	cmp	r6, r0
	movlt	r6, r0
	mov	r1, r4
	cmp	r3, #0
	add	r4, r4, #1
	lsl	r0, r4, #2
	bne	.L3
	lsl	r3, r6, #1
	add	r3, r3, #7
	bic	r3, r3, #7
	add	r0, r0, #7
	sub	sp, sp, r3
	bic	r0, r0, #7
	mov	r8, sp
	sub	sp, sp, r0
	mov	r10, sp
	sub	r6, r10, #4
	mov	r3, r6
	add	r10, r10, r1, lsl #2
	b	.L5
.L26:
	ldr	r9, [r5, #4]!
.L5:
	str	r9, [r3, #4]!
	cmp	r10, r3
	bne	.L26
	bl	sr_readchar
	mov	r4, r8
	mov	r5, r0
.L12:
	mov	r0, #0
	mov	r1, r6
	mov	lr, r0
	b	.L8
.L28:
	ldrb	ip, [r3, #1]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	ip, #0
	str	r3, [r1]
	beq	.L1
	cmp	lr, #0
	moveq	lr, #1
	strbeq	r5, [r4], #1
	cmp	r10, r1
	add	r0, r0, #1
	beq	.L27
.L8:
	ldr	r3, [r1, #4]!
	ldrb	ip, [r3]	@ zero_extendqisi2
	cmp	ip, r5
	cmpne	ip, #63
	beq	.L28
	ldr	r3, [r7, r0, lsl #2]
	cmp	r10, r1
	str	r3, [r1]
	add	r0, r0, #1
	bne	.L8
.L27:
	cmp	lr, #0
	bne	.L9
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	moveq	r4, r8
	bne	.L29
.L9:
	bl	sr_readchar
	mov	r5, r0
	b	.L12
.L14:
	mvn	r0, #0
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	cmp	r4, r8
	movhi	r9, r8
	bls	.L11
.L10:
	ldr	r3, .L31+4
	ldrb	r0, [r9], #1	@ zero_extendqisi2
	ldr	r1, [r3]
	bl	fputc_unfiltered
	cmp	r4, r9
	bne	.L10
.L11:
	ldr	r3, .L31+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	fputc_unfiltered
	mov	r4, r8
	b	.L9
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	gdb_stdout
	.size	gr_multi_scan, .-gr_multi_scan
	.comm	gdb_stdout,4,4
	.comm	QUIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
