// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_mirth_zaMirth_makezeprimzedatazx
static void mw_mirth_mirth_zaMirth_makezeprimzedatazx (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_Str_2, struct std_list_List_1 in_List_3, uint64_t in_Data_4, struct std_list_List_1 in_List_5, struct std_maybe_Maybe_1 in_Maybe_6, struct mirth_mirth_zaMirth* *out_zaMirth_7) {
	incref(MK_std_list_List_1(in_List_3));
	INT v8 = mw_std_list_List_1_len(in_List_3);
	INT v9 = v8;
	incref(MKINT(v9));
	struct mirth_mirth_zaMirth* v10;
	mw_mirth_data_Data_arityzx(in_zaMirth_1, v9, in_Data_4, &v10);
	incref(MKSTR(in_Str_2));
	struct mirth_mirth_zaMirth* v11;
	uint64_t v12 = mw_mirth_name_Name_Name(v10, in_Str_2, &v11);
	struct mirth_mirth_zaMirth* v13;
	mw_mirth_data_Data_namezx(v11, v12, in_Data_4, &v13);
	struct mirth_mirth_zaMirth* v14;
	struct mirth_name_QName* v15 = mw_mirth_name_QName_Prim(v13, in_Str_2, v9, &v14);
	struct mirth_mirth_PropLabel v16 = mtw_mirth_mirth_PropLabel_DataQName(in_Data_4);
	struct mirth_mirth_zaMirth* v17;
	struct mirth_mirth_Prop_1* v18 = mw_mirth_mirth_PropLabel_prop(v14, MK_mirth_name_QName(v15), v16, &v17);
	void* v19 = field_mut(&mfld_mirth_data_Data_ztqname, in_Data_4);
	mut_set(MK_mirth_mirth_Prop_1(v18), v19);
	struct mirth_mirth_PropLabel v20 = mtw_mirth_mirth_PropLabel_DataCType(in_Data_4);
	struct mirth_mirth_zaMirth* v21;
	struct mirth_mirth_Prop_1* v22 = mw_mirth_mirth_PropLabel_prop(v17, MK_std_maybe_Maybe_1(in_Maybe_6), v20, &v21);
	void* v23 = field_mut(&mfld_mirth_data_Data_ztctypezy, in_Data_4);
	mut_set(MK_mirth_mirth_Prop_1(v22), v23);
	incref(MK_std_list_List_1(in_List_5));
	bool v24 = true;
	struct mirth_mirth_zaMirth* r25 = v21;
	uint64_t v26 = in_Data_4;
	struct std_list_List_1 v27 = in_List_5;
	bool v28 = v24;
	bool v29 = v24;
	while (v29) {
		struct mirth_mirth_zaMirth* r30 = r25;
		uint64_t v31 = v26;
		struct std_list_List_1 v32 = v27;
		bool v33 = v28;
		uint64_t branch_Data_34;
		struct mirth_mirth_zaMirth* branch_zaMirth_35;
		struct std_list_List_1 branch_List_36;
		bool branch_Bool_37;
		switch ((v32).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v38;
				VAL v39 = mtp_std_list_List_1_Cons(v32, &v38);
				struct mirth_mirth_zaMirth* v40;
				mw_mirth_data_Tag_datazx(r30, v31, V_mirth_data_Tag(v39), &v40);
				bool v41 = true;
				branch_Bool_37 = v41;
				branch_List_36 = v38;
				branch_zaMirth_35 = v40;
				branch_Data_34 = v31;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v42 = { .tag=std_list_List_1_Nil };
				bool v43 = false;
				branch_Bool_37 = v43;
				branch_List_36 = v42;
				branch_zaMirth_35 = r30;
				branch_Data_34 = v31;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v29 = branch_Bool_37;
		v28 = branch_Bool_37;
		v27 = branch_List_36;
		v26 = branch_Data_34;
		r25 = branch_zaMirth_35;
	}
	decref(MK_std_list_List_1(v27));
	struct mirth_mirth_zaMirth* v44;
	mw_mirth_data_Data_tagszx(r25, in_List_5, v26, &v44);
	struct mirth_mirth_PropLabel v45 = mtw_mirth_mirth_PropLabel_DataParams(v26);
	struct mirth_mirth_zaMirth* v46;
	struct mirth_mirth_Prop_1* v47 = mw_mirth_mirth_PropLabel_prop(v44, MK_std_list_List_1(in_List_3), v45, &v46);
	void* v48 = field_mut(&mfld_mirth_data_Data_ztparams, v26);
	mut_set(MK_mirth_mirth_Prop_1(v47), v48);
	struct std_maybe_Maybe_1 v49 = { .tag=std_maybe_Maybe_1_None };
	struct mirth_mirth_zaMirth* v50;
	mw_mirth_data_Data_headzyzx(v46, v49, v26, &v50);
	struct mirth_def_Def v51 = mtw_mirth_def_Def_Data(v26);
	struct mirth_mirth_zaMirth* v52;
	mw_mirth_def_Def_register(v50, v51, &v52);
	*out_zaMirth_7 = v52;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, -0x40(%rbp)
movq %r8, %r14
movl %edx, %r8d
movq %rsi, %rbx
movq %rdi, %r12
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rcx, %rax
andq %r15, %rax
sete %sil
testb $0x3, %cl
setne %dl
orb %sil, %dl
jne 0x1d346
incl (%rax)
movq %r8, -0x38(%rbp)
movl %r8d, %edi
movq %rcx, -0x30(%rbp)
movq %rcx, %rsi
callq 0x10bca
movq %rax, %r13
andq %r15, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x1d36f
incl (%rax)
leaq -0x60(%rbp), %rcx
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1dc20
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x1d396
incl (%rax)
movq -0x60(%rbp), %rdi
leaq -0x98(%rbp), %r12
movq %rbx, %rsi
movq %r12, %rdx
callq 0x12215
movq (%r12), %rdi
leaq -0x90(%rbp), %r12
movq %rax, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1dc62
movq (%r12), %rdi
leaq -0x88(%rbp), %r12
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x195fd
movq %rax, %r13
movq %r14, %rdi
callq 0x1dca4
movq (%r12), %rdi
leaq 0xeb34d(%rip), %rdx     # 0x108741
pushq $0x1
popq %rcx
leaq -0x80(%rbp), %rbx
movq %r13, %rsi
movq %rax, %r8
movq %rbx, %r9
callq 0x1d218
movq %rax, %r12
leaq 0x10ee76d(%rip), %rdi   # 0x110bb80
movq %r14, %rsi
callq 0x12f88
leaq 0xeb3af(%rip), %r13     # 0x1087d1
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1393b
movq %r14, %rdi
callq 0x1dced
movq (%rbx), %rdi
leaq 0x20(%rbp), %rcx
movl (%rcx), %esi
shlq $0x30, %rsi
orq 0x8(%rcx), %rsi
leaq 0xeae71(%rip), %rdx     # 0x1082c1
pushq $0x3
popq %rcx
leaq -0x58(%rbp), %r9
movq %rax, %r8
callq 0x1d218
movq %rax, %rbx
leaq 0x10eedbf(%rip), %rdi   # 0x110c228
movq %r14, %rsi
callq 0x12f88
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1393b
leaq 0x10(%rbp), %r12
movq 0x8(%r12), %rcx
movq %rcx, %rax
andq %r15, %rax
sete %dl
testb $0x3, %cl
setne %sil
orb %dl, %sil
jne 0x1d49f
incl (%rax)
movl (%r12), %edi
movq -0x58(%rbp), %rbx
leaq -0x50(%rbp), %r13
movb $0x1, %dl
movq %rcx, %rax
testb $0x1, %dl
je 0x1d4fe
xorl %edx, %edx
movl $0x0, %ecx
testl %edi, %edi
je 0x1d4ad
cmpl $0x1, %edi
jne 0x1d5e3
movq %rax, %rdi
movq %r13, %rsi
callq 0xce01
leaq 0x10ee705(%rip), %rdi   # 0x110bbe0
movq %rax, %rsi
callq 0x12f88
movq %r14, %rdi
leaq 0xeb7ab(%rip), %rsi     # 0x108c98
movq %rax, %rdx
callq 0x1393b
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rcx
jmp 0x1d4ab
andq %rax, %r15
sete %cl
testb $0x3, %al
setne %dl
orb %cl, %dl
leaq 0xead67(%rip), %r13     # 0x108279
jne 0x1d528
decl (%r15)
jne 0x1d528
shlq $0x30, %rdi
orq %rax, %rdi
movq %r13, %rsi
callq 0xce94
movq -0x38(%rbp), %r15
shlq $0x30, %r15
orq -0x30(%rbp), %r15
movl (%r12), %esi
movq 0x8(%r12), %rdx
leaq -0x50(%rbp), %r12
movq %rbx, %rdi
movq %r14, %rcx
movq %r12, %r8
callq 0x1dd36
movq %r14, %rdi
callq 0x1dd81
movq (%r12), %rdi
pushq $0x2
popq %rcx
leaq -0x78(%rbp), %rbx
movq %r15, %rsi
movq %r13, %rdx
movq %rax, %r8
movq %rbx, %r9
callq 0x1d218
movq %rax, %r15
leaq 0x10eecbb(%rip), %rdi   # 0x110c238
movq %r14, %rsi
callq 0x12f88
movq %r15, %rdi
leaq 0xeb242(%rip), %rsi     # 0x1087d1
movq %rax, %rdx
callq 0x1393b
movq (%rbx), %rdi
leaq -0x70(%rbp), %rbx
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x1ddca
movq %r14, %rdi
callq 0x1de15
movq (%rbx), %rdi
pushq $0x3
popq %rsi
leaq -0x68(%rbp), %rbx
movq %rax, %rdx
movq %rbx, %rcx
callq 0x127fd
movq (%rbx), %rax
movq -0x40(%rbp), %rcx
movq %rax, (%rcx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb7223(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6