// File: /workspace/github_c_makefile_star2_O3/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 $0x68, %rsp
movq %r9, -0x78(%rbp)
movq %r8, %r15
movq %rcx, %r12
movl %edx, -0x30(%rbp)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x88(%rbp), %rbx
movq %rbx, %rdx
callq 0x12e7f
movq %rax, %r14
movq (%rbx), %rax
movq %rax, -0x68(%rbp)
leaq 0x10f51d1(%rip), %rdi   # 0x1114bf0
movq %r15, %rsi
callq 0x13c85
leaq 0xf1cca(%rip), %rsi     # 0x1116f8
movq %r14, %rdi
movq %rax, %rdx
callq 0x14766
leaq 0x10f5838(%rip), %rdi   # 0x1115278
movq %r15, %rsi
callq 0x13c85
leaq 0xf19da(%rip), %rsi     # 0x111429
movl $0x1, %edi
movq %rax, %rdx
callq 0x14766
leaq 0x10f52bd(%rip), %rdi   # 0x1114d20
movq %r15, %rsi
callq 0x13c85
leaq 0xf184f(%rip), %rbx     # 0x1112c1
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x14766
leaq 0x10f5802(%rip), %rdi   # 0x1115288
movq %r15, -0x70(%rbp)
movq %r15, %rsi
callq 0x13c85
xorl %edi, %edi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x14766
movq %r12, %rcx
andq %r13, %rcx
setne %al
movq %r12, -0x38(%rbp)
testb $0x3, %r12b
sete %dl
andb %al, %dl
movb %dl, -0x29(%rbp)
cmpb $0x1, %dl
jne 0x1fabf
incl (%rcx)
movq %rcx, -0x60(%rbp)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, %r12d
movq %rdx, %rbx
leaq 0xf2204(%rip), %r15     # 0x111ce1
leaq -0x48(%rbp), %r14
movq -0x38(%rbp), %rdi
movl -0x30(%rbp), %eax
cmpl $0x1, %eax
jne 0x1fb2d
movq %r14, %rsi
callq 0xd0aa
movq %rax, %rdi
shrq $0x30, %rdi
andq %r13, %rax
movq %rax, %rsi
callq 0x201a2
movq %rdx, %rdi
movq %r15, %rsi
movl %r12d, %edx
movq %rbx, %rcx
leaq -0x58(%rbp), %r8
callq 0x949e
movl -0x48(%rbp), %eax
movq -0x40(%rbp), %rdi
movl -0x58(%rbp), %r12d
movq -0x50(%rbp), %rbx
jmp 0x1fae8
testl %eax, %eax
jne 0x1fd31
xorl %edi, %edi
xorl %esi, %esi
movl %r12d, %edx
movq %rbx, %rcx
callq 0xd01b
movl %eax, %ebx
movq %rdx, %r14
leaq 0x10f5748(%rip), %rdi   # 0x1115298
movq -0x70(%rbp), %r13
movq %r13, %rsi
callq 0x13c85
shlq $0x30, %rbx
orq %r14, %rbx
movq %rbx, %rdi
leaq 0xf170c(%rip), %rsi     # 0x111279
movq %rax, %rdx
callq 0x14766
cmpb $0x0, -0x29(%rbp)
je 0x1fb81
movq -0x60(%rbp), %rax
incl (%rax)
movl -0x30(%rbp), %edi
movq -0x38(%rbp), %r12
movq %r12, %rsi
callq 0x11653
movq %rax, %rbx
leaq 0x10f570e(%rip), %rdi   # 0x11152a8
movq %r13, %rsi
callq 0x13c85
leaq 0xf1568(%rip), %r14     # 0x111111
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x14766
leaq 0x10f56fa(%rip), %rdi   # 0x11152b8
movq %r13, %rsi
callq 0x13c85
movl $0x1, %edi
movq %r14, %rsi
movq %rax, %rdx
callq 0x14766
leaq 0x10f56eb(%rip), %rdi   # 0x11152c8
movq %r13, %rsi
callq 0x13c85
xorl %edi, %edi
leaq 0xf168b(%rip), %rsi     # 0x111279
movq %rax, %rdx
callq 0x14766
leaq 0x10f4fe3(%rip), %rdi   # 0x1114be0
movq %r13, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq 0x10f5624(%rip), %rdi   # 0x1115238
movq %rax, %rsi
callq 0x13c85
leaq -0x48(%rbp), %r15
movq -0x68(%rbp), %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x1a6db
movq %rax, %rbx
movq (%r15), %r14
movl $0x2, %edi
xorl %esi, %esi
movl -0x30(%rbp), %edx
movq %r12, %rcx
callq 0x20200
movl %eax, %r15d
movq %rdx, %r12
leaq 0x10f4f8c(%rip), %rdi   # 0x1114be0
movq %r13, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
leaq -0x48(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x202a4
movq %rdx, %rcx
movl $0x2, %edi
xorl %esi, %esi
movl %eax, %edx
callq 0x2031e
movq %rdx, %rcx
movl %r15d, %edi
movq %r12, %rsi
movl %eax, %edx
callq 0x20b5f
movq %rax, %r14
movq %r13, %rdi
callq 0x203c3
leaq -0x48(%rbp), %rcx
movq (%rcx), %rdi
andq $-0x4, %rbx
leaq 0xf1ec8(%rip), %r8      # 0x111b79
movq %rbx, %rsi
leaq 0xf15be(%rip), %rdx     # 0x111279
movq %r14, %rcx
movl $0x4, %r9d
leaq -0x58(%rbp), %r10
pushq %r10
pushq %rax
callq 0x20416
addq $0x10, %rsp
movq %rax, %rbx
leaq 0x10f558a(%rip), %rdi   # 0x1115268
movq %r13, %rsi
callq 0x13c85
leaq 0xf1ae4(%rip), %rsi     # 0x1117d1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x14766
movq %r13, %rdi
callq 0x2049e
movq -0x58(%rbp), %rdi
leaq -0x80(%rbp), %rbx
movl $0x6, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x1346e
movq (%rbx), %rax
movq -0x78(%rbp), %rcx
movq %rax, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0xc0983(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0xc0988(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302