// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzeselfzetypezx
static struct mirth_type_Type mw_mirth_elab_zaTypeElab_elabzeselfzetypezx (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 mirth_elab_zaTypeElab* v8;
	struct std_list_List_1 v9;
	struct std_either_Either_2 v10 = mw_mirth_elab_zaTypeElab_elabzeselfzx(in_zaMirth_1, in_zaTypeElab_2, &v7, &v8, &v9);
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_12;
	struct mirth_type_Type branch_Type_13;
	switch ((v10).tag) {
		case std_either_Either_2_Left: {
			VAL v14 = mtp_std_either_Either_2_Left(v10);
			branch_Type_13 = V_mirth_type_Type(v14);
			branch_zaTypeElab_12 = v8;
			branch_zaMirth_11 = v7;
		} break;
		case std_either_Either_2_Right: {
			VAL v15 = mtp_std_either_Either_2_Right(v10);
			uint64_t v16 = v8->mtoken;
			STR* v17;
			STRLIT(v17, "Enclosing type block is a resource type, must use +Self instead of Self.", 72);
			struct mirth_mirth_zaMirth* v18;
			mw_mirth_mirth_zaMirth_emitzeerrorzx(v7, v16, v17, &v18);
			decref(v15);
			struct mirth_type_Type v19 = { .tag=mirth_type_Type_Error };
			branch_Type_13 = v19;
			branch_zaTypeElab_12 = v8;
			branch_zaMirth_11 = v18;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_List_6 = v9;
	*out_zaTypeElab_4 = branch_zaTypeElab_12;
	*out_zaMirth_3 = branch_zaMirth_11;
	return branch_Type_13;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq -0x48(%rbp), %rcx
leaq -0x58(%rbp), %r8
callq 0x1b54e0
movl %eax, -0x68(%rbp)
movq %rdx, -0x60(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x114(%rbp)
testl %eax, %eax
je 0x1b522e
jmp 0x1b521e
movl -0x114(%rbp), %eax
subl $0x1, %eax
je 0x1b528d
jmp 0x1b5488
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x74840
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x6f100
movl %eax, -0x98(%rbp)
movq %rdx, -0x90(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x1b54a1
movl -0x68(%rbp), %edi
movq -0x60(%rbp), %rsi
callq 0x748f0
movq %rax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xb0(%rbp)
cmpq $0x0, 0x11e125a(%rip)   # 0x1396518
jne 0x1b52d8
leaq 0x1a69ba(%rip), %rdi    # 0x35bc81
movl $0x48, %esi
callq 0xb6c0
movq %rax, 0x11e1240(%rip)   # 0x1396518
jmp 0x1b52da
movq 0x11e1237(%rip), %rax   # 0x1396518
movq %rax, -0xc8(%rbp)
leaq 0x1dbe69(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b53af
movq 0x11e1202(%rip), %rax   # 0x1396518
movq %rax, -0xd8(%rbp)
leaq 0x1dbe34(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xd0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xd8(%rbp), %rax
cmpq $0x0, %rax
je 0x1b53af
movq 0x11e11cb(%rip), %rax   # 0x1396518
movq %rax, -0xe8(%rbp)
leaq 0x1dbdfd(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xe0(%rbp)
movq -0xe8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b53af
movq 0x11e119a(%rip), %rax   # 0x1396518
movq %rax, -0xf8(%rbp)
leaq 0x1dbdcc(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xf8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x1b53b1
movq 0x11e1160(%rip), %rax   # 0x1396518
movq %rax, -0xb8(%rbp)
movq -0x40(%rbp), %rdi
movq -0xb0(%rbp), %rsi
movq -0xb8(%rbp), %rdx
leaq -0x100(%rbp), %rcx
callq 0x98c50
movq -0xa0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x1b5448
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x1b5448
movq -0xa8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0x1b5448
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0x1b5446
movq -0xa8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
callq 0x127c0
jmp 0x1b5448
jmp 0x1b544a
leaq -0x110(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x110(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x70(%rbp)
jmp 0x1b54a1
leaq 0x19e9f2(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x38(%rbp), %rax
movups -0x58(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0x78(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0x70(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopw %cs:(%rax,%rax)