// File: /workspace/github_c_makefile_star2_O0/OstCollector[P]config2c/config2c.c
// Function: dump_struct
static void dump_struct(string name, const struct node_member_list *list)
{
	const struct node_member_list *memb;
	const struct node_alter_list *alt;
	struct type_decl decl;

	osi(0, "static void dump__struct_%s(put_func func, struct dump_context *ctx, "
			"int l, const struct %s *value)\n", name, name);
	osi(0, "{\n");
	osi(1, "long i;\n");
	osi(1, "func(ctx, \"{\\n\");\n");
	for (memb = list; memb; memb = memb->next) {
		if (!memb->visible) {
			continue;
		}
		switch (memb->type) {
		case NODE_MEMBER_DEF_PRIM:
			decl.type = TYPE_DECL_PRIM;
			decl.type_name = memb->type_name;
			helper_dump(&memb->vec, &decl, memb->in_name,
					memb->mapped, 1);
			break;
		case NODE_MEMBER_DEF_ENUM:
			decl.type = TYPE_DECL_ENUM;
			decl.type_name = memb->type_name;
			helper_dump(&memb->vec, &decl, memb->in_name,
					memb->mapped, 1);
			break;
		case NODE_MEMBER_DEF_STRUCT:
			decl.type = TYPE_DECL_STRUCT;
			decl.type_name = memb->type_name;
			helper_dump(&memb->vec, &decl, memb->in_name,
					memb->mapped, 1);
			break;
		case NODE_MEMBER_DEF_UNION:
			decl.type = TYPE_DECL_UNION;
			decl.type_name = memb->type_name;
			helper_dump(&memb->vec, &decl, memb->in_name,
					memb->mapped, 1);
			break;
		case NODE_MEMBER_DEF_UNNAMED_UNION:
			for (alt = memb->alters; alt; alt = alt->next) {
				osi(1, "if (value->%s == %s) {\n",
						memb->alt_enum, alt->enum_val);
				switch (alt->type) {
				case NODE_ALTER_DEF_PRIM:
					decl.type = TYPE_DECL_PRIM;
					decl.type_name = alt->type_name;
					helper_dump(&alt->vec, &decl, alt->in_name,
							alt->mapped, 2);
					break;
				case NODE_ALTER_DEF_ENUM:
					decl.type = TYPE_DECL_ENUM;
					decl.type_name = alt->type_name;
					helper_dump(&alt->vec, &decl, alt->in_name,
							alt->mapped, 2);
					break;
				case NODE_ALTER_DEF_STRUCT:
					decl.type = TYPE_DECL_STRUCT;
					decl.type_name = alt->type_name;
					helper_dump(&alt->vec, &decl, alt->in_name,
							alt->mapped, 2);
					break;
				}
				osi(1, "}\n"); /* if */
			}
		}
		osi(1, "func(ctx, \",\\n\");\n");
	}
	osi(1, "indent(func, ctx, l);\n");
	osi(1, "func(ctx, \"}\");\n");
	osi(0, "}\n"); /* func body */
	osi(0, "\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
xorl %edi, %edi
callq 0x6fd0
movq 0x14902(%rip), %rdi     # 0x1b2a0
movq -0x8(%rbp), %rdx
movq -0x8(%rbp), %rcx
leaq 0x1084b(%rip), %rsi     # 0x171f8
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x69e5
movq 0x1462d(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xef87(%rip), %rsi      # 0x15954
leaq 0xef98(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x69e7
jmp 0x69e9
jmp 0x69eb
xorl %edi, %edi
callq 0x6fd0
movq 0x148a7(%rip), %rdi     # 0x1b2a0
leaq 0x10db5(%rip), %rsi     # 0x177b5
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6a38
movq 0x145da(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xef34(%rip), %rsi      # 0x15954
leaq 0xef45(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6a3a
jmp 0x6a3c
jmp 0x6a3e
movl $0x1, %edi
callq 0x6fd0
movq 0x14851(%rip), %rdi     # 0x1b2a0
leaq 0x10799(%rip), %rsi     # 0x171ef
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6a8e
movq 0x14584(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xeede(%rip), %rsi      # 0x15954
leaq 0xeeef(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6a90
jmp 0x6a92
jmp 0x6a94
movl $0x1, %edi
callq 0x6fd0
movq 0x147fb(%rip), %rdi     # 0x1b2a0
leaq 0x107b1(%rip), %rsi     # 0x1725d
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6ae4
movq 0x1452e(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xee88(%rip), %rsi      # 0x15954
leaq 0xee99(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6ae6
jmp 0x6ae8
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x6e77
movq -0x18(%rbp), %rax
cmpl $0x0, 0x40(%rax)
jne 0x6b0a
jmp 0x6e67
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x38(%rbp)
subq $0x4, %rax
ja 0x6e0f
movq -0x38(%rbp), %rax
leaq 0xe55a(%rip), %rcx      # 0x15084
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x1, %r8d
callq 0xc2a0
jmp 0x6e0f
movl $0x1, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x1, %r8d
callq 0xc2a0
jmp 0x6e0f
movl $0x2, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x1, %r8d
callq 0xc2a0
jmp 0x6e0f
movl $0x3, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x1, %r8d
callq 0xc2a0
jmp 0x6e0f
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x6e0d
jmp 0x6c58
movl $0x1, %edi
callq 0x6fd0
movq 0x14637(%rip), %rdi     # 0x1b2a0
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x38(%rax), %rcx
leaq 0xff01(%rip), %rsi      # 0x16b81
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6cb8
movq 0x1435a(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xecb4(%rip), %rsi      # 0x15954
leaq 0xecc5(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6cba
jmp 0x6cbc
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x3c(%rbp)
testl %eax, %eax
je 0x6ce7
jmp 0x6ccc
movl -0x3c(%rbp), %eax
subl $0x1, %eax
je 0x6d27
jmp 0x6cd6
movl -0x3c(%rbp), %eax
subl $0x2, %eax
je 0x6d67
jmp 0x6da5
movl $0x0, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x2, %r8d
callq 0xc2a0
jmp 0x6da5
movl $0x1, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x2, %r8d
callq 0xc2a0
jmp 0x6da5
movl $0x2, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
addq $0x10, %rdi
addq $0x18, %rdi
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdx
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
leaq -0x30(%rbp), %rsi
movl $0x2, %r8d
callq 0xc2a0
jmp 0x6da7
movl $0x1, %edi
callq 0x6fd0
movq 0x144e8(%rip), %rdi     # 0x1b2a0
leaq 0xf09e(%rip), %rsi      # 0x15e5d
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6df7
movq 0x1421b(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xeb75(%rip), %rsi      # 0x15954
leaq 0xeb86(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6df9
jmp 0x6dfb
jmp 0x6dfd
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x6c4b
jmp 0x6e0f
jmp 0x6e11
movl $0x1, %edi
callq 0x6fd0
movq 0x1447e(%rip), %rdi     # 0x1b2a0
leaq 0x10447(%rip), %rsi     # 0x17270
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6e61
movq 0x141b1(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xeb0b(%rip), %rsi      # 0x15954
leaq 0xeb1c(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6e63
jmp 0x6e65
jmp 0x6e67
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x6af0
jmp 0x6e79
movl $0x1, %edi
callq 0x6fd0
movq 0x14416(%rip), %rdi     # 0x1b2a0
leaq 0x103f2(%rip), %rsi     # 0x17283
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6ec9
movq 0x14149(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xeaa3(%rip), %rsi      # 0x15954
leaq 0xeab4(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6ecb
jmp 0x6ecd
jmp 0x6ecf
movl $0x1, %edi
callq 0x6fd0
movq 0x143c0(%rip), %rdi     # 0x1b2a0
leaq 0x103b3(%rip), %rsi     # 0x1729a
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6f1f
movq 0x140f3(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xea4d(%rip), %rsi      # 0x15954
leaq 0xea5e(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6f21
jmp 0x6f23
jmp 0x6f25
xorl %edi, %edi
callq 0x6fd0
movq 0x1436d(%rip), %rdi     # 0x1b2a0
leaq 0xef23(%rip), %rsi      # 0x15e5d
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6f72
movq 0x140a0(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xe9fa(%rip), %rsi      # 0x15954
leaq 0xea0b(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6f74
jmp 0x6f76
jmp 0x6f78
xorl %edi, %edi
callq 0x6fd0
movq 0x1431a(%rip), %rdi     # 0x1b2a0
leaq 0xf216(%rip), %rsi      # 0x161a3
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0x6fc5
movq 0x1404d(%rip), %rax     # 0x1aff0
movq (%rax), %rdi
leaq 0xe9a7(%rip), %rsi      # 0x15954
leaq 0xe9b8(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0x6fc7
jmp 0x6fc9
addq $0x40, %rsp
popq %rbp
retq
nop