// File: /workspace/github_c_makefile_star2_O1/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 $0x48, %rsp
movq %r9, -0x48(%rbp)
movq %r8, %r14
movq %rcx, %r15
movl %edx, %r8d
movq %rsi, %rbx
movq %rdi, %r12
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
movq %r15, %rax
andq %rcx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x1fb55
incl (%rax)
movq %r8, -0x40(%rbp)
movl %r8d, %edi
movq %r15, %rsi
callq 0x11a85
movq %rax, %r13
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x1fb84
incl (%rax)
movq %r15, -0x38(%rbp)
leaq 0x10f96b9(%rip), %rdi   # 0x1119248
movq %r14, %rsi
callq 0x13ff0
leaq 0xf588b(%rip), %rsi     # 0x115429
movq %r13, %rdi
movq %rax, %rdx
callq 0x14ab5
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x1fbc8
incl (%rax)
leaq -0x68(%rbp), %r15
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x13236
movq %rax, %r12
movq (%r15), %r15
leaq 0x10f9341(%rip), %rdi   # 0x1118f28
movq %r14, %rsi
callq 0x13ff0
leaq 0xf5b02(%rip), %rsi     # 0x1156f8
movq %r12, %rdi
movq %rax, %rdx
callq 0x14ab5
leaq -0x60(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
callq 0x1bb30
movq %rax, %rbx
movq %r14, %rdi
callq 0x2050f
movq %rax, %r15
movq (%r12), %rax
movq %rax, -0x30(%rbp)
leaq 0xf5b0e(%rip), %rsi     # 0x115741
movq %rbx, %rdi
callq 0x15e68
movl $0x1, %edi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1faa2
movq %rax, %rbx
leaq 0x10f8f29(%rip), %rdi   # 0x1118b80
movq %r14, %rsi
callq 0x13ff0
leaq 0xf5b6b(%rip), %r15     # 0x1157d1
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x14ab5
movq %r14, %rdi
callq 0x20562
movq %rax, %rbx
leaq 0x20(%rbp), %rax
movl (%rax), %edi
shlq $0x30, %rdi
orq 0x8(%rax), %rdi
leaq 0xf562d(%rip), %rsi     # 0x1152c1
callq 0x15e68
movl $0x3, %edi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1faa2
movq %rax, %rbx
leaq 0x10f9573(%rip), %rdi   # 0x1119228
movq %r14, %rsi
callq 0x13ff0
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x14ab5
leaq 0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x1fcf3
incl (%rax)
leaq 0x10(%rbp), %rax
movl (%rax), %eax
leaq -0x58(%rbp), %r12
leaq 0x10f8edc(%rip), %rbx   # 0x1118be0
leaq 0xf5f8d(%rip), %r13     # 0x115c98
testl %eax, %eax
je 0x1fd44
cmpl $0x1, %eax
jne 0x1fe57
movq %r12, %rsi
callq 0xd450
movq %rbx, %rdi
movq %rax, %rsi
callq 0x13ff0
movq %r14, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x14ab5
movl -0x58(%rbp), %eax
movq -0x50(%rbp), %rdi
movb $0x1, %cl
jmp 0x1fd48
xorl %ecx, %ecx
xorl %edi, %edi
testb %cl, %cl
jne 0x1fd0b
andq %rdi, %r15
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
leaq 0xf5517(%rip), %r12     # 0x115279
jne 0x1fd7b
decl (%r15)
jne 0x1fd7b
shlq $0x30, %rax
orq %rdi, %rax
movq %rax, %rdi
movq %r12, %rsi
callq 0xd4e3
movq -0x40(%rbp), %r15
shlq $0x30, %r15
orq -0x38(%rbp), %r15
leaq 0x10(%rbp), %rax
movl (%rax), %ebx
shlq $0x30, %rbx
orq 0x8(%rax), %rbx
leaq 0x10f94bc(%rip), %rdi   # 0x1119258
movq %r14, %rsi
callq 0x13ff0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x14ab5
movq %r14, %rdi
callq 0x205b5
movq %rax, %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x15e68
movl $0x2, %edi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1faa2
movq %rax, %rbx
leaq 0x10f9454(%rip), %rdi   # 0x1119238
movq %r14, %rsi
callq 0x13ff0
movq %rbx, %rdi
leaq 0xf59db(%rip), %rsi     # 0x1157d1
movq %rax, %rdx
callq 0x14ab5
leaq 0x10f8f03(%rip), %rdi   # 0x1118d08
movq %r14, %rsi
callq 0x13ff0
xorl %edi, %edi
leaq 0xf54ab(%rip), %rsi     # 0x1152c1
movq %rax, %rdx
callq 0x14ab5
movq %r14, %rdi
callq 0x20608
leaq -0x58(%rbp), %rbx
movq -0x30(%rbp), %rdi
movl $0x3, %esi
movq %rax, %rdx
movq %rbx, %rcx
callq 0x13817
movq (%rbx), %rax
movq -0x48(%rbp), %rcx
movq %rax, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0xc48dd(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0xc48e2(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5