// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_match_zaPattern_tagzx
static void mw_mirth_match_zaPattern_tagzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_match_Pattern* in_zaPattern_2, uint64_t in_Tag_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_match_Pattern* *out_zaPattern_5) {
	struct mirth_match_PatternOp v6 = mtw_mirth_match_PatternOp_Tag(in_Tag_3);
	struct std_list_List_1 v7 = { .tag=std_list_List_1_Nil };
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	uint64_t v8 = in_zaPattern_2->mtokenzestart;
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct std_list_List_1 v9 = in_zaPattern_2->minnerzectx;
	incref(MK_std_list_List_1(v9));
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct std_list_List_1 v10 = mw_mirth_type_Subst_Nil();
	struct mirth_mirth_zaMirth* v11;
	struct mirth_type_ArrowType* v12 = mw_mirth_data_Tag_type(in_zaMirth_1, in_Tag_3, &v11);
	struct mirth_mirth_zaMirth* v13;
	struct mirth_type_ArrowType* v14;
	struct std_list_List_1 v15 = mw_mirth_type_ArrowType_freshenzesig(v11, v10, v12, &v13, &v14);
	struct mirth_type_StackType v16;
	struct mirth_type_StackType v17;
	mtp_mirth_type_ArrowType_ArrowType(v14, &v16, &v17);
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_type_StackType v18 = in_zaPattern_2->mmid;
	incref(MK_mirth_type_StackType(v18));
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_mirth_zaMirth* v19;
	struct mirth_type_StackType v20 = mw_mirth_type_StackType_unifyzx(v13, v18, v17, &v19);
	incref(MK_mirth_type_StackType(v16));
	incref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_match_Pattern* v21 = mirth_match_Pattern_set_mid(in_zaPattern_2, v16);
	decref(MK_mirth_match_Pattern(in_zaPattern_2));
	struct mirth_match_PatternAtom* v22 = mtw_mirth_match_PatternAtom_PatternAtom(v8, v9, v7, v16, v20, v15, v6);
	incref(MK_mirth_match_Pattern(v21));
	incref(MK_mirth_match_Pattern(v21));
	struct std_list_List_1 v23 = v21->matoms;
	incref(MK_std_list_List_1(v23));
	decref(MK_mirth_match_Pattern(v21));
	struct std_list_List_1 v24 = mw_std_list_List_1_cons(MK_mirth_match_PatternAtom(v22), v23);
	struct mirth_match_Pattern* v25 = mirth_match_Pattern_set_atoms(v21, v24);
	decref(MK_mirth_match_Pattern(v21));
	*out_zaPattern_5 = v25;
	*out_zaMirth_4 = v19;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r8, -0x58(%rbp)
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
movl $0x1, %edi
movl $0x10, %esi
callq 0x50c0
testq %rax, %rax
je 0x50415
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
movl $0x1, %ecx
movl %ecx, (%rax)
movq %r14, 0x8(%rax)
movl %ecx, -0xb8(%rbp)
movq %rax, -0xb0(%rbp)
movq %r12, %rax
andq %rdx, %rax
movq %rax, -0x30(%rbp)
setne %al
testb $0x3, %r12b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
jne 0x50171
movq -0x30(%rbp), %rax
incl (%rax)
movq 0x18(%r12), %rax
movq %rax, -0x48(%rbp)
testb %bl, %bl
je 0x501a9
movq -0x30(%rbp), %rax
decl (%rax)
jne 0x5019f
movq %r12, %rdi
leaq 0xc63c1(%rip), %rsi     # 0x116551
callq 0xd4e3
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
testb %bl, %bl
je 0x501a9
movq -0x30(%rbp), %rax
incl (%rax)
movl 0x38(%r12), %eax
movl %eax, -0x34(%rbp)
movq 0x40(%r12), %rsi
movq %rsi, %rax
andq %rdx, %rax
sete %cl
movq %rsi, -0x40(%rbp)
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x501d0
incl (%rax)
movq %r15, -0x50(%rbp)
testb %bl, %bl
je 0x501ef
movq -0x30(%rbp), %rax
decl (%rax)
jne 0x501ef
movq %r12, %rdi
leaq 0xc6367(%rip), %rsi     # 0x116551
callq 0xd4e3
leaq -0xc8(%rbp), %r15
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x5117e
movq (%r15), %rdi
leaq -0x78(%rbp), %rdx
leaq -0xc0(%rbp), %r14
movq %rax, %rsi
movq %r14, %rcx
callq 0x511e0
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq (%r14), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x3b486
testb %bl, %bl
je 0x50247
movq -0x30(%rbp), %rax
incl (%rax)
movl 0x58(%r12), %r14d
movq 0x60(%r12), %r13
movq %r13, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %r13b
setne %dl
orb %cl, %dl
jne 0x50271
incl (%rax)
testb %bl, %bl
je 0x5028c
movq -0x30(%rbp), %rax
decl (%rax)
jne 0x5028c
movq %r12, %rdi
leaq 0xc62ca(%rip), %rsi     # 0x116551
callq 0xd4e3
movq -0x78(%rbp), %rdi
movl -0x98(%rbp), %ecx
movq -0x90(%rbp), %r8
leaq -0x60(%rbp), %r9
movl %r14d, %esi
movq %r13, %rdx
callq 0x3c32b
movl %eax, -0x88(%rbp)
movq %rdx, -0x80(%rbp)
movq -0x68(%rbp), %rdx
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x502db
incl (%rax)
movl -0x70(%rbp), %esi
testb %bl, %bl
je 0x502e8
movq -0x30(%rbp), %rax
incl (%rax)
movq %r12, %rdi
callq 0x5043a
movq %rax, %r14
movq %rax, %r13
testb %bl, %bl
je 0x50311
movq -0x30(%rbp), %rax
decl (%rax)
jne 0x50311
movq %r12, %rdi
leaq 0xc6245(%rip), %rsi     # 0x116551
callq 0xd4e3
movups -0xb8(%rbp), %xmm0
movups %xmm0, 0x30(%rsp)
movups -0xa8(%rbp), %xmm0
movups %xmm0, 0x20(%rsp)
movups -0x88(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups -0x70(%rbp), %xmm0
movups %xmm0, (%rsp)
movq -0x48(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x40(%rbp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x505b5
movq %rax, %rdi
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %r14
setne %al
testb $0x3, %r13b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x5037a
addl $0x2, (%r14)
movl 0x78(%r13), %ebx
movq 0x80(%r13), %r12
andq %r12, %rdx
sete %al
testb $0x3, %r12b
setne %cl
orb %al, %cl
jne 0x50398
incl (%rdx)
testb %r15b, %r15b
je 0x503b9
decl (%r14)
jne 0x503b9
movq %rdi, -0x30(%rbp)
movq %r13, %rdi
leaq 0xc61a1(%rip), %rsi     # 0x116551
callq 0xd4e3
movq -0x30(%rbp), %rdi
leaq 0xc61d9(%rip), %rsi     # 0x116599
movl %ebx, %edx
movq %r12, %rcx
callq 0xd592
movq %r13, %rdi
movq %rdx, %rsi
callq 0x50660
movq %rax, %rbx
testb %r15b, %r15b
je 0x503f1
decl (%r14)
jne 0x503f1
movq %r13, %rdi
leaq 0xc6165(%rip), %rsi     # 0x116551
callq 0xd4e3
movq -0x58(%rbp), %rax
movq %rbx, (%rax)
movq -0x60(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rax, (%rcx)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x99798(%rip), %rsi     # 0xe9bb4
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52be
movl $0x1, %edi
callq 0x5130