// File: /workspace/github_c_makefile_star2_O0/markdryan[P]subtilis/frontend/parser_rec.c
// Function: prv_parse_fields
static void prv_parse_fields(subtilis_parser_t *p, subtilis_token_t *t,
			     subtilis_type_t *type, subtilis_error_t *err)
{
	const char *tbuf;
	size_t size;
	size_t align;
	subtilis_type_t field;

	tbuf = subtilis_token_get_text(t);

	while (!((t->type == SUBTILIS_TOKEN_OPERATOR) && !strcmp(tbuf, ")"))) {
		if (t->type == SUBTILIS_TOKEN_KEYWORD) {
			if (t->tok.keyword.type != SUBTILIS_KEYWORD_DIM) {
				subtilis_error_set_expected(err, ")", tbuf,
							    p->l->stream->name,
							    p->l->line);
				return;
			}

			prv_parse_dim(p, t, type, err);
			if (err->type != SUBTILIS_ERROR_OK)
				return;
			tbuf = subtilis_token_get_text(t);
			continue;
		}

		prv_check_id(p, t, &field, err);
		if (err->type != SUBTILIS_ERROR_OK)
			return;

		size = subtilis_type_if_size(&field, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;

		align = subtilis_type_if_align(&field, err);
		if (err->type != SUBTILIS_ERROR_OK)
			goto on_error;

		subtilis_type_rec_add_field(type, tbuf, &field, align, size, 0,
					    err);
		subtilis_type_free(&field);
		if (err->type != SUBTILIS_ERROR_OK) {
			if (err->type == SUBTILIS_ERROR_TYPE_ALREADY_DEFINED)
				subtilis_error_set_already_defined(
				    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);
	}

	return;

on_error:
	subtilis_type_free(&field);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpl $0x2, (%rcx)
movb %al, -0x181(%rbp)
jne 0x343e7
movq -0x28(%rbp), %rdi
leaq 0x7677d(%rip), %rsi     # 0xaab51
callq 0x12140
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x181(%rbp)
movb -0x181(%rbp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x343f8
jmp 0x345b4
movq -0x10(%rbp), %rax
cmpl $0x1, (%rax)
jne 0x3448b
movq -0x10(%rbp), %rax
cmpl $0x1f, 0x8(%rax)
je 0x34456
movq -0x20(%rbp), %rdi
movq -0x28(%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 0x76718(%rip), %rdx     # 0xaab51
leaq 0x766f6(%rip), %rax     # 0xaab36
movq %rax, (%rsp)
movl $0xa4, 0x8(%rsp)
callq 0x156d0
jmp 0x345c2
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0x35c80
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x34479
jmp 0x345c2
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x28(%rbp)
jmp 0x343b8
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rcx
leaq -0x180(%rbp), %rdx
callq 0x36080
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x344b1
jmp 0x345c2
movq -0x20(%rbp), %rsi
leaq -0x180(%rbp), %rdi
callq 0x47420
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x344d3
jmp 0x345b6
movq -0x20(%rbp), %rsi
leaq -0x180(%rbp), %rdi
callq 0x47490
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x344f5
jmp 0x345b6
movq -0x18(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x38(%rbp), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %eax, %r8d
movq -0x20(%rbp), %rax
leaq -0x180(%rbp), %rdx
xorl %r9d, %r9d
movq %rax, (%rsp)
callq 0x3ed00
leaq -0x180(%rbp), %rdi
callq 0x3e100
movq -0x20(%rbp), %rax
cmpl $0x0, (%rax)
je 0x34583
movq -0x20(%rbp), %rax
cmpl $0x68, (%rax)
jne 0x34581
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rdx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x30(%rax), %r8
movq -0x8(%rbp), %rax
movq (%rax), %rax
movl 0x38(%rax), %r9d
movl $0x20, %esi
leaq 0x76d0d(%rip), %rcx     # 0xab276
leaq 0x765c6(%rip), %rax     # 0xaab36
movq %rax, (%rsp)
movl $0xc1, 0x8(%rsp)
callq 0x156d0
jmp 0x345c2
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 0x345a2
jmp 0x345c2
movq -0x10(%rbp), %rdi
callq 0x12d70
movq %rax, -0x28(%rbp)
jmp 0x343b8
jmp 0x345c2
leaq -0x180(%rbp), %rdi
callq 0x3e100
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbp
retq
nopl (%rax,%rax)