// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_MetaVar_rigidifyzx
static struct std_list_List_1 mw_mirth_type_MetaVar_rigidifyzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Ctx_2, uint64_t in_MetaVar_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_Type *out_Type_6) {
	struct mirth_mirth_zaMirth* v7;
	struct std_maybe_Maybe_1 v8 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, in_MetaVar_3, &v7);
	struct std_list_List_1 branch_Ctx_9;
	struct mirth_type_Type branch_Type_10;
	struct mirth_mirth_zaMirth* branch_zaMirth_11;
	switch ((v8).tag) {
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v12;
			struct mirth_type_Type v13 = mw_mirth_type_MetaVar_kind(v7, in_MetaVar_3, &v12);
			struct mirth_type_Type v14 = mw_mirth_type_Kind_zgType(v13);
			struct mirth_mirth_zaMirth* v15;
			uint64_t v16;
			struct std_list_List_1 v17 = mw_mirth_var_Ctx_freshzevarzx(v12, v14, in_Ctx_2, &v15, &v16);
			struct mirth_type_Type v18 = mtw_mirth_type_Type_Var(v16);
			incref(MK_mirth_type_Type(v18));
			struct std_maybe_Maybe_1 v19 = mtw_std_maybe_Maybe_1_Some(MK_mirth_type_Type(v18));
			struct mirth_mirth_zaMirth* v20;
			mw_mirth_type_MetaVar_typezyzx(v15, v19, in_MetaVar_3, &v20);
			branch_zaMirth_11 = v20;
			branch_Type_10 = v18;
			branch_Ctx_9 = v17;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v21 = mtp_std_maybe_Maybe_1_Some(v8);
			struct mirth_mirth_zaMirth* v22;
			struct mirth_type_Type v23;
			struct std_list_List_1 v24 = mw_mirth_type_Type_rigidifyzx(v7, in_Ctx_2, V_mirth_type_Type(v21), &v22, &v23);
			branch_zaMirth_11 = v22;
			branch_Type_10 = v23;
			branch_Ctx_9 = v24;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_Type_6 = branch_Type_10;
	*out_zaMirth_4 = branch_zaMirth_11;
	return branch_Ctx_9;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %r9, %r14
movq %r8, -0x50(%rbp)
movq %rcx, %r15
movq %rdx, %rbx
movl %esi, %r13d
leaq -0x58(%rbp), %rdx
movq %rcx, %rsi
callq 0x2e11b
cmpl $0x1, %eax
movq %r14, -0x78(%rbp)
je 0x6146b
movl %r13d, -0x2c(%rbp)
movq %rbx, -0x40(%rbp)
testl %eax, %eax
jne 0x614e6
movabsq $0xfffffffffffc, %r12   # imm = 0xFFFFFFFFFFFC
movq -0x58(%rbp), %rbx
leaq 0x10b871c(%rip), %rdi   # 0x11198a0
movq %r15, %rsi
callq 0x13ff0
movq %rax, %rdi
callq 0x140f0
movq %rax, %r13
cmpq $0x0, 0x10b8c01(%rip)   # 0x1119da0
jne 0x611c4
movl $0x3, %edi
callq 0xf9f7
movq $0x3, 0x10(%rax)
movw $0x785f, 0x18(%rax)     # imm = 0x785F
movb $0x31, 0x1a(%rax)
movq %rax, 0x10b8bdc(%rip)   # 0x1119da0
movq %r15, -0x70(%rbp)
movq %r13, %rax
shrq $0x30, %rax
movq %rax, -0x60(%rbp)
movq 0x10b8bc6(%rip), %rsi   # 0x1119da0
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x611f0
incl (%rax)
andq %r12, %r13
movq %r13, -0x68(%rbp)
leaq -0x88(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x13236
movq %rax, %r14
movq (%r15), %rbx
movq -0x40(%rbp), %rcx
movq %rcx, %rax
andq %r12, %rax
movq %rax, -0x38(%rbp)
setne %al
testb $0x3, %cl
sete %r13b
andb %al, %r13b
movl $0x3, %r15d
testb %r13b, %r13b
je 0x6123b
movq -0x38(%rbp), %rax
incl (%rax)
movq %rbx, %rdi
movq %r14, %rsi
movl -0x2c(%rbp), %edx
movq -0x40(%rbp), %rcx
leaq -0x48(%rbp), %r8
callq 0x36bc1
testl %eax, %eax
je 0x61377
cmpl $0x1, %eax
jne 0x614e6
movq %rdx, %rdi
callq 0xdaeb
testb $0x1, %dl
je 0x61293
movq %rax, %rcx
andq %r12, %rcx
sete %sil
testb $0x3, %al
setne %dil
orb %sil, %dil
jne 0x61293
decl (%rcx)
jne 0x61293
movq %rax, %rdi
movq %rdx, %rsi
callq 0xd4e3
movl $0x3, %esi
movq %r15, %rdi
callq 0xe8e2
movq %rax, %r15
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x612b6
incl (%rax)
cmpq $0x0, 0x10b8aea(%rip)   # 0x1119da8
jne 0x612d6
xorl %edi, %edi
callq 0xf9f7
movq $0x0, 0x10(%rax)
movq %rax, 0x10b8ad2(%rip)   # 0x1119da8
movq 0x10b8acb(%rip), %rbx   # 0x1119da8
movq %rbx, %rax
andq %r12, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x612f2
incl (%rax)
cmpq $0x0, 0x10b8ab6(%rip)   # 0x1119db0
jne 0x6131b
movl $0x2, %edi
callq 0xf9f7
movq $0x2, 0x10(%rax)
movw $0x785f, 0x18(%rax)     # imm = 0x785F
movq %rax, 0x10b8a95(%rip)   # 0x1119db0
movq 0x10b8a8e(%rip), %rsi   # 0x1119db0
movq %rsi, %rax
andq %r12, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x61338
incl (%rax)
movq %rbx, %rdi
callq 0xe43c
movq %rax, %rbx
movq %r15, %rdi
callq 0x102c9
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe43c
movq -0x48(%rbp), %rdi
movq %rax, %rsi
leaq -0x90(%rbp), %rdx
callq 0x13236
movq %rax, %r14
movq -0x90(%rbp), %rbx
movb $0x1, %al
jmp 0x6137d
movq -0x48(%rbp), %rbx
xorl %eax, %eax
testb %al, %al
jne 0x61230
movq %r15, %rax
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x613ac
decl (%rax)
jne 0x613ac
leaq 0xb4085(%rip), %rsi     # 0x115429
movq %r15, %rdi
callq 0xd4e3
leaq -0x88(%rbp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq -0x60(%rbp), %rdx
movq -0x68(%rbp), %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1f143
movq %rax, %r15
movq -0x88(%rbp), %rax
movq %rax, -0x38(%rbp)
leaq 0xb46bb(%rip), %rcx     # 0x115aa0
movl -0x2c(%rbp), %edi
movq -0x40(%rbp), %rsi
movq %r15, %rdx
callq 0x3f2d0
movl %eax, %ebx
movq %rdx, %r14
movq %r15, %rdi
callq 0x1f7ae
movq %rax, %r15
movabsq $0x5000000000000, %rdi  # imm = 0x5000000000000
orq %rax, %rdi
leaq 0xb46d1(%rip), %rsi     # 0x115ae9
andq %r12, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x6142b
incl (%rax)
callq 0x95f6
movq %rdx, %r13
leaq 0x10b7fee(%rip), %rdi   # 0x1119428
movq -0x70(%rbp), %rsi
callq 0x13ff0
addq $0x4, %r12
orq %r13, %r12
leaq 0xb3e70(%rip), %rsi     # 0x1152c1
movq %r12, %rdi
movq %rax, %rdx
callq 0x14ab5
movl $0x5, %eax
movq -0x50(%rbp), %rsi
movq -0x38(%rbp), %rdi
jmp 0x614c2
movq %rdx, %rdi
callq 0xdaeb
movq -0x58(%rbp), %rdi
movabsq $0xfffffffffffc, %r8    # imm = 0xFFFFFFFFFFFC
andq %rax, %r8
movq %rax, %rcx
shrq $0x30, %rcx
leaq -0x88(%rbp), %r12
movq %r12, (%rsp)
leaq -0x48(%rbp), %r15
movl %r13d, %esi
movq %rbx, %rdx
movq %r15, %r9
callq 0x61516
movl %eax, %ebx
movq %rdx, %r14
movq (%r15), %rdi
movl (%r12), %eax
movl 0x4(%r12), %ecx
movq 0x8(%r12), %r15
movq -0x50(%rbp), %rsi
movq -0x78(%rbp), %rdx
movl %eax, (%rdx)
movl %ecx, 0x4(%rdx)
movq %r15, 0x8(%rdx)
movq %rdi, (%rsi)
movl %ebx, %eax
movq %r14, %rdx
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0xf9f7
movq $0x20, 0x10(%rax)
movups 0x8324e(%rip), %xmm0    # 0xe474d
movups %xmm0, 0x18(%rax)
movups 0x83253(%rip), %xmm0    # 0xe475d
movups %xmm0, 0x28(%rax)
movq %rax, %rdi
callq 0x95a5