// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_namespacezeiszeimportedzeatzetokenzy
static bool mw_mirth_elab_namespacezeiszeimportedzeatzetokenzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_name_Namespace in_Namespace_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_Namespace_3).tag) {
		case mirth_name_Namespace_Root: {
			bool v8 = true;
			branch_Bool_7 = v8;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Package: {
			uint64_t v9 = mtp_mirth_name_Namespace_Package(in_Namespace_3);
			bool v10 = true;
			branch_Bool_7 = v10;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		case mirth_name_Namespace_Module: {
			uint64_t v11 = mtp_mirth_name_Namespace_Module(in_Namespace_3);
			struct mirth_mirth_zaMirth* v12;
			bool v13 = mw_mirth_elab_modulezevisiblezefromzetokenzy(in_zaMirth_1, in_Token_2, v11, &v12);
			branch_Bool_7 = v13;
			branch_zaMirth_6 = v12;
		} break;
		case mirth_name_Namespace_Tycon: {
			struct mirth_tycon_Tycon v14 = mtp_mirth_name_Namespace_Tycon(in_Namespace_3);
			struct mirth_mirth_zaMirth* v15;
			struct mirth_name_QName* v16 = mw_mirth_tycon_Tycon_qnamezehard(in_zaMirth_1, v14, &v15);
			struct mirth_name_Namespace v17 = v16->mnamespace;
			incref(MK_mirth_name_Namespace(v17));
			decref(MK_mirth_name_QName(v16));
			struct mirth_mirth_zaMirth* v18;
			bool v19 = mw_mirth_elab_namespacezeiszeimportedzeatzetokenzy(v15, in_Token_2, v17, &v18);
			branch_Bool_7 = v19;
			branch_zaMirth_6 = v18;
		} break;
		case mirth_name_Namespace_Word: {
			uint64_t v20 = mtp_mirth_name_Namespace_Word(in_Namespace_3);
			bool v21 = false;
			branch_Bool_7 = v21;
			branch_zaMirth_6 = in_zaMirth_1;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaMirth_4 = branch_zaMirth_6;
	return branch_Bool_7;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl -0x10(%rbp), %eax
movq %rax, -0x148(%rbp)
subq $0x4, %rax
ja 0x8eb0e
movq -0x148(%rbp), %rax
leaq 0x2c3198(%rip), %rcx    # 0x351988
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, -0x32(%rbp)
movb -0x32(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8eb27
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59cf0
movq %rax, -0x40(%rbp)
movb $0x1, -0x41(%rbp)
movb -0x41(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8eb27
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d40
movq %rax, -0x50(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x58(%rbp), %rcx
callq 0x8eb40
andb $0x1, %al
movb %al, -0x59(%rbp)
movb -0x59(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8eb27
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x59d90
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x18(%rbp), %rdi
movl -0x70(%rbp), %esi
movq -0x68(%rbp), %rdx
leaq -0x78(%rbp), %rcx
callq 0x5b0b0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x90(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x88(%rbp)
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x59830
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8e994
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x59830
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0x8e994
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x59830
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8e994
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x59830
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x8e996
jmp 0x8e998
movq -0x80(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x302e26(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xd8(%rbp)
movq -0xd8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8ea9c
movq -0x80(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x302df4(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xe8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf0(%rbp), %rax
cmpq $0x0, %rax
je 0x8ea9c
movq -0x80(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq 0x302dbc(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0xf8(%rbp)
movq -0x100(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8ea9c
movq -0x80(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x302d8e(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x110(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8ea9a
movq -0x80(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x302d54(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0x127c0
jmp 0x8ea9c
jmp 0x8ea9e
movq -0x78(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x90(%rbp), %edx
movq -0x88(%rbp), %rcx
leaq -0x128(%rbp), %r8
callq 0x8e7b0
andb $0x1, %al
movb %al, -0x129(%rbp)
movb -0x129(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x128(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8eb27
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a3f0
movq %rax, -0x138(%rbp)
movb $0x0, -0x139(%rbp)
movb -0x139(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8eb27
leaq 0x2c536c(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x30(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movb -0x31(%rbp), %al
andb $0x1, %al
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq