// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_tyconzeiszevisiblezeatzetokenzy
static bool mw_mirth_elab_tyconzeiszevisiblezeatzetokenzy (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Token_2, struct mirth_tycon_Tycon in_Tycon_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* branch_zaMirth_6;
	bool branch_Bool_7;
	switch ((in_Tycon_3).tag) {
		case mirth_tycon_Tycon_Data: {
			uint64_t v8 = mtp_mirth_tycon_Tycon_Data(in_Tycon_3);
			struct mirth_mirth_zaMirth* v9;
			struct std_maybe_Maybe_1 v10 = mw_mirth_data_Data_headzy(in_zaMirth_1, v8, &v9);
			struct mirth_mirth_zaMirth* branch_zaMirth_11;
			bool branch_Bool_12;
			switch ((v10).tag) {
				case std_maybe_Maybe_1_Some: {
					VAL v13 = mtp_std_maybe_Maybe_1_Some(v10);
					struct mirth_mirth_zaMirth* v14;
					uint64_t v15 = mw_mirth_token_Token_module(v9, V_mirth_token_Token(v13), &v14);
					struct mirth_mirth_zaMirth* v16;
					bool v17 = mw_mirth_elab_modulezevisiblezefromzetokenzy(v14, in_Token_2, v15, &v16);
					branch_Bool_12 = v17;
					branch_zaMirth_11 = v16;
				} break;
				case std_maybe_Maybe_1_None: {
					bool v18 = true;
					branch_Bool_12 = v18;
					branch_zaMirth_11 = v9;
				} break;
				default: {
					do_panic(str_make("unexpected fallthrough in match\n", 32));
				}
			}
			branch_Bool_7 = branch_Bool_12;
			branch_zaMirth_6 = branch_zaMirth_11;
		} break;
		case mirth_tycon_Tycon_Table: {
			uint64_t v19 = mtp_mirth_tycon_Tycon_Table(in_Tycon_3);
			struct mirth_mirth_zaMirth* v20;
			uint64_t v21 = mw_mirth_table_Table_head(in_zaMirth_1, v19, &v20);
			struct mirth_mirth_zaMirth* v22;
			uint64_t v23 = mw_mirth_token_Token_module(v20, v21, &v22);
			struct mirth_mirth_zaMirth* v24;
			bool v25 = mw_mirth_elab_modulezevisiblezefromzetokenzy(v22, in_Token_2, v23, &v24);
			branch_Bool_7 = v25;
			branch_zaMirth_6 = v24;
		} break;
		case mirth_tycon_Tycon_Prim: {
			enum mirth_type_PrimType v26 = mtp_mirth_tycon_Tycon_Prim(in_Tycon_3);
			bool v27 = true;
			branch_Bool_7 = v27;
			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 $0xe0, %rsp
movl %edx, -0x10(%rbp)
movq %rcx, -0x8(%rbp)
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl -0x10(%rbp), %eax
movl %eax, -0xd8(%rbp)
testl %eax, %eax
je 0x8ebf2
jmp 0x8ebcd
movl -0xd8(%rbp), %eax
subl $0x1, %eax
je 0x8eceb
jmp 0x8ebde
movl -0xd8(%rbp), %eax
subl $0x2, %eax
je 0x8ed7b
jmp 0x8eda9
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a440
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
movq -0x40(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x60390
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0xdc(%rbp)
testl %eax, %eax
je 0x8eca1
jmp 0x8ec29
movl -0xdc(%rbp), %eax
subl $0x1, %eax
jne 0x8ecbd
jmp 0x8ec3a
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0x174a0
movq %rax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x48(%rbp), %rdi
movq -0x78(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0x614c0
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x90(%rbp), %rcx
callq 0x8eb40
andb $0x1, %al
movb %al, -0x91(%rbp)
movb -0x91(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x8ecd6
movb $0x1, -0x92(%rbp)
movb -0x92(%rbp), %al
andb $0x1, %al
movb %al, -0x61(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0x8ecd6
leaq 0x2c51bd(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x61(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8edc2
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a490
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x607a0
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
leaq -0xb8(%rbp), %rdx
callq 0x614c0
movq %rax, -0xc0(%rbp)
movq -0xb8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0xc0(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
callq 0x8eb40
andb $0x1, %al
movb %al, -0xc9(%rbp)
movb -0xc9(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8edc2
movl -0x10(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x5a4e0
movl %eax, -0xd0(%rbp)
movb $0x1, -0xd1(%rbp)
movb -0xd1(%rbp), %al
andb $0x1, %al
movb %al, -0x31(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x8edc2
leaq 0x2c50d1(%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 $0xe0, %rsp
popq %rbp
retq
nopl (%rax,%rax)