// File: /workspace/github_c_makefile_star2_O0/OstCollector[P]config2c/config2c.c
// Function: helper_free_scale
static void helper_free_scale(const struct type_decl *decl,
		const struct string_list *vars, int l)
{
	string free_func;

	switch (decl->type) {
	case TYPE_DECL_PRIM:
		free_func = lookup_map(decl->type_name)->free_func;
		osi(l, "%s(", free_func);
		out_str_list(0, "&value->", "", vars);
		out_src(");\n");
		break;
	case TYPE_DECL_ENUM:
		break;
	case TYPE_DECL_STRUCT:
		osi(l, "free__struct_%s(&value->%s);\n",
				decl->type_name, vars->str);
		break;
	case TYPE_DECL_UNION:
		osi(l, "free__union_%s(", decl->type_name);
		out_str_list(0, "&value->", "", vars);
		out_src(");\n");
		break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x28(%rbp)
subq $0x3, %rax
ja 0xbe38
movq -0x28(%rbp), %rax
leaq 0x94ca(%rip), %rcx      # 0x150fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x8960
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %edi
callq 0x6fd0
movq 0xf641(%rip), %rdi      # 0x1b2a0
movq -0x20(%rbp), %rdx
leaq 0xb4bc(%rip), %rsi      # 0x17126
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xbca2
movq 0xf370(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
leaq 0x9cca(%rip), %rsi      # 0x15954
leaq 0x9cdb(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xbca4
jmp 0xbca6
movq -0x10(%rbp), %rcx
xorl %edi, %edi
leaq 0xafec(%rip), %rsi      # 0x16c9f
leaq 0xa4ea(%rip), %rdx      # 0x161a4
callq 0xba30
movq 0xf5da(%rip), %rdi      # 0x1b2a0
leaq 0xb60b(%rip), %rsi      # 0x172d8
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xbd05
movq 0xf30d(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
leaq 0x9c67(%rip), %rsi      # 0x15954
leaq 0x9c78(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xbd07
jmp 0xbe38
jmp 0xbe38
jmp 0xbd13
movl -0x14(%rbp), %edi
callq 0x6fd0
movq 0xf57e(%rip), %rdi      # 0x1b2a0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdx
movq -0x10(%rbp), %rax
movq (%rax), %rcx
leaq 0xb40e(%rip), %rsi      # 0x17146
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xbd70
movq 0xf2a2(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
leaq 0x9bfc(%rip), %rsi      # 0x15954
leaq 0x9c0d(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xbd72
jmp 0xbd74
jmp 0xbe38
jmp 0xbd7b
movl -0x14(%rbp), %edi
callq 0x6fd0
movq 0xf516(%rip), %rdi      # 0x1b2a0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0xb381(%rip), %rsi      # 0x1711a
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xbdd1
movq 0xf241(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
leaq 0x9b9b(%rip), %rsi      # 0x15954
leaq 0x9bac(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xbdd3
jmp 0xbdd5
movq -0x10(%rbp), %rcx
xorl %edi, %edi
leaq 0xaebd(%rip), %rsi      # 0x16c9f
leaq 0xa3bb(%rip), %rdx      # 0x161a4
callq 0xba30
movq 0xf4ab(%rip), %rdi      # 0x1b2a0
leaq 0xb4dc(%rip), %rsi      # 0x172d8
movb $0x0, %al
callq 0x2100
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jle 0xbe34
movq 0xf1de(%rip), %rax      # 0x1aff0
movq (%rax), %rdi
leaq 0x9b38(%rip), %rsi      # 0x15954
leaq 0x9b49(%rip), %rdx      # 0x1596c
movb $0x0, %al
callq 0x2100
movl $0x1, %edi
callq 0x2180
jmp 0xbe36
jmp 0xbe38
addq $0x30, %rsp
popq %rbp
retq
nop