// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, -0x60(%rbp)
leaq -0x80(%rbp), %rbx
leaq -0x90(%rbp), %r14
movq %rbx, %rcx
movq %r14, %r8
callq 0x35208
movl %eax, -0x4c(%rbp)
movq %rdx, -0x58(%rbp)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd01b
movq %rdx, %r13
movq (%rbx), %r12
movl (%r14), %ecx
movq 0x8(%r14), %rdi
leaq -0x40(%rbp), %r14
cmpl $0x1, %ecx
jne 0x621bc
movl %eax, -0x2c(%rbp)
leaq -0x78(%rbp), %rsi
callq 0xd0aa
movq %rax, %r15
shrq $0x30, %rax
cmpw $0x3, %ax
ja 0x62271
movq %r15, %rdi
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rdi
leaq 0x7d36a(%rip), %rcx     # 0xdf3b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x3e10c
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x622ea
movl %eax, %ebx
movq %rdx, %r14
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x622bc
movl $0x1, (%rax)
movl %ebx, 0x8(%rax)
movq %r14, 0x10(%rax)
movq -0x40(%rbp), %r12
jmp 0x6217d
callq 0x3e1a0
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x622ea
movl %eax, %ebx
movq %rdx, %r14
movq -0x40(%rbp), %r12
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x622b3
movl $0x1, (%rax)
movl %ebx, 0x8(%rax)
movq %r14, 0x10(%rax)
jmp 0x6217d
movq %r13, -0x68(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x3e1e0
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x622ea
movl %eax, %r14d
movq %rdx, %rbx
movq -0x40(%rbp), %r12
movq -0x48(%rbp), %r13
movl $0x1, %edi
movl $0x20, %esi
callq 0x50c0
testq %rax, %rax
je 0x622a1
movl $0x1, (%rax)
movq %r13, 0x18(%rax)
movl %r14d, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq -0x68(%rbp), %r13
jmp 0x6217d
movq %r14, %rsi
callq 0x3e14c
movq %r12, %rdi
movl %eax, %esi
leaq -0x48(%rbp), %rcx
callq 0x622ea
movl %eax, %ebx
movq %rdx, %r14
movq -0x40(%rbp), %r12
movl $0x1, %edi
movl $0x20, %esi
callq 0x50c0
testq %rax, %rax
je 0x622aa
movl $0x1, (%rax)
movq %r12, 0x18(%rax)
movl %ebx, 0x8(%rax)
movq %r14, 0x10(%rax)
movq -0x48(%rbp), %r12
movl -0x2c(%rbp), %edx
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
andq %rcx, %r15
orq %rax, %r15
movq %r15, %rdi
leaq 0xb0837(%rip), %rsi     # 0x1129d1
movq %r13, %rcx
leaq -0x40(%rbp), %r14
movq %r14, %r8
callq 0x949e
movl -0x78(%rbp), %ecx
movq -0x70(%rbp), %rdi
movl -0x40(%rbp), %eax
movq -0x38(%rbp), %r13
jmp 0x62009
testl %ecx, %ecx
jne 0x62271
xorl %ebx, %ebx
xorl %edi, %edi
xorl %esi, %esi
movl %eax, %edx
movq %r13, %rcx
callq 0xd01b
movl %eax, %r13d
movq %rdx, %r14
movl $0x0, %r15d
movl -0x4c(%rbp), %eax
cmpl $0x3, %eax
jb 0x6222e
cmpl $0x3, %eax
je 0x62206
cmpl $0x4, %eax
movq -0x58(%rbp), %rdi
jne 0x62271
decl (%rdi)
jne 0x621ff
callq 0x5030
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x6222e
movq -0x58(%rbp), %rdi
movq 0x8(%rdi), %r15
decl (%rdi)
jne 0x62217
callq 0x5030
leaq 0xaf882(%rip), %rsi     # 0x111aa0
movq %r15, %rdi
callq 0x9353
movq %rdx, %r15
movl $0x1, %ebx
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0x622e1
movl $0x1, (%rax)
movl %r13d, 0x18(%rax)
movq %r14, 0x20(%rax)
movl %ebx, 0x8(%rax)
movq %r15, 0x10(%rax)
movq -0x60(%rbp), %rcx
movq %r12, (%rcx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf5e4
movq $0x20, 0x10(%rax)
movups 0x7e443(%rip), %xmm0    # 0xe06cd
movups %xmm0, 0x18(%rax)
movups 0x7e448(%rip), %xmm0    # 0xe06dd
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x9302
leaq 0x84bb4(%rip), %rsi     # 0xe6e5c
jmp 0x622c3
leaq 0x84b47(%rip), %rsi     # 0xe6df8
jmp 0x622c3
leaq 0x84b70(%rip), %rsi     # 0xe6e2a
jmp 0x622c3
leaq 0x84b03(%rip), %rsi     # 0xe6dc6
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130
leaq 0x84bc6(%rip), %rsi     # 0xe6eae
jmp 0x622c3