// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %r9, -0x88(%rbp)
movq %r8, -0x90(%rbp)
movq %rcx, -0x98(%rbp)
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x10cdb10(%rip), %rdi   # 0x110c6b0
callq 0x12f88
leaq -0x78(%rbp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1483b
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
testl %eax, %eax
movq %r14, -0xa0(%rbp)
movq %r12, -0x58(%rbp)
je 0x3ec32
cmpl $0x1, %eax
jne 0x3f1f2
movq %rdx, %rdi
callq 0xd491
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
callq 0x8a95
movq %r15, %r14
andq %r13, %r14
movq 0x8(%r14), %rbx
movq %r15, %rdi
movq %r12, %rsi
callq 0x8a95
movq 0x18(%r14), %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0x8a95
movq %r15, %rdi
callq 0x8ae0
movq %rbx, %r15
shrq $0x30, %r15
andq %r13, %rbx
movq -0x78(%rbp), %rdi
movq -0x58(%rbp), %r13
jmp 0x3f15d
movq -0x78(%rbp), %rdi
leaq -0xb0(%rbp), %rbx
movq %rbx, %rsi
callq 0x3a29b
movq %rax, -0x30(%rbp)
movq (%rbx), %rdi
leaq -0xa8(%rbp), %rbx
movq %rbx, %rsi
callq 0x3a29b
movq %rax, -0x48(%rbp)
movq (%rbx), %rdi
leaq -0x60(%rbp), %rdx
movq %r12, %rsi
callq 0x455b7
cmpl $0x2, %eax
je 0x3ecfd
cmpl $0x3, %eax
jne 0x3ed7e
movq %rdx, %rdi
callq 0x17b4b
movq -0x60(%rbp), %rdi
leaq -0x38(%rbp), %rcx
movl %eax, %esi
callq 0x456dc
cmpl $0x1, %eax
movl %eax, -0x4c(%rbp)
je 0x3edbb
testl %eax, %eax
jne 0x3f1f2
movq %rdx, %rdi
callq 0x1e79d
movq -0x38(%rbp), %rdi
movq %rax, %rcx
shrq $0x30, %rcx
andq %r13, %rax
leaq -0x70(%rbp), %rbx
movq %rbx, (%rsp)
leaq -0x80(%rbp), %r12
xorl %esi, %esi
xorl %edx, %edx
movq %rax, %r8
movq %r12, %r9
callq 0x457da
movl %eax, %r14d
movq %rdx, %r15
movl (%rbx), %edi
shlq $0x30, %rdi
orq 0x8(%rbx), %rdi
leaq 0xc9df6(%rip), %rsi     # 0x108ae9
callq 0x1e400
jmp 0x3ee08
movq %rdx, %rdi
callq 0x17b2e
movq -0x60(%rbp), %rdi
leaq -0x70(%rbp), %rbx
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1a0e2
movq (%rbx), %rdi
leaq -0x38(%rbp), %rdx
movq %rax, %rsi
callq 0x1c901
movq %rax, %rbx
movq 0x10cdccf(%rip), %rsi   # 0x110ca00
testq %rsi, %rsi
jne 0x3ed4f
leaq 0xaf531(%rip), %rdi     # 0xee26e
pushq $0x4
popq %rsi
callq 0x8a21
movq %rax, %rsi
movq %rax, 0x10cdcb1(%rip)   # 0x110ca00
movq %rsi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x3ed65
incl (%rax)
movq %rbx, %rdi
callq 0xd769
testl %eax, %eax
je 0x3eeaa
pushq $0x4
popq %r14
jmp 0x3ef62
movq %rdx, %rcx
andq %r13, %rcx
sete %sil
testb $0x3, %dl
setne %dil
orb %sil, %dil
jne 0x3edae
decl (%rcx)
jne 0x3edae
shlq $0x30, %rax
orq %rdx, %rax
leaq 0xc9b93(%rip), %rsi     # 0x108939
movq %rax, %rdi
callq 0xce94
pushq $0x4
popq %r14
movq -0x60(%rbp), %rdi
jmp 0x3ef66
movq %rdx, %rdi
callq 0x1e7e4
movq -0x38(%rbp), %rdi
movq %rax, %rcx
shrq $0x30, %rcx
andq %r13, %rax
leaq -0x70(%rbp), %rbx
movq %rbx, (%rsp)
leaq -0x80(%rbp), %r12
xorl %esi, %esi
xorl %edx, %edx
movq %rax, %r8
movq %r12, %r9
callq 0x45d52
movl %eax, %r14d
movq %rdx, %r15
movl (%rbx), %edi
shlq $0x30, %rdi
orq 0x8(%rbx), %rdi
leaq 0xc9ce6(%rip), %rsi     # 0x108ae9
callq 0x1e454
movq %rdx, %rbx
movq (%r12), %r12
movq %r15, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x3ee3d
decl (%rax)
jne 0x3ee3d
shlq $0x30, %r14
orq %r15, %r14
leaq 0xc9444(%rip), %rsi     # 0x108279
movq %r14, %rdi
callq 0xce94
leaq -0x70(%rbp), %r14
movq %r12, %rdi
movq -0x58(%rbp), %r12
movq %r12, %rsi
movq %r14, %rdx
callq 0x1a0e2
movq (%r14), %rdi
leaq -0x38(%rbp), %rdx
movq %rax, %rsi
callq 0x2c1b0
testb %al, %al
je 0x3ee84
pushq $0x4
popq %rdi
movl %edi, -0x3c(%rbp)
movq -0x30(%rbp), %rsi
movl -0x4c(%rbp), %edx
movq %rbx, %rcx
callq 0x1e0af
movl %eax, %r14d
movq %rdx, -0x30(%rbp)
jmp 0x3eea1
pushq $0x4
popq %r14
movl %r14d, %edi
movq -0x48(%rbp), %rsi
movl -0x4c(%rbp), %edx
movq %rbx, %rcx
callq 0x1e0af
movl %eax, -0x3c(%rbp)
movq %rdx, -0x48(%rbp)
movq -0x38(%rbp), %rdi
jmp 0x3ef6a
movq %r12, %r15
callq 0x4563a
pushq $0x2
popq %rdi
xorl %esi, %esi
movl %edi, %edx
movq %rax, %rcx
callq 0x1e82b
movq %rdx, %rbx
leaq 0xc9cf6(%rip), %r14     # 0x108bc1
movq -0x30(%rbp), %rdi
movq %rdi, %rax
andq %r13, %rax
sete %cl
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x3eef4
decl (%rax)
jne 0x3eef4
btsq $0x32, %rdi
movq %r14, %rsi
callq 0xce94
movq %r14, %r13
callq 0x4563a
pushq $0x2
popq %rdi
xorl %esi, %esi
movl %edi, %edx
movq %rax, %rcx
callq 0x1e82b
movq %rdx, %r12
movq -0x48(%rbp), %rdi
movq %rdi, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dil
setne %dl
pushq $0x7
popq %r14
orb %cl, %dl
jne 0x3ef4d
decl (%rax)
jne 0x3ef4d
movabsq $0x4000000000000, %rax  # imm = 0x4000000000000
orq %rax, %rdi
movq %r13, %rsi
callq 0xce94
movq %r12, -0x48(%rbp)
movq %rbx, -0x30(%rbp)
movq %r15, %r12
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq -0x38(%rbp), %rdi
movl %r14d, -0x3c(%rbp)
pushq $0x1
popq %r15
leaq -0x70(%rbp), %rdx
movq %r12, %rsi
callq 0x2fadc
movq %rax, %r12
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x3ef90
incl (%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0x89cc
movq -0x70(%rbp), %rbx
testb $0x1, %al
je 0x3f063
movq %rbx, %rdi
leaq -0x38(%rbp), %rsi
callq 0x4564b
movq %rax, %rdi
callq 0x3233d
movq %rdx, %rcx
movl %r14d, %edi
movq -0x30(%rbp), %rsi
pushq $0xa
popq %rdx
callq 0x1e310
movq %rdx, -0x30(%rbp)
movq %r12, %rdi
pushq $0x3
popq %rsi
callq 0xe191
movq %rax, %rbx
movq %rax, %r14
andq %r13, %r14
sete %al
testb $0x3, %bl
setne %r13b
orb %al, %r13b
jne 0x3eff7
incl (%r14)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xdfd4
movq %rbx, %r12
testb %al, %al
jne 0x3f00c
movq %r15, %r12
orb %al, %r13b
jne 0x3f02b
decl (%r14)
movq %r15, %r12
jne 0x3f02b
movq %rbx, %rdi
leaq 0xc9406(%rip), %rsi     # 0x108429
callq 0xce94
movq %r15, %r12
movq %r12, %rax
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x3f04b
incl (%rax)
movq %r15, %rdi
movq %r12, %rsi
callq 0x89cc
movq -0x38(%rbp), %rbx
pushq $0x5
popq %r14
jmp 0x3ef9f
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x3f08a
decl (%rax)
jne 0x3f08a
movq %r12, %rdi
leaq 0xc908c(%rip), %rsi     # 0x108111
callq 0xce94
movl %r14d, %edi
movq -0x30(%rbp), %rsi
movl -0x3c(%rbp), %edx
movq -0x48(%rbp), %rcx
callq 0x1e896
movq %rax, %r14
andq %r13, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x3f0b3
incl (%rax)
leaq 0xc91bf(%rip), %r12     # 0x108279
leaq 0xc9ab8(%rip), %r13     # 0x108b79
pushq $0x2
popq %rdi
callq 0xd928
movq %rax, %r15
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %r15, %rax
movw $0x2, 0x6(%rax)
movq %r14, 0x18(%rax)
movq %r13, 0x20(%rax)
andq $0x0, 0x8(%rax)
movq %r12, 0x10(%rax)
movq -0x58(%rbp), %r13
movq %r13, %rdi
callq 0x30614
leaq 0xc9296(%rip), %rdx     # 0x108399
pushq $0xa
popq %rcx
leaq -0x38(%rbp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %r8
movq %r12, %r9
callq 0x1d218
movq %rax, %rbx
leaq 0x10cd58b(%rip), %rdi   # 0x110c6b0
movq %r13, %rsi
callq 0x12f88
leaq 0xc969d(%rip), %rsi     # 0x1087d1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1393b
movq (%r12), %rdi
pushq $0x1
popq %rsi
leaq -0x80(%rbp), %rbx
movq %r13, %rdx
movq %rbx, %rcx
callq 0x4569a
movq (%rbx), %rdi
xorl %r15d, %r15d
xorl %ebx, %ebx
leaq -0x70(%rbp), %rdx
movq %r13, %rsi
callq 0x4558e
movq %rax, %r12
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x3f1d3
movq 0x10(%rbp), %rcx
pushq $0x1
popq %rdx
movl %edx, (%rax)
movq %r13, 0x8(%rax)
movq %r13, (%rcx)
movq -0x88(%rbp), %rcx
movl %edx, (%rcx)
movq %rax, 0x8(%rcx)
movq -0x90(%rbp), %rax
movq %r12, (%rax)
movq -0x98(%rbp), %rax
movq %r14, (%rax)
movq -0x70(%rbp), %rax
movq -0xa0(%rbp), %rcx
movq %rax, (%rcx)
movl %r15d, %eax
movq %rbx, %rdx
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9a73b(%rip), %rsi     # 0xd9915
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130
leaq 0x95614(%rip), %rdi     # 0xd480d
pushq $0x20
popq %rsi
callq 0x8a21
movq %rax, %rdi
callq 0x8cc6