// File: /workspace/github_c_makefile_star2_O0/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_finalizzezewordzearrow
static struct mirth_arrow_Arrow* mw_mirth_elab_finalizzezewordzearrow (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_Arrow_2, uint64_t in_Word_3, struct mirth_mirth_zaMirth* *out_zaMirth_4) {
	struct mirth_mirth_zaMirth* v6;
	bool v7 = mw_mirth_word_Word_inferringzetypezy(in_zaMirth_1, in_Word_3, &v6);
	uint64_t branch_Word_8;
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	struct mirth_arrow_Arrow* branch_Arrow_10;
	if (v7) {
		incref(MK_mirth_arrow_Arrow(in_Arrow_2));
		struct mirth_type_ArrowType* v11;
		struct std_list_List_1 v12 = mw_mirth_arrow_Arrow_ctxzetype(in_Arrow_2, &v11);
		struct mirth_mirth_zaMirth* v13;
		struct mirth_type_ArrowType* v14;
		struct std_list_List_1 v15 = mw_mirth_type_ArrowType_rigidifyzesigzx(v6, v12, v11, &v13, &v14);
		incref(MK_std_list_List_1(v15));
		incref(MK_mirth_type_ArrowType(v14));
		PTUP r16 = PTRMK(0,tup_new(2),0);
		((TUP*)PTRPTR(r16))->size = 2;
		((TUP*)PTRPTR(r16))->cells[1] = MK_mirth_type_ArrowType(v14);
		((TUP*)PTRPTR(r16))->cells[0] = MK_std_list_List_1(v15);
		struct mirth_mirth_PropLabel v17 = mtw_mirth_mirth_PropLabel_WordType(in_Word_3);
		struct mirth_mirth_zaMirth* v18;
		struct mirth_mirth_Prop_1* v19 = mw_mirth_mirth_PropLabel_prop(v13, MKTUP(r16), v17, &v18);
		void* v20 = field_mut(&mfld_mirth_word_Word_ztctxzetype, in_Word_3);
		mut_set(MK_mirth_mirth_Prop_1(v19), v20);
		bool v21 = false;
		struct mirth_mirth_zaMirth* v22;
		mw_mirth_word_Word_inferringzetypezyzx(v18, v21, in_Word_3, &v22);
		struct mirth_type_StackType v23;
		struct mirth_type_StackType v24;
		mtp_mirth_type_ArrowType_ArrowType(v14, &v23, &v24);
		struct mirth_arrow_Arrow* v25 = mirth_arrow_Arrow_set_cod(in_Arrow_2, v24);
		struct mirth_arrow_Arrow* v26 = mirth_arrow_Arrow_set_dom(v25, v23);
		struct mirth_arrow_Arrow* v27 = mirth_arrow_Arrow_set_ctx(v26, v15);
		branch_Arrow_10 = v27;
		branch_zaMirth_9 = v22;
		branch_Word_8 = in_Word_3;
	} else {
		branch_Arrow_10 = in_Arrow_2;
		branch_zaMirth_9 = v6;
		branch_Word_8 = in_Word_3;
	}
	*out_zaMirth_4 = branch_zaMirth_9;
	return branch_Arrow_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x28(%rbp), %rdx
callq 0x1329e0
andb $0x1, %al
movb %al, -0x29(%rbp)
testb $0x1, -0x29(%rbp)
je 0xf00ca
jmp 0xefbcd
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
leaq 0x2a2854(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xefc78
movq -0x10(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x2a282b(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x60(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x68(%rbp), %rax
cmpq $0x0, %rax
je 0xefc78
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x2a2800(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xefc78
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x2a27d8(%rip), %rax    # 0x392430
orq $0x1, %rax
movq %rax, -0x80(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x88(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xefc7a
movq -0x10(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0xae4c0
movl %eax, -0xa0(%rbp)
movq %rdx, -0x98(%rbp)
movq -0x28(%rbp), %rdi
movq -0x90(%rbp), %rcx
movl -0xa0(%rbp), %esi
movq -0x98(%rbp), %rdx
leaq -0xa8(%rbp), %r8
leaq -0xb0(%rbp), %r9
callq 0x156fb0
movl %eax, -0xc0(%rbp)
movq %rdx, -0xb8(%rbp)
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x12780
movq %rax, -0xd0(%rbp)
movq %rdx, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xefda4
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x12780
movq %rax, -0xe0(%rbp)
movq %rdx, -0xd8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0xe0(%rbp), %rax
cmpq $0x0, %rax
je 0xefda4
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x12780
movq %rax, -0xf0(%rbp)
movq %rdx, -0xe8(%rbp)
movq -0xf0(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xefda4
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x12780
movq %rax, -0x100(%rbp)
movq %rdx, -0xf8(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x100(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xefda6
jmp 0xefda8
movq -0xb0(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x2a1e4b(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x108(%rbp)
movq -0x108(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0xefe7d
movq -0xb0(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x2a1e16(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x118(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x120(%rbp), %rax
cmpq $0x0, %rax
je 0xefe7d
movq -0xb0(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x2a1ddf(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x128(%rbp)
movq -0x130(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
jne 0xefe7d
movq -0xb0(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x2a1dae(%rip), %rax    # 0x391c08
orq $0x1, %rax
movq %rax, -0x138(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x140(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0xefe7f
movl $0x2, %edi
callq 0x1a7d0
orq $0x0, %rax
orq $0x0, %rax
movq %rax, -0x148(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
movw $0x2, 0x6(%rax)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, -0x158(%rbp)
leaq 0x2a1d33(%rip), %rcx    # 0x391c08
orq $0x1, %rcx
movq %rcx, -0x150(%rbp)
movq -0x158(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x150(%rbp), %rcx
movq %rcx, 0x20(%rax)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq -0x148(%rbp), %rax
movq %rax, -0x200(%rbp)
movl -0xc0(%rbp), %edi
movq -0xb8(%rbp), %rsi
callq 0x12780
movq %rax, %rcx
movq -0x200(%rbp), %rax
movq %rcx, -0x168(%rbp)
movq %rdx, -0x160(%rbp)
movq -0x168(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x160(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rdi
callq 0xaaa70
movl %eax, -0x178(%rbp)
movq %rdx, -0x170(%rbp)
movq -0xa8(%rbp), %rdi
movq -0x148(%rbp), %rax
movq %rax, -0x198(%rbp)
leaq 0x2a1418(%rip), %rax    # 0x391398
orq $0x1, %rax
movq %rax, -0x190(%rbp)
movq -0x198(%rbp), %rsi
movq -0x190(%rbp), %rdx
movl -0x178(%rbp), %ecx
movq -0x170(%rbp), %r8
leaq -0x180(%rbp), %r9
callq 0x70840
movq %rax, -0x188(%rbp)
movq -0x18(%rbp), %rsi
leaq 0x12a582c(%rip), %rdi   # 0x13957f0
callq 0x40d30
movq %rax, -0x1a0(%rbp)
movq -0x188(%rbp), %rax
movq %rax, -0x1b0(%rbp)
leaq 0x2a187b(%rip), %rax    # 0x391860
orq $0x1, %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rdx
movq -0x1b0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
callq 0x431a0
movb $0x0, -0x1b1(%rbp)
movq -0x180(%rbp), %rdi
movb -0x1b1(%rbp), %al
movq -0x18(%rbp), %rdx
leaq -0x1c0(%rbp), %rcx
andb $0x1, %al
movzbl %al, %esi
callq 0xf2110
movq -0xb0(%rbp), %rdi
leaq -0x1d0(%rbp), %rsi
leaq -0x1e0(%rbp), %rdx
callq 0xc1010
movq -0x10(%rbp), %rdi
movl -0x1e0(%rbp), %esi
movq -0x1d8(%rbp), %rdx
callq 0x113be0
movq %rax, -0x1e8(%rbp)
movq -0x1e8(%rbp), %rdi
movl -0x1d0(%rbp), %esi
movq -0x1c8(%rbp), %rdx
callq 0x1578c0
movq %rax, -0x1f0(%rbp)
movq -0x1f0(%rbp), %rdi
movl -0xc0(%rbp), %esi
movq -0xb8(%rbp), %rdx
callq 0x157db0
movq %rax, -0x1f8(%rbp)
movq -0x1f8(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0xf00e2
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x40(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
movq -0x48(%rbp), %rax
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
nopw (%rax,%rax)