// File: /workspace/github_c_makefile_star2_O2/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, -0x58(%rbp)
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
leaq -0x70(%rbp), %r13
movq %r13, %rdx
callq 0x6707d
movl %eax, %ebx
movq %rdx, %r12
xorl %edi, %edi
xorl %esi, %esi
callq 0xcd32
movq %rdx, %r15
movq (%r13), %r13
movb $0x1, %cl
movq %r12, %rdi
testb $0x1, %cl
je 0x67014
xorl %ecx, %ecx
movl $0x0, %r12d
testl %ebx, %ebx
je 0x66eae
movq %r15, -0x30(%rbp)
cmpl $0x1, %ebx
jne 0x67066
movq %r13, %r12
movq %r14, %r13
movl %eax, %r15d
leaq -0x68(%rbp), %rsi
callq 0xce01
movq %rax, %rbx
movq %rdx, %r14
testb $0x1, %r14b
je 0x66f07
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x66f07
addl $0x2, (%rax)
movq %r12, %rdi
movq %rbx, %rsi
leaq -0x40(%rbp), %rdx
callq 0x670ec
testb %al, %al
je 0x66f4f
testb $0x1, %r14b
je 0x66f42
movq %rbx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x66f42
decl (%rax)
jne 0x66f42
movq %rbx, %rdi
movq %r14, %rsi
callq 0xce94
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x66fcf
movq -0x40(%rbp), %rdi
movq %rbx, %rsi
leaq -0x50(%rbp), %rdx
callq 0x67127
movl %eax, %r12d
movq %rdx, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x66f91
decl (%rax)
jne 0x66f91
movq %r12, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0xa1335(%rip), %rsi     # 0x1082c1
callq 0xce94
movq %r12, %rdi
callq 0xd86d
movq %rax, %rdi
pushq $0x1
popq %rsi
callq 0xd759
movq -0x50(%rbp), %rcx
movq %rcx, -0x38(%rbp)
testb %al, %al
je 0x66fcf
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
movq -0x30(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x8e35
movl -0x50(%rbp), %eax
movq -0x48(%rbp), %r15
jmp 0x67001
movl %r15d, %eax
testb $0x1, %r14b
je 0x66ffd
movq %rbx, %rsi
andq %r13, %rsi
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x66ffd
decl (%rsi)
jne 0x66ffd
movq %rbx, %rdi
movq %r14, %rsi
callq 0xce94
movl %r15d, %eax
movq -0x30(%rbp), %r15
movl -0x68(%rbp), %ebx
movq -0x60(%rbp), %r12
movq %r13, %r14
movq -0x38(%rbp), %r13
jmp 0x66eac
andq %rdi, %r14
sete %dl
testb $0x3, %dil
setne %cl
orb %dl, %cl
jne 0x67046
decl (%r14)
jne 0x67046
shlq $0x30, %rbx
orq %rdi, %rbx
movl %eax, %r14d
leaq 0xa123e(%rip), %rsi     # 0x108279
movq %rbx, %rdi
callq 0xce94
movl %r14d, %eax
movl %eax, %edi
movq %r15, %rsi
callq 0xcd32
movq -0x58(%rbp), %rcx
movq %r13, (%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6d7a0(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6