	.file	"extr_mrdb.c_get_command.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"quit"
.LC1:
	.string	"command line too long.\n"
	.text
	.p2align 4
	.type	get_command, @function
get_command:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	eax, 10
	je	.L3
	mov	rdx, QWORD PTR [r12]
	add	ebp, 1
	mov	DWORD PTR [rdx+rbx*4], eax
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	add	rbx, 1
	cmp	eax, ebx
	jle	.L5
.L4:
	xor	eax, eax
	mov	ebp, ebx
	call	getchar@PLT
	cmp	DWORD PTR EOF[rip], eax
	jne	.L24
.L3:
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	test	ebp, ebp
	je	.L2
.L5:
	cmp	ebp, eax
	je	.L7
	cmp	ebp, eax
	jg	.L11
.L26:
	mov	rax, QWORD PTR [r12]
	movsx	rbp, ebp
	sal	rbp, 2
	mov	DWORD PTR [rax+rbp], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	cmp	eax, 10
	je	.L13
	add	ebp, 1
.L7:
	xor	eax, eax
	call	getchar@PLT
	cmp	DWORD PTR EOF[rip], eax
	jne	.L25
.L13:
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	cmp	ebp, eax
	jle	.L26
.L11:
	lea	rdi, .LC1[rip]
	xor	ebp, ebp
	call	printf@PLT
	mov	rax, QWORD PTR [r12]
	mov	DWORD PTR [rax+rbp], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR stdin[rip]
	call	feof@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	xor	ebp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR stdin[rip]
	mov	ebp, 4
	call	clearerr@PLT
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	strcpy@PLT
	mov	eax, DWORD PTR MAX_COMMAND_LINE[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	get_command, .-get_command
	.comm	stdin,4,4
	.comm	MAX_COMMAND_LINE,4,4
	.comm	EOF,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_mrdb.c_get_command.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"quit\000"
	.align	2
.LC1:
	.ascii	"command line too long.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_command, %function
get_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L22
	mov	r5, r1
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r7, .L22+4
	b	.L4
.L20:
	ldr	r3, [r5]
	str	r0, [r3, r4, lsl #2]
	ldr	r3, [r6]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L5
.L4:
	bl	getchar
	ldr	r3, [r7]
	cmp	r0, #10
	cmpne	r3, r0
	bne	.L20
	cmp	r4, #0
	beq	.L2
.L18:
	ldr	r3, [r6]
.L5:
	cmp	r4, r3
	ldreq	r7, .L22+4
	beq	.L7
	cmp	r4, r3
	lslle	r4, r4, #2
	bgt	.L21
.L11:
	mov	r3, #0
	ldr	r0, [r5]
	str	r3, [r0, r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	add	r4, r4, #1
.L7:
	bl	getchar
	ldr	r3, [r7]
	cmp	r3, r0
	cmpne	r0, #10
	bne	.L9
	ldr	r3, [r6]
	cmp	r4, r3
	lslle	r4, r4, #2
	ble	.L11
.L21:
	ldr	r0, .L22+8
	bl	printf
	mov	r4, #0
	b	.L11
.L2:
	ldr	r7, .L22+12
	ldr	r0, [r7]
	bl	feof
	subs	r4, r0, #0
	beq	.L18
	ldr	r0, [r7]
	bl	clearerr
	mov	r2, #5
	ldr	r1, .L22+16
	ldr	r0, [r5]
	mov	r4, #4
	bl	memcpy
	b	.L18
.L23:
	.align	2
.L22:
	.word	MAX_COMMAND_LINE
	.word	EOF
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	get_command, .-get_command
	.comm	stdin,4,4
	.comm	MAX_COMMAND_LINE,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
