// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_type_ArrowType_freshenzesig
static struct std_list_List_1 mw_mirth_type_ArrowType_freshenzesig (struct mirth_mirth_zaMirth* in_zaMirth_1, struct std_list_List_1 in_Subst_2, struct mirth_type_ArrowType* in_ArrowType_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_type_ArrowType* *out_ArrowType_6) {
	incref(MK_mirth_type_ArrowType(in_ArrowType_3));
	struct mirth_mirth_zaMirth* v7;
	bool v8 = mw_mirth_type_ArrowType_needszefreshzestackzerestzy(in_zaMirth_1, in_ArrowType_3, &v7);
	struct mirth_mirth_zaMirth* branch_zaMirth_9;
	struct std_list_List_1 branch_Subst_10;
	struct mirth_type_ArrowType* branch_ArrowType_11;
	if (v8) {
		struct mirth_mirth_zaMirth* v12;
		struct mirth_type_ArrowType* v13;
		struct std_list_List_1 v14 = mw_mirth_type_ArrowType_freshenzesigzeaux(v7, in_Subst_2, in_ArrowType_3, &v12, &v13);
		branch_ArrowType_11 = v13;
		branch_Subst_10 = v14;
		branch_zaMirth_9 = v12;
	} else {
		struct mirth_mirth_zaMirth* v15;
		struct mirth_type_ArrowType* v16;
		struct std_list_List_1 v17 = mw_mirth_type_ArrowType_freshen(v7, in_Subst_2, in_ArrowType_3, &v15, &v16);
		branch_ArrowType_11 = v16;
		branch_Subst_10 = v17;
		branch_zaMirth_9 = v15;
	}
	*out_ArrowType_6 = branch_ArrowType_11;
	*out_zaMirth_4 = branch_zaMirth_9;
	return branch_Subst_10;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, -0x40(%rbp)
movq %rdx, %r13
movq %rsi, %r15
movabsq $0xfffffffffffc, %r14   # imm = 0xFFFFFFFFFFFC
movq %rsi, %rax
andq %r14, %rax
sete %cl
testb $0x3, %r15b
setne %dl
orb %cl, %dl
jne 0x5121e
incl (%rax)
leaq -0x30(%rbp), %rdx
movq %r15, %rsi
callq 0x5140b
testb %al, %al
je 0x51318
movq %r13, -0x38(%rbp)
movq -0x30(%rbp), %r13
leaq -0x78(%rbp), %rbx
leaq -0xb8(%rbp), %r12
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3b486
leaq -0x68(%rbp), %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0x3eba9
movq (%r15), %rdi
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq -0x98(%rbp), %r13
movq %r13, 0x10(%rsp)
leaq -0x60(%rbp), %rbx
leaq -0xa8(%rbp), %r15
movq %rax, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
movq %r15, %r9
callq 0x5177a
movq (%rbx), %rdi
movl (%r15), %edx
movq 0x8(%r15), %rcx
movups (%r12), %xmm0
movups %xmm0, (%rsp)
leaq -0x88(%rbp), %rbx
movq %rbx, 0x10(%rsp)
leaq -0x48(%rbp), %r8
leaq -0x58(%rbp), %r9
movq %rax, %rsi
callq 0x5177a
movq %rax, %r12
movl (%r13), %edi
movq 0x8(%r13), %rsi
movl (%rbx), %edx
movq 0x8(%rbx), %rcx
callq 0x210ca
movq %rax, %r15
andq %r12, %r14
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x51307
decl (%r14)
jne 0x51307
btsq $0x32, %r12
leaq 0xc48c2(%rip), %rsi     # 0x115bc1
movq %r12, %rdi
callq 0xd4e3
movq -0x48(%rbp), %rcx
movl -0x58(%rbp), %eax
movq -0x50(%rbp), %rdx
movq -0x38(%rbp), %r13
jmp 0x5133d
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rbx
leaq -0x78(%rbp), %r12
xorl %esi, %esi
xorl %edx, %edx
movq %r15, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x4ba56
movq (%r12), %r15
movq (%rbx), %rcx
movq -0x40(%rbp), %rsi
movq %r15, (%rsi)
movq %rcx, (%r13)
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq