// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_defzeprimzetypezealiaszx
static void mw_mirth_mirth_zaMirth_defzeprimzetypezealiaszx (struct mirth_mirth_zaMirth* in_zaMirth_1, enum mirth_type_PrimType in_PrimType_2, STR* in_Str_3, struct std_list_List_1 in_List_4, struct mirth_mirth_zaMirth* *out_zaMirth_5) {
	struct std_list_List_1 v6 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v7;
	mw_std_list_List_1_buildzx(v6, &v7);
	bool v8 = true;
	struct mirth_mirth_zaMirth* r9 = in_zaMirth_1;
	struct std_list_List_1 r10 = v7;
	struct std_list_List_1 v11 = in_List_4;
	bool v12 = v8;
	bool v13 = v8;
	while (v13) {
		struct mirth_mirth_zaMirth* r14 = r9;
		struct std_list_List_1 r15 = r10;
		struct std_list_List_1 v16 = v11;
		bool v17 = v12;
		struct mirth_mirth_zaMirth* branch_zaMirth_18;
		struct std_list_List_1 branch_zaLister_19;
		struct std_list_List_1 branch_List_20;
		bool branch_Bool_21;
		switch ((v16).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v22;
				VAL v23 = mtp_std_list_List_1_Cons(v16, &v22);
				struct mirth_mirth_zaMirth* v24;
				uint64_t v25 = mw_mirth_name_Name_Name(r14, value_str(v23), &v24);
				struct mirth_mirth_zaMirth* v26;
				bool v27 = mw_mirth_name_Name_couldzebezeresourcezevar(v24, v25, &v26);
				uint64_t branch_Name_28;
				struct mirth_mirth_zaMirth* branch_zaMirth_29;
				struct mirth_type_Type branch_Type_30;
				if (v27) {
					struct mirth_type_Type v31 = mw_mirth_type_Type_RESOURCE();
					branch_Type_30 = v31;
					branch_zaMirth_29 = v26;
					branch_Name_28 = v25;
				} else {
					struct mirth_type_Type v32 = mw_mirth_type_Type_TYPE();
					branch_Type_30 = v32;
					branch_zaMirth_29 = v26;
					branch_Name_28 = v25;
				}
				struct mirth_mirth_zaMirth* v33;
				uint64_t v34 = mw_mirth_var_Var_Newzx(branch_zaMirth_29, branch_Type_30, branch_Name_28, &v33);
				struct std_list_List_1 v35;
				mw_std_list_zaLister_1_pushzx(MK_mirth_var_Var(v34), r15, &v35);
				bool v36 = true;
				branch_Bool_21 = v36;
				branch_List_20 = v22;
				branch_zaLister_19 = v35;
				branch_zaMirth_18 = v33;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v37 = { .tag=std_list_List_1_Nil };
				bool v38 = false;
				branch_Bool_21 = v38;
				branch_List_20 = v37;
				branch_zaLister_19 = r15;
				branch_zaMirth_18 = r14;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v13 = branch_Bool_21;
		v12 = branch_Bool_21;
		v11 = branch_List_20;
		r10 = branch_zaLister_19;
		r9 = branch_zaMirth_18;
	}
	decref(MK_std_list_List_1(v11));
	struct std_list_List_1 v39 = mw_std_list_zaLister_1_donezx(r10);
	struct mirth_mirth_zaMirth* v40;
	uint64_t v41 = mw_mirth_name_Name_Name(r9, in_Str_3, &v40);
	struct mirth_mirth_zaMirth* v42;
	struct mirth_name_QName* v43 = mw_mirth_type_PrimType_tyconzeqname(v40, in_PrimType_2, &v42);
	struct mirth_name_QName* v44 = mirth_name_QName_set_name(v43, v41);
	incref(MK_std_list_List_1(v39));
	struct mirth_mirth_zaMirth* v45;
	mw_mirth_type_PrimType_paramszx(v42, v39, in_PrimType_2, &v45);
	struct mirth_type_Type v46 = mtw_mirth_type_Type_Prim(in_PrimType_2);
	incref(MK_std_list_List_1(v39));
	struct mirth_type_Type v47 = mw_std_list_List_1_for_1_sp84(v46, v39);
	struct mirth_mirth_zaMirth* v48;
	mw_mirth_mirth_zaMirth_defzetypezx(v45, v44, v47, v39, &v48);
	*out_zaMirth_5 = v48;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x310, %rsp            # imm = 0x310
movl %ecx, -0x10(%rbp)
movq %r8, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movl %esi, -0x1c(%rbp)
movq %rdx, -0x28(%rbp)
movq %r9, -0x30(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0xc9d0
movb $0x1, -0x51(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
movb -0x51(%rbp), %al
andb $0x1, %al
movb %al, -0x82(%rbp)
testb $0x1, -0x82(%rbp)
je 0x6d2ae
movq -0x60(%rbp), %rax
movq %rax, -0x90(%rbp)
movups -0x70(%rbp), %xmm0
movaps %xmm0, -0xa0(%rbp)
movups -0x80(%rbp), %xmm0
movaps %xmm0, -0xb0(%rbp)
movb -0x81(%rbp), %al
andb $0x1, %al
movb %al, -0xb1(%rbp)
movl -0xb0(%rbp), %eax
movl %eax, -0x2f4(%rbp)
testl %eax, %eax
je 0x6d1cd
jmp 0x6cfc5
movl -0x2f4(%rbp), %eax
subl $0x1, %eax
jne 0x6d23d
jmp 0x6cfd6
movl -0xb0(%rbp), %edi
movq -0xa8(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0x125e0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x300(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0xb980
movq -0x300(%rbp), %rdi
movq %rax, %rsi
leaq -0x110(%rbp), %rdx
callq 0x3ed80
movq %rax, -0x118(%rbp)
movq -0x110(%rbp), %rdi
movq -0x118(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0x6d680
andb $0x1, %al
movb %al, -0x121(%rbp)
testb $0x1, -0x121(%rbp)
je 0x6d0b2
callq 0x6d9d0
movl %eax, -0x158(%rbp)
movq %rdx, -0x150(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0x6d0fc
callq 0x6da00
movl %eax, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rcx
movl -0x148(%rbp), %esi
movq -0x140(%rbp), %rdx
leaq -0x170(%rbp), %r8
callq 0x6da30
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x3249f1(%rip), %rax    # 0x391b30
movq %rax, -0x190(%rbp)
movq -0x198(%rbp), %rdi
movq -0x190(%rbp), %rsi
movl -0xa0(%rbp), %edx
movq -0x98(%rbp), %rcx
leaq -0x188(%rbp), %r8
callq 0xcc30
movb $0x1, -0x199(%rbp)
movb -0x199(%rbp), %al
andb $0x1, %al
movb %al, -0xe1(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x6d256
leaq -0x1b0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x1b1(%rbp)
movb -0x1b1(%rbp), %al
andb $0x1, %al
movb %al, -0xe1(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0xc0(%rbp)
jmp 0x6d256
leaq 0x2e6c3d(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x82(%rbp)
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x81(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x6cf73
jmp 0x6d2b0
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x6d3a5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1d8(%rbp), %rax
cmpq $0x0, %rax
je 0x6d3a5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x6d3a5
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x12780
movq %rax, -0x1f8(%rbp)
movq %rdx, -0x1f0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1f8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x6d3a3
movl -0x80(%rbp), %edi
movq -0x78(%rbp), %rsi
callq 0x12780
movq %rax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movq -0x208(%rbp), %rdi
movq -0x200(%rbp), %rsi
callq 0x127c0
jmp 0x6d3a5
jmp 0x6d3a7
movl -0x70(%rbp), %edi
movq -0x68(%rbp), %rsi
callq 0xcea0
movl %eax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x220(%rbp), %rdx
callq 0x3ed80
movq %rax, -0x228(%rbp)
movq -0x220(%rbp), %rdi
movl -0x1c(%rbp), %esi
leaq -0x230(%rbp), %rdx
callq 0x5b350
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rdi
movq -0x228(%rbp), %rsi
callq 0x6daa0
movq %rax, -0x240(%rbp)
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x248(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x6d4e7
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rax
cmpq $0x0, %rax
je 0x6d4e7
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x270(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x6d4e7
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x280(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x6d4e9
movq -0x230(%rbp), %rdi
movl -0x1c(%rbp), %ecx
movl -0x218(%rbp), %esi
movq -0x210(%rbp), %rdx
leaq -0x288(%rbp), %r8
callq 0x6dcd0
movl -0x1c(%rbp), %edi
callq 0x6dd40
movl %eax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x6d5f6
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b8(%rbp), %rax
cmpq $0x0, %rax
je 0x6d5f6
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x6d5f6
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x12780
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2d8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x6d5f8
movl -0x298(%rbp), %edi
movq -0x290(%rbp), %rsi
movl -0x218(%rbp), %edx
movq -0x210(%rbp), %rcx
callq 0x6ddd0
movl %eax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x288(%rbp), %rdi
movq -0x240(%rbp), %rsi
movl -0x2e8(%rbp), %edx
movq -0x2e0(%rbp), %rcx
movl -0x218(%rbp), %r8d
movq -0x210(%rbp), %r9
leaq -0x2f0(%rbp), %rax
movq %rax, (%rsp)
callq 0x6e0d0
movq -0x2f0(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
addq $0x310, %rsp            # imm = 0x310
popq %rbp
retq
nopw %cs:(%rax,%rax)