// File: /workspace/github_c_makefile_star2_O3/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 $0x78, %rsp
cmpl $0x8, %ecx
ja 0xabc09
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %r12
movl %ecx, %eax
leaq 0x34640(%rip), %rcx     # 0xdfdb0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorl %r13d, %r13d
movb $0x1, %bl
jmp 0xab7e1
movq %r9, -0x38(%rbp)
movq 0x8(%r8), %rbx
decl (%r8)
jne 0xab795
movq %r8, %rdi
callq 0x5030
leaq -0x70(%rbp), %rdx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2d45d
cmpl $0x1, %eax
je 0xabae7
testl %eax, %eax
jne 0xabc09
movb $0x1, %bl
xorl %r13d, %r13d
movq -0x70(%rbp), %r12
xorl %edx, %edx
jmp 0xabbdc
xorl %ebx, %ebx
jmp 0xab7de
decl (%r8)
movb $0x1, %bl
jne 0xab7de
movq %r8, %rdi
movq %r9, %r13
callq 0x5030
movq %r13, %r9
xorl %r13d, %r13d
xorl %edx, %edx
jmp 0xabbe0
leaq -0x70(%rbp), %r13
movq %r8, %rdi
movq %r13, %rsi
movq %r9, -0x38(%rbp)
callq 0x381ac
movq %rdx, %r8
movl (%r13), %ecx
movl %ecx, -0x40(%rbp)
movq 0x8(%r13), %rcx
movq %rcx, -0x48(%rbp)
subq $0x8, %rsp
leaq -0x30(%rbp), %r10
leaq -0x80(%rbp), %r11
leaq -0x90(%rbp), %rbx
leaq -0x78(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %r13, %r9
pushq %r10
movq %r11, %r14
pushq %r11
pushq %rbx
callq 0xab744
addq $0x20, %rsp
movq %rdx, %r8
movq (%r13), %rdi
movq (%rbx), %rsi
movl (%r14), %edx
leaq -0x4c(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x88(%rbp), %r12
movl %eax, %ecx
movl -0x40(%rbp), %r9d
pushq %r14
pushq %r15
pushq %r12
pushq $0x0
pushq $0x2
pushq -0x48(%rbp)
jmp 0xab8f0
leaq -0x70(%rbp), %rsi
movq %r8, %rdi
movq %r9, -0x38(%rbp)
callq 0x38125
movq %rdx, %r8
subq $0x8, %rsp
leaq -0x30(%rbp), %r10
leaq -0x80(%rbp), %r11
leaq -0x90(%rbp), %rbx
leaq -0x78(%rbp), %r13
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %r13, %r9
pushq %r10
movq %r11, %r14
pushq %r11
pushq %rbx
callq 0xab744
addq $0x20, %rsp
movq %rdx, %r8
movq (%r13), %rdi
movq (%rbx), %rsi
movl (%r14), %edx
leaq -0x70(%rbp), %r10
movl (%r10), %r9d
leaq -0x4c(%rbp), %r14
leaq -0x60(%rbp), %r15
leaq -0x88(%rbp), %r12
movl %eax, %ecx
pushq %r14
pushq %r15
pushq %r12
pushq $0x0
pushq $0x0
pushq 0x8(%r10)
callq 0xabc67
movq -0x38(%rbp), %r9
addq $0x30, %rsp
movq %rax, %rdx
leaq -0x30(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
movl $0x1, %r13d
jmp 0xabbe0
movq %r9, -0x38(%rbp)
leaq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %rbx
movq %r8, %rdi
movq %rbx, %rdx
callq 0x38233
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq (%rbx), %rax
movq %rax, -0x58(%rbp)
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0xabc39
movq %rax, %rbx
movl $0x1, %r13d
movl %r13d, (%rax)
movq -0x58(%rbp), %rax
movq %rax, 0x8(%rbx)
subq $0x8, %rsp
leaq -0x29(%rbp), %rax
leaq -0x4c(%rbp), %r10
leaq -0x88(%rbp), %r11
leaq -0x90(%rbp), %r9
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x48(%rbp), %ecx
movq -0x40(%rbp), %r8
movq %r9, %r12
pushq %rax
movq %r10, %r14
pushq %r10
movq %r11, %r15
pushq %r11
callq 0xab744
addq $0x20, %rsp
movq %rdx, %r8
movq (%r12), %rdi
movq (%r15), %rsi
movl (%r14), %edx
movl -0x70(%rbp), %r9d
leaq -0x30(%rbp), %r14
leaq -0x80(%rbp), %r15
leaq -0x60(%rbp), %r12
movl %eax, %ecx
pushq %r14
pushq %r15
pushq %r12
pushq %rbx
pushq %r13
pushq -0x68(%rbp)
callq 0xabc67
addq $0x30, %rsp
movq %rax, %rdx
leaq -0x29(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
jmp 0xabbdc
movq %r9, -0x38(%rbp)
leaq -0x70(%rbp), %rsi
leaq -0x78(%rbp), %r13
movq %r8, %rdi
movq %r13, %rdx
callq 0x382d7
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq (%r13), %rbx
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0xabc42
movq %rax, %r13
movl $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl -0x70(%rbp), %eax
movl %eax, -0x94(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x58(%rbp)
subq $0x8, %rsp
leaq -0x29(%rbp), %rax
leaq -0x4c(%rbp), %r10
leaq -0x88(%rbp), %r11
leaq -0x90(%rbp), %rbx
movq %r12, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl -0x48(%rbp), %ecx
movq -0x40(%rbp), %r8
movq %rbx, %r9
pushq %rax
movq %r10, %r14
pushq %r10
movq %r11, %r15
pushq %r11
callq 0xab744
addq $0x20, %rsp
movq %rdx, %r8
movq (%rbx), %rdi
movq (%r15), %rsi
movl (%r14), %edx
leaq -0x30(%rbp), %r14
leaq -0x80(%rbp), %r15
leaq -0x60(%rbp), %r12
movl %eax, %ecx
movl -0x94(%rbp), %r9d
pushq %r14
pushq %r15
pushq %r12
pushq %r13
pushq $0x3
pushq -0x58(%rbp)
callq 0xabc67
addq $0x30, %rsp
movq %rax, %rdx
leaq -0x29(%rbp), %rax
movb (%rax), %bl
movl (%r14), %r14d
movq (%r15), %r15
movq (%r12), %r12
movl $0x1, %r13d
jmp 0xabbdc
movq %rbx, -0x48(%rbp)
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq %rdx, %rdi
callq 0xd745
movq -0x70(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r12, %rax
leaq -0x78(%rbp), %rcx
movq %rax, %rdx
callq 0x2d4cc
movq %rdx, %r13
movq %rax, -0x40(%rbp)
movq %rax, %rdi
shlq $0x30, %rdi
orq %rdx, %rdi
leaq 0x65fba(%rip), %rsi     # 0x111ae9
movq %rdx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0xabb45
incl (%rax)
callq 0x9353
movq %rdx, %rbx
movq -0x78(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x10698cc(%rip), %rdi   # 0x1115428
movq -0x48(%rbp), %rsi
callq 0x13c85
addq $0x4, %r12
orq %rbx, %r12
leaq 0x6574e(%rip), %rsi     # 0x1112c1
movq %r12, %rdi
movq %rax, %rdx
callq 0x14766
movq -0x40(%rbp), %rdi
movq %r13, %rsi
callq 0x38041
movq %rdx, %r8
subq $0x8, %rsp
leaq -0x80(%rbp), %r10
leaq -0x60(%rbp), %r11
leaq -0x88(%rbp), %r12
leaq -0x90(%rbp), %rbx
movq -0x58(%rbp), %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %eax, %ecx
movq %rbx, %r9
pushq %r10
movq %r10, %r14
pushq %r11
pushq %r12
callq 0xab744
addq $0x20, %rsp
movl %eax, %r13d
movq (%r12), %r15
movq (%rbx), %r12
movb (%r14), %bl
leaq -0x60(%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 $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x34aab(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x34ab0(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
leaq 0x4dbbf(%rip), %rsi     # 0xf97ff
jmp 0xabc49
leaq 0x4dbe8(%rip), %rsi     # 0xf9831
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130