// File: /workspace/github_c_makefile_star2_O1/mirth-lang[P]mirth/bin/mirth1.c
// Function: mw_mirth_elab_zaAB_abzeatomzx
static void mw_mirth_elab_zaAB_abzeatomzx (struct mirth_mirth_zaMirth* in_zaMirth_1, struct mirth_arrow_Arrow* in_zaAB_2, struct mirth_arrow_Atom* in_Atom_3, struct mirth_mirth_zaMirth* *out_zaMirth_4, struct mirth_arrow_Arrow* *out_zaAB_5) {
	incref(MK_mirth_arrow_Atom(in_Atom_3));
	uint64_t v6 = in_Atom_3->mtoken;
	decref(MK_mirth_arrow_Atom(in_Atom_3));
	struct mirth_arrow_Arrow* v7;
	mw_mirth_elab_zaAB_abzetokenzx(in_zaAB_2, v6, &v7);
	incref(MK_mirth_arrow_Atom(in_Atom_3));
	struct mirth_type_StackType v8 = in_Atom_3->mcod;
	incref(MK_mirth_type_StackType(v8));
	decref(MK_mirth_arrow_Atom(in_Atom_3));
	struct mirth_arrow_Arrow* v9;
	mw_mirth_elab_zaAB_abzetypezx(v7, v8, &v9);
	incref(MK_mirth_arrow_Arrow(v9));
	incref(MK_mirth_arrow_Arrow(v9));
	struct std_list_List_1 v10 = v9->matoms;
	incref(MK_std_list_List_1(v10));
	decref(MK_mirth_arrow_Arrow(v9));
	struct std_list_List_1 v11 = mw_std_list_List_1_Snoc(v10, MK_mirth_arrow_Atom(in_Atom_3));
	struct mirth_arrow_Arrow* v12 = mirth_arrow_Arrow_set_atoms(v9, v11);
	decref(MK_mirth_arrow_Arrow(v9));
	*out_zaAB_5 = v12;
	*out_zaMirth_4 = in_zaMirth_1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, -0x48(%rbp)
movq %rcx, -0x50(%rbp)
movq %rdx, %r12
movq %rdi, -0x40(%rbp)
movabsq $0xfffffffffffc, %r15   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r14
andq %r15, %r14
setne %al
testb $0x3, %r12b
sete %r13b
andb %al, %r13b
cmpb $0x1, %r13b
jne 0x57c15
incl (%r14)
movq 0x18(%r12), %rbx
testb %r13b, %r13b
je 0x57c54
decl (%r14)
jne 0x57c3b
movq %r12, %rdi
movq %rsi, -0x38(%rbp)
leaq 0xbec37(%rip), %rsi     # 0x116869
callq 0xd4e3
movq -0x38(%rbp), %rsi
leaq -0x30(%rbp), %rdx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x52dd6
testb %r13b, %r13b
je 0x57c63
incl (%r14)
jmp 0x57c63
leaq -0x30(%rbp), %rdx
movq %rsi, %rdi
movq %rbx, %rsi
callq 0x52dd6
movl 0x60(%r12), %esi
movq 0x68(%r12), %rbx
movq %rbx, %rax
andq %r15, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x57c82
incl (%rax)
testb %r13b, %r13b
je 0x57ca1
decl (%r14)
jne 0x57ca1
movq %r12, %rdi
movl %esi, %r14d
leaq 0xbebd0(%rip), %rsi     # 0x116869
callq 0xd4e3
movl %r14d, %esi
movq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %r14
movq %rbx, %rdx
movq %r14, %rcx
callq 0x557e2
movq (%r14), %r13
movq %r13, %rax
andq %r15, %rax
setne %dl
testb $0x3, %r13b
sete %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x57cd1
addl $0x2, (%rax)
movl 0x58(%r13), %ebx
movq 0x60(%r13), %r14
movq %r14, %rdx
andq %r15, %rdx
sete %sil
testb $0x3, %r14b
setne %dil
orb %sil, %dil
jne 0x57cf2
incl (%rdx)
testb %cl, %cl
je 0x57d09
decl (%rax)
jne 0x57d09
movq %r13, %rdi
leaq 0xbe69d(%rip), %rsi     # 0x1163a1
callq 0xd4e3
movl %ebx, %edi
movq %r14, %rsi
movq %r12, %rdx
leaq 0xbeb51(%rip), %rcx     # 0x116869
callq 0x3f2d0
movq %r13, %rdi
movl %eax, %esi
callq 0x5f10a
movq %rax, %rbx
movq -0x58(%rbp), %rdi
andq %rdi, %r15
sete %al
testb $0x3, %dil
setne %cl
orb %al, %cl
jne 0x57d50
decl (%r15)
jne 0x57d50
leaq 0xbe656(%rip), %rsi     # 0x1163a1
callq 0xd4e3
movq -0x48(%rbp), %rax
movq %rbx, (%rax)
movq -0x50(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq