// File: /workspace/github_c_makefile_star2_O3/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 0x4ecf0
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, %rsi
andq %rdx, %rsi
setne %al
testb $0x3, %r12b
sete %bl
andb %al, %bl
cmpb $0x1, %bl
movq %rsi, -0x30(%rbp)
jne 0x4ea7e
movl (%rsi), %eax
movq 0x18(%r12), %rcx
movq %rcx, -0x40(%rbp)
testl %eax, %eax
jne 0x4ea78
movq %r12, %rdi
leaq 0xc3aee(%rip), %rsi     # 0x112551
callq 0xd13d
movq -0x30(%rbp), %rsi
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
movl (%rsi), %eax
incl %eax
movl %eax, (%rsi)
jmp 0x4ea87
movq 0x18(%r12), %rax
movq %rax, -0x40(%rbp)
movl 0x38(%r12), %eax
movl %eax, -0x34(%rbp)
movq 0x40(%r12), %rdi
movq %rdi, %rax
andq %rdx, %rax
sete %cl
movq %rdi, -0x48(%rbp)
testb $0x3, %dil
setne %dl
orb %cl, %dl
jne 0x4eaae
incl (%rax)
movq %r15, -0x50(%rbp)
testb %bl, %bl
je 0x4eac9
decl (%rsi)
jne 0x4eac9
movq %r12, %rdi
leaq 0xc3a8d(%rip), %rsi     # 0x112551
callq 0xd13d
leaq -0xc8(%rbp), %r15
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4fa43
movq (%r15), %rdi
leaq -0x78(%rbp), %rdx
leaq -0xc0(%rbp), %r14
movq %rax, %rsi
movq %r14, %rcx
callq 0x4faa5
movl %eax, -0xa8(%rbp)
movq %rdx, -0xa0(%rbp)
movq (%r14), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x98(%rbp), %rdx
callq 0x3a145
movq -0x30(%rbp), %rsi
testb %bl, %bl
je 0x4eb21
incl (%rsi)
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 0x4eb4b
incl (%rax)
testb %bl, %bl
je 0x4eb62
decl (%rsi)
jne 0x4eb62
movq %r12, %rdi
leaq 0xc39f4(%rip), %rsi     # 0x112551
callq 0xd13d
movq -0x78(%rbp), %rdi
movl -0x98(%rbp), %ecx
movq -0x90(%rbp), %r8
leaq -0x60(%rbp), %r9
movl %r14d, %esi
movq %r13, %rdx
callq 0x3afe0
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 0x4ebb1
incl (%rax)
movl -0x70(%rbp), %esi
testb %bl, %bl
je 0x4ebde
movq -0x30(%rbp), %rbx
incl (%rbx)
movq %r12, %rdi
callq 0x4ed15
movq %rax, %r13
decl (%rbx)
jne 0x4ebe9
movq %r12, %rdi
leaq 0xc397a(%rip), %rsi     # 0x112551
callq 0xd13d
jmp 0x4ebe9
movq %r12, %rdi
callq 0x4ed15
movq %rax, %r13
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 -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x48(%rbp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4ee90
movq %rax, %rdi
movq %r13, %r14
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %r14
setne %al
testb $0x3, %r13b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x4ec55
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 0x4ec73
incl (%rdx)
testb %r15b, %r15b
je 0x4ec94
decl (%r14)
jne 0x4ec94
movq %rdi, -0x30(%rbp)
movq %r13, %rdi
leaq 0xc38c6(%rip), %rsi     # 0x112551
callq 0xd13d
movq -0x30(%rbp), %rdi
leaq 0xc38fe(%rip), %rsi     # 0x112599
movl %ebx, %edx
movq %r12, %rcx
callq 0xd1ec
movq %r13, %rdi
movq %rdx, %rsi
callq 0x4ef3b
movq %rax, %rbx
testb %r15b, %r15b
je 0x4eccc
decl (%r14)
jne 0x4eccc
movq %r13, %rdi
leaq 0xc388a(%rip), %rsi     # 0x112551
callq 0xd13d
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 0x96d8c(%rip), %rsi     # 0xe5a83
movl $0x31, %edx
movl $0x2, %edi
callq 0x5060
callq 0x52b6
movl $0x1, %edi
callq 0x5130