	.file	"extr_cli-script.c_document_command.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"Command \"%s\" is built-in."
.LC2:
	.string	"Type documentation for \"%s\"."
.LC3:
	.string	"\n"
	.text
	.p2align 4
	.globl	document_command
	.type	document_command, @function
document_command:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 160
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rdi
	call	validate_comname@PLT
	mov	esi, DWORD PTR cmdlist[rip]
	lea	rdi, 8[rsp]
	xor	ecx, ecx
	mov	r8d, 1
	lea	rdx, .LC0[rip]
	call	lookup_cmd@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR class_user[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	call	error@PLT
.L2:
	lea	r14, 16[rsp]
	mov	rdx, r12
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	sprintf@PLT
	mov	rdi, r14
	mov	esi, r13d
	call	read_command_lines@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR [rsp], rax
	mov	rbx, rax
	test	rdi, rdi
	je	.L3
	call	xfree@PLT
	mov	rbx, QWORD PTR [rsp]
.L3:
	test	rbx, rbx
	je	.L9
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rbx]
	call	strlen@PLT
	mov	rbx, QWORD PTR 8[rbx]
	lea	r12d, 1[r12+rax]
	test	rbx, rbx
	jne	.L5
	lea	edi, 1[r12]
.L4:
	call	xmalloc@PLT
	lea	r12, .LC3[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	BYTE PTR [rax], 0
	mov	rbx, QWORD PTR [rsp]
	test	rbx, rbx
	jne	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, r12
	call	strcat@PLT
	mov	rbx, QWORD PTR 8[rbx]
	test	rbx, rbx
	je	.L7
.L6:
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR [rbx]
	call	strcat@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L19
.L7:
	mov	rdi, rsp
	call	free_command_lines@PLT
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 160
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, 1
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	document_command, .-document_command
	.comm	cmdlist,4,4
	.comm	class_user,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_cli-script.c_document_command.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Command \"%s\" is built-in.\000"
	.align	2
.LC2:
	.ascii	"Type documentation for \"%s\".\000"
	.align	2
.LC3:
	.ascii	"\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	document_command
	.syntax unified
	.arm
	.fpu softvfp
	.type	document_command, %function
document_command:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L24
	sub	sp, sp, #156
	ldr	r3, [r3]
	str	r3, [sp, #148]
	mov	r3,#0
	mov	r5, r1
	mov	r4, r0
	str	r0, [sp, #16]
	bl	validate_comname
	mov	r2, #1
	ldr	r3, .L24+4
	str	r2, [sp]
	ldr	r1, [r3]
	ldr	r2, .L24+8
	mov	r3, #0
	add	r0, sp, #16
	bl	lookup_cmd
	ldr	r3, .L24+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r2, r3
	beq	.L2
	mov	r1, r4
	ldr	r0, .L24+16
	bl	error
.L2:
	mov	r2, r4
	ldr	r1, .L24+20
	add	r0, sp, #20
	bl	sprintf
	mov	r1, r5
	add	r0, sp, #20
	bl	read_command_lines
	mov	r4, r0
	ldr	r0, [r6, #4]
	str	r4, [sp, #12]
	cmp	r0, #0
	beq	.L3
	bl	xfree
	ldr	r4, [sp, #12]
.L3:
	cmp	r4, #0
	beq	.L9
	mov	r5, #0
.L5:
	ldr	r0, [r4]
	bl	strlen
	ldr	r4, [r4, #4]
	add	r0, r0, #1
	cmp	r4, #0
	add	r5, r5, r0
	bne	.L5
	add	r0, r5, #1
.L4:
	bl	xmalloc
	mov	r3, #0
	str	r0, [r6, #4]
	strb	r3, [r0]
	ldr	r4, [sp, #12]
	cmp	r4, r3
	beq	.L7
	ldr	r7, .L24+24
	b	.L6
.L22:
	ldr	r5, [r6, #4]
	mov	r0, r5
	bl	strlen
	mov	r2, #2
	mov	r1, r7
	add	r0, r5, r0
	bl	memcpy
	ldr	r4, [r4, #4]
	cmp	r4, #0
	beq	.L7
.L6:
	ldr	r1, [r4]
	ldr	r0, [r6, #4]
	bl	strcat
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L22
.L7:
	add	r0, sp, #12
	bl	free_command_lines
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #148]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #156
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r0, #1
	b	.L4
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	cmdlist
	.word	.LC0
	.word	class_user
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	document_command, .-document_command
	.comm	cmdlist,4,4
	.comm	class_user,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
