// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq 0x11c03(%rip), %rax     # 0x19b20
testq %rax, %rax
je 0x821f
movq $0x0, 0x11bef(%rip) # 0x19b20
testl %edi, %edi
je 0x80cf
leaq 0x7886(%rip), %rdi      # 0xf7c6
callq 0x95dd
movl $0x0, 0xc(%rsp)
jmp 0x8227
movb %cl, 0xb(%rsp)
movl $0x0, 0xc(%rsp)
cmpl $0x0, 0x18(%rax)
je 0x7f7f
movl $0x1e, %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %eax, %eax
callq 0xc134
movq %rax, %r12
jmp 0x8098
movsbl (%r15), %ebp
xorl %r14d, %r14d
leaq 0x7ae3(%rip), %rax      # 0xfa70
testl %ebp, %ebp
je 0x7fc0
cmpl $0x24, %ebp
jne 0x7fca
leaq 0x2(%r15), %r13
cmpb $0x24, 0x1(%r15)
jne 0x7ffa
movl $0x1e, %edi
leaq 0x7851(%rip), %rsi      # 0xf7fe
xorl %edx, %edx
xorl %eax, %eax
callq 0xc134
movsbl (%r13), %ebp
jmp 0x806a
xorl %ebx, %ebx
movq %r14, %r12
jmp 0x8090
leaq -0x1(%r15), %r13
movzbl 0x1(%r13), %eax
incq %r13
cmpl $0x24, %eax
je 0x7fdf
testl %eax, %eax
jne 0x7fce
movsbl %al, %ebp
movb $0x0, (%r13)
movl $0x1e, %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xc134
jmp 0x806a
incq %r15
xorl %ebx, %ebx
incq %rbx
movzbl (%r13), %ebp
incq %r13
cmpb $0x0, (%rax,%rbp)
je 0x7fff
movq %r12, 0x10(%rsp)
movq %r15, %r12
cmpl $0x5e, %ebp
jne 0x8024
movsbl (%r13), %ebp
jmp 0x8027
decq %r13
leaq 0x1(%rbx), %rdi
callq 0x9f28
movq %rax, %r15
movb $0x0, (%rax,%rbx)
movq %rax, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3230
movl $0x1e, %edi
movq %r15, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0xc134
movl $0xb, %edi
movq %rax, %rsi
xorl %eax, %eax
callq 0xc134
movq 0x10(%rsp), %r12
movb $0x1, %bl
testq %r14, %r14
je 0x8083
movl $0x8, %edi
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0xc134
movq %rax, %r14
movq %r13, %r15
leaq 0x79e0(%rip), %rax      # 0xfa70
testb %bl, %bl
jne 0x7f8d
movq 0x20(%rsp), %rax
movq %r12, 0x18(%rax)
movl $0x4, 0x8(%rax)
cmpb $0x0, 0xb(%rsp)
jne 0x8227
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x80cf
jmp 0x821f
movb $0x0, (%rbp)
jmp 0x8207
movq (%rax), %rcx
movq %rcx, 0x20(%rsp)
movq %rax, 0x18(%rsp)
movq 0x8(%rax), %r12
movl $0x200, %eax            # imm = 0x200
movq %rax, 0x10(%rsp)
movl $0x200, %edi            # imm = 0x200
callq 0x9f28
movq %rax, %r15
movq %rax, %r13
addq $0x200, %r13            # imm = 0x200
movb $0x0, 0x11a20(%rip)     # 0x19b28
movq %rax, %rbp
callq 0x87b7
movq $-0x1, %rbx
callq 0x82e4
movl %eax, %r14d
movzbl 0x1(%r12,%rbx), %eax
incq %rbx
cmpl %eax, %r14d
je 0x8117
testb %al, %al
jne 0x813d
cmpl $0xa, %r14d
je 0x80c6
cmpl $-0x1, %r14d
je 0x80c6
testq %rbx, %rbx
je 0x818e
leaq (%rbx,%rbp), %rax
cmpq %r13, %rax
jb 0x817d
movq 0x10(%rsp), %rdi
leaq (%rbx,%rdi,2), %rdi
movq %rdi, 0x10(%rsp)
callq 0x9f28
movq %rax, %r13
subq %r15, %rbp
movq %rax, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x3230
movq %r13, %r15
addq %r13, %rbp
addq 0x10(%rsp), %r13
movq %rbp, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3230
addq %rbx, %rbp
cmpl $-0x1, %r14d
movq 0x10(%rsp), %rbx
je 0x81f1
leaq 0x1(%rbp), %rax
cmpq %r13, %rax
jb 0x81cb
movq %rbx, %r13
addq %rbx, %rbx
movq %rbx, %rdi
callq 0x9f28
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 0x81e7
callq 0x82e4
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x8199
jmp 0x81f1
movq %rbx, 0x10(%rsp)
jmp 0x810b
leaq 0x75ce(%rip), %rdi      # 0xf7c6
callq 0x95dd
movb $0x1, 0x11924(%rip)     # 0x19b28
xorl %r15d, %r15d
movq 0x18(%rsp), %rax
movb 0x11916(%rip), %cl      # 0x19b28
testb %cl, %cl
je 0x7f52
jmp 0x7f45
movl $0x1, 0xc(%rsp)
movl 0xc(%rsp), %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq