// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_typecheckzeeverythingzx
static void mw_mirth_elab_typecheckzeeverythingzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_mirth_zaMirth* *out_zaMirth_2) {
	uint64_t v3 = 1ULL;
	void* v4 = mbuf_mirth_name_Name_NumBuffer;
	uint64_t v5 = *(uint64_t*)v4;
	bool v6 = (v3 <= v5);
	struct mirth_mirth_zaMirth* r7 = in_zaMirth_1;
	uint64_t v8 = v3;
	bool v9 = v6;
	while (v9) {
		struct mirth_mirth_zaMirth* r10 = r7;
		uint64_t v11 = v8;
		uint64_t v12 = v11;
		struct mirth_mirth_zaMirth* v13;
		struct std_list_List_1 v14 = mw_mirth_name_Name_defs(r10, v12, &v13);
		bool v15 = true;
		struct mirth_mirth_zaMirth* r16 = v13;
		struct std_list_List_1 v17 = v14;
		bool v18 = v15;
		bool v19 = v15;
		while (v19) {
			struct mirth_mirth_zaMirth* r20 = r16;
			struct std_list_List_1 v21 = v17;
			bool v22 = v18;
			struct mirth_mirth_zaMirth* branch_zaMirth_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);
					incref(v27);
					struct mirth_mirth_zaMirth* v28;
					struct mirth_name_QName* v29 = mw_mirth_def_Def_qnamezehard(r20, V_mirth_def_Def(v27), &v28);
					decref(MK_mirth_name_QName(v29));
					struct mirth_mirth_zaMirth* v30;
					mw_mirth_def_Def_typecheckzx(v28, V_mirth_def_Def(v27), &v30);
					bool v31 = true;
					branch_Bool_25 = v31;
					branch_List_24 = v26;
					branch_zaMirth_23 = v30;
				} break;
				case std_list_List_1_Nil: {
					struct std_list_List_1 v32 = { .tag=std_list_List_1_Nil };
					bool v33 = false;
					branch_Bool_25 = v33;
					branch_List_24 = v32;
					branch_zaMirth_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_zaMirth_23;
		}
		decref(MK_std_list_List_1(v17));
		uint64_t v34 = 1ULL;
		uint64_t v35 = (v11 + v34);
		void* v36 = mbuf_mirth_name_Name_NumBuffer;
		uint64_t v37 = *(uint64_t*)v36;
		bool v38 = (v35 <= v37);
		v9 = v38;
		v8 = v35;
		r7 = r16;
	}
	uint64_t v39 = 1ULL;
	void* v40 = mbuf_mirth_arrow_Block_NumBuffer;
	uint64_t v41 = *(uint64_t*)v40;
	bool v42 = (v39 <= v41);
	struct mirth_mirth_zaMirth* r43 = r7;
	uint64_t v44 = v39;
	bool v45 = v42;
	while (v45) {
		struct mirth_mirth_zaMirth* r46 = r43;
		uint64_t v47 = v44;
		uint64_t v48 = v47;
		struct mirth_mirth_zaMirth* v49;
		mw_mirth_arrow_Block_typecheckzx(r46, v48, &v49);
		uint64_t v50 = 1ULL;
		uint64_t v51 = (v47 + v50);
		void* v52 = mbuf_mirth_arrow_Block_NumBuffer;
		uint64_t v53 = *(uint64_t*)v52;
		bool v54 = (v51 <= v53);
		v45 = v54;
		v44 = v51;
		r43 = v49;
	}
	uint64_t v55 = 1ULL;
	void* v56 = mbuf_mirth_external_External_NumBuffer;
	uint64_t v57 = *(uint64_t*)v56;
	bool v58 = (v55 <= v57);
	struct mirth_mirth_zaMirth* r59 = r43;
	uint64_t v60 = v55;
	bool v61 = v58;
	while (v61) {
		struct mirth_mirth_zaMirth* r62 = r59;
		uint64_t v63 = v60;
		uint64_t v64 = v63;
		struct mirth_mirth_zaMirth* v65;
		struct mirth_type_CTypeArrow* v66 = mw_mirth_external_External_ctype(r62, v64, &v65);
		decref(MK_mirth_type_CTypeArrow(v66));
		uint64_t v67 = 1ULL;
		uint64_t v68 = (v63 + v67);
		void* v69 = mbuf_mirth_external_External_NumBuffer;
		uint64_t v70 = *(uint64_t*)v69;
		bool v71 = (v68 <= v70);
		v61 = v71;
		v60 = v68;
		r59 = v65;
	}
	*out_zaMirth_2 = r59;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x390, %rsp            # imm = 0x390
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x1, -0x18(%rbp)
leaq 0x11d4636(%rip), %rax   # 0x1394618
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
cmpq -0x28(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x29(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x40(%rbp)
movb -0x29(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
testb $0x1, -0x41(%rbp)
je 0x1c05a9
movq -0x38(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rdi
movq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x44ed0
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movb $0x1, -0x79(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x90(%rbp)
movb -0x79(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movb -0x79(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
testb $0x1, -0x9a(%rbp)
je 0x1c0417
movq -0x88(%rbp), %rax
movq %rax, -0xa8(%rbp)
movups -0x98(%rbp), %xmm0
movaps %xmm0, -0xc0(%rbp)
movb -0x99(%rbp), %al
andb $0x1, %al
movb %al, -0xc1(%rbp)
movl -0xc0(%rbp), %eax
movl %eax, -0x380(%rbp)
testl %eax, %eax
je 0x1c035f
jmp 0x1c00db
movl -0x380(%rbp), %eax
subl $0x1, %eax
jne 0x1c03b3
jmp 0x1c00ec
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
leaq -0xf8(%rbp), %rdx
callq 0x125e0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x100(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c0164
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0x1c0164
movq -0x108(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c0164
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1c0166
movq -0xa8(%rbp), %rax
movq %rax, -0x388(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x452c0
movq -0x388(%rbp), %rdi
movl %eax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movl -0x128(%rbp), %esi
movq -0x120(%rbp), %rdx
leaq -0x110(%rbp), %rcx
callq 0x89230
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x1d1600(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c02ce
movq -0x118(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x1d15cb(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x140(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
cmpq $0x0, %rax
je 0x1c02ce
movq -0x118(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x1d1590(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x150(%rbp)
movq -0x158(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c02ce
movq -0x118(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq 0x1d155f(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x160(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x168(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1c02cc
movq -0x118(%rbp), %rax
movq %rax, -0x178(%rbp)
leaq 0x1d1522(%rip), %rax    # 0x3917d0
orq $0x1, %rax
movq %rax, -0x170(%rbp)
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rsi
callq 0x127c0
jmp 0x1c02ce
jmp 0x1c02d0
movq -0x110(%rbp), %rax
movq %rax, -0x390(%rbp)
movq -0x108(%rbp), %rdi
movq -0x100(%rbp), %rsi
callq 0x452c0
movq -0x390(%rbp), %rdi
movl %eax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movl -0x190(%rbp), %esi
movq -0x188(%rbp), %rdx
leaq -0x180(%rbp), %rcx
callq 0x1f1c50
movb $0x1, -0x191(%rbp)
movb -0x191(%rbp), %al
andb $0x1, %al
movb %al, -0xe1(%rbp)
movq -0xf8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x1c03cc
leaq -0x1a8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movb $0x0, -0x1a9(%rbp)
movb -0x1a9(%rbp), %al
andb $0x1, %al
movb %al, -0xe1(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x1a0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x1c03cc
leaq 0x193ac7(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x9a(%rbp)
movb -0xe1(%rbp), %al
andb $0x1, %al
movb %al, -0x99(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x1c008e
jmp 0x1c0419
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1c0(%rbp)
movq %rdx, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c052c
movl -0x98(%rbp), %edi
movq -0x90(%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 0x1c052c
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x1e0(%rbp)
movq %rdx, -0x1d8(%rbp)
movq -0x1e0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c052c
movl -0x98(%rbp), %edi
movq -0x90(%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 0x1c052a
movl -0x98(%rbp), %edi
movq -0x90(%rbp), %rsi
callq 0x12780
movq %rax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x200(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
callq 0x127c0
jmp 0x1c052c
jmp 0x1c052e
movq $0x1, -0x208(%rbp)
movq -0x58(%rbp), %rax
addq -0x208(%rbp), %rax
movq %rax, -0x210(%rbp)
leaq 0x11d40c6(%rip), %rax   # 0x1394618
movq %rax, -0x218(%rbp)
movq -0x218(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x220(%rbp)
movq -0x210(%rbp), %rax
cmpq -0x220(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x221(%rbp)
movb -0x221(%rbp), %al
andb $0x1, %al
movb %al, -0x41(%rbp)
movq -0x210(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x1c0019
movq $0x1, -0x230(%rbp)
leaq 0x11d561d(%rip), %rax   # 0x1395bd8
movq %rax, -0x238(%rbp)
movq -0x238(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x240(%rbp)
movq -0x230(%rbp), %rax
cmpq -0x240(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x241(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x250(%rbp)
movq -0x230(%rbp), %rax
movq %rax, -0x258(%rbp)
movb -0x241(%rbp), %al
andb $0x1, %al
movb %al, -0x259(%rbp)
testb $0x1, -0x259(%rbp)
je 0x1c06eb
movq -0x250(%rbp), %rax
movq %rax, -0x268(%rbp)
movq -0x258(%rbp), %rax
movq %rax, -0x270(%rbp)
movq -0x270(%rbp), %rax
movq %rax, -0x278(%rbp)
movq -0x268(%rbp), %rdi
movq -0x278(%rbp), %rsi
leaq -0x280(%rbp), %rdx
callq 0x1f26f0
movq $0x1, -0x288(%rbp)
movq -0x270(%rbp), %rax
addq -0x288(%rbp), %rax
movq %rax, -0x290(%rbp)
leaq 0x11d554d(%rip), %rax   # 0x1395bd8
movq %rax, -0x298(%rbp)
movq -0x298(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2a0(%rbp)
movq -0x290(%rbp), %rax
cmpq -0x2a0(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x2a1(%rbp)
movb -0x2a1(%rbp), %al
andb $0x1, %al
movb %al, -0x259(%rbp)
movq -0x290(%rbp), %rax
movq %rax, -0x258(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x250(%rbp)
jmp 0x1c0613
movq $0x1, -0x2b0(%rbp)
leaq 0x11d589b(%rip), %rax   # 0x1395f98
movq %rax, -0x2b8(%rbp)
movq -0x2b8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x2c0(%rbp)
movq -0x2b0(%rbp), %rax
cmpq -0x2c0(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x2c1(%rbp)
movq -0x250(%rbp), %rax
movq %rax, -0x2d0(%rbp)
movq -0x2b0(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movb -0x2c1(%rbp), %al
andb $0x1, %al
movb %al, -0x2d9(%rbp)
testb $0x1, -0x2d9(%rbp)
je 0x1c094c
movq -0x2d0(%rbp), %rax
movq %rax, -0x2e8(%rbp)
movq -0x2d8(%rbp), %rax
movq %rax, -0x2f0(%rbp)
movq -0x2f0(%rbp), %rax
movq %rax, -0x2f8(%rbp)
movq -0x2e8(%rbp), %rdi
movq -0x2f8(%rbp), %rsi
leaq -0x300(%rbp), %rdx
callq 0x1f2810
movq %rax, -0x308(%rbp)
movq -0x308(%rbp), %rax
movq %rax, -0x318(%rbp)
leaq 0x1d2253(%rip), %rax    # 0x392a18
orq $0x1, %rax
movq %rax, -0x310(%rbp)
movq -0x310(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1c08c3
movq -0x308(%rbp), %rax
movq %rax, -0x328(%rbp)
leaq 0x1d221e(%rip), %rax    # 0x392a18
orq $0x1, %rax
movq %rax, -0x320(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x328(%rbp), %rax
cmpq $0x0, %rax
je 0x1c08c3
movq -0x308(%rbp), %rax
movq %rax, -0x338(%rbp)
leaq 0x1d21e3(%rip), %rax    # 0x392a18
orq $0x1, %rax
movq %rax, -0x330(%rbp)
movq -0x338(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1c08c3
movq -0x308(%rbp), %rax
movq %rax, -0x348(%rbp)
leaq 0x1d21b2(%rip), %rax    # 0x392a18
orq $0x1, %rax
movq %rax, -0x340(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x348(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1c08c1
movq -0x308(%rbp), %rax
movq %rax, -0x358(%rbp)
leaq 0x1d2175(%rip), %rax    # 0x392a18
orq $0x1, %rax
movq %rax, -0x350(%rbp)
movq -0x358(%rbp), %rdi
movq -0x350(%rbp), %rsi
callq 0x127c0
jmp 0x1c08c3
jmp 0x1c08c5
movq $0x1, -0x360(%rbp)
movq -0x2f0(%rbp), %rax
addq -0x360(%rbp), %rax
movq %rax, -0x368(%rbp)
leaq 0x11d56ac(%rip), %rax   # 0x1395f98
movq %rax, -0x370(%rbp)
movq -0x370(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x378(%rbp)
movq -0x368(%rbp), %rax
cmpq -0x378(%rbp), %rax
setbe %al
andb $0x1, %al
movb %al, -0x379(%rbp)
movb -0x379(%rbp), %al
andb $0x1, %al
movb %al, -0x2d9(%rbp)
movq -0x368(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x300(%rbp), %rax
movq %rax, -0x2d0(%rbp)
jmp 0x1c0758
movq -0x2d0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
addq $0x390, %rsp            # imm = 0x390
popq %rbp
retq
nopw %cs:(%rax,%rax)