// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_StackType_topzenamespaces
static struct std_list_List_1 mw_mirth_type_StackType_topzenamespaces (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 };
	struct std_list_List_1 v6;
	mw_std_list_List_1_buildzx(v5, &v6);
	incref(MK_mirth_type_StackType(in_StackType_2));
	struct mirth_mirth_zaMirth* v7;
	struct std_maybe_Maybe_1 v8 = mw_mirth_type_StackType_topzetyconzy(in_zaMirth_1, in_StackType_2, &v7);
	struct std_list_List_1 branch_zaLister_9;
	switch ((v8).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v10 = mtp_std_maybe_Maybe_1_Some(v8);
			struct mirth_name_Namespace v11 = mtw_mirth_name_Namespace_Tycon(V_mirth_tycon_Tycon(v10));
			struct std_list_List_1 v12;
			mw_std_list_zaLister_1_pushzx(MK_mirth_name_Namespace(v11), v6, &v12);
			branch_zaLister_9 = v12;
		} break;
		case std_maybe_Maybe_1_None: {
			branch_zaLister_9 = v6;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v13;
	struct std_list_List_1 v14 = mw_mirth_type_StackType_topzeresourcezetycons(v7, in_StackType_2, &v13);
	bool v15 = true;
	struct std_list_List_1 r16 = branch_zaLister_9;
	struct std_list_List_1 v17 = v14;
	bool v18 = v15;
	bool v19 = v15;
	while (v19) {
		struct std_list_List_1 r20 = r16;
		struct std_list_List_1 v21 = v17;
		bool v22 = v18;
		struct std_list_List_1 branch_zaLister_23;
		struct std_list_List_1 branch_List_24;
		bool branch_Bool_25;
		switch ((v21).tag) {
			case std_list_List_1_Cons: {
				struct std_list_List_1 v26;
				VAL v27 = mtp_std_list_List_1_Cons(v21, &v26);
				struct mirth_name_Namespace v28 = mtw_mirth_name_Namespace_Tycon(V_mirth_tycon_Tycon(v27));
				struct std_list_List_1 v29;
				mw_std_list_zaLister_1_pushzx(MK_mirth_name_Namespace(v28), r20, &v29);
				bool v30 = true;
				branch_Bool_25 = v30;
				branch_List_24 = v26;
				branch_zaLister_23 = v29;
			} break;
			case std_list_List_1_Nil: {
				struct std_list_List_1 v31 = { .tag=std_list_List_1_Nil };
				bool v32 = false;
				branch_Bool_25 = v32;
				branch_List_24 = v31;
				branch_zaLister_23 = r20;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v19 = branch_Bool_25;
		v18 = branch_Bool_25;
		v17 = branch_List_24;
		r16 = branch_zaLister_23;
	}
	decref(MK_std_list_List_1(v17));
	struct std_list_List_1 v33 = mw_std_list_zaLister_1_donezx(r16);
	*out_zaMirth_3 = v13;
	return v33;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
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
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0xc9d0
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movq -0x58(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xfedc8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x70(%rbp), %rax
cmpq $0x0, %rax
je 0xfedc8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xfedc8
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x6f140
movq %rax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x90(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xfedca
movq -0x28(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x98(%rbp), %rcx
callq 0x1030f0
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movl -0xa8(%rbp), %eax
movl %eax, -0x274(%rbp)
testl %eax, %eax
je 0xfeed3
jmp 0xfee04
movl -0x274(%rbp), %eax
subl $0x1, %eax
jne 0xfeeeb
jmp 0xfee15
movl -0xa8(%rbp), %edi
movq -0xa0(%rbp), %rsi
callq 0x174a0
movq %rax, -0xc8(%rbp)
movq %rdx, -0xc0(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xc0(%rbp), %rsi
callq 0x59cb0
movl %eax, -0xe8(%rbp)
movq %rdx, -0xe0(%rbp)
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x57a90
movl %eax, -0xd8(%rbp)
movq %rdx, -0xd0(%rbp)
movl -0xd8(%rbp), %edi
movq -0xd0(%rbp), %rsi
callq 0x59830
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
movl -0x50(%rbp), %edx
movq -0x48(%rbp), %rcx
leaq -0xf8(%rbp), %r8
callq 0xcc30
movq -0xf8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xb0(%rbp)
jmp 0xfef04
movq -0x50(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0xb0(%rbp)
jmp 0xfef04
leaq 0x254f8f(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x98(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x18(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0x103230
movl %eax, -0x120(%rbp)
movq %rdx, -0x118(%rbp)
movb $0x1, -0x121(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x130(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x140(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x14a(%rbp)
testb $0x1, -0x14a(%rbp)
je 0xff1b4
movups -0x138(%rbp), %xmm0
movaps %xmm0, -0x160(%rbp)
movups -0x148(%rbp), %xmm0
movaps %xmm0, -0x170(%rbp)
movb -0x149(%rbp), %al
andb $0x1, %al
movb %al, -0x171(%rbp)
movl -0x170(%rbp), %eax
movl %eax, -0x278(%rbp)
testl %eax, %eax
je 0xff0e0
jmp 0xfefd3
movl -0x278(%rbp), %eax
subl $0x1, %eax
jne 0xff142
jmp 0xfefe4
movl -0x170(%rbp), %edi
movq -0x168(%rbp), %rsi
leaq -0x1b0(%rbp), %rdx
callq 0x125e0
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1b8(%rbp), %rsi
callq 0x59cb0
movl %eax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movl -0x1e0(%rbp), %edi
movq -0x1d8(%rbp), %rsi
callq 0x57a90
movl %eax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movl -0x1d0(%rbp), %edi
movq -0x1c8(%rbp), %rsi
callq 0x59830
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
movl -0x160(%rbp), %edx
movq -0x158(%rbp), %rcx
leaq -0x1f0(%rbp), %r8
callq 0xcc30
movb $0x1, -0x201(%rbp)
movb -0x201(%rbp), %al
andb $0x1, %al
movb %al, -0x199(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x1e8(%rbp), %rax
movq %rax, -0x180(%rbp)
jmp 0xff15b
leaq -0x218(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x219(%rbp)
movb -0x219(%rbp), %al
andb $0x1, %al
movb %al, -0x199(%rbp)
movq -0x218(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x180(%rbp)
jmp 0xff15b
leaq 0x254d38(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x199(%rbp), %al
andb $0x1, %al
movb %al, -0x14a(%rbp)
movb -0x199(%rbp), %al
andb $0x1, %al
movb %al, -0x149(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x130(%rbp)
jmp 0xfef86
jmp 0xff1b6
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x12780
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x228(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xff2c9
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x12780
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rax
cmpq $0x0, %rax
je 0xff2c9
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x12780
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x250(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xff2c9
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x12780
movq %rax, -0x260(%rbp)
movq %rdx, -0x258(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xff2c7
movl -0x148(%rbp), %edi
movq -0x140(%rbp), %rsi
callq 0x12780
movq %rax, -0x270(%rbp)
movq %rdx, -0x268(%rbp)
movq -0x270(%rbp), %rdi
movq -0x268(%rbp), %rsi
callq 0x127c0
jmp 0xff2c9
jmp 0xff2cb
movl -0x138(%rbp), %edi
movq -0x130(%rbp), %rsi
callq 0xcea0
movl %eax, -0x10(%rbp)
movq %rdx, -0x8(%rbp)
movq -0x110(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
nopw %cs:(%rax,%rax)