// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/parser_string.c
// Function: subtilis_parser_val
subtilis_exp_t *subtilis_parser_val(subtilis_parser_t *p, subtilis_token_t *t,
				    subtilis_error_t *err)
{
	size_t args;
	const char *tbuf;
	subtilis_exp_t *e[2];
	size_t i;

	subtilis_lexer_get(p->l, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	tbuf = subtilis_token_get_text(t);
	if (strcmp(tbuf, "(")) {
		subtilis_error_set_exp_expected(err, "( ", p->l->stream->name,
						p->l->line);
		return NULL;
	}

	args = subtilis_var_bracketed_args_have_b(p, t, e, 2, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return NULL;

	subtilis_lexer_get(p->l, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

	if (args == 0) {
		subtilis_error_set_string_expected(err, p->l->stream->name,
						   p->l->line);
		goto cleanup;
	}

	if (args == 1)
		return prv_val_real(p, t, e[0], err);

	if (args == 2)
		return prv_val_int(p, t, e, err);

	subtilis_error_set_bad_arg_count(err, 2, args, p->l->stream->name,
					 p->l->line);
cleanup:

	for (i = 0; i < args; i++)
		subtilis_exp_delete(e[i]);

	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x12e0e
cmpl $0x0, (%rbx)
jne 0x2761a
movq %r12, %rdi
callq 0x12a25
cmpb $0x28, (%rax)
jne 0x275e7
cmpb $0x0, 0x1(%rax)
je 0x2762e
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x46489(%rip), %rax     # 0x6da82
leaq 0x462b2(%rip), %rdx     # 0x6d8b2
leaq 0x467be(%rip), %rcx     # 0x6ddc5
pushq $0x15
popq %rsi
movq %rbx, %rdi
pushq $0x2df                  # imm = 0x2DF
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsp, %rdx
pushq $0x2
popq %rcx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %r8
callq 0x1e658
cmpl $0x0, (%rbx)
jne 0x2761a
movq %rax, %r15
movq (%r14), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x12e0e
cmpl $0x0, (%rbx)
je 0x27675
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpq %r14, %r15
je 0x2761c
movq (%rsp,%r14,8), %rdi
callq 0x29d88
incq %r14
jmp 0x27662
cmpq $0x2, %r15
je 0x277b5
cmpq $0x1, %r15
je 0x276b2
testq %r15, %r15
jne 0x27821
movq (%r14), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x463e3(%rip), %r8      # 0x6da82
pushq $0x49
popq %rsi
movq %rbx, %rdi
movl $0x2ed, %r9d            # imm = 0x2ED
callq 0x142c0
jmp 0x2765d
movq (%rsp), %r15
movl (%r15), %eax
cmpl $0x7, %eax
je 0x27851
cmpl $0x3, %eax
jne 0x278af
leaq 0x148(%r15), %r12
movq %r12, %rdi
callq 0x14a53
movq %rax, %r13
movq %r12, %rdi
callq 0x14804
leaq -0x1(%rax), %rcx
cmpq $0x2, %rcx
jb 0x27710
cmpb $0x30, (%r13)
jne 0x27710
movzbl 0x1(%r13), %ecx
cmpl $0x58, %ecx
je 0x27705
cmpl $0x78, %ecx
jne 0x27710
cmpb $0x0, 0x2(%r13)
je 0x27d73
movq %rax, %rdi
callq 0x121d0
testq %rax, %rax
je 0x2790e
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
callq 0x12070
pushq $0x65
popq %rsi
movq %r12, %rdi
callq 0x12100
testq %rax, %rax
jne 0x2774f
pushq $0x45
popq %rsi
movq %r12, %rdi
callq 0x12100
testq %rax, %rax
je 0x27752
movb $0x0, (%rax)
movq %r12, %rdi
xorl %esi, %esi
callq 0x120b0
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jne 0x27932
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x462f7(%rip), %rax     # 0x6da82
leaq 0x46633(%rip), %rcx     # 0x6ddc5
pushq $0x8
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
pushq $0x1e8                  # imm = 0x1E8
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
movq %r12, %rdi
callq 0x122c0
jmp 0x27925
movq (%rsp), %rax
movl (%rax), %eax
orl $0x4, %eax
cmpl $0x7, %eax
jne 0x27873
movq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x347d5
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x27895
cmpl $0x1, (%rax)
jne 0x278d6
movl 0x148(%rax), %ecx
cmpl $0x10, %ecx
jne 0x2795e
movq (%rsp), %rdi
cmpl $0x3, (%rdi)
je 0x27c91
movq 0x148(%rdi), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x31ca9
jmp 0x27d6b
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x4624f(%rip), %rax     # 0x6da82
pushq $0x28
popq %rsi
pushq $0x2
popq %rdx
movq %rbx, %rdi
movl %r15d, %ecx
pushq $0x2f8                  # imm = 0x2F8
pushq %rax
callq 0x14179
popq %rax
popq %rcx
jmp 0x2765d
movq 0x148(%r15), %r12
movq %r15, %rdi
callq 0x29d88
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x31c13
jmp 0x27956
movq (%r14), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x461fe(%rip), %r8      # 0x6da82
pushq $0x49
popq %rsi
movq %rbx, %rdi
movl $0x285, %r9d            # imm = 0x285
callq 0x142c0
xorl %ebx, %ebx
movq (%rsp), %rdi
callq 0x29d88
movq 0x8(%rsp), %rdi
callq 0x29d88
jmp 0x2761c
movq (%r14), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x461c2(%rip), %r8      # 0x6da82
pushq $0x49
popq %rsi
movq %rbx, %rdi
movl $0x1f7, %r9d            # imm = 0x1F7
callq 0x142c0
jmp 0x2761a
movq (%rsp), %rdi
cmpl $0x3, (%rdi)
jne 0x279b0
movl $0x148, %r15d           # imm = 0x148
addq %r15, %rdi
callq 0x14a53
addq (%rsp), %r15
movq %r15, %rdi
callq 0x14804
cmpq $0x1, %rax
jne 0x2798c
xorl %edi, %edi
jmp 0x27d63
leaq 0x4616d(%rip), %rdx     # 0x6da82
pushq $0x1
popq %rsi
movq %rbx, %rdi
movl $0x1d8, %ecx            # imm = 0x1D8
callq 0x1429e
movq %r15, %rdi
callq 0x29d88
jmp 0x2761a
movq %xmm0, 0x10(%rsp)
movq %r12, %rdi
callq 0x122c0
movq %r15, %rdi
callq 0x29d88
movq 0x10(%rsp), %xmm0
movq %rbx, %rdi
callq 0x2a3b4
movq %rax, %rbx
jmp 0x2761c
addl $-0xb, %ecx
cmpl $-0xa, %ecx
ja 0x27c84
movq (%r14), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x46107(%rip), %r8      # 0x6da82
pushq $0x4c
popq %rsi
movq %rbx, %rdi
movl $0x292, %r9d            # imm = 0x292
jmp 0x27890
movq (%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3415f
movq %rax, (%rsp)
cmpl $0x0, (%rbx)
jne 0x27895
movq %rax, %rdi
movq 0x8(%rsp), %rax
movq 0x148(%rdi), %rcx
movq %rcx, 0x28(%rsp)
movq 0x148(%rax), %r12
movq 0x48(%r14), %rdi
movq 0x18(%rdi), %rax
movq %rax, 0x20(%rsp)
incq %rax
movq %rax, 0x18(%rdi)
callq 0x2b774
movq %rax, 0x10(%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, %r15
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x30(%rsp)
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, %r13
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, %rbp
movq 0x48(%r14), %rdi
callq 0x2b774
movq %rax, 0x18(%rsp)
movq 0x48(%r14), %rdi
pushq $0x31
popq %rsi
pushq $0x10
popq %rcx
movq %r12, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq %rbp, %rcx
movq %r13, %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x35
popq %rsi
pushq $0x1
popq %rcx
movq %r12, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq %r15, %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x39
popq %rsi
pushq $0xa
popq %rcx
movq %r12, %rdx
movq %rbx, %r8
callq 0x2a819
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %r8
movq %rbx, %r9
callq 0x2a8c1
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq 0x30(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
movq %r14, %rdi
movq 0x28(%rsp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x3236e
cmpl $0x0, (%rbx)
jne 0x27895
movq %rax, %r15
movq 0x48(%r14), %rdi
movq 0x148(%rax), %rcx
pushq $0x1d
popq %rsi
movq 0x20(%rsp), %rdx
movq %rbx, %r8
callq 0x2a9a4
movq %r15, %rdi
callq 0x29d88
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x45
popq %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a997
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
movq %r14, %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x31ca9
cmpl $0x0, (%rbx)
jne 0x27895
movq %rax, %r15
movq 0x48(%r14), %rdi
movq 0x148(%rax), %rcx
pushq $0x1d
popq %rsi
movq 0x20(%rsp), %rdx
movq %rbx, %r8
callq 0x2a9a4
movq %r15, %rdi
callq 0x29d88
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
pushq $0x45
popq %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rcx
callq 0x2a997
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq 0x10(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
pushq $0x1f
popq %rdi
movq %rbx, %rsi
callq 0x2a369
cmpl $0x0, (%rbx)
jne 0x27895
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x2a5f4
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x48(%r14), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
callq 0x2b781
cmpl $0x0, (%rbx)
jne 0x27895
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
callq 0x2a336
jmp 0x27d6b
movq (%rsp), %rdi
cmpl $0x3, (%rdi)
jne 0x27d82
movl $0x148, %r12d           # imm = 0x148
addq %r12, %rdi
callq 0x14a53
movq %rax, %r15
addq (%rsp), %r12
movq %r12, %rdi
callq 0x14804
decq %rax
cmpq $0x2, %rax
jae 0x27d24
movq 0x8(%rsp), %rax
movl 0x148(%rax), %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x121a0
movq %rax, %r12
callq 0x12040
cmpl $0x22, (%rax)
je 0x27cf0
leaq -0x80000000(%r12), %rax
movabsq $-0x100000001, %rcx     # imm = 0xFFFFFFFEFFFFFFFF
cmpq %rcx, %rax
ja 0x27d60
movq (%r14), %rax
movq 0x30(%rax), %r8
movl 0x38(%rax), %r9d
leaq 0x45d80(%rip), %rax     # 0x6da82
leaq 0x460bc(%rip), %rcx     # 0x6ddc5
pushq $0x8
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
pushq $0x2a3                  # imm = 0x2A3
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
jmp 0x27895
callq 0x122b0
movq (%rax), %rcx
movsbq (%r15), %rax
xorl %r12d, %r12d
testb $0x20, 0x1(%rcx,%rax,2)
jne 0x27d60
cmpb $0x30, %al
jne 0x27cb7
movzbl 0x1(%r15), %eax
cmpl $0x58, %eax
je 0x27d55
cmpl $0x78, %eax
jne 0x27cb7
cmpb $0x0, 0x2(%r15)
jne 0x27cb7
movl %r12d, %edi
movq %rbx, %rsi
callq 0x2a369
movq %rax, %rbx
jmp 0x27897
pxor %xmm0, %xmm0
movq %xmm0, 0x10(%rsp)
jmp 0x27940
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x3415f
movq %rax, 0x8(%rsp)
cmpl $0x0, (%rbx)
jne 0x27895
movq (%rsp), %rcx
movq 0x148(%rcx), %rsi
movq 0x148(%rax), %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x3236e
jmp 0x27d6b
nopl (%rax)