// File: /workspace/github_c_makefile_star2_O1/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 0xae8ed
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, %eax
leaq 0x3595f(%rip), %rcx     # 0xe3d68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %r13d, %r13d
movb $0x1, %bl
jmp 0xae480
movq %r9, -0x38(%rbp)
movq 0x8(%r8), %rbx
decl (%r8)
jne 0xae42e
movq %r8, %rdi
callq 0x5030
leaq -0x88(%rbp), %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2e11b
cmpl $0x1, %eax
je 0xae7bf
testl %eax, %eax
jne 0xae8ed
movb $0x1, %bl
xorl %r13d, %r13d
movq -0x88(%rbp), %r12
xorl %edx, %edx
jmp 0xae8bd
xorl %ebx, %ebx
jmp 0xae47d
decl (%r8)
movb $0x1, %bl
jne 0xae47d
movq %r8, %rdi
movq %r9, %r13
callq 0x5030
movq %r13, %r9
xorl %r13d, %r13d
xorl %edx, %edx
jmp 0xae8c1
leaq -0x88(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rsi
movq %r9, -0x38(%rbp)
callq 0x39346
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 -0x68(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x98(%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 0xae3da
movq %rdx, %r8
movq (%rbx), %rdi
movq (%r13), %rsi
leaq -0x68(%rbp), %rcx
movl (%rcx), %edx
movups 0x36075(%rip), %xmm0    # 0xe4570
movups %xmm0, 0x10(%rsp)
movups -0x50(%rbp), %xmm0
jmp 0xae57d
leaq -0x88(%rbp), %rsi
movq %r8, %rdi
movq %r9, -0x38(%rbp)
callq 0x392bf
movq %rdx, %r8
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
leaq -0x30(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x68(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x98(%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 0xae3da
movq %rdx, %r8
movq (%r13), %rdi
movq (%rbx), %rsi
leaq -0x68(%rbp), %rcx
movl (%rcx), %edx
movaps -0x50(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
leaq -0x88(%rbp), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
leaq -0x90(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x70(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x40(%rbp), %r12
movl %eax, %ecx
movq %r12, %r9
callq 0xae94b
movq -0x38(%rbp), %r9
movq %rax, %rdx
leaq -0x30(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
movl $0x1, %r13d
jmp 0xae8c1
movq %r9, -0x38(%rbp)
leaq -0x88(%rbp), %rsi
leaq -0xa8(%rbp), %r13
movq %r8, %rdi
movq %r13, %rdx
callq 0x393cd
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq (%r13), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0xae91d
movl $0x1, %r13d
movl %r13d, (%rax)
movq %rbx, 0x8(%rax)
movl %r13d, -0x50(%rbp)
movq %rax, -0x48(%rbp)
leaq -0x74(%rbp), %rax
movq %rax, 0x10(%rsp)
leaq -0x90(%rbp), %rax
movq %rax, 0x8(%rsp)
leaq -0x40(%rbp), %rax
movq %rax, (%rsp)
leaq -0x98(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x60(%rbp), %ecx
movq -0x58(%rbp), %r8
movq %rbx, %r9
callq 0xae3da
movq %rdx, %r8
movq (%rbx), %rdi
leaq -0x40(%rbp), %rcx
movq (%rcx), %rsi
leaq -0x90(%rbp), %rcx
movl (%rcx), %edx
movups -0x50(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups -0x88(%rbp), %xmm0
movups %xmm0, (%rsp)
leaq -0x30(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x68(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x70(%rbp), %r12
movl %eax, %ecx
movq %r12, %r9
callq 0xae94b
movq %rax, %rdx
leaq -0x74(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
jmp 0xae8bd
movq %r9, -0x38(%rbp)
leaq -0x88(%rbp), %rsi
leaq -0x98(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rdx
callq 0x39471
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq (%rbx), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0xae926
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl $0x3, -0x50(%rbp)
movq %rax, -0x48(%rbp)
movl -0x88(%rbp), %eax
movq -0x80(%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 -0x70(%rbp), %r13
movq %r13, (%rsp)
leaq -0x40(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x60(%rbp), %ecx
movq -0x58(%rbp), %r8
movq %rbx, %r9
callq 0xae3da
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 -0x74(%rbp), %r14
movq %r14, 0x28(%rsp)
leaq -0x90(%rbp), %r15
movq %r15, 0x20(%rsp)
leaq -0x68(%rbp), %r12
movl %eax, %ecx
movq %r12, %r9
callq 0xae94b
movq %rax, %rdx
leaq -0x29(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
movl $0x1, %r13d
jmp 0xae8bd
movq %rbx, -0x60(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xdaeb
movq -0x88(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r12, %rax
leaq -0x50(%rbp), %rcx
movq %rax, %rdx
callq 0x2e18a
movq %rdx, %r13
movq %rax, -0x58(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x672df(%rip), %rsi     # 0x115ae9
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xae820
incl (%rax)
callq 0x95f6
movq %rdx, %rbx
movq -0x50(%rbp), %rax
movq %rax, -0xb0(%rbp)
leaq 0x106abee(%rip), %rdi   # 0x1119428
movq -0x60(%rbp), %rsi
callq 0x13ff0
addq $0x4, %r12
orq %rbx, %r12
leaq 0x66a70(%rip), %rsi     # 0x1152c1
movq %r12, %rdi
movq %rax, %rdx
callq 0x14ab5
movq -0x58(%rbp), %rdi
movq %r13, %rsi
callq 0x391d9
movq %rdx, %r8
leaq -0x70(%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq -0x40(%rbp), %rcx
movq %rcx, 0x8(%rsp)
leaq -0x98(%rbp), %r12
movq %r12, (%rsp)
leaq -0xa8(%rbp), %rbx
movq -0xb0(%rbp), %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %rbx, %r9
callq 0xae3da
movl %eax, %r13d
movq (%r12), %r15
movq (%rbx), %r12
leaq -0x70(%rbp), %rax
movb (%rax), %bl
leaq -0x40(%rbp), %rax
movl (%rax), %r14d
movq -0x38(%rbp), %r9
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rcx
movq 0x10(%rbp), %rsi
movb %bl, (%rax)
movl %r14d, (%rcx)
movq %r15, (%rsi)
movq %r12, (%r9)
movl %r13d, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x35e47(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x35e4c(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
leaq 0x4f00c(%rip), %rsi     # 0xfd930
jmp 0xae92d
leaq 0x4f035(%rip), %rsi     # 0xfd962
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130