// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_module_Module_visible
static bool mw_mirth_module_Module_visible (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Module_2, uint64_t in_Module_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* v6;
	struct std_list_List_1 v7 = mw_mirth_module_Module_imports(in_zaMirth_1, in_Module_3, &v6);
	struct std_list_List_1 v8 = mw_std_list_List_1_cons(MK_mirth_module_Module(in_Module_3), v7);
	struct std_maybe_Maybe_1 v9 = { .tag=std_maybe_Maybe_1_None };
	bool v10 = true;
	uint64_t v11 = in_Module_2;
	struct std_maybe_Maybe_1 v12 = v9;
	struct std_list_List_1 v13 = v8;
	bool v14 = v10;
	bool v15 = v10;
	while (v15) {
		uint64_t v16 = v11;
		struct std_maybe_Maybe_1 v17 = v12;
		struct std_list_List_1 v18 = v13;
		bool v19 = v14;
		struct std_list_List_1 v20;
		struct std_maybe_Maybe_1 v21 = mw_std_list_List_1_uncons(v18, &v20);
		uint64_t branch_Module_22;
		struct std_maybe_Maybe_1 branch_Maybe_23;
		struct std_list_List_1 branch_List_24;
		bool branch_Bool_25;
		switch ((v21).tag) {
			case std_maybe_Maybe_1_Some: {
				VAL v26 = mtp_std_maybe_Maybe_1_Some(v21);
				incref(v26);
				uint64_t v27 = V_mirth_module_Module(v26);
				uint64_t v28 = v16;
				bool v29 = (v27 == v28);
				uint64_t branch_Module_30;
				struct std_maybe_Maybe_1 branch_Maybe_31;
				if (v29) {
					struct std_maybe_Maybe_1 v32 = mtw_std_maybe_Maybe_1_Some(v26);
					branch_Maybe_31 = v32;
					branch_Module_30 = v16;
				} else {
					decref(v26);
					struct std_maybe_Maybe_1 v33 = { .tag=std_maybe_Maybe_1_None };
					branch_Maybe_31 = v33;
					branch_Module_30 = v16;
				}
				uint64_t branch_Module_34;
				struct std_maybe_Maybe_1 branch_Maybe_35;
				struct std_list_List_1 branch_List_36;
				switch ((branch_Maybe_31).tag) {
					case std_maybe_Maybe_1_None: {
						branch_List_36 = v20;
						branch_Maybe_35 = v17;
						branch_Module_34 = branch_Module_30;
					} break;
					default: {
						decref(MK_std_list_List_1(v20));
						decref(MK_std_maybe_Maybe_1(v17));
						struct std_list_List_1 v37 = { .tag=std_list_List_1_Nil };
						branch_List_36 = v37;
						branch_Maybe_35 = branch_Maybe_31;
						branch_Module_34 = branch_Module_30;
					} break;
				}
				bool v38 = true;
				branch_Bool_25 = v38;
				branch_List_24 = branch_List_36;
				branch_Maybe_23 = branch_Maybe_35;
				branch_Module_22 = branch_Module_34;
			} break;
			case std_maybe_Maybe_1_None: {
				bool v39 = false;
				branch_Bool_25 = v39;
				branch_List_24 = v20;
				branch_Maybe_23 = v17;
				branch_Module_22 = v16;
			} break;
			default: {
				do_panic(str_make("unexpected fallthrough in match\n", 32));
			}
		}
		v15 = branch_Bool_25;
		v14 = branch_Bool_25;
		v13 = branch_List_24;
		v12 = branch_Maybe_23;
		v11 = branch_Module_22;
	}
	decref(MK_std_list_List_1(v13));
	int64_t v40 = (v12).tag;
	decref(MK_std_maybe_Maybe_1(v12));
	INT v41 = WRAP_I63(0LL);
	INT v42 = v41;
	INT v43 = i64_to_int(v40);
	bool v44 = int_eq(v43, v42);
	bool v45 = !v44;
	*out_zaMirth_4 = v6;
	return v45;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x330, %rsp            # imm = 0x330
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x8f7f0
movl %eax, -0x38(%rbp)
movq %rdx, -0x30(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x303206(%rip), %rax    # 0x392088
movq %rax, -0x50(%rbp)
movq -0x58(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x38(%rbp), %edx
movq -0x30(%rbp), %rcx
callq 0x12740
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
leaq -0x68(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x1, -0x69(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x90(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
testb $0x1, -0x9a(%rbp)
je 0x8f549
movq -0x78(%rbp), %rax
movq %rax, -0xa8(%rbp)
movups -0x88(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movups -0x98(%rbp), %xmm0
movaps %xmm0, -0xd0(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xd1(%rbp)
movl -0xd0(%rbp), %edi
movq -0xc8(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x2c490
movl %eax, -0xf8(%rbp)
movq %rdx, -0xf0(%rbp)
movl -0xf8(%rbp), %eax
movl %eax, -0x330(%rbp)
testl %eax, %eax
je 0x8f472
jmp 0x8ef7a
movl -0x330(%rbp), %eax
subl $0x1, %eax
jne 0x8f4cf
jmp 0x8ef8b
movl -0xf8(%rbp), %edi
movq -0xf0(%rbp), %rsi
callq 0x174a0
movq %rax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8effc
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0x8effc
movq -0x138(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8effc
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x8effe
movq -0x138(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x140(%rbp), %rax
cmpq -0x148(%rbp), %rax
sete %al
andb $0x1, %al
movb %al, -0x149(%rbp)
testb $0x1, -0x149(%rbp)
je 0x8f08b
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
callq 0xca10
movl %eax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x158(%rbp)
jmp 0x8f137
jmp 0x8f08d
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8f0f8
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rax
cmpq $0x0, %rax
je 0x8f0f8
movq -0x138(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8f0f8
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8f0f6
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
callq 0x127c0
jmp 0x8f0f8
jmp 0x8f0fa
leaq -0x188(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x188(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x158(%rbp)
movl -0x168(%rbp), %eax
testl %eax, %eax
jne 0x8f18e
jmp 0x8f143
movq -0xe8(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x190(%rbp)
jmp 0x8f415
jmp 0x8f190
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8f2a3
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1d0(%rbp)
movq %rdx, -0x1c8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1d0(%rbp), %rax
cmpq $0x0, %rax
je 0x8f2a3
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8f2a3
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x1f0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8f2a1
movl -0xe8(%rbp), %edi
movq -0xe0(%rbp), %rsi
callq 0x12780
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
callq 0x127c0
jmp 0x8f2a3
jmp 0x8f2a5
jmp 0x8f2a7
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movq -0x208(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8f3ba
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x220(%rbp)
movq %rdx, -0x218(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x220(%rbp), %rax
cmpq $0x0, %rax
je 0x8f3ba
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x230(%rbp)
movq %rdx, -0x228(%rbp)
movq -0x230(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8f3ba
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x240(%rbp)
movq %rdx, -0x238(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8f3b8
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x250(%rbp)
movq %rdx, -0x248(%rbp)
movq -0x250(%rbp), %rdi
movq -0x248(%rbp), %rsi
callq 0x127c0
jmp 0x8f3ba
jmp 0x8f3bc
leaq -0x260(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x260(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0x1a0(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x158(%rbp), %rax
movq %rax, -0x190(%rbp)
movb $0x1, -0x261(%rbp)
movb -0x261(%rbp), %al
andb $0x1, %al
movb %al, -0x121(%rbp)
movq -0x1b0(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0x198(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x8f4e8
movb $0x0, -0x262(%rbp)
movb -0x262(%rbp), %al
andb $0x1, %al
movb %al, -0x121(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x8f4e8
leaq 0x2c49ab(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
movb -0x121(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0x120(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x78(%rbp)
jmp 0x8eefc
jmp 0x8f54b
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x278(%rbp)
movq %rdx, -0x270(%rbp)
movq -0x270(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8f65e
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x288(%rbp), %rax
cmpq $0x0, %rax
je 0x8f65e
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x298(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8f65e
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x2a8(%rbp)
movq %rdx, -0x2a0(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x2a8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8f65c
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x2b8(%rbp)
movq %rdx, -0x2b0(%rbp)
movq -0x2b8(%rbp), %rdi
movq -0x2b0(%rbp), %rsi
callq 0x127c0
jmp 0x8f65e
jmp 0x8f660
movl -0x88(%rbp), %eax
movq %rax, -0x2c0(%rbp)
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2d0(%rbp)
movq %rdx, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x8f771
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2e0(%rbp)
movq %rdx, -0x2d8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2e0(%rbp), %rax
cmpq $0x0, %rax
je 0x8f771
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x133a0
movq %rax, -0x2f0(%rbp)
movq %rdx, -0x2e8(%rbp)
movq -0x2f0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x8f771
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x133a0
movq %rax, -0x300(%rbp)
movq %rdx, -0x2f8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x300(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x8f76f
movl -0x88(%rbp), %edi
movq -0x80(%rbp), %rsi
callq 0x133a0
movq %rax, -0x310(%rbp)
movq %rdx, -0x308(%rbp)
movq -0x310(%rbp), %rdi
movq -0x308(%rbp), %rsi
callq 0x127c0
jmp 0x8f771
jmp 0x8f773
movq 0x2df2d6(%rip), %rax    # 0x36ea50
movq %rax, -0x318(%rbp)
movq -0x318(%rbp), %rax
movq %rax, -0x320(%rbp)
movq -0x2c0(%rbp), %rdi
callq 0x1a290
movq %rax, -0x328(%rbp)
movq -0x328(%rbp), %rdi
movq -0x320(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0x329(%rbp)
movb -0x329(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x32a(%rbp)
movq -0x28(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movb -0x32a(%rbp), %al
andb $0x1, %al
addq $0x330, %rsp            # imm = 0x330
popq %rbp
retq
nopl (%rax)