// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_os.c
// Function: prv_get_args
static subtilis_exp_t **prv_get_args(subtilis_parser_t *p, subtilis_token_t *t,
				     size_t *no_args, subtilis_error_t *err)
{
	subtilis_exp_t **tmp;
	const char *tbuf;
	size_t i;
	subtilis_exp_t **args = NULL;
	size_t count = 0;
	size_t max_count = 0;
	subtilis_exp_t *e;

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

		tbuf = subtilis_token_get_text(t);
		if ((t->type == SUBTILIS_TOKEN_OPERATOR) &&
		    (!strcmp(tbuf, ","))) {
			e = NULL;
		} else {
			e = subtilis_parser_priority7(p, t, err);
			if (err->type != SUBTILIS_ERROR_OK)
				goto cleanup;
			tbuf = subtilis_token_get_text(t);
		}

		if (count == max_count) {
			if (args) {
				subtilis_error_set_sys_max_too_many_args(
				    err, p->l->stream->name, p->l->line);
				goto cleanup;
			}
			max_count += 16;
			tmp = realloc(args, sizeof(*args) * max_count);
			if (!tmp) {
				subtilis_error_set_oom(err);
				goto cleanup;
			}
			args = tmp;
		}
		args[count++] = e;
	} while ((t->type == SUBTILIS_TOKEN_OPERATOR) && (!strcmp(tbuf, ",")));

	*no_args = count;
	return args;

cleanup:

	for (i = 0; i < count; i++)
		subtilis_exp_delete(args[i]);
	free(args);
	*no_args = 0;

	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x0, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x133f0
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x31b02
jmp 0x31c61
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x31b37
movq -0x38(%rbp), %rdi
leaq 0x78a86(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
jne 0x31b37
movq $0x0, -0x60(%rbp)
jmp 0x31b67
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x28(%rbp), %rdx
callq 0x24550
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rax
cmpl $0x0, (%rax)
je 0x31b5a
jmp 0x31c61
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rax
cmpq -0x58(%rbp), %rax
jne 0x31bfd
cmpq $0x0, -0x48(%rbp)
je 0x31bb1
movq -0x28(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %ecx
movl $0x4e, %esi
leaq 0x78f12(%rip), %r8      # 0xaaab3
movl $0x39, %r9d
callq 0x15930
jmp 0x31c61
movq -0x58(%rbp), %rax
addq $0x10, %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rdi
movq -0x58(%rbp), %rsi
shlq $0x3, %rsi
callq 0x121e0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x31bf5
movq -0x28(%rbp), %rdi
movl $0x1, %esi
leaq 0x78eca(%rip), %rdx     # 0xaaab3
movl $0x3f, %ecx
callq 0x158e0
jmp 0x31c61
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x60(%rbp), %rdx
movq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x50(%rbp)
movq %rdx, (%rax,%rcx,8)
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpl $0x2, (%rcx)
movb %al, -0x61(%rbp)
jne 0x31c41
movq -0x38(%rbp), %rdi
leaq 0x78978(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
testb $0x1, %al
jne 0x31ae0
movq -0x50(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x31cae
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x50(%rbp), %rax
jae 0x31c92
movq -0x48(%rbp), %rax
movq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x36ee0
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x31c69
movq -0x48(%rbp), %rdi
callq 0x12290
movq -0x20(%rbp), %rax
movq $0x0, (%rax)
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)