// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_Type_zgStackType
static struct mirth_type_StackType mw_mirth_type_Type_zgStackType (struct mirth_type_Type in_Type_1) {
	struct mirth_type_StackType branch_StackType_3;
	switch ((in_Type_1).tag) {
		case mirth_type_Type_Error: {
			struct mirth_type_StackType v4 = { .tag=mirth_type_StackType_Error };
			branch_StackType_3 = v4;
		} break;
		case mirth_type_Type_Ignore: {
			struct mirth_type_StackType v5 = { .tag=mirth_type_StackType_Ignore };
			branch_StackType_3 = v5;
		} break;
		case mirth_type_Type_Var: {
			uint64_t v6 = mtp_mirth_type_Type_Var(in_Type_1);
			struct mirth_type_StackType v7 = mtw_mirth_type_StackType_Var(v6);
			branch_StackType_3 = v7;
		} break;
		case mirth_type_Type_Meta: {
			uint64_t v8 = mtp_mirth_type_Type_Meta(in_Type_1);
			struct mirth_type_StackType v9 = mtw_mirth_type_StackType_Meta(v8);
			branch_StackType_3 = v9;
		} break;
		case mirth_type_Type_Stack: {
			struct mirth_type_StackType v10 = mtp_mirth_type_Type_Stack(in_Type_1);
			branch_StackType_3 = v10;
		} break;
		default: {
			STR* v11;
			STRLIT(v11, "kind error! expected stack type, got regular type.", 50);
			do_panic(v11);
		} break;
	}
	return branch_StackType_3;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movl %edi, -0x20(%rbp)
movq %rsi, -0x18(%rbp)
movl -0x20(%rbp), %eax
movq %rax, -0xd0(%rbp)
subq $0x9, %rax
ja 0xba3ef
movq -0xd0(%rbp), %rax
leaq 0x297998(%rip), %rcx    # 0x351c9c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq -0x30(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x5080
movq -0x30(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba506
movq 0x2b483f(%rip), %rax    # 0x36eb78
movq %rax, -0x40(%rbp)
movq 0x2b483c(%rip), %rax    # 0x36eb80
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba506
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x87440
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
callq 0xb1e30
movl %eax, -0x58(%rbp)
movq %rdx, -0x50(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba506
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x870e0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
callq 0xbad60
movl %eax, -0x70(%rbp)
movq %rdx, -0x68(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba506
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x87730
movl %eax, -0x80(%rbp)
movq %rdx, -0x78(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xba506
jmp 0xba3f1
cmpq $0x0, 0x12db4bf(%rip)   # 0x13958b8
jne 0xba413
leaq 0x29e2ec(%rip), %rdi    # 0x3586ee
movl $0x32, %esi
callq 0xb6c0
movq %rax, 0x12db4a5(%rip)   # 0x13958b8
jmp 0xba415
movq 0x12db49c(%rip), %rax   # 0x13958b8
movq %rax, -0x98(%rbp)
leaq 0x2d6d2e(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xba4ea
movq 0x12db467(%rip), %rax   # 0x13958b8
movq %rax, -0xa8(%rbp)
leaq 0x2d6cf9(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xa0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0xba4ea
movq 0x12db430(%rip), %rax   # 0x13958b8
movq %rax, -0xb8(%rbp)
leaq 0x2d6cc2(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xba4ea
movq 0x12db3ff(%rip), %rax   # 0x13958b8
movq %rax, -0xc8(%rbp)
leaq 0x2d6c91(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0xc0(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xc8(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xba4ec
movq 0x12db3c5(%rip), %rax   # 0x13958b8
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xc620
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0xd0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)