// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_MetaVar_typezj
static void mw_mirth_type_MetaVar_typezj (struct mirth_mirth_zaMirth* in_zaMirth_1, STR* in_zaStr_2, uint64_t in_MetaVar_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, STR* *out_zaStr_5) {
	struct mirth_mirth_zaMirth* v6;
	struct std_maybe_Maybe_1 v7 = mw_mirth_type_MetaVar_typezy(in_zaMirth_1, in_MetaVar_3, &v6);
	struct mirth_mirth_zaMirth* branch_zaMirth_8;
	STR* branch_zaStr_9;
	switch ((v7).tag) {
		case std_maybe_Maybe_1_None: {
			STR* v10;
			STRLIT(v10, "?", 1);
			STR* v11;
			mw_std_str_zaStr_pushzestrzx(v10, in_zaStr_2, &v11);
			uint64_t v12 = in_MetaVar_3;
			INT v13 = u64_to_int(v12);
			INT v14 = v13;
			INT v15 = v14;
			STR* v16 = int_to_str(v15);
			STR* v17;
			mw_std_str_zaStr_pushzestrzx(v16, v11, &v17);
			branch_zaStr_9 = v17;
			branch_zaMirth_8 = v6;
		} break;
		case std_maybe_Maybe_1_Some: {
			VAL v18 = mtp_std_maybe_Maybe_1_Some(v7);
			struct mirth_mirth_zaMirth* v19;
			STR* v20;
			mw_mirth_type_Type_typezj(v6, in_zaStr_2, V_mirth_type_Type(v18), &v19, &v20);
			branch_zaStr_9 = v20;
			branch_zaMirth_8 = v19;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	*out_zaStr_5 = branch_zaStr_9;
	*out_zaMirth_4 = branch_zaMirth_8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x87130
movl %eax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x104(%rbp)
testl %eax, %eax
je 0xbc7aa
jmp 0xbc796
movl -0x104(%rbp), %eax
subl $0x1, %eax
je 0xbc930
jmp 0xbc9c6
jmp 0xbc7ac
cmpq $0x0, 0x12d916c(%rip)   # 0x1395920
jne 0xbc7ce
leaq 0x29a6bb(%rip), %rdi    # 0x356e78
movl $0x1, %esi
callq 0xb6c0
movq %rax, 0x12d9152(%rip)   # 0x1395920
jmp 0xbc7d0
movq 0x12d9149(%rip), %rax   # 0x1395920
movq %rax, -0x68(%rbp)
leaq 0x2d4976(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xbc890
movq 0x12d911d(%rip), %rax   # 0x1395920
movq %rax, -0x78(%rbp)
leaq 0x2d494a(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x78(%rbp), %rax
cmpq $0x0, %rax
je 0xbc890
movq 0x12d90ef(%rip), %rax   # 0x1395920
movq %rax, -0x88(%rbp)
leaq 0x2d4919(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movq -0x88(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xbc890
movq 0x12d90c1(%rip), %rax   # 0x1395920
movq %rax, -0x98(%rbp)
leaq 0x2d48eb(%rip), %rax    # 0x391158
orq $0x1, %rax
movq %rax, -0x90(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x98(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xbc892
movq 0x12d9087(%rip), %rax   # 0x1395920
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq -0x10(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0xb940
movq -0x18(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x1b520
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rdi
callq 0x211e0
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
movq -0xa0(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0xb940
movq -0xd0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xbc9df
movl -0x40(%rbp), %edi
movq -0x38(%rbp), %rsi
callq 0x174a0
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x118(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x110(%rbp)
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x6f100
movq -0x118(%rbp), %rdi
movq -0x110(%rbp), %rsi
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movl -0x100(%rbp), %edx
movq -0xf8(%rbp), %rcx
leaq -0xe8(%rbp), %r8
leaq -0xf0(%rbp), %r9
callq 0xbb3c0
movq -0xf0(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0xbc9df
leaq 0x2974b4(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x50(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nop