// File: /workspace/github_c_makefile_star2_O3/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 0x11c5b(%rip), %rbp     # 0x19b20
movl $0x1, %eax
testq %rbp, %rbp
je 0x8192
movq $0x0, 0x11c42(%rip) # 0x19b20
testl %edi, %edi
je 0x8045
leaq 0x78c5(%rip), %rdi      # 0xf7b2
callq 0x952f
jmp 0x8190
movq 0x10(%rsp), %rbp
cmpl $0x0, 0x18(%rbp)
je 0x7f3a
movl $0x1e, %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xc018
movq %rax, %r12
movq 0x8(%rsp), %rax
movq %r12, 0x18(%rax)
movl $0x4, 0x8(%rax)
movq 0x10(%rbp), %rbp
testq %rbp, %rbp
jne 0x8045
jmp 0x81a1
movq %r15, %r13
movsbl (%r15), %r15d
xorl %eax, %eax
leaq 0x7b76(%rip), %r14      # 0xfac0
movq %rax, %r12
cmpl $0x24, %r15d
je 0x7f8b
testl %r15d, %r15d
je 0x7f18
leaq -0x1(%r13), %rbx
movzbl 0x1(%rbx), %r15d
incq %rbx
cmpl $0x24, %r15d
je 0x7f6f
testl %r15d, %r15d
jne 0x7f5c
movb $0x0, (%rbx)
movl $0x1e, %edi
movq %r13, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xc018
movq %rbx, %r13
jmp 0x8025
movq %r13, %rax
addq $0x2, %r13
cmpb $0x24, 0x1(%rax)
jne 0x7fb4
movl $0x1e, %edi
leaq 0x7846(%rip), %rsi      # 0xf7ea
xorl %edx, %edx
xorl %eax, %eax
callq 0xc018
movsbl (%r13), %r15d
jmp 0x8025
incq %rax
movq %rax, (%rsp)
xorl %ebx, %ebx
incq %rbx
movzbl (%r13), %r15d
incq %r13
cmpb $0x0, (%r14,%r15)
je 0x7fbd
cmpl $0x5e, %r15d
jne 0x7fdc
movsbl (%r13), %r15d
jmp 0x7fdf
decq %r13
leaq 0x1(%rbx), %rdi
callq 0x9e80
movq %rax, %r14
movb $0x0, (%rax,%rbx)
movq %rax, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
callq 0x3230
movl $0x1e, %edi
movq %r14, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xc018
movl $0xb, %edi
movq %rax, %rsi
xorl %eax, %eax
callq 0xc018
leaq 0x7a9b(%rip), %r14      # 0xfac0
testq %r12, %r12
je 0x7f4a
movl $0x8, %edi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xc018
jmp 0x7f4a
movq (%rbp), %rax
movq %rax, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x8(%rbp), %r12
movl $0x200, %eax            # imm = 0x200
movq %rax, (%rsp)
movl $0x200, %edi            # imm = 0x200
callq 0x9e80
movq %rax, %r15
movq %rax, %r13
addq $0x200, %r13            # imm = 0x200
movb $0x0, 0x11aaa(%rip)     # 0x19b28
movq %rax, %rbp
callq 0x871a
movq $-0x1, %rbx
callq 0x8254
movl %eax, %r14d
movzbl 0x1(%r12,%rbx), %eax
incq %rbx
cmpl %eax, %r14d
je 0x808d
testb %al, %al
jne 0x80bb
cmpl $-0x1, %r14d
je 0x816a
cmpl $0xa, %r14d
je 0x816a
testq %rbx, %rbx
je 0x8109
leaq (%rbx,%rbp), %rax
cmpq %r13, %rax
jb 0x80f8
movq (%rsp), %rdi
leaq (%rbx,%rdi,2), %rdi
movq %rdi, (%rsp)
callq 0x9e80
movq %rax, %r13
subq %r15, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x3230
movq %r13, %r15
addq %r13, %rbp
addq (%rsp), %r13
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3230
addq %rbx, %rbp
cmpl $-0x1, %r14d
movq (%rsp), %rbx
je 0x817d
leaq 0x1(%rbp), %rax
cmpq %r13, %rax
jb 0x8145
movq %rbx, %r13
addq %rbx, %rbx
movq %rbx, %rdi
callq 0x9e80
movq %r15, %rsi
movq %rax, %r15
subq %rsi, %rbp
movq %rax, %rdi
movq %rbp, %rdx
callq 0x3230
addq %r15, %rbp
leaq (%r15,%r13,2), %r13
movb %r14b, (%rbp)
incq %rbp
cmpl $0xa, %r14d
je 0x8161
callq 0x8254
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x8113
jmp 0x817d
movq %rbx, (%rsp)
jmp 0x8081
movb $0x0, (%rbp)
cmpb $0x0, 0x119b3(%rip)     # 0x19b28
je 0x7ef7
jmp 0x8190
leaq 0x762e(%rip), %rdi      # 0xf7b2
callq 0x952f
movb $0x1, 0x11998(%rip)     # 0x19b28
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
jmp 0x8192