// File: /workspace/github_c_makefile_star2_O1/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)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
leaq -0x80(%rbp), %rbx
leaq -0x90(%rbp), %r14
movq %rbx, %rcx
movq %r14, %r8
callq 0x363c1
movl %eax, -0x4c(%rbp)
movq %rdx, -0x58(%rbp)
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movq %rdx, %r15
movq (%rbx), %r12
movl (%r14), %edi
movq 0x8(%r14), %rsi
leaq -0x40(%rbp), %r14
testl %edi, %edi
je 0x63c21
movl %eax, -0x2c(%rbp)
movq %r15, -0x68(%rbp)
cmpl $0x1, %edi
jne 0x63e35
movq %rsi, %rdi
leaq -0x78(%rbp), %rsi
callq 0xd450
movq %rax, %r15
shrq $0x30, %rax
cmpw $0x3, %ax
ja 0x63e35
movq %r15, %rdi
andq %r13, %rdi
leaq 0x7f795(%rip), %rcx     # 0xe3368
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x3f453
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x63eae
movl %eax, %ebx
movq %rdx, %r14
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x63e80
movl $0x1, (%rax)
movl %ebx, 0x8(%rax)
movq %r14, 0x10(%rax)
movq -0x40(%rbp), %r12
jmp 0x63d15
xorl %ecx, %ecx
xorl %esi, %esi
jmp 0x63d52
callq 0x3f4e7
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x63eae
movl %eax, %ebx
movq %rdx, %r14
movq -0x40(%rbp), %r12
movl $0x1, %edi
movl $0x18, %esi
callq 0x50c0
testq %rax, %rax
je 0x63e6e
movl $0x1, (%rax)
movl %ebx, 0x8(%rax)
movq %r14, 0x10(%rax)
jmp 0x63d15
leaq -0x48(%rbp), %rsi
callq 0x3f527
movq %r12, %rdi
movl %eax, %esi
movq %r14, %rcx
callq 0x63eae
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 0x63e65
movl $0x1, (%rax)
movq %r13, 0x18(%rax)
movl %r14d, 0x8(%rax)
movq %rbx, 0x10(%rax)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
jmp 0x63d15
movq %r14, %rsi
callq 0x3f493
movq %r12, %rdi
movl %eax, %esi
leaq -0x48(%rbp), %rcx
callq 0x63eae
movl %eax, %ebx
movq %rdx, %r14
movq -0x40(%rbp), %r12
movl $0x1, %edi
movl $0x20, %esi
callq 0x50c0
testq %rax, %rax
je 0x63e77
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 0xb2c9f(%rip), %rsi     # 0x1169d1
movq -0x68(%rbp), %rcx
leaq -0x40(%rbp), %r14
movq %r14, %r8
callq 0x9741
movl -0x78(%rbp), %edi
movq -0x70(%rbp), %rsi
movl -0x40(%rbp), %eax
movq -0x38(%rbp), %r15
movb $0x1, %cl
testb %cl, %cl
jne 0x63b91
andq %rsi, %r13
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x63d88
decl (%r13)
jne 0x63d88
shlq $0x30, %rdi
orq %rsi, %rdi
leaq 0xb14fa(%rip), %rsi     # 0x115279
movl %eax, %ebx
callq 0xd4e3
movl %ebx, %eax
xorl %ebx, %ebx
xorl %edi, %edi
xorl %esi, %esi
movl %eax, %edx
movq %r15, %rcx
callq 0xd37c
movl %eax, %r13d
movq %rdx, %r14
movl $0x0, %r15d
movl -0x4c(%rbp), %eax
cmpl $0x3, %eax
jb 0x63df2
cmpl $0x3, %eax
je 0x63dca
cmpl $0x4, %eax
movq -0x58(%rbp), %rdi
jne 0x63e35
decl (%rdi)
jne 0x63dc3
callq 0x5030
xorl %ebx, %ebx
xorl %r15d, %r15d
jmp 0x63df2
movq -0x58(%rbp), %rdi
movq 0x8(%rdi), %r15
decl (%rdi)
jne 0x63ddb
callq 0x5030
leaq 0xb1cbe(%rip), %rsi     # 0x115aa0
movq %r15, %rdi
callq 0x95f6
movq %rdx, %r15
movl $0x1, %ebx
movl $0x1, %edi
movl $0x28, %esi
callq 0x50c0
testq %rax, %rax
je 0x63ea5
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 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x808ff(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x80904(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5
leaq 0x87121(%rip), %rsi     # 0xeaf8d
jmp 0x63e87
leaq 0x870e6(%rip), %rsi     # 0xeaf5b
jmp 0x63e87
leaq 0x870ab(%rip), %rsi     # 0xeaf29
jmp 0x63e87
leaq 0x87070(%rip), %rsi     # 0xeaef7
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130
leaq 0x87133(%rip), %rsi     # 0xeafdf
jmp 0x63e87