// File: /workspace/github_c_makefile_star2_O2/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, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, -0x38(%rbp)
movabsq $0xfffffffffffc, %rax   # imm = 0xFFFFFFFFFFFC
movq %rdx, %r14
andq %rax, %r14
setne %al
testb $0x3, %r12b
sete %r15b
andb %al, %r15b
je 0x51bed
movq 0x18(%r12), %rbx
cmpl $0x0, (%r14)
jne 0x51bf2
movq %r12, %rdi
leaq 0xb7c83(%rip), %rsi     # 0x109869
callq 0xce94
jmp 0x51bf2
movq 0x18(%r12), %rbx
leaq -0x50(%rbp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4ced6
testb %r15b, %r15b
je 0x51c09
incl (%r14)
movl 0x60(%r12), %r13d
movq 0x68(%r12), %rbx
movq %rbx, %rax
movabsq $0xfffffffffffc, %rcx   # imm = 0xFFFFFFFFFFFC
andq %rcx, %rax
sete %cl
testb $0x3, %bl
setne %dl
orb %cl, %dl
jne 0x51c32
incl (%rax)
testb %r15b, %r15b
je 0x51c4b
decl (%r14)
jne 0x51c4b
movq %r12, %rdi
leaq 0xb7c23(%rip), %rsi     # 0x109869
callq 0xce94
movq %r12, -0x30(%rbp)
movq -0x50(%rbp), %rdi
leaq -0x58(%rbp), %r14
movl %r13d, %esi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x4f845
movq (%r14), %r13
movq %r13, %r12
movabsq $0xfffffffffffc, %rdx   # imm = 0xFFFFFFFFFFFC
andq %rdx, %r12
setne %al
testb $0x3, %r13b
sete %r15b
andb %al, %r15b
cmpb $0x1, %r15b
jne 0x51c91
addl $0x2, (%r12)
movl 0x58(%r13), %ebx
movq 0x60(%r13), %r14
andq %r14, %rdx
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x51cac
incl (%rdx)
testb %r15b, %r15b
je 0x51cc6
decl (%r12)
jne 0x51cc6
movq %r13, %rdi
leaq 0xb76e0(%rip), %rsi     # 0x1093a1
callq 0xce94
movl %ebx, %edi
movq %r14, %rsi
movq -0x30(%rbp), %rdx
leaq 0xb7b93(%rip), %rcx     # 0x109869
callq 0x3a979
movq %r13, %rdi
movl %eax, %esi
callq 0x58ab8
movq %rax, %rbx
testb %r15b, %r15b
je 0x51d02
decl (%r12)
jne 0x51d02
movq %r13, %rdi
leaq 0xb76a4(%rip), %rsi     # 0x1093a1
callq 0xce94
movq -0x40(%rbp), %rax
movq %rbx, (%rax)
movq -0x48(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq