// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzetypezeatomzx
static struct mirth_type_Type mw_mirth_elab_zaTypeElab_elabzetypezeatomzx (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) {
	uint64_t v6 = in_zaTypeElab_2->mtoken;
	struct mirth_mirth_zaMirth* v7;
	struct mirth_elab_zaTypeElab* v8;
	struct mirth_type_StackTypePart v9 = mw_mirth_elab_zaTypeElab_elabzestackzetypezepartzx(in_zaMirth_1, in_zaTypeElab_2, &v7, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_11;
	struct mirth_type_Type branch_Type_12;
	switch ((v9).tag) {
		case mirth_type_StackTypePart_Cons: {
			struct mirth_type_Type v13 = mtp_mirth_type_StackTypePart_Cons(v9);
			branch_Type_12 = v13;
			branch_zaTypeElab_11 = v8;
			branch_zaMirth_10 = v7;
		} break;
		case mirth_type_StackTypePart_ConsLabel: {
			uint64_t v14;
			struct mirth_type_Type v15 = mtp_mirth_type_StackTypePart_ConsLabel(v9, &v14);
			decref(MK_mirth_type_Type(v15));
			STR* v16;
			STRLIT(v16, "Expected type, not label.", 25);
			struct mirth_mirth_zaMirth* v17;
			mw_mirth_mirth_zaMirth_emitzeerrorzx(v7, v6, v16, &v17);
			struct mirth_type_Type v18 = { .tag=mirth_type_Type_Error };
			branch_Type_12 = v18;
			branch_zaTypeElab_11 = v8;
			branch_zaMirth_10 = v17;
		} break;
		case mirth_type_StackTypePart_With: {
			struct mirth_type_Type v19 = mtp_mirth_type_StackTypePart_With(v9);
			decref(MK_mirth_type_Type(v19));
			STR* v20;
			STRLIT(v20, "Expected type, not resource.", 28);
			struct mirth_mirth_zaMirth* v21;
			mw_mirth_mirth_zaMirth_emitzeerrorzx(v7, v6, v20, &v21);
			struct mirth_type_Type v22 = { .tag=mirth_type_Type_Error };
			branch_Type_12 = v22;
			branch_zaTypeElab_11 = v8;
			branch_zaMirth_10 = v21;
		} break;
		case mirth_type_StackTypePart_WithLabel: {
			uint64_t v23;
			struct mirth_type_Type v24 = mtp_mirth_type_StackTypePart_WithLabel(v9, &v23);
			decref(MK_mirth_type_Type(v24));
			STR* v25;
			STRLIT(v25, "Expected type, not labelled resource.", 37);
			struct mirth_mirth_zaMirth* v26;
			mw_mirth_mirth_zaMirth_emitzeerrorzx(v7, v6, v25, &v26);
			struct mirth_type_Type v27 = { .tag=mirth_type_Type_Error };
			branch_Type_12 = v27;
			branch_zaTypeElab_11 = v8;
			branch_zaMirth_10 = v26;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaTypeElab_4 = branch_zaTypeElab_11;
	*out_zaMirth_3 = branch_zaMirth_10;
	return branch_Type_12;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2d0, %rsp            # imm = 0x2D0
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x40(%rbp), %rdx
leaq -0x48(%rbp), %rcx
callq 0xcf620
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movl -0x58(%rbp), %eax
movq %rax, -0x2d0(%rbp)
subq $0x3, %rax
ja 0xd3cbd
movq -0x2d0(%rbp), %rax
leaq 0x27e9ff(%rip), %rcx    # 0x351eb4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xcf110
movl %eax, -0x78(%rbp)
movq %rdx, -0x70(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0xd3cd6
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0xcf210
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6e780
movq %rax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x98(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd3626
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6e780
movq %rax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xb0(%rbp), %rax
cmpq $0x0, %rax
je 0xd3626
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6e780
movq %rax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movq -0xc0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd3626
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6e780
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0xd0(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd3624
movl -0x90(%rbp), %edi
movq -0x88(%rbp), %rsi
callq 0x6e780
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x127c0
jmp 0xd3626
jmp 0xd3628
jmp 0xd362a
cmpq $0x0, 0x12c247e(%rip)   # 0x1395ab0
jne 0xd364c
leaq 0x285838(%rip), %rdi    # 0x358e73
movl $0x19, %esi
callq 0xb6c0
movq %rax, 0x12c2464(%rip)   # 0x1395ab0
jmp 0xd364e
movq 0x12c245b(%rip), %rax   # 0x1395ab0
movq %rax, -0xf8(%rbp)
leaq 0x2bdaf5(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd3723
movq 0x12c2426(%rip), %rax   # 0x1395ab0
movq %rax, -0x108(%rbp)
leaq 0x2bdac0(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x100(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x108(%rbp), %rax
cmpq $0x0, %rax
je 0xd3723
movq 0x12c23ef(%rip), %rax   # 0x1395ab0
movq %rax, -0x118(%rbp)
leaq 0x2bda89(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x118(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd3723
movq 0x12c23be(%rip), %rax   # 0x1395ab0
movq %rax, -0x128(%rbp)
leaq 0x2bda58(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x120(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x128(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd3725
movq 0x12c2384(%rip), %rax   # 0x1395ab0
movq %rax, -0xe8(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0xe8(%rbp), %rdx
leaq -0x130(%rbp), %rcx
callq 0x98c50
leaq -0x140(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x140(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x138(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0xd3cd6
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
callq 0xcf330
movl %eax, -0x150(%rbp)
movq %rdx, -0x148(%rbp)
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x160(%rbp)
movq %rdx, -0x158(%rbp)
movq -0x158(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd38bb
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x170(%rbp)
movq %rdx, -0x168(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x170(%rbp), %rax
cmpq $0x0, %rax
je 0xd38bb
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x180(%rbp)
movq %rdx, -0x178(%rbp)
movq -0x180(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd38bb
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x190(%rbp)
movq %rdx, -0x188(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x190(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd38b9
movl -0x150(%rbp), %edi
movq -0x148(%rbp), %rsi
callq 0x6e780
movq %rax, -0x1a0(%rbp)
movq %rdx, -0x198(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x198(%rbp), %rsi
callq 0x127c0
jmp 0xd38bb
jmp 0xd38bd
jmp 0xd38bf
cmpq $0x0, 0x12c21f1(%rip)   # 0x1395ab8
jne 0xd38e1
leaq 0x2855bd(%rip), %rdi    # 0x358e8d
movl $0x1c, %esi
callq 0xb6c0
movq %rax, 0x12c21d7(%rip)   # 0x1395ab8
jmp 0xd38e3
movq 0x12c21ce(%rip), %rax   # 0x1395ab8
movq %rax, -0x1b8(%rbp)
leaq 0x2bd860(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1b0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd39b8
movq 0x12c2199(%rip), %rax   # 0x1395ab8
movq %rax, -0x1c8(%rbp)
leaq 0x2bd82b(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1c0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1c8(%rbp), %rax
cmpq $0x0, %rax
je 0xd39b8
movq 0x12c2162(%rip), %rax   # 0x1395ab8
movq %rax, -0x1d8(%rbp)
leaq 0x2bd7f4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1d0(%rbp)
movq -0x1d8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd39b8
movq 0x12c2131(%rip), %rax   # 0x1395ab8
movq %rax, -0x1e8(%rbp)
leaq 0x2bd7c3(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x1e0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x1e8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd39ba
movq 0x12c20f7(%rip), %rax   # 0x1395ab8
movq %rax, -0x1a8(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x1a8(%rbp), %rdx
leaq -0x1f0(%rbp), %rcx
callq 0x98c50
leaq -0x200(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x200(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0xd3cd6
movl -0x58(%rbp), %edi
movq -0x50(%rbp), %rsi
leaq -0x208(%rbp), %rdx
callq 0xcf430
movl %eax, -0x218(%rbp)
movq %rdx, -0x210(%rbp)
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x6e780
movq %rax, -0x228(%rbp)
movq %rdx, -0x220(%rbp)
movq -0x220(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd3b57
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x6e780
movq %rax, -0x238(%rbp)
movq %rdx, -0x230(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x238(%rbp), %rax
cmpq $0x0, %rax
je 0xd3b57
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x6e780
movq %rax, -0x248(%rbp)
movq %rdx, -0x240(%rbp)
movq -0x248(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd3b57
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x6e780
movq %rax, -0x258(%rbp)
movq %rdx, -0x250(%rbp)
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq -0x258(%rbp), %rcx
movl (%rcx), %eax
addl $-0x1, %eax
movl %eax, (%rcx)
cmpl $0x0, %eax
jne 0xd3b55
movl -0x218(%rbp), %edi
movq -0x210(%rbp), %rsi
callq 0x6e780
movq %rax, -0x268(%rbp)
movq %rdx, -0x260(%rbp)
movq -0x268(%rbp), %rdi
movq -0x260(%rbp), %rsi
callq 0x127c0
jmp 0xd3b57
jmp 0xd3b59
jmp 0xd3b5b
cmpq $0x0, 0x12c1f5d(%rip)   # 0x1395ac0
jne 0xd3b7d
leaq 0x28533e(%rip), %rdi    # 0x358eaa
movl $0x25, %esi
callq 0xb6c0
movq %rax, 0x12c1f43(%rip)   # 0x1395ac0
jmp 0xd3b7f
movq 0x12c1f3a(%rip), %rax   # 0x1395ac0
movq %rax, -0x280(%rbp)
leaq 0x2bd5c4(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x278(%rbp)
movq -0x278(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xd3c54
movq 0x12c1f05(%rip), %rax   # 0x1395ac0
movq %rax, -0x290(%rbp)
leaq 0x2bd58f(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x288(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x290(%rbp), %rax
cmpq $0x0, %rax
je 0xd3c54
movq 0x12c1ece(%rip), %rax   # 0x1395ac0
movq %rax, -0x2a0(%rbp)
leaq 0x2bd558(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x298(%rbp)
movq -0x2a0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xd3c54
movq 0x12c1e9d(%rip), %rax   # 0x1395ac0
movq %rax, -0x2b0(%rbp)
leaq 0x2bd527(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x2a8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x2b0(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xd3c56
movq 0x12c1e63(%rip), %rax   # 0x1395ac0
movq %rax, -0x270(%rbp)
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x270(%rbp), %rdx
leaq -0x2b8(%rbp), %rcx
callq 0x98c50
leaq -0x2c8(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x2c8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x2c0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x2b8(%rbp), %rax
movq %rax, -0x60(%rbp)
jmp 0xd3cd6
leaq 0x2801bd(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x68(%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 $0x2d0, %rsp            # imm = 0x2D0
popq %rbp
retq
nopl (%rax)