// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_ctype
static struct mirth_type_CTypeStack* mw_mirth_type_StackType_ctype (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct mirth_mirth_zaMirth* v5;
	struct std_list_List_1 v6;
	struct mirth_type_StackTypeBase v7 = mw_mirth_type_StackType_splitzeparts(in_zaMirth_1, in_StackType_2, &v5, &v6);
	struct std_list_List_1 v8 = { .tag=std_list_List_1_Nil };
	struct std_list_List_1 v9;
	mw_std_list_List_1_buildzx(v8, &v9);
	bool v10 = true;
	struct mirth_mirth_zaMirth* r11 = v5;
	struct std_list_List_1 r12 = v9;
	struct std_list_List_1 v13 = v6;
	bool v14 = v10;
	bool v15 = v10;
	while (v15) {
		struct mirth_mirth_zaMirth* r16 = r11;
		struct std_list_List_1 r17 = r12;
		struct std_list_List_1 v18 = v13;
		bool v19 = v14;
		struct mirth_mirth_zaMirth* branch_zaMirth_20;
		struct std_list_List_1 branch_zaLister_21;
		struct std_list_List_1 branch_List_22;
		bool branch_Bool_23;
		switch ((v18).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v24;
				VAL v25 = mtp_std_list_List_1_Cons(v18, &v24);
				struct mirth_mirth_zaMirth* v26;
				struct mirth_type_CTypeStackPart v27 = mw_mirth_type_StackTypePart_ctype(r16, V_mirth_type_StackTypePart(v25), &v26);
				struct std_list_List_1 v28;
				mw_std_list_zaLister_1_pushzx(MK_mirth_type_CTypeStackPart(v27), r17, &v28);
				bool v29 = true;
				branch_Bool_23 = v29;
				branch_List_22 = v24;
				branch_zaLister_21 = v28;
				branch_zaMirth_20 = v26;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v30 = { .tag=std_list_List_1_Nil };
				bool v31 = false;
				branch_Bool_23 = v31;
				branch_List_22 = v30;
				branch_zaLister_21 = r17;
				branch_zaMirth_20 = r16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_23;
		v14 = branch_Bool_23;
		v13 = branch_List_22;
		r12 = branch_zaLister_21;
		r11 = branch_zaMirth_20;
	}
	decref(MK_std_list_List_1(v13));
	struct std_list_List_1 v32 = mw_std_list_zaLister_1_donezx(r12);
	struct mirth_mirth_zaMirth* v33;
	struct std_maybe_Maybe_1 v34 = mw_mirth_type_StackTypeBase_ctypezy(r11, v7, &v33);
	struct mirth_type_CTypeStack* v35 = mtw_mirth_type_CTypeStack_CTypeStack(v34, v32);
	*out_zaMirth_3 = v33;
	return v35;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x220, %rsp            # imm = 0x220
movl %esi, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movl -0x10(%rbp), %esi
movq -0x8(%rbp), %rdx
leaq -0x28(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0xafdb0
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
leaq -0x58(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0xc9d0
movb $0x1, -0x69(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x90(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
testb $0x1, -0x9a(%rbp)
je 0x1685b0
movq -0x78(%rbp), %rax
movq %rax, -0xa8(%rbp)
movups -0x88(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movups -0x98(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xd1(%rbp)
movl -0xd0(%rbp), %eax
movl %eax, -0x214(%rbp)
testl %eax, %eax
je 0x1684c6
jmp 0x16838c
movl -0x214(%rbp), %eax
subl $0x1, %eax
jne 0x168536
jmp 0x16839d
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
leaq -0x118(%rbp), %rdx
callq 0x125e0
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x220(%rbp)
movq -0x128(%rbp), %rdi
movq -0x120(%rbp), %rsi
callq 0x73d70
movq -0x220(%rbp), %rdi
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x150(%rbp), %esi
movq -0x148(%rbp), %rdx
leaq -0x130(%rbp), %rcx
callq 0x1687e0
movl %eax, -0x140(%rbp)
movq %rdx, -0x138(%rbp)
movl -0x140(%rbp), %edi
movq -0x138(%rbp), %rsi
callq 0x168a60
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movq -0x170(%rbp), %rdi
movq -0x168(%rbp), %rsi
movl -0xc0(%rbp), %edx
movq -0xb8(%rbp), %rcx
leaq -0x160(%rbp), %r8
callq 0xcc30
movb $0x1, -0x171(%rbp)
movb -0x171(%rbp), %al
andb $0x1, %al
movb %al, -0x101(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x16854f
leaq -0x188(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x189(%rbp)
movb -0x189(%rbp), %al
andb $0x1, %al
movb %al, -0x101(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xe0(%rbp)
jmp 0x16854f
leaq 0x1eb944(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
movb -0x101(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x168334
jmp 0x1685b2
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x198(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1686c5
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1b0(%rbp)
movq %rdx, -0x1a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b0(%rbp), %rax
cmpq $0x0, %rax
je 0x1686c5
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1686c5
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1d0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1686c3
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
callq 0x127c0
jmp 0x1686c5
jmp 0x1686c7
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0xcea0
movl %eax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movq -0x78(%rbp), %rdi
movl -0x48(%rbp), %esi
movq -0x40(%rbp), %rdx
leaq -0x1f8(%rbp), %rcx
callq 0x168aa0
movl %eax, -0x208(%rbp)
movq %rdx, -0x200(%rbp)
movl -0x208(%rbp), %edi
movq -0x200(%rbp), %rsi
movl -0x1f0(%rbp), %edx
movq -0x1e8(%rbp), %rcx
callq 0x168c50
movq %rax, -0x210(%rbp)
movq -0x1f8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x210(%rbp), %rax
addq $0x220, %rsp            # imm = 0x220
popq %rbp
retq
nopl (%rax,%rax)