// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzetypezesigzeparamszx
static struct std_list_List_1 mw_mirth_elab_zaTypeElab_elabzetypezesigzeparamszx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_elab_zaTypeElab* in_zaTypeElab_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_elab_zaTypeElab* *out_zaTypeElab_5) {
	uint64_t v7 = in_zaTypeElab_2->mtoken;
	struct mirth_mirth_zaMirth* v8;
	struct std_maybe_Maybe_1 v9 = mw_mirth_token_Token_lparenzy(in_zaMirth_1, v7, &v8);
	int64_t v10 = (v9).tag;
	decref(MK_std_maybe_Maybe_1(v9));
	INT v11 = WRAP_I63(0LL);
	INT v12 = v11;
	INT v13 = i64_to_int(v10);
	bool v14 = int_eq(v13, v12);
	bool v15 = !v14;
	struct mirth_type_StackType branch_StackType_16;
	struct mirth_mirth_zaMirth* branch_zaMirth_17;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_18;
	struct std_list_List_1 branch_List_19;
	if (v15) {
		uint64_t v20 = in_zaTypeElab_2->mtoken;
		struct mirth_mirth_zaMirth* v21;
		uint64_t v22 = mw_mirth_token_Token_next(v8, v20, &v21);
		uint64_t v23 = in_zaTypeElab_2->mtoken;
		struct mirth_mirth_zaMirth* v24;
		struct std_list_List_1 v25 = mw_mirth_token_Token_args(v21, v23, &v24);
		struct std_list_List_1 v26 = { .tag=std_list_List_1_Nil };
		struct std_list_List_1 v27;
		mw_std_list_List_1_buildzx(v26, &v27);
		bool v28 = true;
		struct mirth_mirth_zaMirth* r29 = v24;
		struct mirth_type_StackType v30 = in_StackType_3;
		struct mirth_elab_zaTypeElab* r31 = in_zaTypeElab_2;
		struct std_list_List_1 r32 = v27;
		struct std_list_List_1 v33 = v25;
		bool v34 = v28;
		bool v35 = v28;
		while (v35) {
			struct mirth_mirth_zaMirth* r36 = r29;
			struct mirth_type_StackType v37 = v30;
			struct mirth_elab_zaTypeElab* r38 = r31;
			struct std_list_List_1 r39 = r32;
			struct std_list_List_1 v40 = v33;
			bool v41 = v34;
			struct mirth_type_StackType branch_StackType_42;
			struct mirth_mirth_zaMirth* branch_zaMirth_43;
			struct mirth_elab_zaTypeElab* branch_zaTypeElab_44;
			struct std_list_List_1 branch_zaLister_45;
			struct std_list_List_1 branch_List_46;
			bool branch_Bool_47;
			switch ((v40).tag) {
				case std_list_List_1_Cons: {
					struct std_list_List_1 v48;
					VAL v49 = mtp_std_list_List_1_Cons(v40, &v48);
					r38->mtoken = V_mirth_token_Token(v49);
					incref(MK_mirth_type_StackType(v37));
					struct mirth_mirth_zaMirth* v50;
					struct mirth_elab_zaTypeElab* v51;
					struct mirth_type_ArrowType* v52 = mw_mirth_elab_zaTypeElab_elabzetypezesigzx(r36, r38, v37, &v50, &v51);
					struct mirth_type_Type v53 = mtw_mirth_type_Type_Arrow(v52);
					struct std_list_List_1 v54;
					mw_std_list_zaLister_1_pushzx(MK_mirth_type_Type(v53), r39, &v54);
					bool v55 = true;
					branch_Bool_47 = v55;
					branch_List_46 = v48;
					branch_zaLister_45 = v54;
					branch_zaTypeElab_44 = v51;
					branch_zaMirth_43 = v50;
					branch_StackType_42 = v37;
				} break;
				case std_list_List_1_Nil: {
					struct std_list_List_1 v56 = { .tag=std_list_List_1_Nil };
					bool v57 = false;
					branch_Bool_47 = v57;
					branch_List_46 = v56;
					branch_zaLister_45 = r39;
					branch_zaTypeElab_44 = r38;
					branch_zaMirth_43 = r36;
					branch_StackType_42 = v37;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			v35 = branch_Bool_47;
			v34 = branch_Bool_47;
			v33 = branch_List_46;
			r32 = branch_zaLister_45;
			r31 = branch_zaTypeElab_44;
			v30 = branch_StackType_42;
			r29 = branch_zaMirth_43;
		}
		decref(MK_std_list_List_1(v33));
		struct std_list_List_1 v58 = mw_std_list_zaLister_1_donezx(r32);
		r31->mtoken = v22;
		branch_List_19 = v58;
		branch_zaTypeElab_18 = r31;
		branch_zaMirth_17 = r29;
		branch_StackType_16 = v30;
	} else {
		struct std_list_List_1 v59 = { .tag=std_list_List_1_Nil };
		branch_List_19 = v59;
		branch_zaTypeElab_18 = in_zaTypeElab_2;
		branch_zaMirth_17 = v8;
		branch_StackType_16 = in_StackType_3;
	}
	decref(MK_mirth_type_StackType(branch_StackType_16));
	*out_zaTypeElab_5 = branch_zaTypeElab_18;
	*out_zaMirth_4 = branch_zaMirth_17;
	return branch_List_19;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3d0, %rsp            # imm = 0x3D0
movl %edx, -0x20(%rbp)
movq %rcx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0xa3f20
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %eax
movq %rax, -0x68(%rbp)
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x70(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xae986
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
cmpq $0x0, %rax
je 0xae986
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xae986
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xae984
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x133a0
movq %rax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x127c0
jmp 0xae986
jmp 0xae988
movq 0x2c00c1(%rip), %rax    # 0x36ea50
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x68(%rbp), %rdi
callq 0x1a290
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0xd1(%rbp)
movb -0xd1(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0xd2(%rbp)
testb $0x1, -0xd2(%rbp)
je 0xaf098
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x100(%rbp)
movq -0x50(%rbp), %rdi
movq -0x100(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0x7b380
movq %rax, -0x110(%rbp)
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x118(%rbp)
movq -0x108(%rbp), %rdi
movq -0x118(%rbp), %rsi
leaq -0x120(%rbp), %rdx
callq 0xa5a80
movl %eax, -0x130(%rbp)
movq %rdx, -0x128(%rbp)
leaq -0x140(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x140(%rbp), %edi
movq -0x138(%rbp), %rsi
leaq -0x150(%rbp), %rdx
callq 0xc9d0
movb $0x1, -0x151(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x190(%rbp)
movb -0x151(%rbp), %al
andb $0x1, %al
movb %al, -0x199(%rbp)
movb -0x151(%rbp), %al
andb $0x1, %al
movb %al, -0x19a(%rbp)
testb $0x1, -0x19a(%rbp)
je 0xaef00
movq -0x160(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movups -0x170(%rbp), %xmm0
movaps %xmm0, -0x1c0(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movups -0x188(%rbp), %xmm0
movaps %xmm0, -0x1e0(%rbp)
movups -0x198(%rbp), %xmm0
movaps %xmm0, -0x1f0(%rbp)
movb -0x199(%rbp), %al
andb $0x1, %al
movb %al, -0x1f1(%rbp)
movl -0x1f0(%rbp), %eax
movl %eax, -0x3cc(%rbp)
testl %eax, %eax
je 0xaedbc
jmp 0xaeb7c
movl -0x3cc(%rbp), %eax
subl $0x1, %eax
jne 0xaee56
jmp 0xaeb8d
movl -0x1f0(%rbp), %edi
movq -0x1e8(%rbp), %rsi
leaq -0x250(%rbp), %rdx
callq 0x125e0
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movq -0x260(%rbp), %rcx
movq -0x1c8(%rbp), %rax
movq %rcx, 0x10(%rax)
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
callq 0x6f140
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x268(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xaec9b
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
callq 0x6f140
movq %rax, -0x280(%rbp)
movq %rdx, -0x278(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x280(%rbp), %rax
cmpq $0x0, %rax
je 0xaec9b
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
callq 0x6f140
movq %rax, -0x290(%rbp)
movq %rdx, -0x288(%rbp)
movq -0x290(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xaec9b
movl -0x1c0(%rbp), %edi
movq -0x1b8(%rbp), %rsi
callq 0x6f140
movq %rax, -0x2a0(%rbp)
movq %rdx, -0x298(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2a0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xaec9d
movq -0x1a8(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
movl -0x1c0(%rbp), %edx
movq -0x1b8(%rbp), %rcx
leaq -0x2a8(%rbp), %r8
leaq -0x2b0(%rbp), %r9
callq 0xad460
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rdi
callq 0xaf380
movl %eax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movl -0x2c8(%rbp), %edi
movq -0x2c0(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
movl -0x1e0(%rbp), %edx
movq -0x1d8(%rbp), %rcx
leaq -0x2d8(%rbp), %r8
callq 0xcc30
movb $0x1, -0x2e9(%rbp)
movb -0x2e9(%rbp), %al
andb $0x1, %al
movb %al, -0x239(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x248(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x2a8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x200(%rbp)
jmp 0xaee6f
leaq -0x300(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x301(%rbp)
movb -0x301(%rbp), %al
andb $0x1, %al
movb %al, -0x239(%rbp)
movq -0x300(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x2f8(%rbp), %rax
movq %rax, -0x230(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x228(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x1c8(%rbp), %rax
movq %rax, -0x218(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x208(%rbp)
movq -0x1b8(%rbp), %rax
movq %rax, -0x200(%rbp)
jmp 0xaee6f
leaq 0x2a5024(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x239(%rbp), %al
andb $0x1, %al
movb %al, -0x19a(%rbp)
movb -0x239(%rbp), %al
andb $0x1, %al
movb %al, -0x199(%rbp)
movq -0x238(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x228(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x220(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x160(%rbp)
jmp 0xaeb05
jmp 0xaef02
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x12780
movq %rax, -0x318(%rbp)
movq %rdx, -0x310(%rbp)
movq -0x310(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xaf015
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x12780
movq %rax, -0x328(%rbp)
movq %rdx, -0x320(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x328(%rbp), %rax
cmpq $0x0, %rax
je 0xaf015
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x12780
movq %rax, -0x338(%rbp)
movq %rdx, -0x330(%rbp)
movq -0x338(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xaf015
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x12780
movq %rax, -0x348(%rbp)
movq %rdx, -0x340(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x348(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xaf013
movl -0x198(%rbp), %edi
movq -0x190(%rbp), %rsi
callq 0x12780
movq %rax, -0x358(%rbp)
movq %rdx, -0x350(%rbp)
movq -0x358(%rbp), %rdi
movq -0x350(%rbp), %rsi
callq 0x127c0
jmp 0xaf015
jmp 0xaf017
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0xcea0
movl %eax, -0x368(%rbp)
movq %rdx, -0x360(%rbp)
movq -0x110(%rbp), %rcx
movq -0x178(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x368(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x360(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0xaf0ed
leaq -0x378(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x378(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x370(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0xaf0ef
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x388(%rbp)
movq %rdx, -0x380(%rbp)
movq -0x380(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xaf202
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x398(%rbp)
movq %rdx, -0x390(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x398(%rbp), %rax
cmpq $0x0, %rax
je 0xaf202
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x3a8(%rbp)
movq %rdx, -0x3a0(%rbp)
movq -0x3a8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xaf202
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x3b8(%rbp)
movq %rdx, -0x3b0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x3b8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xaf200
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x6f140
movq %rax, -0x3c8(%rbp)
movq %rdx, -0x3c0(%rbp)
movq -0x3c8(%rbp), %rdi
movq -0x3c0(%rbp), %rsi
callq 0x127c0
jmp 0xaf202
jmp 0xaf204
movq -0xf8(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, (%rax)
movq -0xf0(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x3d0, %rsp            # imm = 0x3D0
popq %rbp
retq