// File: /workspace/github_c_makefile_star2_O2/rakitzis[P]rc/heredoc.c
// Function: heredoc
extern int heredoc(int end) {
	Hq *here;
	if ((here = hq) != NULL) {
		hq = NULL;
		if (end) {
			yyerror("heredoc incomplete");
			return FALSE;
		}
		do {
			Node *n = here->doc;
			char *s = readheredoc(here->name);
			if (dead)
				return FALSE;
			n->u[2].p = here->quoted ? mk(nWord, s, NULL, FALSE) : parseheredoc(s);
			n->u[0].i = rHerestring;
		} while ((here = here->n) != NULL);
	}
	return TRUE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x12023(%rip), %rbp     # 0x19b20
pushq $0x1
popq %rax
testq %rbp, %rbp
je 0x7dab
andq $0x0, 0x1200f(%rip)     # 0x19b20
testl %edi, %edi
je 0x7c6d
leaq 0x6c92(%rip), %rdi      # 0xe7b2
callq 0x902d
jmp 0x7da9
movq 0x10(%rsp), %rbp
cmpl $0x0, 0x18(%rbp)
je 0x7b6b
pushq $0x1e
popq %rdi
movq %r12, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xb7f8
movq %rax, %r14
movq 0x8(%rsp), %rax
movq %r14, 0x18(%rax)
movl $0x4, 0x8(%rax)
movq 0x10(%rbp), %rbp
testq %rbp, %rbp
jne 0x7c6d
jmp 0x7dba
movq %r12, %r13
movsbl (%r12), %r12d
xorl %eax, %eax
leaq 0x6f44(%rip), %r15      # 0xeac0
movq %rax, %r14
cmpl $0x24, %r12d
je 0x7bbb
testl %r12d, %r12d
je 0x7b49
leaq -0x1(%r13), %rbx
movzbl 0x1(%rbx), %r12d
incq %rbx
cmpl $0x24, %r12d
je 0x7ba1
testl %r12d, %r12d
jne 0x7b8e
movb $0x0, (%rbx)
pushq $0x1e
popq %rdi
movq %r13, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xb7f8
movq %rbx, %r13
jmp 0x7c4f
movq %r13, %rax
addq $0x2, %r13
cmpb $0x24, 0x1(%rax)
jne 0x7be2
pushq $0x1e
popq %rdi
leaq 0x6c18(%rip), %rsi      # 0xe7ea
xorl %edx, %edx
xorl %eax, %eax
callq 0xb7f8
movsbl (%r13), %r12d
jmp 0x7c4f
incq %rax
movq %rax, (%rsp)
xorl %ebx, %ebx
incq %rbx
movzbl (%r13), %r12d
incq %r13
cmpb $0x0, (%r15,%r12)
je 0x7beb
cmpl $0x5e, %r12d
jne 0x7c0a
movsbl (%r13), %r12d
jmp 0x7c0d
decq %r13
leaq 0x1(%rbx), %rdi
callq 0x9928
movq %rax, %r15
movb $0x0, (%rax,%rbx)
movq %rax, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x3230
pushq $0x1e
popq %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xb7f8
pushq $0xb
popq %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0xb7f8
leaq 0x6e71(%rip), %r15      # 0xeac0
testq %r14, %r14
je 0x7b7c
pushq $0x8
popq %rdi
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xb7f8
jmp 0x7b7c
movq (%rbp), %rax
movq %rax, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x8(%rbp), %r14
movl $0x200, %eax            # imm = 0x200
movq %rax, (%rsp)
movl $0x200, %edi            # imm = 0x200
callq 0x9928
movq %rax, %r12
movq %rax, %r15
addq $0x200, %r15            # imm = 0x200
movb $0x0, 0x11e82(%rip)     # 0x19b28
movq %rax, %r13
callq 0x830c
pushq $-0x1
popq %rbx
callq 0x7e62
movl %eax, %ebp
movzbl 0x1(%r14,%rbx), %eax
incq %rbx
cmpl %eax, %ebp
je 0x7cb1
testb %al, %al
jne 0x7cdb
cmpl $-0x1, %ebp
je 0x7d82
cmpl $0xa, %ebp
je 0x7d82
testq %rbx, %rbx
je 0x7d29
leaq (%rbx,%r13), %rax
cmpq %r15, %rax
jb 0x7d18
movq (%rsp), %rdi
leaq (%rbx,%rdi,2), %rdi
movq %rdi, (%rsp)
callq 0x9928
movq %rax, %r15
subq %r12, %r13
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3230
movq %r15, %r12
addq %r15, %r13
addq (%rsp), %r15
movq %r13, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x3230
addq %rbx, %r13
movq (%rsp), %rbx
cmpl $-0x1, %ebp
je 0x7d96
leaq 0x1(%r13), %rax
cmpq %r15, %rax
jb 0x7d64
movq %rbx, %r15
addq %rbx, %rbx
movq %rbx, %rdi
callq 0x9928
movq %r12, %rsi
movq %rax, %r12
subq %rsi, %r13
movq %rax, %rdi
movq %r13, %rdx
callq 0x3230
addq %r12, %r13
leaq (%r12,%r15,2), %r15
movb %bpl, (%r13)
incq %r13
cmpl $0xa, %ebp
je 0x7d79
callq 0x7e62
movl %eax, %ebp
jmp 0x7d2d
movq %rbx, (%rsp)
jmp 0x7ca9
movb $0x0, (%r13)
cmpb $0x0, 0x11d9a(%rip)     # 0x19b28
je 0x7b2a
jmp 0x7da9
leaq 0x6a15(%rip), %rdi      # 0xe7b2
callq 0x902d
movb $0x1, 0x11d7f(%rip)     # 0x19b28
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rax
jmp 0x7dab