// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_call.c
// Function: prv_complete_proc_fn_type
static void prv_complete_proc_fn_type(subtilis_parser_t *p, subtilis_token_t *t,
				      subtilis_type_t *fn_type,
				      subtilis_error_t *err)
{
	subtilis_type_t id_type;
	const char *tbuf;

	id_type.type = SUBTILIS_TYPE_VOID;

	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_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_expected(
			    err, "} ", tbuf, p->l->stream->name, p->l->line);
			return;
		}
		subtilis_lexer_get(p->l, t, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		tbuf = subtilis_token_get_text(t);

		subtilis_type_init_copy(&id_type, fn_type, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		subtilis_type_if_vector_of(&id_type, fn_type, err);
		subtilis_type_free(&id_type);
		if (err->type != SUBTILIS_ERROR_OK)
			return;
		fn_type->params.array.num_dims = 1;
		fn_type->params.array.dims[0] = SUBTILIS_DYNAMIC_DIMENSION;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x8, -0x168(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x21a37
jmp 0x21b9c
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x170(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x21b9c
movq -0x170(%rbp), %rdi
leaq 0x8bba9(%rip), %rsi     # 0xad60b
callq 0x12140
cmpl $0x0, %eax
jne 0x21b9c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x21a92
jmp 0x21b9c
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x170(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x2, (%rax)
jne 0x21ac3
movq -0x170(%rbp), %rdi
leaq 0x88b72(%rip), %rsi     # 0xaa62b
callq 0x12140
cmpl $0x0, %eax
je 0x21b0d
movq -0x20(%rbp), %rdi
movq -0x170(%rbp), %rcx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x1d, %esi
leaq 0x88b3d(%rip), %rdx     # 0xaa62d
leaq 0x88b39(%rip), %rax     # 0xaa630
movq %rax, (%rsp)
movl $0x427, 0x8(%rsp)       # imm = 0x427
callq 0x156d0
jmp 0x21b9c
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x133f0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x21b2c
jmp 0x21b9c
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x170(%rbp)
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x168(%rbp), %rdi
callq 0x3dec0
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x21b5b
jmp 0x21b9c
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x168(%rbp), %rdi
callq 0x47a50
leaq -0x168(%rbp), %rdi
callq 0x3e100
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x21b86
jmp 0x21b9c
movq -0x18(%rbp), %rax
movl $0x1, 0x8(%rax)
movq -0x18(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw %cs:(%rax,%rax)