// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_table_Table_constructorzefields
static struct std_list_List_1 mw_mirth_table_Table_constructorzefields (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Table_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6 = mw_mirth_table_Table_inlinezefields(in_zaMirth_1, in_Table_2, &v5);
	struct std_list_List_1 v7 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v8;
	mw_std_list_List_1_buildzx(v7, &v8);
	bool v9 = true;
	struct mirth_mirth_zaMirth* r10 = v5;
	struct std_list_List_1 r11 = v8;
	struct std_list_List_1 v12 = v6;
	bool v13 = v9;
	bool v14 = v9;
	while (v14) {
		struct mirth_mirth_zaMirth* r15 = r10;
		struct std_list_List_1 r16 = r11;
		struct std_list_List_1 v17 = v12;
		bool v18 = v13;
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_list_List_1 branch_zaLister_20;
		struct std_list_List_1 branch_List_21;
		bool branch_Bool_22;
		switch ((v17).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v23;
				VAL v24 = mtp_std_list_List_1_Cons(v17, &v23);
				incref(v24);
				incref(v24);
				struct mirth_mirth_zaMirth* v25;
				bool v26 = mw_mirth_table_Field_iszerawzy(r15, V_mirth_table_Field(v24), &v25);
				bool v27 = !v26;
				struct mirth_mirth_zaMirth* branch_zaMirth_28;
				bool branch_Bool_29;
				if (v27) {
					struct mirth_mirth_zaMirth* v30;
					struct std_maybe_Maybe_1 v31 = mw_mirth_table_Field_default(v25, V_mirth_table_Field(v24), &v30);
					int64_t v32 = (v31).tag;
					decref(MK_std_maybe_Maybe_1(v31));
					INT v33 = WRAP_I63(0LL);
					INT v34 = v33;
					INT v35 = i64_to_int(v32);
					bool v36 = int_eq(v35, v34);
					branch_Bool_29 = v36;
					branch_zaMirth_28 = v30;
				} else {
					decref(v24);
					bool v37 = false;
					branch_Bool_29 = v37;
					branch_zaMirth_28 = v25;
				}
				struct mirth_mirth_zaMirth* branch_zaMirth_38;
				struct std_list_List_1 branch_zaLister_39;
				if (branch_Bool_29) {
					struct std_list_List_1 v40;
					mw_std_list_zaLister_1_pushzx(v24, r16, &v40);
					branch_zaLister_39 = v40;
					branch_zaMirth_38 = branch_zaMirth_28;
				} else {
					decref(v24);
					branch_zaLister_39 = r16;
					branch_zaMirth_38 = branch_zaMirth_28;
				}
				bool v41 = true;
				branch_Bool_22 = v41;
				branch_List_21 = v23;
				branch_zaLister_20 = branch_zaLister_39;
				branch_zaMirth_19 = branch_zaMirth_38;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v42 = { .tag=std_list_List_1_Nil };
				bool v43 = false;
				branch_Bool_22 = v43;
				branch_List_21 = v42;
				branch_zaLister_20 = r16;
				branch_zaMirth_19 = r15;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v14 = branch_Bool_22;
		v13 = branch_Bool_22;
		v12 = branch_List_21;
		r11 = branch_zaLister_20;
		r10 = branch_zaMirth_19;
	}
	decref(MK_std_list_List_1(v12));
	struct std_list_List_1 v44 = mw_std_list_zaLister_1_donezx(r11);
	*out_zaMirth_3 = r10;
	return v44;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, -0x48(%rbp)
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
leaq -0x70(%rbp), %r12
movq %r12, %rdx
callq 0x6cd8f
movl %eax, %r14d
movq %rdx, %r15
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movl %eax, -0x2c(%rbp)
movq %rdx, -0x40(%rbp)
movq (%r12), %r12
cmpl $0x1, %r14d
jne 0x6cd34
movq %r15, %rdi
leaq -0x68(%rbp), %rsi
callq 0xd0aa
movq %rax, %r15
movq %rdx, %r14
testb $0x1, %r14b
je 0x6cc6c
movq %r15, %r13
andq %rbx, %r13
sete %al
testb $0x3, %r15b
setne %cl
orb %al, %cl
jne 0x6cc6c
addl $0x2, (%r13)
movq %r12, %rdi
movq %r15, %rsi
leaq -0x38(%rbp), %rdx
callq 0x6cdfe
testb %al, %al
je 0x6cc85
decl (%r13)
jne 0x6cc7f
movq %r15, %rdi
movq %r14, %rsi
callq 0xd13d
jmp 0x6cc7f
movq %r12, %rdi
movq %r15, %rsi
leaq -0x38(%rbp), %rdx
callq 0x6cdfe
testb %al, %al
je 0x6cc85
movq -0x38(%rbp), %r12
jmp 0x6ccd8
movq -0x38(%rbp), %r12
leaq 0x10a94a8(%rip), %rdi   # 0x1116138
movq %r15, %rsi
callq 0x13c85
movq %rax, %rdi
callq 0x13d82
movq %rax, %r13
andq %rbx, %rax
je 0x6ccbf
decl (%rax)
jne 0x6ccbf
movq %r13, %rdi
andq $-0x4, %rdi
leaq 0xa4607(%rip), %rsi     # 0x1112c1
callq 0xd13d
shrq $0x2f, %r13
orq $0x1, %r13
movl $0x1, %esi
movq %r13, %rdi
callq 0xe83a
testl %eax, %eax
je 0x6cd03
testb $0x1, %r14b
je 0x6cd27
movq %r15, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x6cd27
decl (%rax)
jne 0x6cd27
movq %r15, %rdi
movq %r14, %rsi
callq 0xd13d
jmp 0x6cd27
movq %r15, %rdi
movq %r14, %rsi
movl -0x2c(%rbp), %edx
movq -0x40(%rbp), %rcx
leaq -0x58(%rbp), %r8
callq 0x949e
movl -0x58(%rbp), %eax
movl %eax, -0x2c(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x68(%rbp), %r14d
movq -0x60(%rbp), %r15
jmp 0x6cc0b
testl %r14d, %r14d
jne 0x6cd5f
xorl %edi, %edi
xorl %esi, %esi
movl -0x2c(%rbp), %edx
movq -0x40(%rbp), %rcx
callq 0xd01b
movq -0x48(%rbp), %rcx
movq %r12, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x73955(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x7395a(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302