// File: /workspace/github_c_makefile_star2_O0/haxlang[P]hax/haxParse.c
// Function: HaxParseNestedCmd
int
HaxParseNestedCmd(
    Hax_Interp *interp,		/* Interpreter to use for nested command
				 * evaluations and error messages. */
    char *string,		/* Character just after opening bracket. */
    int flags,			/* Flags to pass to nested Hax_Eval. */
    char **termPtr,		/* Store address of terminating character
				 * here. */
    ParseValue *pvPtr		/* Information about where to place
				 * result of command. */)
{
    int result, length, shortfall;
    Interp *iPtr = (Interp *) interp;

    result = Hax_Eval(interp, NULL, string, flags | HAX_BRACKET_TERM, termPtr);
    if (result != HAX_OK) {
	/*
	 * The increment below results in slightly cleaner message in
	 * the errorInfo variable (the close-bracket will appear).
	 */

	if (**termPtr == ']') {
	    *termPtr += 1;
	}
	return result;
    }
    (*termPtr) += 1;
    length = strlen(iPtr->result);
    shortfall = length + 1 - (pvPtr->end - pvPtr->next);
    if (shortfall > 0) {
	(*pvPtr->expandProc)(interp, pvPtr, shortfall);
    }
    strcpy(pvPtr->next, iPtr->result);
    pvPtr->next += length;
    Hax_FreeResult(interp);
    iPtr->result = iPtr->resultSpace;
    iPtr->resultSpace[0] = '\0';
    return HAX_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
orl $0x1, %ecx
movq -0x28(%rbp), %r8
xorl %eax, %eax
movl %eax, %esi
callq 0x45b0
movl %eax, -0x34(%rbp)
cmpl $0x0, -0x34(%rbp)
je 0x15a8f
movq -0x28(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x5d, %eax
jne 0x15a84
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movl -0x34(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x15b96
movq -0x28(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
movq (%rax), %rdi
callq 0x41b0
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
cltq
movq -0x30(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x30(%rbp), %rdx
movq 0x8(%rdx), %rdx
subq %rdx, %rcx
subq %rcx, %rax
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
jle 0x15ae8
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl -0x3c(%rbp), %edx
callq *%rax
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %rsi
callq 0x40d0
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rcx
movslq %edx, %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x15b70
movq -0x10(%rbp), %rax
movq 0xd481(%rip), %rcx      # 0x22fa8
cmpq %rcx, 0x8(%rax)
jne 0x15b53
movq -0x10(%rbp), %rdi
callq 0x4540
movq %rax, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
leaq 0x96b4(%rip), %rdx      # 0x1f1fb
movl $0x1a6, %ecx            # imm = 0x1A6
callq 0x4260
jmp 0x15b64
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rdi
callq *%rax
movq -0x10(%rbp), %rax
movq $0x0, 0x8(%rax)
jmp 0x15b72
movq -0x48(%rbp), %rcx
addq $0x1b0, %rcx            # imm = 0x1B0
movq -0x48(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
movb $0x0, 0x1b0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nop