// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_initialzectxzetypezebodyzehome
static struct std_list_List_1 mw_mirth_elab_initialzectxzetypezebodyzehome (struct mirth_mirth_zaMirth* in_zaMirth_1, uint64_t in_Word_2, struct mirth_mirth_zaMirth* *out_zaMirth_3, struct mirth_type_ArrowType* *out_ArrowType_5, uint64_t *out_Token_6, struct mirth_arrow_Home *out_Home_7, uint64_t *out_Word_8) {
	void* v9 = field_mut(&mfld_mirth_word_Word_ztctxzetype, in_Word_2);
	struct mirth_mirth_zaMirth* v10;
	struct std_maybe_Maybe_1 v11 = mw_mirth_mirth_Prop_1_tryzeforcezx(in_zaMirth_1, v9, &v10);
	uint64_t branch_Word_12;
	struct mirth_mirth_zaMirth* branch_zaMirth_13;
	struct std_list_List_1 branch_Ctx_14;
	struct mirth_type_ArrowType* branch_ArrowType_15;
	switch ((v11).tag) {
		case std_maybe_Maybe_1_Some: {
			VAL v16 = mtp_std_maybe_Maybe_1_Some(v11);
			VAL v17 = ((TUP*)PTRPTR(value_tup(v16)))->cells[0];
			VAL v18 = ((TUP*)PTRPTR(value_tup(v16)))->cells[1];
			tup_decref_outer(value_tup(v16));
			branch_ArrowType_15 = V_mirth_type_ArrowType(v18);
			branch_Ctx_14 = V_std_list_List_1(v17);
			branch_zaMirth_13 = v10;
			branch_Word_12 = in_Word_2;
		} break;
		case std_maybe_Maybe_1_None: {
			struct mirth_mirth_zaMirth* v19;
			uint64_t v20;
			struct mirth_type_ArrowType* v21;
			struct std_list_List_1 v22 = mw_mirth_elab_guesszeinitialzectxzetype(v10, in_Word_2, &v19, &v20, &v21);
			branch_ArrowType_15 = v21;
			branch_Ctx_14 = v22;
			branch_zaMirth_13 = v19;
			branch_Word_12 = v20;
		} break;
		default: {
			do_panic(str_make("unexpected fallthrough in match\n", 32));
		}
	}
	struct mirth_mirth_zaMirth* v23;
	uint64_t v24 = mw_mirth_word_Word_body(branch_zaMirth_13, branch_Word_12, &v23);
	struct mirth_arrow_Home v25 = mtw_mirth_arrow_Home_Word(branch_Word_12);
	*out_Word_8 = branch_Word_12;
	*out_Home_7 = v25;
	*out_Token_6 = v24;
	*out_ArrowType_5 = branch_ArrowType_15;
	*out_zaMirth_3 = v23;
	return branch_Ctx_14;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq 0x10(%rbp), %rax
movq %rdi, -0x18(%rbp)
movq %rsi, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x20(%rbp), %rsi
leaq 0x12b5a8e(%rip), %rdi   # 0x13957f0
callq 0x40d30
movq %rax, -0x48(%rbp)
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0x50(%rbp), %rdx
callq 0x472c0
movl %eax, -0x60(%rbp)
movq %rdx, -0x58(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x104(%rbp)
testl %eax, %eax
je 0xdfe92
jmp 0xdfd96
movl -0x104(%rbp), %eax
subl $0x1, %eax
jne 0xdfefa
jmp 0xdfda7
movl -0x60(%rbp), %edi
movq -0x58(%rbp), %rsi
callq 0x174a0
movq %rax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xb770
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq 0x8(%rax), %rcx
movq %rcx, -0x98(%rbp)
movq 0x10(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xb770
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
movq 0x18(%rax), %rcx
movq %rcx, -0xa8(%rbp)
movq 0x20(%rax), %rax
movq %rax, -0xa0(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0xb770
movq %rax, %rdi
callq 0xb7e0
movq -0xa8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
callq 0x12c80
movl %eax, -0xb8(%rbp)
movq %rdx, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0xdff13
movq -0x50(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0xc0(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
leaq -0xd0(%rbp), %r8
callq 0xf0620
movl %eax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
jmp 0xdff13
leaq 0x273f80(%rip), %rdi    # 0x353e81
movl $0x20, %esi
callq 0xb6c0
movq %rax, %rdi
callq 0xc620
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0xf1a00
movq %rax, -0xf0(%rbp)
movq -0x68(%rbp), %rdi
callq 0xf1a50
movl %eax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movq -0x68(%rbp), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x40(%rbp), %rax
movups -0x100(%rbp), %xmm0
movups %xmm0, (%rax)
movq -0xf0(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x78(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, (%rax)
movq -0xe8(%rbp), %rcx
movq -0x28(%rbp), %rax
movq %rcx, (%rax)
movl -0x10(%rbp), %eax
movq -0x8(%rbp), %rdx
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nopw %cs:(%rax,%rax)