// File: /workspace/github_c_makefile_star2_O2/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux
static struct std_list_List_1 mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_c99_zaC99* in_zaC99_2, enum mirth_c99_C99APIArgMode in_C99APIArgMode_3, struct mirth_type_StackType in_StackType_4, struct mirth_mirth_zaMirth* *out_zaMirth_5, struct mirth_c99_zaC99* *out_zaC99_6, enum mirth_c99_C99APIArgMode *out_C99APIArgMode_7, bool *out_Bool_8) {
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_c99_zaC99* branch_zaC99_11;
	enum mirth_c99_C99APIArgMode branch_C99APIArgMode_12;
	bool branch_Bool_13;
	struct std_list_List_1 branch_List_14;
	switch ((in_StackType_4).tag) {
		case mirth_type_StackType_Unit: {
			bool v15 = false;
			struct std_list_List_1 v16 = { .tag=std_list_List_1_Nil };
			branch_List_14 = v16;
			branch_Bool_13 = v15;
			branch_C99APIArgMode_12 = in_C99APIArgMode_3;
			branch_zaC99_11 = in_zaC99_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Error: {
			bool v17 = true;
			struct std_list_List_1 v18 = { .tag=std_list_List_1_Nil };
			branch_List_14 = v18;
			branch_Bool_13 = v17;
			branch_C99APIArgMode_12 = in_C99APIArgMode_3;
			branch_zaC99_11 = in_zaC99_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Ignore: {
			bool v19 = true;
			struct std_list_List_1 v20 = { .tag=std_list_List_1_Nil };
			branch_List_14 = v20;
			branch_Bool_13 = v19;
			branch_C99APIArgMode_12 = in_C99APIArgMode_3;
			branch_zaC99_11 = in_zaC99_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Meta: {
			uint64_t v21 = mtp_mirth_type_StackType_Meta(in_StackType_4);
			struct mirth_mirth_zaMirth* v22;
			struct std_maybe_Maybe_1 v23 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, v21, &v22);
			enum mirth_c99_C99APIArgMode branch_C99APIArgMode_24;
			bool branch_Bool_25;
			struct std_list_List_1 branch_List_26;
			struct mirth_mirth_zaMirth* branch_zaMirth_27;
			struct mirth_c99_zaC99* branch_zaC99_28;
			switch ((v23).tag) {
				case std_maybe_Maybe_1_None: {
					bool v29 = true;
					struct std_list_List_1 v30 = { .tag=std_list_List_1_Nil };
					branch_zaC99_28 = in_zaC99_2;
					branch_zaMirth_27 = v22;
					branch_List_26 = v30;
					branch_Bool_25 = v29;
					branch_C99APIArgMode_24 = in_C99APIArgMode_3;
				} break;
				case std_maybe_Maybe_1_Some: {
					VAL v31 = mtp_std_maybe_Maybe_1_Some(v23);
					struct mirth_mirth_zaMirth* v32;
					struct mirth_type_Type v33 = mw_mirth_type_Type_expand(v22, V_mirth_type_Type(v31), &v32);
					incref(MK_mirth_type_Type(v33));
					struct std_maybe_Maybe_1 v34 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v33));
					struct mirth_mirth_zaMirth* v35;
					mw_mirth_type_MetaVar_typezyzx(v32, v34, v21, &v35);
					struct mirth_type_StackType v36 = mw_mirth_type_Type_zgStackType(v33);
					struct mirth_mirth_zaMirth* v37;
					struct mirth_c99_zaC99* v38;
					enum mirth_c99_C99APIArgMode v39;
					bool v40;
					struct std_list_List_1 v41 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux(v35, in_zaC99_2, in_C99APIArgMode_3, v36, &v37, &v38, &v39, &v40);
					branch_zaC99_28 = v38;
					branch_zaMirth_27 = v37;
					branch_List_26 = v41;
					branch_Bool_25 = v40;
					branch_C99APIArgMode_24 = v39;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_List_14 = branch_List_26;
			branch_Bool_13 = branch_Bool_25;
			branch_C99APIArgMode_12 = branch_C99APIArgMode_24;
			branch_zaC99_11 = branch_zaC99_28;
			branch_zaMirth_10 = branch_zaMirth_27;
		} break;
		case mirth_type_StackType_Var: {
			uint64_t v42 = mtp_mirth_type_StackType_Var(in_StackType_4);
			bool v43 = true;
			struct std_list_List_1 v44 = { .tag=std_list_List_1_Nil };
			branch_List_14 = v44;
			branch_Bool_13 = v43;
			branch_C99APIArgMode_12 = in_C99APIArgMode_3;
			branch_zaC99_11 = in_zaC99_2;
			branch_zaMirth_10 = in_zaMirth_1;
		} break;
		case mirth_type_StackType_Cons: {
			struct mirth_type_Type v45;
			struct mirth_type_StackType v46 = mtp_mirth_type_StackType_Cons(in_StackType_4, &v45);
			struct mirth_c99_C99APIArgSource v47 = { .tag=mirth_c99_C99APIArgSource_Value };
			struct mirth_mirth_zaMirth* v48;
			struct mirth_c99_zaC99* v49;
			enum mirth_c99_C99APIArgMode v50;
			bool v51;
			struct std_list_List_1 v52 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux(in_zaMirth_1, in_zaC99_2, in_C99APIArgMode_3, v46, &v48, &v49, &v50, &v51);
			struct mirth_mirth_zaMirth* v53;
			struct mirth_c99_zaC99* v54;
			enum mirth_c99_C99APIArgMode v55;
			struct std_list_List_1 v56 = mw_mirth_c99_conszefreshzeargzx(v48, v49, v50, v52, v45, v47, &v53, &v54, &v55);
			branch_List_14 = v56;
			branch_Bool_13 = v51;
			branch_C99APIArgMode_12 = v55;
			branch_zaC99_11 = v54;
			branch_zaMirth_10 = v53;
		} break;
		case mirth_type_StackType_With: {
			struct mirth_type_Type v57;
			struct mirth_type_StackType v58 = mtp_mirth_type_StackType_With(in_StackType_4, &v57);
			struct mirth_c99_C99APIArgSource v59 = { .tag=mirth_c99_C99APIArgSource_Resource };
			struct mirth_type_Type v60 = mw_mirth_type_Resource_zgType(v57);
			struct mirth_mirth_zaMirth* v61;
			struct mirth_c99_zaC99* v62;
			enum mirth_c99_C99APIArgMode v63;
			bool v64;
			struct std_list_List_1 v65 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux(in_zaMirth_1, in_zaC99_2, in_C99APIArgMode_3, v58, &v61, &v62, &v63, &v64);
			struct mirth_mirth_zaMirth* v66;
			struct mirth_c99_zaC99* v67;
			enum mirth_c99_C99APIArgMode v68;
			struct std_list_List_1 v69 = mw_mirth_c99_conszefreshzeargzx(v61, v62, v63, v65, v60, v59, &v66, &v67, &v68);
			branch_List_14 = v69;
			branch_Bool_13 = v64;
			branch_C99APIArgMode_12 = v68;
			branch_zaC99_11 = v67;
			branch_zaMirth_10 = v66;
		} break;
		case mirth_type_StackType_ConsLabel: {
			struct mirth_type_Type v70;
			uint64_t v71;
			struct mirth_type_StackType v72 = mtp_mirth_type_StackType_ConsLabel(in_StackType_4, &v70, &v71);
			struct mirth_c99_C99APIArgSource v73 = mtw_mirth_c99_C99APIArgSource_ValueLabel(v71);
			struct mirth_mirth_zaMirth* v74;
			struct mirth_c99_zaC99* v75;
			enum mirth_c99_C99APIArgMode v76;
			bool v77;
			struct std_list_List_1 v78 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux(in_zaMirth_1, in_zaC99_2, in_C99APIArgMode_3, v72, &v74, &v75, &v76, &v77);
			struct mirth_mirth_zaMirth* v79;
			struct mirth_c99_zaC99* v80;
			enum mirth_c99_C99APIArgMode v81;
			struct std_list_List_1 v82 = mw_mirth_c99_conszefreshzeargzx(v74, v75, v76, v78, v70, v73, &v79, &v80, &v81);
			branch_List_14 = v82;
			branch_Bool_13 = v77;
			branch_C99APIArgMode_12 = v81;
			branch_zaC99_11 = v80;
			branch_zaMirth_10 = v79;
		} break;
		case mirth_type_StackType_WithLabel: {
			struct mirth_type_Type v83;
			uint64_t v84;
			struct mirth_type_StackType v85 = mtp_mirth_type_StackType_WithLabel(in_StackType_4, &v83, &v84);
			struct mirth_c99_C99APIArgSource v86 = mtw_mirth_c99_C99APIArgSource_ResourceLabel(v84);
			struct mirth_type_Type v87 = mw_mirth_type_Resource_zgType(v83);
			struct mirth_mirth_zaMirth* v88;
			struct mirth_c99_zaC99* v89;
			enum mirth_c99_C99APIArgMode v90;
			bool v91;
			struct std_list_List_1 v92 = mw_mirth_c99_zaC99_stackzetypezetozec99zeapizeparamszeaux(in_zaMirth_1, in_zaC99_2, in_C99APIArgMode_3, v85, &v88, &v89, &v90, &v91);
			struct mirth_mirth_zaMirth* v93;
			struct mirth_c99_zaC99* v94;
			enum mirth_c99_C99APIArgMode v95;
			struct std_list_List_1 v96 = mw_mirth_c99_conszefreshzeargzx(v88, v89, v90, v92, v87, v86, &v93, &v94, &v95);
			branch_List_14 = v96;
			branch_Bool_13 = v91;
			branch_C99APIArgMode_12 = v95;
			branch_zaC99_11 = v94;
			branch_zaMirth_10 = v93;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Bool_8 = branch_Bool_13;
	*out_C99APIArgMode_7 = branch_C99APIArgMode_12;
	*out_zaC99_6 = branch_zaC99_11;
	*out_zaMirth_5 = branch_zaMirth_10;
	return branch_List_14;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
cmpl $0x8, %ecx
ja 0xa2118
movq %r9, %rbx
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, %eax
leaq 0x32133(%rip), %rcx     # 0xd3dd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %eax, %eax
xorl %r13d, %r13d
jmp 0xa1cf0
movq %r8, %rdi
callq 0x34e20
movq %rax, %r13
leaq -0x80(%rbp), %rdx
movq %r12, %rdi
movq %rax, %rsi
callq 0x2aadc
cmpl $0x1, %eax
je 0xa2015
testl %eax, %eax
jne 0xa2118
movb $0x1, %al
xorl %r13d, %r13d
movq -0x80(%rbp), %r12
jmp 0xa1cf0
movq %r8, %rdi
callq 0x34edb
xorl %r13d, %r13d
movb $0x1, %al
xorl %edx, %edx
jmp 0xa20ec
movq %rbx, -0x38(%rbp)
leaq -0x80(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
callq 0x34f7f
movq %rdx, %r8
movl (%rbx), %ecx
movq 0x8(%rbx), %rdx
movl %ecx, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
leaq -0x30(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x90(%rbp), %r13
movq %r13, (%rsp)
leaq -0xa8(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %rbx, %r9
callq 0xa1c6b
movq %rdx, %r8
movq (%rbx), %rdi
movq (%r13), %rsi
leaq -0x40(%rbp), %rcx
movl (%rcx), %edx
movups 0x328c8(%rip), %xmm0    # 0xd4630
movups %xmm0, 0x10(%rsp)
movups -0x50(%rbp), %xmm0
jmp 0xa1de4
leaq -0x80(%rbp), %rsi
movq %r8, %rdi
callq 0x34ef8
movq %rdx, %r8
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
leaq -0x30(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rsp)
movq %rbx, -0x38(%rbp)
leaq -0x90(%rbp), %rbx
movq %rbx, (%rsp)
leaq -0xa8(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %r13, %r9
callq 0xa1c6b
movq %rdx, %r8
movq (%r13), %rdi
movq (%rbx), %rsi
leaq -0x40(%rbp), %rcx
movl (%rcx), %edx
movaps -0x50(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
leaq -0x80(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
leaq -0x88(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x60(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x68(%rbp), %rbx
movl %eax, %ecx
movq %rbx, %r9
callq 0xa2157
movq %rax, %rdx
leaq -0x30(%rbp), %rax
movb (%rax), %al
movl (%r14), %r14d
movq (%r15), %r15
movq (%rbx), %r12
movq -0x38(%rbp), %rbx
pushq $0x1
popq %r13
jmp 0xa20ec
movq %rbx, -0x38(%rbp)
leaq -0x80(%rbp), %rsi
leaq -0xa8(%rbp), %r13
movq %r8, %rdi
movq %r13, %rdx
callq 0x3502f
movl %eax, -0x58(%rbp)
movq %rdx, -0x98(%rbp)
movq (%r13), %rbx
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0xa212f
pushq $0x1
popq %r13
movl %r13d, (%rax)
movq %rbx, 0x8(%rax)
movl %r13d, -0x50(%rbp)
movq %rax, -0x48(%rbp)
leaq -0x6c(%rbp), %rax
movq %rax, 0x10(%rsp)
leaq -0x88(%rbp), %rax
movq %rax, 0x8(%rsp)
leaq -0x68(%rbp), %rax
movq %rax, (%rsp)
leaq -0x90(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x58(%rbp), %ecx
movq -0x98(%rbp), %r8
movq %rbx, %r9
callq 0xa1c6b
movq %rdx, %r8
movq (%rbx), %rdi
leaq -0x68(%rbp), %rcx
movq (%rcx), %rsi
leaq -0x88(%rbp), %rcx
movl (%rcx), %edx
movups -0x50(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups -0x80(%rbp), %xmm0
movups %xmm0, (%rsp)
leaq -0x30(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x40(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x60(%rbp), %rbx
movl %eax, %ecx
movq %rbx, %r9
callq 0xa2157
movq %rax, %rdx
leaq -0x6c(%rbp), %rax
movb (%rax), %al
movl (%r14), %r14d
movq (%r15), %r15
movq (%rbx), %r12
jmp 0xa20e8
movq %rbx, -0x38(%rbp)
leaq -0x80(%rbp), %rsi
leaq -0x90(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rdx
callq 0x350d3
movl %eax, -0x58(%rbp)
movq %rdx, -0x98(%rbp)
movq (%rbx), %rbx
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0xa2138
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl $0x3, -0x50(%rbp)
movq %rax, -0x48(%rbp)
movl -0x80(%rbp), %eax
movq -0x78(%rbp), %rcx
movl %eax, -0xa8(%rbp)
movq %rcx, -0xa0(%rbp)
leaq -0x29(%rbp), %rax
movq %rax, 0x10(%rsp)
leaq -0x30(%rbp), %rax
movq %rax, 0x8(%rsp)
leaq -0x60(%rbp), %r13
movq %r13, (%rsp)
leaq -0x68(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x58(%rbp), %ecx
movq -0x98(%rbp), %r8
movq %rbx, %r9
callq 0xa1c6b
movq %rdx, %r8
movq (%rbx), %rdi
movq (%r13), %rsi
leaq -0x30(%rbp), %rcx
movl (%rcx), %edx
movups -0x50(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups -0xa8(%rbp), %xmm0
movups %xmm0, (%rsp)
leaq -0x6c(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x88(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x40(%rbp), %rbx
movl %eax, %ecx
movq %rbx, %r9
callq 0xa2157
movq %rax, %rdx
leaq -0x29(%rbp), %rax
movb (%rax), %al
movl (%r14), %r14d
movq (%r15), %r15
movq (%rbx), %r12
pushq $0x1
popq %r13
jmp 0xa20e8
movq %rbx, -0x38(%rbp)
movq %rdx, %rdi
callq 0xd491
movq -0x80(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
andq %rbx, %rax
leaq -0x50(%rbp), %rcx
movq %rax, %rdx
callq 0x2ab4b
movq %rdx, %r12
movq %rax, -0x58(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x66a8c(%rip), %rsi     # 0x108ae9
andq %rdx, %rbx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0xa2070
incl (%rbx)
callq 0x8d0c
movq -0x50(%rbp), %rdi
leaq -0xa8(%rbp), %rbx
movq %rdx, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x2ab8f
movq -0x58(%rbp), %rdi
movq %r12, %rsi
callq 0x34e3d
movq %rdx, %r8
movq (%rbx), %rdi
leaq -0x40(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x60(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x68(%rbp), %r12
movq %r12, (%rsp)
leaq -0x90(%rbp), %rbx
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %rbx, %r9
callq 0xa1c6b
movl %eax, %r13d
movq (%r12), %r15
movq (%rbx), %r12
leaq -0x40(%rbp), %rax
movb (%rax), %al
leaq -0x60(%rbp), %rcx
movl (%rcx), %r14d
movq -0x38(%rbp), %rbx
movq 0x20(%rbp), %rcx
movq 0x18(%rbp), %rsi
movq 0x10(%rbp), %rdi
movb %al, (%rcx)
movl %r14d, (%rsi)
movq %r15, (%rdi)
movq %r12, (%rbx)
movl %r13d, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x326ee(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6
leaq 0x4ba06(%rip), %rsi     # 0xedb3c
jmp 0xa213f
leaq 0x4ba2f(%rip), %rsi     # 0xedb6e
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130