// File: /workspace/github_c_makefile_star2_O3/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaTypeElab_elabzetypezesigzx
static struct mirth_type_ArrowType* mw_mirth_elab_zaTypeElab_elabzetypezesigzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_elab_zaTypeElab* in_zaTypeElab_2, struct mirth_type_StackType in_StackType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_elab_zaTypeElab* *out_zaTypeElab_5) {
	uint64_t v7 = in_zaTypeElab_2->mtoken;
	struct mirth_mirth_zaMirth* v8;
	bool v9 = mw_mirth_token_Token_runzeendzy(in_zaMirth_1, v7, &v8);
	struct mirth_mirth_zaMirth* branch_zaMirth_10;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_11;
	if (v9) {
		uint64_t v12 = in_zaTypeElab_2->mtoken;
		STR* v13;
		STRLIT(v13, "expected type signature", 23);
		struct mirth_mirth_zaMirth* v14;
		mw_mirth_mirth_zaMirth_emitzeerrorzx(v8, v12, v13, &v14);
		branch_zaTypeElab_11 = in_zaTypeElab_2;
		branch_zaMirth_10 = v14;
	} else {
		branch_zaTypeElab_11 = in_zaTypeElab_2;
		branch_zaMirth_10 = v8;
	}
	incref(MK_mirth_type_StackType(in_StackType_3));
	struct mirth_mirth_zaMirth* v15;
	struct mirth_elab_zaTypeElab* v16;
	struct std_list_List_1 v17 = mw_mirth_elab_zaTypeElab_elabzetypezesigzeparamszx(branch_zaMirth_10, branch_zaTypeElab_11, in_StackType_3, &v15, &v16);
	incref(MK_mirth_type_StackType(in_StackType_3));
	struct mirth_mirth_zaMirth* v18;
	struct mirth_elab_zaTypeElab* v19;
	struct mirth_type_StackType v20 = mw_mirth_elab_zaTypeElab_elabzestackzetypezx(v15, v16, in_StackType_3, &v18, &v19);
	uint64_t v21 = v19->mtoken;
	struct mirth_mirth_zaMirth* v22;
	bool v23 = mw_mirth_token_Token_vdashzy(v18, v21, &v22);
	struct std_list_List_1 branch_List_24;
	struct mirth_type_StackType branch_StackType_25;
	struct mirth_mirth_zaMirth* branch_zaMirth_26;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_27;
	struct mirth_type_StackType branch_StackType_28;
	if (v23) {
		decref(MK_mirth_type_StackType(in_StackType_3));
		uint64_t v29 = v19->mtoken;
		struct mirth_mirth_zaMirth* v30;
		uint64_t v31 = mw_mirth_token_Token_succ(v22, v29, &v30);
		v19->mtoken = v31;
		incref(MK_mirth_type_StackType(v20));
		struct mirth_mirth_zaMirth* v32;
		struct mirth_elab_zaTypeElab* v33;
		struct std_list_List_1 v34 = mw_mirth_elab_zaTypeElab_elabzetypezesigzeparamszx(v30, v19, v20, &v32, &v33);
		struct std_list_List_1 v35 = mw_std_list_List_1_cat(v17, v34);
		incref(MK_mirth_type_StackType(v20));
		struct mirth_mirth_zaMirth* v36;
		struct mirth_elab_zaTypeElab* v37;
		struct mirth_type_StackType v38 = mw_mirth_elab_zaTypeElab_elabzestackzetypezx(v32, v33, v20, &v36, &v37);
		branch_StackType_28 = v38;
		branch_zaTypeElab_27 = v37;
		branch_zaMirth_26 = v36;
		branch_StackType_25 = v20;
		branch_List_24 = v35;
	} else {
		branch_StackType_28 = v20;
		branch_zaTypeElab_27 = v19;
		branch_zaMirth_26 = v22;
		branch_StackType_25 = in_StackType_3;
		branch_List_24 = v17;
	}
	uint64_t v39 = branch_zaTypeElab_27->mtoken;
	struct mirth_mirth_zaMirth* v40;
	bool v41 = mw_mirth_token_Token_sigzedasheszy(branch_zaMirth_26, v39, &v40);
	struct std_list_List_1 branch_List_42;
	struct mirth_type_StackType branch_StackType_43;
	struct mirth_type_StackType branch_StackType_44;
	struct mirth_mirth_zaMirth* branch_zaMirth_45;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_46;
	struct mirth_type_StackType branch_StackType_47;
	if (v41) {
		uint64_t v48 = branch_zaTypeElab_27->mtoken;
		struct mirth_mirth_zaMirth* v49;
		uint64_t v50 = mw_mirth_token_Token_succ(v40, v48, &v49);
		branch_zaTypeElab_27->mtoken = v50;
		incref(MK_mirth_type_StackType(branch_StackType_25));
		struct mirth_mirth_zaMirth* v51;
		struct mirth_elab_zaTypeElab* v52;
		struct mirth_type_StackType v53 = mw_mirth_elab_zaTypeElab_elabzestackzetypezx(v49, branch_zaTypeElab_27, branch_StackType_25, &v51, &v52);
		branch_StackType_47 = v53;
		branch_zaTypeElab_46 = v52;
		branch_zaMirth_45 = v51;
		branch_StackType_44 = branch_StackType_25;
		branch_StackType_43 = branch_StackType_28;
		branch_List_42 = branch_List_24;
	} else {
		incref(MK_mirth_type_StackType(branch_StackType_25));
		branch_StackType_47 = branch_StackType_28;
		branch_zaTypeElab_46 = branch_zaTypeElab_27;
		branch_zaMirth_45 = v40;
		branch_StackType_44 = branch_StackType_25;
		branch_StackType_43 = branch_StackType_25;
		branch_List_42 = branch_List_24;
	}
	uint64_t v54 = branch_zaTypeElab_46->mtoken;
	struct mirth_mirth_zaMirth* v55;
	bool v56 = mw_mirth_token_Token_runzeendzy(branch_zaMirth_45, v54, &v55);
	struct mirth_mirth_zaMirth* branch_zaMirth_57;
	struct mirth_elab_zaTypeElab* branch_zaTypeElab_58;
	if (v56) {
		branch_zaTypeElab_58 = branch_zaTypeElab_46;
		branch_zaMirth_57 = v55;
	} else {
		uint64_t v59 = branch_zaTypeElab_46->mtoken;
		STR* v60;
		STRLIT(v60, "expected right paren or comma", 29);
		struct mirth_mirth_zaMirth* v61;
		mw_mirth_mirth_zaMirth_emitzeerrorzx(v55, v59, v60, &v61);
		branch_zaTypeElab_58 = branch_zaTypeElab_46;
		branch_zaMirth_57 = v61;
	}
	struct mirth_type_StackType v62 = mw_std_list_List_1_for_1_sp102(branch_StackType_43, branch_List_42);
	struct mirth_type_ArrowType* v63 = mw_mirth_type_Tzezg(v62, branch_StackType_47);
	decref(MK_mirth_type_StackType(branch_StackType_44));
	*out_zaTypeElab_5 = branch_zaTypeElab_58;
	*out_zaMirth_4 = branch_zaMirth_57;
	return v63;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r9, -0xb0(%rbp)
movq %r8, -0xb8(%rbp)
movq %rcx, %r12
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movabsq $0xfffffffffffc, %rbx   # imm = 0xFFFFFFFFFFFC
movq 0x10(%rsi), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x342b2
testb %al, %al
je 0x34428
movq 0x10(%r15), %rsi
movq 0x10e13c1(%rip), %r14   # 0x1115758
testq %r14, %r14
jne 0x343d8
movl $0x17, %edi
movq %rsi, %r14
callq 0xf5e4
movq %r14, %rsi
movq %rax, %r14
movq $0x17, 0x10(%rax)
movabsq $0x65727574616e6769, %rax # imm = 0x65727574616E6769
movq %rax, 0x27(%r14)
movups 0xb07f5(%rip), %xmm0    # 0xe4bc1
movups %xmm0, 0x18(%r14)
movq %r14, 0x10e1380(%rip)   # 0x1115758
movq %r12, %r13
movq %r14, %rax
andq %rbx, %rax
sete %cl
testb $0x3, %r14b
setne %dl
orb %cl, %dl
jne 0x343f1
incl (%rax)
movq -0xa0(%rbp), %rdi
leaq -0x68(%rbp), %r12
movq %r12, %rdx
callq 0x1b59d
movq (%r12), %rdi
leaq -0x50(%rbp), %r12
movq %rax, %rsi
movq %r14, %rdx
movl $0x2, %ecx
movq %r12, %r8
callq 0x1bc32
movq (%r12), %rdi
movq %r13, %r12
jmp 0x3442f
movq -0xa0(%rbp), %rdi
movq -0x38(%rbp), %rbx
movq %r12, %r13
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
andq %rax, %r13
setne %al
testb $0x3, %r12b
sete %cl
andb %al, %cl
movb %cl, -0x40(%rbp)
je 0x34480
incl (%r13)
leaq -0x98(%rbp), %r8
leaq -0x90(%rbp), %r9
movq %r15, %rsi
movl %ebx, %edx
movq %r12, %rcx
callq 0x34934
movl %eax, -0x2c(%rbp)
movq %rdx, -0x60(%rbp)
incl (%r13)
jmp 0x344a2
leaq -0x98(%rbp), %r8
leaq -0x90(%rbp), %r9
movq %r15, %rsi
movl %ebx, %edx
movq %r12, %rcx
callq 0x34934
movl %eax, -0x2c(%rbp)
movq %rdx, -0x60(%rbp)
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
leaq -0xc0(%rbp), %r8
leaq -0xc8(%rbp), %r14
movl %ebx, %edx
movq %r12, %rcx
movq %r14, %r9
callq 0x34bb9
movq %r12, %rbx
movl %eax, %r12d
movq %rdx, %r15
movq %rdx, -0x48(%rbp)
movq (%r14), %r14
movq 0x10(%r14), %rsi
leaq -0xc0(%rbp), %rax
movq (%rax), %rdi
leaq -0x88(%rbp), %rdx
callq 0x34e0c
testb %al, %al
je 0x345d7
movq %r12, -0x58(%rbp)
cmpb $0x0, -0x40(%rbp)
je 0x34524
decl (%r13)
jne 0x34524
movq -0x38(%rbp), %rdi
shlq $0x30, %rdi
orq %rbx, %rdi
leaq 0xdd6a2(%rip), %rsi     # 0x111bc1
callq 0xd13d
movq 0x10(%r14), %rax
xorl %ecx, %ecx
cmpq %rax, 0x10e0ec7(%rip)   # 0x11153f8
leaq 0x1(%rax), %rax
cmovaq %rax, %rcx
movq -0x88(%rbp), %rdi
movq %rcx, 0x10(%r14)
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq -0x48(%rbp), %rcx
andq %r13, %rcx
setne %al
movq %r15, %r12
testb $0x3, %r12b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x3456b
incl (%rcx)
movq %rcx, %r15
leaq -0x50(%rbp), %r8
leaq -0x68(%rbp), %r9
movq %r14, %rsi
movq -0x58(%rbp), %rdx
movq %r12, %rcx
callq 0x34934
movq %rdx, %rcx
movl -0x2c(%rbp), %edi
movq -0x60(%rbp), %rsi
movl %eax, %edx
callq 0x28d8d
movl %eax, -0x2c(%rbp)
movq %rdx, -0x60(%rbp)
testb %bl, %bl
je 0x345a4
incl (%r15)
movq -0x50(%rbp), %rdi
movq -0x68(%rbp), %rsi
leaq -0x78(%rbp), %r15
leaq -0x70(%rbp), %r14
movq -0x58(%rbp), %rbx
movl %ebx, %edx
movq %r12, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0x34bb9
movl %eax, -0x48(%rbp)
movq %rdx, -0x40(%rbp)
movq (%r14), %r14
movq (%r15), %rdi
jmp 0x345fa
movq -0x88(%rbp), %rdi
movl %r12d, -0x48(%rbp)
movq %r15, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq %rbx, %r12
movq %rax, %rbx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq 0x10(%r14), %rsi
leaq -0x78(%rbp), %rdx
callq 0x34edf
testb %al, %al
je 0x34672
movq 0x10(%r14), %rax
xorl %ecx, %ecx
cmpq %rax, 0x10e0de0(%rip)   # 0x11153f8
leaq 0x1(%rax), %rax
cmovaq %rax, %rcx
movq -0x78(%rbp), %rdi
movq %rcx, 0x10(%r14)
movq %r12, %rax
andq %r13, %rax
sete %cl
movq %r12, %r8
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x34641
incl (%rax)
leaq -0x50(%rbp), %rax
leaq -0x68(%rbp), %r15
movq %r14, %rsi
movl %ebx, %edx
movq %r8, %r12
movq %r8, %rcx
movq %rax, %r8
movq %r15, %r9
callq 0x34bb9
movl %eax, -0x38(%rbp)
movq %rdx, -0x80(%rbp)
movq (%r15), %r14
leaq -0x50(%rbp), %rax
movq (%rax), %rdi
jmp 0x346a1
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x34688
incl (%rax)
movq -0x78(%rbp), %rdi
movl -0x48(%rbp), %eax
movl %eax, -0x38(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movl %ebx, -0x48(%rbp)
movq %r12, -0x40(%rbp)
movq 0x10(%r14), %rsi
leaq -0x70(%rbp), %rdx
callq 0x342b2
testb %al, %al
movq %rbx, -0x58(%rbp)
je 0x346bf
movq -0x70(%rbp), %rbx
jmp 0x34760
movq %r12, -0xa8(%rbp)
movq 0x10(%r14), %r15
movq 0x10e108f(%rip), %r12   # 0x1115760
testq %r12, %r12
jne 0x34708
movl $0x1d, %edi
callq 0xf5e4
movq %rax, %r12
movq $0x1d, 0x10(%rax)
movups 0xb04e7(%rip), %xmm0    # 0xe4bd9
movups %xmm0, 0x18(%rax)
movups 0xb04e9(%rip), %xmm0    # 0xe4be6
movups %xmm0, 0x25(%rax)
movq %rax, 0x10e1058(%rip)   # 0x1115760
movq %r12, %rax
andq %r13, %rax
sete %cl
testb $0x3, %r12b
setne %dl
orb %cl, %dl
jne 0x3471e
incl (%rax)
movq -0x70(%rbp), %rdi
leaq -0x68(%rbp), %r13
movq %r15, %rsi
movq %r13, %rdx
callq 0x1b59d
movq (%r13), %rdi
leaq -0x50(%rbp), %r15
movq %rax, %rsi
movq %r12, %rdx
movl $0x2, %ecx
movq %r15, %r8
callq 0x1bc32
movq (%r15), %rbx
movabsq $0xfffffffffffc, %r13   # imm = 0xFFFFFFFFFFFC
movq -0xa8(%rbp), %r12
movl -0x48(%rbp), %edi
movq -0x40(%rbp), %rsi
movl -0x2c(%rbp), %edx
movq -0x60(%rbp), %rcx
callq 0x20200
movl %eax, %edi
movq %rdx, %rsi
movl -0x38(%rbp), %edx
movq -0x80(%rbp), %rcx
callq 0x20b5f
movq %rax, %r15
andq %r12, %r13
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x347b5
decl (%r13)
jne 0x347b5
movq -0x58(%rbp), %rdi
shlq $0x30, %rdi
orq %r12, %rdi
leaq 0xdd411(%rip), %rsi     # 0x111bc1
callq 0xd13d
movq -0xb0(%rbp), %rax
movq %r14, (%rax)
movq -0xb8(%rbp), %rax
movq %rbx, (%rax)
movq %r15, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq