// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x50(%rbp)
movq %rdx, %r13
movl %esi, -0x2c(%rbp)
movq %rdi, %rbx
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
xorl %edi, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xd37c
movl %eax, %r15d
movq %rdx, %r14
movq %r13, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x4ff43
incl (%rax)
leaq -0x40(%rbp), %rcx
movq %rbx, %rdi
movl -0x2c(%rbp), %esi
movq %r13, %rdx
callq 0x50fad
cmpl $0x1, %eax
jne 0x4ff84
movq %rdx, %rdi
callq 0xdaeb
movq -0x40(%rbp), %rdi
movq %rax, %rsi
shrq $0x30, %rsi
andq %r12, %rax
leaq -0x60(%rbp), %rbx
movq %rax, %rdx
movq %rbx, %rcx
callq 0x2dc76
movq (%rbx), %rdi
jmp 0x4ff8c
xorl %eax, %eax
movq -0x40(%rbp), %rdi
xorl %edx, %edx
testl %eax, %eax
je 0x4ffeb
movq %rdi, -0x48(%rbp)
cmpl $0x1, %eax
jne 0x500c2
movq %rdx, %rdi
callq 0xdaeb
movq %rax, %rdi
shrq $0x30, %rdi
andq %r12, %rax
movq %rax, %rsi
callq 0x196e2
movabsq $0x3000000000000, %rcx  # imm = 0x3000000000000
orq %rcx, %rax
leaq 0xc596e(%rip), %rsi     # 0x115939
leaq -0x40(%rbp), %rbx
movq %rax, %rdi
movl %r15d, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x9741
movl (%rbx), %r15d
movq 0x8(%rbx), %r14
movq -0x48(%rbp), %rdi
leaq -0x68(%rbp), %rcx
movl -0x2c(%rbp), %esi
movq %r13, %rdx
callq 0x50dde
movq %rdx, %rdi
leaq -0x40(%rbp), %r13
leaq -0x60(%rbp), %rbx
testl %eax, %eax
je 0x50064
cmpl $0x1, %eax
jne 0x500c2
movq %r13, %rsi
callq 0xd450
movq %rax, %rdi
shrq $0x30, %rdi
andq %r12, %rax
movq %rax, %rsi
callq 0x196e2
movabsq $0x3000000000000, %rcx  # imm = 0x3000000000000
orq %rcx, %rax
movq %rax, %rdi
leaq 0xc58f6(%rip), %rsi     # 0x115939
movl %r15d, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x9741
movl -0x40(%rbp), %eax
movq -0x38(%rbp), %rdi
movl -0x60(%rbp), %r15d
movq -0x58(%rbp), %r14
movb $0x1, %cl
jmp 0x50068
xorl %ecx, %ecx
xorl %edi, %edi
testb %cl, %cl
jne 0x50005
andq %rdi, %r12
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x50099
decl (%r12)
jne 0x50099
shlq $0x30, %rax
orq %rdi, %rax
leaq 0xc51e8(%rip), %rsi     # 0x115279
movq %rax, %rdi
callq 0xd4e3
xorl %edi, %edi
xorl %esi, %esi
movl %r15d, %edx
movq %r14, %rcx
callq 0xd37c
movq -0x68(%rbp), %rcx
movq -0x50(%rbp), %rsi
movq %rcx, (%rsi)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x94672(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x94677(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5