// File: /workspace/github_c_makefile_star2_O0/OstCollector[P]config2c/config2c.c
// Function: verify_def_struct
static void verify_def_struct(const struct node_member_list *list,
		int top, const char *name, int seq)
{
	long i, j, m, n;
	const struct node_mapping *map;

	const char *unnamed = "union %s has a possible candidate struct "
		"(%ld-th field) that contains an unnamed union (%ld-th "
		"field), which is unsupported\n";
	const char *notexist = "member %s.%s has a unknown type %s\n";
	const char *unmatch = "member %s.%s is unmatched to its type %s\n";
	const char *no_default = "member %s.%s should not have default value\n";

	const char *empty_top = "struct %s has no member, which is meaningless\n";
	const char *empty_unnamed = "union %s has a possible candidate struct "
		"(%ld-th field) that is empty, which is meaningless\n";

	if (!list) {
		if (top) {
			fprintf(stderr, empty_top, name);
		} else {
			fprintf(stderr, empty_unnamed, name, seq);
		}
	}

	for (i = 0; list; ++i, list = list->next) {
		if (!top && list->default_val) {
			fprintf(stderr, no_default, name, list->in_name);
		}
		switch (list->type) {
		case NODE_MEMBER_DEF_PRIM:
			map = lookup_map(list->type_name);
			if (!map) {
				fprintf(stderr, notexist, name,
						list->in_name,
						list->type_name);
				exit(EXIT_FAILURE);
			}
			m = len_string_list(map->mapped_types);
			n = len_string_list(list->mapped);
			if (m != n) {
				fprintf(stderr, unmatch, name,
						list->in_name,
						list->type_name);
				exit(EXIT_FAILURE);
			}
			break;
		case NODE_MEMBER_DEF_ENUM:
			if (!lookup_enum(list->type_name)) {
				fprintf(stderr, notexist, name,
						list->in_name,
						list->type_name);
				exit(EXIT_FAILURE);
			}
			break;
		case NODE_MEMBER_DEF_STRUCT:
			if (!lookup_struct(list->type_name)) {
				fprintf(stderr, notexist, name,
						list->in_name,
						list->type_name);
				exit(EXIT_FAILURE);
			}
			break;
		case NODE_MEMBER_DEF_UNION:
			if (!lookup_union(list->type_name)) {
				fprintf(stderr, notexist, name,
						list->in_name,
						list->type_name);
				exit(EXIT_FAILURE);
			}
			break;
		case NODE_MEMBER_DEF_UNNAMED_UNION:
			if (!top) {
				fprintf(stderr, unnamed, name,
						seq, i);
				exit(EXIT_FAILURE);
			} else {
				verify_def_union(list->alters,
						0, name, i);
			}
			break;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
leaq 0xa74b(%rip), %rax      # 0x173bb
movq %rax, -0x50(%rbp)
leaq 0xa7bd(%rip), %rax      # 0x17438
movq %rax, -0x58(%rbp)
leaq 0xa7d6(%rip), %rax      # 0x1745c
movq %rax, -0x60(%rbp)
leaq 0xa7f5(%rip), %rax      # 0x17486
movq %rax, -0x68(%rbp)
leaq 0xa816(%rip), %rax      # 0x174b2
movq %rax, -0x70(%rbp)
leaq 0xa83a(%rip), %rax      # 0x174e1
movq %rax, -0x78(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0xccf1
cmpl $0x0, -0xc(%rbp)
je 0xccd3
movq 0xe331(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x70(%rbp), %rsi
movq -0x18(%rbp), %rdx
movb $0x0, %al
callq 0x2100
jmp 0xccef
movq 0xe316(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x78(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movb $0x0, %al
callq 0x2100
jmp 0xccf1
movq $0x0, -0x28(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0xcf55
cmpl $0x0, -0xc(%rbp)
jne 0xcd36
movq -0x8(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0xcd36
movq 0xe2d4(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x68(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movb $0x0, %al
callq 0x2100
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x80(%rbp)
subq $0x4, %rax
ja 0xcf37
movq -0x80(%rbp), %rax
leaq 0x83e6(%rip), %rcx      # 0x1513c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x8960
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0xcdaa
movq 0xe272(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
movq -0x48(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x8c50
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x8c50
movq %rax, -0x40(%rbp)
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
je 0xce09
movq 0xe213(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x60(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xcf37
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xd280
cmpq $0x0, %rax
jne 0xce54
movq 0xe1c8(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xcf37
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xd2f0
cmpq $0x0, %rax
jne 0xce9f
movq 0xe17d(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xcf37
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x8be0
cmpq $0x0, %rax
jne 0xceea
movq 0xe132(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x58(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xcf37
cmpl $0x0, -0xc(%rbp)
jne 0xcf1c
movq 0xe0f7(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
movq -0x50(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %r8
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rdx
movq -0x28(%rbp), %rax
movl %eax, %ecx
xorl %esi, %esi
callq 0xcf60
jmp 0xcf37
jmp 0xcf39
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0xccf9
addq $0x80, %rsp
popq %rbp
retq
nop