// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_exp.c
// Function: prv_bracketed_args_have_b
static size_t prv_bracketed_args_have_b(subtilis_parser_t *p,
					subtilis_token_t *t, subtilis_exp_t **e,
					size_t max,
					subtilis_type_if_unary_t conv,
					subtilis_error_t *err)
{
	size_t i;
	const char *tbuf;

	memset(e, 0, sizeof(*e) * max);

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

	if (t->type == SUBTILIS_TOKEN_OPERATOR) {
		tbuf = subtilis_token_get_text(t);
		if (!strcmp(tbuf, ")"))
			return 0;
	}

	e[0] = subtilis_parser_priority7(p, t, err);
	if (err->type != SUBTILIS_ERROR_OK)
		return 0;

	if (conv) {
		e[0] = conv(p, e[0], err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;
	}

	for (i = 1; i < max; i++) {
		tbuf = subtilis_token_get_text(t);
		if (t->type != SUBTILIS_TOKEN_OPERATOR) {
			subtilis_error_set_expected(
			    err, ",", tbuf, p->l->stream->name, p->l->line);
			goto on_error;
		}

		if (!strcmp(tbuf, ")"))
			return i;

		if (strcmp(tbuf, ",")) {
			subtilis_error_set_expected(
			    err, ",", tbuf, p->l->stream->name, p->l->line);
			goto on_error;
		}

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

		e[i] = subtilis_parser_priority7(p, t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;

		if (conv) {
			e[i] = conv(p, e[i], err);
			if (err->type != SUBTILIS_ERROR_OK)
				goto on_error;
		}
	}

	tbuf = subtilis_token_get_text(t);
	if ((t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, ")"))
		return i;

	/*
	 * Too many integers in the list
	 */

	subtilis_error_set_right_bkt_expected(err, tbuf, p->l->stream->name,
					      p->l->line);

on_error:

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

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x12110
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x133f0
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2529d
movq $0x0, -0x8(%rbp)
jmp 0x255a6
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x252d7
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
leaq 0x85893(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
jne 0x252d5
movq $0x0, -0x8(%rbp)
jmp 0x255a6
jmp 0x252d7
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x24550
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x25308
movq $0x0, -0x8(%rbp)
jmp 0x255a6
cmpq $0x0, -0x30(%rbp)
je 0x2533e
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rcx
movq (%rcx), %rsi
movq -0x38(%rbp), %rdx
callq *%rax
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2533c
jmp 0x2554c
jmp 0x2533e
movq $0x1, -0x40(%rbp)
movq -0x40(%rbp), %rax
cmpq -0x28(%rbp), %rax
jae 0x254d2
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
je 0x253b1
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x85215(%rip), %rdx     # 0xaa5a9
leaq 0x85551(%rip), %rax     # 0xaa8ec
movq %rax, (%rsp)
movl $0x485, 0x8(%rsp)       # imm = 0x485
callq 0x156d0
jmp 0x2554c
movq -0x48(%rbp), %rdi
leaq 0x85795(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
jne 0x253d3
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x255a6
movq -0x48(%rbp), %rdi
leaq 0x851cb(%rip), %rsi     # 0xaa5a9
callq 0x12140
cmpl $0x0, %eax
je 0x2542f
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x85197(%rip), %rdx     # 0xaa5a9
leaq 0x854d3(%rip), %rax     # 0xaa8ec
movq %rax, (%rsp)
movl $0x48e, 0x8(%rsp)       # imm = 0x48E
callq 0x156d0
jmp 0x2554c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x133f0
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x25451
jmp 0x2554c
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x24550
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x2547f
jmp 0x2554c
cmpq $0x0, -0x30(%rbp)
je 0x254bf
movq -0x30(%rbp), %rax
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rcx
movq -0x40(%rbp), %rdx
movq (%rcx,%rdx,8), %rsi
movq -0x38(%rbp), %rdx
callq *%rax
movq %rax, %rdx
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
je 0x254bd
jmp 0x2554c
jmp 0x254bf
jmp 0x254c1
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x25346
movq -0x18(%rbp), %rdi
callq 0x12d70
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x2550a
movq -0x48(%rbp), %rdi
leaq 0x8565e(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
jne 0x2550a
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x255a6
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x16, %esi
leaq 0x85d42(%rip), %rcx     # 0xab276
leaq 0x853b1(%rip), %rax     # 0xaa8ec
movq %rax, (%rsp)
movl $0x4aa, 0x8(%rsp)       # imm = 0x4AA
callq 0x156d0
movq $0x0, -0x40(%rbp)
movq -0x40(%rbp), %rcx
xorl %eax, %eax
cmpq -0x28(%rbp), %rcx
movb %al, -0x49(%rbp)
jae 0x25576
movq -0x20(%rbp), %rax
movq -0x40(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
setne %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %al
testb $0x1, %al
jne 0x2557f
jmp 0x2559e
movq -0x20(%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 0x25554
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x60, %rsp
popq %rbp
retq