// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_makezeprimzetagzx
static void mw_mirth_mirth_zaMirth_makezeprimzetagzx (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_Str_2, INT in_Int_3, struct std_list_List_1 in_List_4, uint64_t in_Tag_5, struct mirth_mirth_zaMirth* *out_zaMirth_6) {
	struct mirth_mirth_zaMirth* v7;
	uint64_t v8 = mw_mirth_name_Name_Name(in_zaMirth_1, in_Str_2, &v7);
	struct mirth_mirth_zaMirth* v9;
	mw_mirth_data_Tag_namezx(v7, v8, in_Tag_5, &v9);
	struct mirth_mirth_zaMirth* v10;
	mw_mirth_data_Tag_valuezx(v9, in_Int_3, in_Tag_5, &v10);
	struct std_maybe_Maybe_1 v11 = { .tag=std_maybe_Maybe_1_None };
	struct mirth_mirth_zaMirth* v12;
	mw_mirth_data_Tag_sigzyzx(v10, v11, in_Tag_5, &v12);
	struct std_maybe_Maybe_1 v13 = { .tag=std_maybe_Maybe_1_None };
	struct mirth_mirth_zaMirth* v14;
	mw_mirth_data_Tag_doczx(v12, v13, in_Tag_5, &v14);
	incref(MK_std_list_List_1(in_List_4));
	struct std_list_List_1 v15 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v16;
	mw_std_list_List_1_buildzx(v15, &v16);
	bool v17 = true;
	struct std_list_List_1 r18 = v16;
	struct std_list_List_1 v19 = in_List_4;
	bool v20 = v17;
	bool v21 = v17;
	while (v21) {
		struct std_list_List_1 r22 = r18;
		struct std_list_List_1 v23 = v19;
		bool v24 = v20;
		struct std_list_List_1 branch_zaLister_25;
		struct std_list_List_1 branch_List_26;
		bool branch_Bool_27;
		switch ((v23).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v28;
				VAL v29 = mtp_std_list_List_1_Cons(v23, &v28);
				struct mirth_type_StackTypePart v30 = mtw_mirth_type_StackTypePart_Cons(V_mirth_type_Type(v29));
				struct std_list_List_1 v31;
				mw_std_list_zaLister_1_pushzx(MK_mirth_type_StackTypePart(v30), r22, &v31);
				bool v32 = true;
				branch_Bool_27 = v32;
				branch_List_26 = v28;
				branch_zaLister_25 = v31;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v33 = { .tag=std_list_List_1_Nil };
				bool v34 = false;
				branch_Bool_27 = v34;
				branch_List_26 = v33;
				branch_zaLister_25 = r22;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v21 = branch_Bool_27;
		v20 = branch_Bool_27;
		v19 = branch_List_26;
		r18 = branch_zaLister_25;
	}
	decref(MK_std_list_List_1(v19));
	struct std_list_List_1 v35 = mw_std_list_zaLister_1_donezx(r18);
	struct mirth_mirth_zaMirth* v36;
	mw_mirth_data_Tag_inputszx(v14, v35, in_Tag_5, &v36);
	incref(MK_std_list_List_1(in_List_4));
	INT v37 = mw_std_list_List_1_len(in_List_4);
	struct mirth_mirth_zaMirth* v38;
	mw_mirth_data_Tag_numzetypezeinputszx(v36, v37, in_Tag_5, &v38);
	INT v39 = WRAP_I63(0LL);
	struct mirth_mirth_zaMirth* v40;
	mw_mirth_data_Tag_numzeresourcezeinputszx(v38, v39, in_Tag_5, &v40);
	struct std_list_List_1 v41 = { .tag=std_list_List_1_Nil };
	struct mirth_mirth_zaMirth* v42;
	mw_mirth_data_Tag_labelzeinputszx(v40, v41, in_Tag_5, &v42);
	struct mirth_mirth_zaMirth* v43;
	uint64_t v44 = mw_mirth_data_Tag_data(v42, in_Tag_5, &v43);
	struct mirth_mirth_zaMirth* v45;
	struct std_list_List_1 v46 = mw_mirth_data_Data_params(v43, v44, &v45);
	struct std_list_List_1 v47 = mw_std_list_List_1_zgCtx(v46);
	struct mirth_type_StackType v48 = mw_mirth_type_T0();
	struct mirth_type_StackType v49 = mw_std_list_List_1_for_1_sp102(v48, in_List_4);
	struct mirth_type_StackType v50 = mw_mirth_type_T0();
	struct mirth_mirth_zaMirth* v51;
	uint64_t v52 = mw_mirth_data_Tag_data(v45, in_Tag_5, &v51);
	struct mirth_mirth_zaMirth* v53;
	struct std_either_Either_2 v54 = mw_mirth_data_Data_fullzetype(v51, v52, &v53);
	struct mirth_type_StackType v55 = mw_mirth_type_Tzmza(v50, v54);
	struct mirth_type_ArrowType* v56 = mw_mirth_type_Tzezg(v49, v55);
	struct mirth_mirth_PropLabel v57 = mtw_mirth_mirth_PropLabel_TagType(in_Tag_5);
	struct mirth_mirth_zaMirth* v58;
	struct mirth_mirth_Prop_1* v59 = mw_mirth_mirth_PropLabel_prop2(v53, MK_std_list_List_1(v47), MK_mirth_type_ArrowType(v56), v57, &v58);
	void* v60 = field_mut(&mfld_mirth_data_Tag_ztctxzetype, in_Tag_5);
	mut_set(MK_mirth_mirth_Prop_1(v59), v60);
	struct mirth_def_Def v61 = mtw_mirth_def_Def_Tag(in_Tag_5);
	struct mirth_mirth_zaMirth* v62;
	mw_mirth_def_Def_register(v58, v61, &v62);
	*out_zaMirth_6 = v62;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, -0x70(%rbp)
movq %r8, %r15
movq %rcx, %r12
movl %edx, -0x2c(%rbp)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x88(%rbp), %rbx
movq %rbx, %rdx
callq 0x13236
movq %rax, %r14
movq (%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0x10f8d21(%rip), %rdi   # 0x1118bf0
movq %r15, %rsi
callq 0x13ff0
leaq 0xf581a(%rip), %rsi     # 0x1156f8
movq %r14, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f9388(%rip), %rdi   # 0x1119278
movq %r15, %rsi
callq 0x13ff0
leaq 0xf552a(%rip), %rsi     # 0x115429
movl $0x1, %edi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f8e0d(%rip), %rdi   # 0x1118d20
movq %r15, %rsi
callq 0x13ff0
leaq 0xf539f(%rip), %rbx     # 0x1152c1
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f9352(%rip), %rdi   # 0x1119288
movq %r15, -0x40(%rbp)
movq %r15, %rsi
callq 0x13ff0
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x14ab5
movq %r12, %rax
andq %r13, %rax
sete %cl
movq %r12, -0x38(%rbp)
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x1ff69
incl (%rax)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %r13d
movq %rdx, %rbx
leaq 0xf5d5e(%rip), %r12     # 0x115ce1
leaq -0x60(%rbp), %r15
leaq -0x50(%rbp), %r14
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, %edi
testl %edi, %edi
je 0x1ffef
cmpl $0x1, %edi
jne 0x20238
movq %rax, %rdi
movq %r15, %rsi
callq 0xd450
movq %rax, %rdi
shrq $0x30, %rdi
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq %rax, %rsi
callq 0x206d0
movq %rdx, %rdi
movq %r12, %rsi
movl %r13d, %edx
movq %rbx, %rcx
movq %r14, %r8
callq 0x9741
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rax
movl -0x50(%rbp), %r13d
movq -0x48(%rbp), %rbx
movb $0x1, %cl
jmp 0x1fff3
xorl %ecx, %ecx
xorl %eax, %eax
testb %cl, %cl
jne 0x1ff94
movq %rax, %rcx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
andq %r12, %rcx
sete %dl
testb $0x3, %al
setne %sil
orb %dl, %sil
leaq 0xf525f(%rip), %r15     # 0x115279
jne 0x2002f
decl (%rcx)
jne 0x2002f
shlq $0x30, %rdi
orq %rax, %rdi
movq %r15, %rsi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %r13d, %edx
movq %rbx, %rcx
callq 0xd37c
movl %eax, %ebx
movq %rdx, %r14
leaq 0x10f924e(%rip), %rdi   # 0x1119298
movq -0x40(%rbp), %rsi
callq 0x13ff0
shlq $0x30, %rbx
orq %r14, %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x14ab5
movq -0x38(%rbp), %rcx
andq %rcx, %r12
sete %al
testb $0x3, %cl
setne %cl
orb %al, %cl
jne 0x20080
incl (%r12)
movl -0x2c(%rbp), %edi
movq -0x38(%rbp), %r13
movq %r13, %rsi
callq 0x11a85
movq %rax, %rbx
leaq 0x10f920f(%rip), %rdi   # 0x11192a8
movq -0x40(%rbp), %r12
movq %r12, %rsi
callq 0x13ff0
leaq 0xf5065(%rip), %r14     # 0x115111
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f91f7(%rip), %rdi   # 0x11192b8
movq %r12, %rsi
callq 0x13ff0
movl $0x1, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f91e8(%rip), %rdi   # 0x11192c8
movq %r12, %rsi
callq 0x13ff0
xorl %edi, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f8ae4(%rip), %rdi   # 0x1118be0
movq %r12, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
leaq 0x10f9125(%rip), %rdi   # 0x1119238
movq %rax, %rsi
callq 0x13ff0
leaq -0x60(%rbp), %rbx
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x1a972
movq %rax, %r14
movq (%rbx), %r15
movl $0x2, %edi
xorl %esi, %esi
movl -0x2c(%rbp), %edx
movq %r13, %rcx
callq 0x2072e
movl %eax, %ebx
movq %rdx, %r13
leaq 0x10f8a8e(%rip), %rdi   # 0x1118be0
movq %r12, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
leaq -0x50(%rbp), %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x2080e
movq %rdx, %rcx
movl $0x2, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0x20888
movq %rdx, %rcx
movl %ebx, %edi
movq %r13, %rsi
movl %eax, %edx
callq 0x210ca
movq %rax, %r15
movq %r12, %rdi
callq 0x2092d
leaq -0x60(%rbp), %rcx
movl $0x4, (%rcx)
movq %rax, 0x8(%rcx)
leaq -0x50(%rbp), %rax
movq (%rax), %rdi
andq $-0x4, %r14
leaq 0xf59bd(%rip), %r8      # 0x115b79
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
leaq -0x80(%rbp), %rbx
movq %r14, %rsi
leaq 0xf50a8(%rip), %rdx     # 0x115279
movq %r15, %rcx
movq %rbx, %r9
callq 0x20980
movq %rax, %r14
leaq 0x10f9082(%rip), %rdi   # 0x1119268
movq %r12, %rsi
callq 0x13ff0
leaq 0xf55dc(%rip), %rsi     # 0x1157d1
movq %r14, %rdi
movq %rax, %rdx
callq 0x14ab5
movq %r12, %rdi
callq 0x20a09
movq (%rbx), %rdi
leaq -0x78(%rbp), %rbx
movl $0x6, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x13817
movq (%rbx), %rax
movq -0x70(%rbp), %rcx
movq %rax, (%rcx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xc44fc(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xc4501(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5