// File: /workspace/github_c_makefile_star2_O2/markdryan[P]subtilis/frontend/parser_array.c
// Function: subtilis_parser_array_init_list
void subtilis_parser_array_init_list(subtilis_parser_t *p, subtilis_token_t *t,
				     const subtilis_array_desc_t *d,
				     subtilis_exp_t *e, subtilis_error_t *err)
{
	subtilis_type_t el_type;
	bool single_val;
	const char *tbuf;

	el_type.type = SUBTILIS_TYPE_VOID;

	subtilis_type_if_element_type(p, d->t, &el_type, err);
	if (err->type != SUBTILIS_ERROR_OK)
		goto cleanup;
	tbuf = subtilis_token_get_text(t);
	single_val = (t->type != SUBTILIS_TOKEN_OPERATOR) || strcmp(tbuf, ",");
	if (subtilis_type_if_is_numeric(&el_type) &&
	    subtilis_type_if_is_numeric(&e->type)) {
		if (single_val) {
			subtilis_type_if_array_set(p, d->name, d->t, d->reg,
						   d->loc, e, err);
			e = NULL;
		} else {
			prv_parse_numeric_initialiser(p, t, e, d, err);
		}
	} else if (((d->t->type == SUBTILIS_TYPE_ARRAY_STRING) ||
		    (d->t->type == SUBTILIS_TYPE_VECTOR_STRING)) &&
		   ((e->type.type == SUBTILIS_TYPE_CONST_STRING) ||
		    (e->type.type == SUBTILIS_TYPE_STRING))) {
		if (single_val) {
			subtilis_type_if_array_set(p, d->name, d->t, d->reg,
						   d->loc, e, err);
			e = NULL;
		} else if (e->type.type == SUBTILIS_TYPE_CONST_STRING) {
			prv_parse_string_initialiser(p, t, e, d, err);
		} else {
			subtilis_error_set_const_string_expected(
			    err, p->l->stream->name, p->l->line);
		}
	} else if ((d->t->type == SUBTILIS_TYPE_ARRAY_FN) ||
		   (d->t->type == SUBTILIS_TYPE_VECTOR_FN)) {
		prv_fn_check_type(p, e, &el_type, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto cleanup;
		if (single_val) {
			subtilis_type_if_array_set(p, d->name, d->t, d->reg,
						   d->loc, e, err);
			e = NULL;
		} else {
			prv_parse_fn_initialiser(p, t, &el_type, e, d, err);
		}
	} else {
		subtilis_error_set_array_type_mismatch(err, p->l->stream->name,
						       p->l->line);
	}
cleanup:
	subtilis_type_free(&el_type);
	subtilis_exp_delete(e);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
leaq 0x300(%rsp), %rdx
movl $0x8, (%rdx)
movq 0x8(%r12), %rsi
movq %r8, %rcx
callq 0x34108
cmpl $0x0, (%r14)
je 0x16238
leaq 0x300(%rsp), %rdi
callq 0x2dc7c
movq %r15, %rdi
callq 0x29d88
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, %rdi
callq 0x12a25
movb $0x1, %bl
cmpl $0x2, (%r13)
jne 0x16255
cmpb $0x2c, (%rax)
jne 0x16255
cmpb $0x0, 0x1(%rax)
setne %bl
leaq 0x300(%rsp), %rdi
callq 0x35655
testb %al, %al
je 0x162cc
movq %r15, %rdi
callq 0x35655
testb %al, %al
je 0x162cc
testb %bl, %bl
jne 0x16337
movq 0x8(%r12), %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0x341c4
cmpl $0x0, (%r14)
jne 0x16211
movq %rax, 0x28(%rsp)
movq %rbp, 0x18(%rsp)
movq %r15, 0x20(%rsp)
pushq $0x1
popq %rbp
xorl %eax, %eax
movslq 0xc(%rbx,%rax,4), %r15
cmpq $-0x1, %r15
je 0x1655c
leaq 0x1(%r15), %rcx
imulq %rcx, %rbp
incq %rax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jb 0x162a4
jmp 0x16561
movq 0x8(%r12), %rdx
movl (%rdx), %eax
leal -0xd(%rax), %ecx
cmpl $0x7, %ecx
ja 0x16361
leaq 0x571e2(%rip), %rsi     # 0x6d4c8
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
movl (%r15), %ecx
movl %ecx, %esi
orl $0x4, %esi
cmpl $0x7, %esi
jne 0x1630a
testb %bl, %bl
je 0x16384
movq (%r12), %rsi
jmp 0x16340
cmpl $0xe, %eax
jne 0x16361
leaq 0x300(%rsp), %rdx
movq %rbp, %rdi
movq %r15, %rsi
movq %r14, %rcx
callq 0x16cfc
cmpl $0x0, (%r14)
jne 0x16211
testb %bl, %bl
je 0x16475
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq 0x10(%r12), %rcx
movq 0x18(%r12), %r8
movq %r14, (%rsp)
movq %rbp, %rdi
movq %r15, %r9
callq 0x345f1
xorl %r15d, %r15d
jmp 0x16211
movq (%rbp), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x57175(%rip), %r8      # 0x6d4e8
pushq $0x41
popq %rsi
movq %r14, %rdi
movl $0x474, %r9d            # imm = 0x474
jmp 0x16540
cmpl $0x3, %ecx
jne 0x16522
leaq 0x70(%rsp), %r8
andq $0x0, (%r8)
movq %r14, (%rsp)
leaq 0x58297(%rip), %rdx     # 0x6e638
leaq 0x1420(%rip), %r9       # 0x177c8
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0x17647
cmpl $0x0, (%r14)
jne 0x16211
movq %rax, %r13
movq %rbp, 0x18(%rsp)
movq %r15, 0x20(%rsp)
leaq 0x58784(%rip), %rdi     # 0x6eb58
movq %r14, %rsi
callq 0x33df0
movq %rax, 0x28(%rsp)
cmpl $0x0, (%r14)
movq 0x70(%rsp), %rbp
jne 0x16456
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq 0x28(%rsp), %rcx
movq %r14, %r8
callq 0x17812
cmpl $0x0, (%r14)
jne 0x16456
leaq (,%rbp,8), %rsi
movq 0x18(%rsp), %rax
movq 0x68(%rax), %rdi
movq %rsi, 0x60(%rsp)
movq %r14, %rdx
callq 0x2ce13
cmpl $0x0, (%r14)
jne 0x16456
movl (%rax), %ecx
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x9
popq %rsi
pushq $0x2
popq %rdx
movq %r14, %r8
callq 0x2a819
movq %rax, 0x30(%rsp)
cmpl $0x0, (%r14)
je 0x167d3
xorl %ebx, %ebx
movq 0x20(%rsp), %r15
cmpq %rbx, %rbp
je 0x16590
movq (%r13,%rbx,8), %rdi
callq 0x29d88
incq %rbx
jmp 0x1645d
leaq 0x70(%rsp), %r8
andq $0x0, (%r8)
movq %r14, (%rsp)
leaq 0x873(%rip), %r9        # 0x16cfc
leaq 0x300(%rsp), %rdx
movq %rbp, %rdi
movq %r15, %rsi
movq %r13, %rcx
callq 0x17647
cmpl $0x0, (%r14)
jne 0x16211
movq %rax, %r13
movq %rbp, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x33df0
cmpl $0x0, (%r14)
movq 0x70(%rsp), %rbp
jne 0x1650c
movq %rax, %rbx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rax, %rcx
movq %r14, %r8
callq 0x17812
cmpl $0x0, (%r14)
jne 0x1650c
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq 0x18(%rsp), %rdi
movq %r14, %rcx
callq 0x4a690
cmpl $0x0, (%r14)
je 0x16668
xorl %ebx, %ebx
cmpq %rbx, %rbp
je 0x1654a
movq (%r13,%rbx,8), %rdi
callq 0x29d88
incq %rbx
jmp 0x1650e
movq (%rbp), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x56fb4(%rip), %r8      # 0x6d4e8
pushq $0x4a
popq %rsi
movq %r14, %rdi
movl $0x464, %r9d            # imm = 0x464
callq 0x142c0
jmp 0x16211
movq %r13, %rdi
callq 0x122c0
movq 0x20(%rsp), %r15
jmp 0x16211
movl $0x100, %ebp            # imm = 0x100
movq %rbp, 0x68(%rsp)
leaq 0x70(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x34108
cmpl $0x0, (%r14)
je 0x16595
xorl %r13d, %r13d
movq 0x28(%rsp), %rdi
callq 0x29d88
jmp 0x165b3
movq %r13, %rdi
jmp 0x165dc
leaq 0x70(%rsp), %rdi
leaq 0x1b8(%rsp), %rsi
movq %r14, %rdx
callq 0x340b7
cmpl $0x0, (%r14)
je 0x165e6
xorl %r13d, %r13d
movq 0x20(%rsp), %r15
leaq 0x70(%rsp), %rdi
callq 0x2dc7c
xorl %ebp, %ebp
leaq 0x1b8(%rsp), %rdi
callq 0x2dc7c
movq %r13, %rdi
callq 0x29d88
movq %rbp, %rdi
callq 0x122c0
jmp 0x16211
leaq 0x1b8(%rsp), %rdi
movq %r14, %rsi
callq 0x33df0
cmpl $0x0, (%r14)
je 0x16608
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x20(%rsp), %r15
jmp 0x165c4
movq %rax, %rbx
imulq %rax, %rbp
movq %rbp, %rdi
callq 0x121d0
testq %rax, %rax
je 0x166d5
movq %r14, 0x8(%rsp)
leaq 0x68(%rsp), %rcx
movq %rcx, (%rsp)
leaq 0x1b8(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rcx
movq %rax, %r8
xorl %r9d, %r9d
callq 0x174aa
movq %rax, %rbp
cmpl $0x0, (%r14)
je 0x166f1
movq 0x20(%rsp), %r15
xorl %r13d, %r13d
jmp 0x165c4
movq %rax, %r12
leaq -0x1(%rbp), %r15
movl %ebx, %eax
movq %rax, 0x28(%rsp)
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0x167b1
movq (%r13,%rbx,8), %rcx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r14, %r8
callq 0x34300
andq $0x0, (%r13,%rbx,8)
cmpl $0x0, (%r14)
jne 0x1650c
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x9
popq %rsi
movq %r12, %rdx
movq 0x28(%rsp), %rcx
movq %r14, %r8
callq 0x2a819
movq %rax, %r12
incq %rbx
cmpl $0x0, (%r14)
je 0x16678
jmp 0x1650c
leaq 0x56e0c(%rip), %rdx     # 0x6d4e8
pushq $0x1
popq %rsi
movq %r14, %rdi
movl $0x24f, %ecx            # imm = 0x24F
callq 0x1429e
jmp 0x165fc
pushq $0x1
popq %rax
movq %rax, 0x28(%rsp)
movq %rbx, 0x38(%rsp)
movq %r13, %rdi
callq 0x12a25
cmpl $0x2, (%r13)
jne 0x168e7
cmpb $0x2c, (%rax)
jne 0x168e7
cmpb $0x0, 0x1(%rax)
jne 0x168e7
movq %rbx, 0x30(%rsp)
cmpl $-0x1, %r15d
je 0x1673f
movq 0x28(%rsp), %rax
cmpq 0x68(%rsp), %rax
jae 0x16984
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1dfd5
cmpl $0x0, (%r14)
jne 0x1665b
movq %r14, 0x8(%rsp)
leaq 0x68(%rsp), %rcx
movq %rcx, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
leaq 0x1b8(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq %rbp, %r8
movq 0x28(%rsp), %rbx
movq %rbx, %r9
callq 0x174aa
movq %rax, %rbp
cmpl $0x0, (%r14)
jne 0x1665b
incq %rbx
movq %rbx, 0x28(%rsp)
movq 0x30(%rsp), %rbx
addq 0x38(%rsp), %rbx
jmp 0x166fe
movq -0x8(%r13,%rbp,8), %rcx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r14, %r8
callq 0x34300
andq $0x0, -0x8(%r13,%rbp,8)
jmp 0x1650c
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
andq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
xorl %eax, %eax
movq %rbp, %rcx
xorl %ebx, %ebx
subq $0x1, %rcx
movq %rcx, 0x50(%rsp)
jb 0x169b3
movq %rax, 0x38(%rsp)
movq (%r13,%rax), %rdi
movl $0x148, %eax            # imm = 0x148
addq %rax, %rdi
movq %rdi, 0x48(%rsp)
callq 0x14804
movq %rax, %rcx
decq %rcx
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq %rcx, %r15
movl %ecx, %edx
orq %rbx, %rdx
pushq $0x1b
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rdi
movq 0x38(%rsp), %rbx
andl $-0x8, %ebx
pushq $0x17
popq %rsi
movq %rax, %rdx
movq 0x30(%rsp), %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
testq %r15, %r15
je 0x168cf
movq 0x48(%rsp), %rdi
callq 0x14a53
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x458cb
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rdi
orq $0x4, %rbx
pushq $0x17
popq %rsi
movq %rax, %rdx
movq 0x30(%rsp), %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
movq 0x38(%rsp), %rax
addq $0x8, %rax
movq 0x40(%rsp), %rbx
movq 0x50(%rsp), %rcx
jmp 0x167ee
cmpl $-0x1, %r15d
je 0x16949
xorl %ecx, %ecx
cmpl $0x0, 0x1b8(%rsp)
sete %cl
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x28(%rax), %rdi
movq %rbp, %rsi
movq %rbx, %r15
movq %rbx, %rdx
movq %r14, %r8
callq 0x2d4e8
cmpl $0x0, (%r14)
jne 0x169ab
movq %rax, %rbx
movl %r15d, %edi
movq %r14, %rsi
callq 0x2a369
cmpl $0x0, (%r14)
je 0x16c90
xorl %ebp, %ebp
movq 0x20(%rsp), %r15
movq %rax, %r13
jmp 0x165c4
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq 0x18(%rsp), %rdi
movq %r14, %rcx
callq 0x41b42
cmpl $0x0, (%r14)
jne 0x169ab
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
movq %r14, %rcx
callq 0x175a4
cmpl $0x0, (%r14)
jne 0x169ab
jmp 0x168ed
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rax), %rdx
movl 0x38(%rax), %ecx
leaq 0x56b4e(%rip), %r8      # 0x6d4e8
pushq $0x47
popq %rsi
movq %r14, %rdi
movl $0x25e, %r9d            # imm = 0x25E
callq 0x142c0
xorl %r13d, %r13d
jmp 0x16601
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq 0x18(%rsp), %rdi
movq %r14, %rcx
callq 0x4a690
cmpl $0x0, (%r14)
jne 0x16456
movq %rax, %r12
movq 0x18(%rsp), %rbx
movq 0x48(%rbx), %rdi
callq 0x2b774
movq %rax, 0x38(%rsp)
movq 0x48(%rbx), %rdi
callq 0x2b774
movq %rax, %r15
movq 0x48(%rbx), %rdi
callq 0x2b774
movq %rax, 0x48(%rsp)
movq 0x48(%rbx), %rdi
callq 0x2b774
movq %rax, 0x50(%rsp)
movq 0x48(%rbx), %rdi
callq 0x2b774
movq %rax, 0x40(%rsp)
movq 0x48(%rbx), %rdi
movq 0x60(%rsp), %rcx
andl $-0x8, %ecx
pushq $0x9
popq %rsi
movq 0x30(%rsp), %rdx
movq %r14, %r8
callq 0x2a819
movq %rax, 0x60(%rsp)
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x38(%rsp), %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x12
popq %rsi
movq 0x30(%rsp), %rdx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x2a819
movq %rax, 0x58(%rsp)
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x43
popq %rsi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x12
popq %rsi
pushq $0x4
popq %rcx
movq 0x30(%rsp), %rdx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x16456
movq %rax, %rbx
movq 0x18(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x4aeaa
cmpl $0x0, (%r14)
jne 0x16456
movq %r14, (%rsp)
movq 0x18(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
movq 0x58(%rsp), %r8
xorl %r9d, %r9d
callq 0x45b72
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x45
popq %rsi
movq 0x40(%rsp), %rdx
movq %r14, %rcx
callq 0x2a997
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x48(%rsp), %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq 0x58(%rsp), %rcx
movq %r14, %r8
callq 0x4acc2
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x40(%rsp), %rsi
movq %r14, %rdx
callq 0x2b781
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movl 0x28(%rsp), %r8d
pushq $0x9
popq %rsi
movq %r12, %rdx
movq %r12, %rcx
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x9
popq %rsi
pushq $0x8
popq %r8
movq 0x30(%rsp), %rcx
movq %rcx, %rdx
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
pushq $0x3b
popq %rsi
movq 0x30(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq %r14, %r8
callq 0x2a819
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rcx
movq 0x48(%rcx), %rdi
pushq $0x43
popq %rsi
movq %rax, %rdx
movq 0x38(%rsp), %rcx
movq %r15, %r8
movq %r14, %r9
callq 0x2a8c1
cmpl $0x0, (%r14)
jne 0x16456
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2b781
jmp 0x16456
movq 0x18(%rsp), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x3415f
movq %rax, %r13
cmpl $0x0, (%r14)
jne 0x165ff
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
movl %ebx, %edx
pushq $0x7d
popq %rsi
movq %r14, %rcx
callq 0x2a981
cmpl $0x0, (%r14)
jne 0x165ff
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq 0x148(%r13), %r8
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movq %r14, %r9
callq 0x4ab91
movq $0x0, 0x28(%rsp)
jmp 0x16584