// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzeselfzx
static struct std_either_Either_2 mw_mirth_elab_zaTypeElab_elabzeselfzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_elab_zaTypeElab* in_zaTypeElab_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_elab_zaTypeElab* *out_zaTypeElab_4, struct std_list_List_1 *out_List_6) {
	struct mirth_mirth_zaMirth* v7;
	struct std_maybe_Maybe_1 v8 = mw_mirth_mirth_zaMirth_definingzetyconzy(in_zaMirth_1, &v7);
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_9;
	struct std_either_Either_2 branch_Either_10;
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	struct std_list_List_1 branch_List_12;
	switch ((v8).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v13 = mtp_std_maybe_Maybe_1_Some(v8);
			incref(v13);
			struct mirth_mirth_zaMirth* v14;
			struct std_either_Either_2 v15 = mw_mirth_tycon_Tycon_fullzetype(v7, V_mirth_tycon_Tycon(v13), &v14);
			struct mirth_mirth_zaMirth* v16;
			struct std_list_List_1 v17 = mw_mirth_tycon_Tycon_params(v14, V_mirth_tycon_Tycon(v13), &v16);
			branch_List_12 = v17;
			branch_zaMirth_11 = v16;
			branch_Either_10 = v15;
			branch_zaTypeElab_9 = in_zaTypeElab_2;
		} break;
		case std_maybe_Maybe_1_None: {
			uint64_t v18 = in_zaTypeElab_2->mtoken;
			struct mirth_mirth_zaMirth* v19;
			struct std_maybe_Maybe_1 v20 = mw_mirth_token_Token_sigzeresourcezeconzy(v7, v18, &v19);
			int64_t v21 = (v20).tag;
			decref(MK_std_maybe_Maybe_1(v20));
			INT v22 = WRAP_I63(0LL);
			INT v23 = v22;
			INT v24 = i64_to_int(v21);
			bool v25 = int_eq(v24, v23);
			bool v26 = !v25;
			struct mirth_elab_zaTypeElab* branch_zaTypeElab_27;
			struct mirth_mirth_zaMirth* branch_zaMirth_28;
			struct std_either_Either_2 branch_Either_29;
			if (v26) {
				uint64_t v30 = in_zaTypeElab_2->mtoken;
				STR* v31;
				STRLIT(v31, "Not currently inside a type block, +Self is not bound.", 54);
				struct mirth_mirth_zaMirth* v32;
				mw_mirth_mirth_zaMirth_emitzeerrorzx(v19, v30, v31, &v32);
				struct mirth_type_Type v33 = mw_mirth_type_Resource_Error();
				struct std_either_Either_2 v34 = mtw_std_either_Either_2_Right(MK_mirth_type_Type(v33));
				branch_Either_29 = v34;
				branch_zaMirth_28 = v32;
				branch_zaTypeElab_27 = in_zaTypeElab_2;
			} else {
				uint64_t v35 = in_zaTypeElab_2->mtoken;
				STR* v36;
				STRLIT(v36, "Not currently inside a type block, Self is not bound.", 53);
				struct mirth_mirth_zaMirth* v37;
				mw_mirth_mirth_zaMirth_emitzeerrorzx(v19, v35, v36, &v37);
				struct mirth_type_Type v38 = { .tag=mirth_type_Type_Error };
				struct std_either_Either_2 v39 = mtw_std_either_Either_2_Left(MK_mirth_type_Type(v38));
				branch_Either_29 = v39;
				branch_zaMirth_28 = v37;
				branch_zaTypeElab_27 = in_zaTypeElab_2;
			}
			struct std_list_List_1 v40 = { .tag=std_list_List_1_Nil };
			branch_List_12 = v40;
			branch_zaMirth_11 = branch_zaMirth_28;
			branch_Either_10 = branch_Either_29;
			branch_zaTypeElab_9 = branch_zaTypeElab_27;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_List_6 = branch_List_12;
	*out_zaTypeElab_4 = branch_zaTypeElab_9;
	*out_zaMirth_3 = branch_zaMirth_11;
	return branch_Either_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2c0, %rsp            # imm = 0x2C0
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1b5c60
movl %eax, -0x50(%rbp)
movq %rdx, -0x48(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x2ac(%rbp)
testl %eax, %eax
je 0x1b567d
jmp 0x1b5526
movl -0x2ac(%rbp), %eax
subl $0x1, %eax
jne 0x1b5c16
jmp 0x1b5537
movl -0x50(%rbp), %edi
movq -0x48(%rbp), %rsi
callq 0x174a0
movq %rax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x78(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b5590
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
cmpq $0x0, %rax
je 0x1b5590
movq -0x80(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b5590
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x80(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b5592
movq -0x40(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x59cb0
movq -0x2c0(%rbp), %rdi
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movl -0xa8(%rbp), %esi
movq -0xa0(%rbp), %rdx
leaq -0x88(%rbp), %rcx
callq 0xf2180
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x2b8(%rbp)
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0x59cb0
movq -0x2b8(%rbp), %rdi
movl %eax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movl -0xd0(%rbp), %esi
movq -0xc8(%rbp), %rdx
leaq -0xb0(%rbp), %rcx
callq 0x1b5d80
movl %eax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x1b5c2f
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xd8(%rbp)
movq -0x40(%rbp), %rdi
movq -0xd8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xd1550
movl %eax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movl -0xf0(%rbp), %eax
movq %rax, -0xf8(%rbp)
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x108(%rbp)
movq %rdx, -0x100(%rbp)
movq -0x100(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b57d0
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x118(%rbp)
movq %rdx, -0x110(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x118(%rbp), %rax
cmpq $0x0, %rax
je 0x1b57d0
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x128(%rbp)
movq %rdx, -0x120(%rbp)
movq -0x128(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b57d0
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x138(%rbp)
movq %rdx, -0x130(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x138(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1b57ce
movl -0xf0(%rbp), %edi
movq -0xe8(%rbp), %rsi
callq 0x133a0
movq %rax, -0x148(%rbp)
movq %rdx, -0x140(%rbp)
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rsi
callq 0x127c0
jmp 0x1b57d0
jmp 0x1b57d2
movq 0x1b9277(%rip), %rax    # 0x36ea50
movq %rax, -0x150(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0xf8(%rbp), %rdi
callq 0x1a290
movq %rax, -0x160(%rbp)
movq -0x160(%rbp), %rdi
movq -0x158(%rbp), %rsi
callq 0x194b0
andb $0x1, %al
movb %al, -0x161(%rbp)
movb -0x161(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movb %al, -0x162(%rbp)
testb $0x1, -0x162(%rbp)
je 0x1b59fe
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x190(%rbp)
cmpq $0x0, 0x11e0cd0(%rip)   # 0x1396520
jne 0x1b586a
leaq 0x1a6471(%rip), %rdi    # 0x35bcca
movl $0x36, %esi
callq 0xb6c0
movq %rax, 0x11e0cb6(%rip)   # 0x1396520
jmp 0x1b586c
movq 0x11e0cad(%rip), %rax   # 0x1396520
movq %rax, -0x1a8(%rbp)
leaq 0x1db8d7(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b5941
movq 0x11e0c78(%rip), %rax   # 0x1396520
movq %rax, -0x1b8(%rbp)
leaq 0x1db8a2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1b8(%rbp), %rax
cmpq $0x0, %rax
je 0x1b5941
movq 0x11e0c41(%rip), %rax   # 0x1396520
movq %rax, -0x1c8(%rbp)
leaq 0x1db86b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movq -0x1c8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b5941
movq 0x11e0c10(%rip), %rax   # 0x1396520
movq %rax, -0x1d8(%rbp)
leaq 0x1db83a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1d8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b5943
movq 0x11e0bd6(%rip), %rax   # 0x1396520
movq %rax, -0x198(%rbp)
movq -0xe0(%rbp), %rdi
movq -0x190(%rbp), %rsi
movq -0x198(%rbp), %rdx
leaq -0x1e0(%rbp), %rcx
callq 0x98c50
callq 0x1b5ee0
movl %eax, -0x1f0(%rbp)
movq %rdx, -0x1e8(%rbp)
movl -0x1f0(%rbp), %edi
movq -0x1e8(%rbp), %rsi
callq 0x6e780
movq %rax, -0x210(%rbp)
movq %rdx, -0x208(%rbp)
movq -0x210(%rbp), %rdi
movq -0x208(%rbp), %rsi
callq 0x73fe0
movl %eax, -0x200(%rbp)
movq %rdx, -0x1f8(%rbp)
movq -0x200(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x1e0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x170(%rbp)
jmp 0x1b5bbf
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x218(%rbp)
cmpq $0x0, 0x11e0b13(%rip)   # 0x1396528
jne 0x1b5a2f
leaq 0x1a62e3(%rip), %rdi    # 0x35bd01
movl $0x35, %esi
callq 0xb6c0
movq %rax, 0x11e0af9(%rip)   # 0x1396528
jmp 0x1b5a31
movq 0x11e0af0(%rip), %rax   # 0x1396528
movq %rax, -0x230(%rbp)
leaq 0x1db712(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x228(%rbp)
movq -0x228(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b5b06
movq 0x11e0abb(%rip), %rax   # 0x1396528
movq %rax, -0x240(%rbp)
leaq 0x1db6dd(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x238(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x240(%rbp), %rax
cmpq $0x0, %rax
je 0x1b5b06
movq 0x11e0a84(%rip), %rax   # 0x1396528
movq %rax, -0x250(%rbp)
leaq 0x1db6a6(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x248(%rbp)
movq -0x250(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b5b06
movq 0x11e0a53(%rip), %rax   # 0x1396528
movq %rax, -0x260(%rbp)
leaq 0x1db675(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x258(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x260(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b5b08
movq 0x11e0a19(%rip), %rax   # 0x1396528
movq %rax, -0x220(%rbp)
movq -0xe0(%rbp), %rdi
movq -0x218(%rbp), %rsi
movq -0x220(%rbp), %rdx
leaq -0x268(%rbp), %rcx
callq 0x98c50
leaq -0x278(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movl -0x278(%rbp), %edi
movq -0x270(%rbp), %rsi
callq 0x6e780
movq %rax, -0x298(%rbp)
movq %rdx, -0x290(%rbp)
movq -0x298(%rbp), %rdi
movq -0x290(%rbp), %rsi
callq 0x73f50
movl %eax, -0x288(%rbp)
movq %rdx, -0x280(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x280(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x268(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x170(%rbp)
leaq -0x2a8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2a8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x2a0(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x180(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x170(%rbp), %rax
movq %rax, -0x58(%rbp)
jmp 0x1b5c2f
leaq 0x19e264(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rax
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x58(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x60(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x2c0, %rsp            # imm = 0x2C0
popq %rbp
retq