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

	memset(&e, 0, sizeof(e));

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

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

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

	if (args == 2) {
		e[0] = subtilis_type_if_exp_to_var(p, e[0], err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		e[1] = subtilis_type_if_exp_to_var(p, e[1], err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		subtilis_ir_section_add_instr_no_reg2(
		    p->current, SUBTILIS_OP_INSTR_AT, e[0]->exp.ir_op,
		    e[1]->exp.ir_op, err);
	} else if (args == 1) {
		prv_tab_one_arg(p, t, e[0], err);
		e[0] = NULL;
	} else {
		subtilis_error_set_integer_expected(
		    err, ")", p->l->stream->name, p->l->line);
		goto cleanup;
	}

	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;

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

cleanup:

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x12110
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x133f0
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30c66
jmp 0x30e4b
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x30c91
movq -0x20(%rbp), %rdi
leaq 0x7a615(%rip), %rsi     # 0xab29c
callq 0x12140
cmpl $0x0, %eax
je 0x30cdb
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x15, %esi
leaq 0x79c4b(%rip), %rdx     # 0xaa902
leaq 0x7a5b8(%rip), %rcx     # 0xab276
leaq 0x79da4(%rip), %rax     # 0xaaa69
movq %rax, (%rsp)
movl $0x1db, 0x8(%rsp)       # imm = 0x1DB
callq 0x156d0
jmp 0x30e4b
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq -0x18(%rbp), %r8
movl $0x2, %ecx
callq 0x251f0
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30d07
jmp 0x30e4b
cmpq $0x2, -0x38(%rbp)
jne 0x30d82
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x47c10
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30d31
jmp 0x30e1d
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x47c10
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30d54
jmp 0x30e1d
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rdi
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %r8
movq 0x148(%rcx), %rdx
movq 0x148(%rax), %rcx
movl $0x7e, %esi
callq 0x385a0
jmp 0x30df1
cmpq $0x1, -0x38(%rbp)
jne 0x30da8
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x18(%rbp), %rcx
callq 0x30fa0
movq $0x0, -0x30(%rbp)
jmp 0x30def
movq -0x18(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x17, %esi
leaq 0x79d83(%rip), %rdx     # 0xaab51
leaq 0x7a4a1(%rip), %rcx     # 0xab276
leaq 0x79c8d(%rip), %rax     # 0xaaa69
movq %rax, (%rsp)
movl $0x1f2, 0x8(%rsp)       # imm = 0x1F2
callq 0x156d0
jmp 0x30e1d
jmp 0x30df1
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30dfc
jmp 0x30e1d
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x133f0
movq -0x18(%rbp), %rax
cmpl $0x0, (%rax)
je 0x30e1b
jmp 0x30e4b
jmp 0x30e1d
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x30e4b
movq -0x40(%rbp), %rax
movq -0x30(%rbp,%rax,8), %rdi
callq 0x36ee0
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x30e25
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)