// File: /workspace/github_c_makefile_star2_O2/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, -0x60(%rbp)
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
pushq $0x1
popq %rdi
pushq $0x10
popq %rsi
callq 0x50c0
testq %rax, %rax
je 0x4a5fa
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
pushq $0x1
popq %rcx
movl %ecx, (%rax)
movq %r14, 0x8(%rax)
movl %ecx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
movq %rbx, %rcx
movq %rbx, %r12
andq %rdx, %r12
setne %al
testb $0x3, %cl
sete %bl
andb %al, %bl
cmpb $0x1, %bl
movq %r15, -0x48(%rbp)
movq %r12, -0x30(%rbp)
jne 0x4a387
movl (%r12), %eax
movq %rcx, %r15
movq 0x18(%rcx), %rcx
movq %rcx, -0x40(%rbp)
testl %eax, %eax
jne 0x4a37c
movq %r15, %rdi
leaq 0xbf1e8(%rip), %rsi     # 0x109551
callq 0xce94
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
movl (%r12), %eax
incl %eax
movl %eax, (%r12)
movq %r15, %r12
jmp 0x4a392
movq 0x18(%rcx), %rax
movq %rax, -0x40(%rbp)
movq %rcx, %r12
movl 0x38(%r12), %eax
movl %eax, -0x34(%rbp)
movq 0x40(%r12), %rsi
movq %rsi, %rax
andq %rdx, %rax
sete %cl
movq %rsi, -0x50(%rbp)
testb $0x3, %sil
setne %dl
orb %cl, %dl
jne 0x4a3b9
incl (%rax)
movq %r13, -0x58(%rbp)
testb %bl, %bl
je 0x4a3d8
movq -0x30(%rbp), %rax
decl (%rax)
jne 0x4a3d8
movq %r12, %rdi
leaq 0xbf17e(%rip), %rsi     # 0x109551
callq 0xce94
leaq -0xd0(%rbp), %r15
movq -0x48(%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x4b310
movq (%r15), %rdi
leaq -0x80(%rbp), %rdx
leaq -0xc8(%rbp), %r14
movq %rax, %rsi
movq %r14, %rcx
callq 0x4b372
movl %eax, -0xb0(%rbp)
movq %rdx, -0xa8(%rbp)
movq (%r14), %rdi
leaq -0x78(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x36e55
testb %bl, %bl
movq -0x30(%rbp), %r15
je 0x4a432
incl (%r15)
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 0x4a45c
incl (%rax)
testb %bl, %bl
je 0x4a474
decl (%r15)
jne 0x4a474
movq %r12, %rdi
leaq 0xbf0e2(%rip), %rsi     # 0x109551
callq 0xce94
movq -0x80(%rbp), %rdi
movl -0xa0(%rbp), %ecx
movq -0x98(%rbp), %r8
leaq -0x68(%rbp), %r9
movl %r14d, %esi
movq %r13, %rdx
callq 0x37cae
movl %eax, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
movq -0x70(%rbp), %rdx
movq %rdx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %dl
setne %sil
orb %cl, %sil
jne 0x4a4c6
incl (%rax)
movl -0x78(%rbp), %esi
testb %bl, %bl
je 0x4a4d0
incl (%r15)
movq %r12, %rdi
callq 0x4a619
movq %rax, %r14
movq %rax, %r13
testb %bl, %bl
je 0x4a4f6
decl (%r15)
jne 0x4a4f6
movq %r12, %rdi
leaq 0xbf060(%rip), %rsi     # 0x109551
callq 0xce94
movups -0xc0(%rbp), %xmm0
movups %xmm0, 0x30(%rsp)
movups -0xb0(%rbp), %xmm0
movups %xmm0, 0x20(%rsp)
movups -0x90(%rbp), %xmm0
movups %xmm0, 0x10(%rsp)
movups -0x78(%rbp), %xmm0
movups %xmm0, (%rsp)
movq -0x40(%rbp), %rdi
movl -0x34(%rbp), %esi
movq -0x50(%rbp), %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x4a78c
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 0x4a55f
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 0x4a57d
incl (%rdx)
testb %r15b, %r15b
je 0x4a59e
decl (%r14)
jne 0x4a59e
movq %rdi, -0x30(%rbp)
movq %r13, %rdi
leaq 0xbefbc(%rip), %rsi     # 0x109551
callq 0xce94
movq -0x30(%rbp), %rdi
leaq 0xbeff4(%rip), %rsi     # 0x109599
movl %ebx, %edx
movq %r12, %rcx
callq 0xcf39
movq %r13, %rdi
movq %rdx, %rsi
callq 0x4a82d
movq %rax, %rbx
testb %r15b, %r15b
je 0x4a5d6
decl (%r14)
jne 0x4a5d6
movq %r13, %rdi
leaq 0xbef80(%rip), %rsi     # 0x109551
callq 0xce94
movq -0x60(%rbp), %rax
movq %rbx, (%rax)
movq -0x68(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rax, (%rcx)
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8f634(%rip), %rsi     # 0xd9c35
pushq $0x2
popq %rdi
pushq $0x31
popq %rdx
callq 0x5060
callq 0x52ae
pushq $0x1
popq %rdi
callq 0x5130