// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_topzeresourcezetycons
static struct std_list_List_1 mw_mirth_type_StackType_topzeresourcezetycons (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_type_StackType in_StackType_2, struct mirth_mirth_zaMirth* *out_zaMirth_3) {
	struct std_list_List_1 v5 = { .tag=std_list_List_1_Nil };
	bool v6 = true;
	struct std_list_List_1 v7 = v5;
	struct mirth_mirth_zaMirth* r8 = in_zaMirth_1;
	struct mirth_type_StackType v9 = in_StackType_2;
	bool v10 = v6;
	bool v11 = v6;
	while (v11) {
		struct std_list_List_1 v12 = v7;
		struct mirth_mirth_zaMirth* r13 = r8;
		struct mirth_type_StackType v14 = v9;
		bool v15 = v10;
		struct mirth_mirth_zaMirth* v16;
		struct mirth_type_StackType v17 = mw_mirth_type_StackType_expand(r13, v14, &v16);
		struct mirth_type_StackType branch_StackType_18;
		struct mirth_mirth_zaMirth* branch_zaMirth_19;
		struct std_list_List_1 branch_List_20;
		bool branch_Bool_21;
		switch ((v17).tag) {
			case mirth_type_StackType_With: {
				struct mirth_type_Type v22;
				struct mirth_type_StackType v23 = mtp_mirth_type_StackType_With(v17, &v22);
				struct mirth_type_Type v24 = mw_mirth_type_Resource_zgType(v22);
				struct mirth_mirth_zaMirth* v25;
				struct std_maybe_Maybe_1 v26 = mw_mirth_type_Type_tyconzy(v16, v24, &v25);
				struct std_list_List_1 branch_List_27;
				bool branch_Bool_28;
				switch ((v26).tag) {
					case std_maybe_Maybe_1_Some: {
						VAL v29 = mtp_std_maybe_Maybe_1_Some(v26);
						struct std_list_List_1 v30 = mw_std_list_List_1_cons(v29, v12);
						bool v31 = true;
						branch_Bool_28 = v31;
						branch_List_27 = v30;
					} break;
					case std_maybe_Maybe_1_None: {
						bool v32 = false;
						branch_Bool_28 = v32;
						branch_List_27 = v12;
					} break;
					default: {
						do_panic(str_make("unexpected fallthrough in match\n", 32));
					}
				}
				branch_Bool_21 = branch_Bool_28;
				branch_List_20 = branch_List_27;
				branch_zaMirth_19 = v25;
				branch_StackType_18 = v23;
			} break;
			case mirth_type_StackType_Cons: {
				struct mirth_type_Type v33;
				struct mirth_type_StackType v34 = mtp_mirth_type_StackType_Cons(v17, &v33);
				decref(MK_mirth_type_Type(v33));
				bool v35 = true;
				branch_Bool_21 = v35;
				branch_List_20 = v12;
				branch_zaMirth_19 = v16;
				branch_StackType_18 = v34;
			} break;
			case mirth_type_StackType_WithLabel: {
				struct mirth_type_Type v36;
				uint64_t v37;
				struct mirth_type_StackType v38 = mtp_mirth_type_StackType_WithLabel(v17, &v36, &v37);
				decref(MK_mirth_type_Type(v36));
				bool v39 = true;
				branch_Bool_21 = v39;
				branch_List_20 = v12;
				branch_zaMirth_19 = v16;
				branch_StackType_18 = v38;
			} break;
			case mirth_type_StackType_ConsLabel: {
				struct mirth_type_Type v40;
				uint64_t v41;
				struct mirth_type_StackType v42 = mtp_mirth_type_StackType_ConsLabel(v17, &v40, &v41);
				decref(MK_mirth_type_Type(v40));
				bool v43 = true;
				branch_Bool_21 = v43;
				branch_List_20 = v12;
				branch_zaMirth_19 = v16;
				branch_StackType_18 = v42;
			} break;
			default: {
				bool v44 = false;
				branch_Bool_21 = v44;
				branch_List_20 = v12;
				branch_zaMirth_19 = v16;
				branch_StackType_18 = v17;
			} break;
		}
		v11 = branch_Bool_21;
		v10 = branch_Bool_21;
		v9 = branch_StackType_18;
		r8 = branch_zaMirth_19;
		v7 = branch_List_20;
	}
	decref(MK_mirth_type_StackType(v9));
	*out_zaMirth_3 = r8;
	return v7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movl %esi, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
movq %rdi, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x41(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x62(%rbp)
testb $0x1, -0x62(%rbp)
je 0x103a4b
movups -0x10(%rbp), %xmm0
movaps %xmm0, -0x80(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movups -0x60(%rbp), %xmm0
movaps %xmm0, -0xa0(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movb %al, -0xa1(%rbp)
movq -0x88(%rbp), %rdi
movl -0xa0(%rbp), %esi
movq -0x98(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0xba1d0
movl %eax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movl -0xc0(%rbp), %eax
addl $-0x5, %eax
movl %eax, %ecx
movq %rcx, -0x348(%rbp)
subl $0x3, %eax
ja 0x1039a4
movq -0x348(%rbp), %rax
leaq 0x24ed25(%rip), %rcx    # 0x352044
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0x100(%rbp), %rdx
callq 0xba740
movl %eax, -0x110(%rbp)
movq %rdx, -0x108(%rbp)
movl -0x100(%rbp), %edi
movq -0xf8(%rbp), %rsi
callq 0xbadf0
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movq -0xb0(%rbp), %rdi
movl -0x120(%rbp), %esi
movq -0x118(%rbp), %rdx
leaq -0x128(%rbp), %rcx
callq 0x862e0
movl %eax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movl -0x138(%rbp), %eax
movl %eax, -0x34c(%rbp)
testl %eax, %eax
je 0x10343b
jmp 0x1033b0
movl -0x34c(%rbp), %eax
subl $0x1, %eax
jne 0x103468
jmp 0x1033c1
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0x174a0
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
movl -0x80(%rbp), %edx
movq -0x78(%rbp), %rcx
callq 0x12740
movl %eax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movb $0x1, -0x171(%rbp)
movb -0x171(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x103481
movb $0x0, -0x172(%rbp)
movb -0x172(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x103481
leaq 0x250a12(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x149(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movq -0x148(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x140(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x1039f9
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0x188(%rbp), %rdx
callq 0xba570
movl %eax, -0x198(%rbp)
movq %rdx, -0x190(%rbp)
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1a8(%rbp)
movq %rdx, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x103613
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1b8(%rbp)
movq %rdx, -0x1b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b8(%rbp), %rax
cmpq $0x0, %rax
je 0x103613
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1c8(%rbp)
movq %rdx, -0x1c0(%rbp)
movq -0x1c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x103613
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1d8(%rbp)
movq %rdx, -0x1d0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1d8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x103611
movl -0x188(%rbp), %edi
movq -0x180(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1e8(%rbp)
movq %rdx, -0x1e0(%rbp)
movq -0x1e8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
callq 0x127c0
jmp 0x103613
jmp 0x103615
movb $0x1, -0x1e9(%rbp)
movb -0x1e9(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x1039f9
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0x200(%rbp), %rdx
leaq -0x208(%rbp), %rcx
callq 0xbab70
movl %eax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movl -0x200(%rbp), %edi
movq -0x1f8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x220(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1037af
movl -0x200(%rbp), %edi
movq -0x1f8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x238(%rbp), %rax
cmpq $0x0, %rax
je 0x1037af
movl -0x200(%rbp), %edi
movq -0x1f8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1037af
movl -0x200(%rbp), %edi
movq -0x1f8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x258(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1037ad
movl -0x200(%rbp), %edi
movq -0x1f8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x127c0
jmp 0x1037af
jmp 0x1037b1
movb $0x1, -0x269(%rbp)
movb -0x269(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x1039f9
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0x280(%rbp), %rdx
leaq -0x288(%rbp), %rcx
callq 0xba980
movl %eax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movq -0x2a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x10394b
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b8(%rbp), %rax
cmpq $0x0, %rax
je 0x10394b
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2c8(%rbp)
movq %rdx, -0x2c0(%rbp)
movq -0x2c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x10394b
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2d8(%rbp)
movq %rdx, -0x2d0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2d8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x103949
movl -0x280(%rbp), %edi
movq -0x278(%rbp), %rsi
callq 0x6e780
movq %rax, -0x2e8(%rbp)
movq %rdx, -0x2e0(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2e0(%rbp), %rsi
callq 0x127c0
jmp 0x10394b
jmp 0x10394d
movb $0x1, -0x2e9(%rbp)
movb -0x2e9(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x298(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x1039f9
movb $0x0, -0x2ea(%rbp)
movb -0x2ea(%rbp), %al
andb $0x1, %al
movb %al, -0xe9(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movb -0xe9(%rbp), %al
andb $0x1, %al
movb %al, -0x62(%rbp)
movb -0xe9(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x103296
jmp 0x103a4d
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6f140
movq %rax, -0x300(%rbp)
movq %rdx, -0x2f8(%rbp)
movq -0x2f8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x103b42
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6f140
movq %rax, -0x310(%rbp)
movq %rdx, -0x308(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x310(%rbp), %rax
cmpq $0x0, %rax
je 0x103b42
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6f140
movq %rax, -0x320(%rbp)
movq %rdx, -0x318(%rbp)
movq -0x320(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x103b42
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6f140
movq %rax, -0x330(%rbp)
movq %rdx, -0x328(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x330(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x103b40
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x6f140
movq %rax, -0x340(%rbp)
movq %rdx, -0x338(%rbp)
movq -0x340(%rbp), %rdi
movq -0x338(%rbp), %rsi
callq 0x127c0
jmp 0x103b42
jmp 0x103b44
movq -0x50(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq
nop