// File: /workspace/github_c_makefile_star2_O2/reactive-systems[P]aiger-ltl-model-checker/aiger.c
// Function: aiger_write_generic
int
aiger_write_generic (aiger * public,
		     aiger_mode mode, void *state, aiger_put put)
{
  assert (!aiger_error (public));

  if ((mode & aiger_ascii_mode))
    {
      if (!aiger_write_ascii (public, state, put))
	return 0;
    }
  else
    {
      if (!aiger_write_binary (public, state, put))
	return 0;
    }

  if (!(mode & aiger_stripped_mode))
    {
      if (aiger_have_at_least_one_symbol (public))
	{
	  if (!aiger_write_symbols (public, state, put))
	    return 0;
	}

      if (public->comments[0])
	{
	  if (aiger_put_s (state, put, "c\n") == EOF)
	    return 0;

	  if (!aiger_write_comments (public, state, put))
	    return 0;
	}
    }

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, -0x30(%rbp)
cmpq $0x0, 0xd0(%rdi)
jne 0x4a8b
movq %rdx, %rbx
movl %esi, %r12d
movq %rdi, %r14
callq 0x2d8d
testb $0x1, %r12b
jne 0x486f
testq %rax, %rax
jne 0x4aaa
movq %r14, %rdi
callq 0x38de
leaq 0x4762(%rip), %rsi      # 0x8f09
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
movq -0x30(%rbp), %r8
callq 0x6792
xorl %r15d, %r15d
testl %eax, %eax
je 0x4a1c
movl %r12d, -0x34(%rbp)
movq %r14, %rdi
callq 0x384c
movl %eax, %r12d
addl $0x2, %r12d
pushq $0x4
popq %r15
pushq $-0x1
popq %r13
movq %r14, -0x40(%rbp)
movl 0x10(%r14), %eax
incq %r13
cmpq %rax, %r13
jae 0x4947
movq %r14, %rax
movq %rbx, %r14
movq 0x60(%rax), %rbx
cmpl -0x8(%rbx,%r15,2), %r12d
jne 0x4a2e
movl -0x4(%rbx,%r15,2), %eax
movl %r12d, %edx
subl %eax, %edx
jbe 0x4a6c
cmpl (%rbx,%r15,2), %eax
jb 0x4a4d
movq %r14, %rdi
movq -0x30(%rbp), %rsi
callq 0x6d92
testl %eax, %eax
je 0x4a19
leaq 0x6(%r15), %rax
movq %rax, -0x48(%rbp)
addl $0x2, %r12d
movl -0x4(%rbx,%r15,2), %edx
subl (%rbx,%r15,2), %edx
movq %r14, %rdi
movq -0x30(%rbp), %rsi
callq 0x6d92
movq -0x48(%rbp), %r15
testl %eax, %eax
movq %r14, %rbx
movq -0x40(%rbp), %r14
jne 0x47e3
jmp 0x4a19
testq %rax, %rax
jne 0x4ac9
leaq 0x3f86(%rip), %rsi      # 0x8805
xorl %r15d, %r15d
movq %r14, %rdi
xorl %edx, %edx
movq %rbx, %rcx
movq -0x30(%rbp), %r8
callq 0x6792
testl %eax, %eax
je 0x4a1c
movl %r12d, -0x34(%rbp)
pushq $0x8
popq %r13
pushq $-0x1
popq %r12
movl 0x10(%r14), %eax
incq %r12
cmpq %rax, %r12
jae 0x4947
movq 0x60(%r14), %r15
movl -0x8(%r15,%r13), %edx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x6751
cmpl $-0x1, %eax
je 0x4a19
pushq $0x20
popq %rdi
movq %rbx, %rsi
callq *-0x30(%rbp)
cmpl $-0x1, %eax
je 0x4a19
movl -0x4(%r15,%r13), %edx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x6751
cmpl $-0x1, %eax
je 0x4a19
pushq $0x20
popq %rdi
movq %rbx, %rsi
callq *-0x30(%rbp)
cmpl $-0x1, %eax
je 0x4a19
movl (%r15,%r13), %edx
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x6751
cmpl $-0x1, %eax
je 0x4a19
addq $0xc, %r13
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq *-0x30(%rbp)
cmpl $-0x1, %eax
jne 0x48a7
jmp 0x4a19
testb $0x2, -0x34(%rbp)
jne 0x4a13
movq 0x28(%r14), %rdi
movl 0x4(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x38(%r14), %rdi
movl 0xc(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x30(%r14), %rdi
movl 0x8(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x40(%r14), %rdi
movl 0x14(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x48(%r14), %rdi
movl 0x18(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x50(%r14), %rdi
movl 0x1c(%r14), %esi
callq 0x6de8
testl %eax, %eax
jne 0x49c8
movq 0x58(%r14), %rdi
movl 0x20(%r14), %esi
callq 0x6de8
testl %eax, %eax
je 0x49db
movq %r14, %rdi
movq %rbx, %rsi
movq -0x30(%rbp), %rdx
callq 0x35e6
testl %eax, %eax
je 0x4a19
movq 0x68(%r14), %rax
cmpq $0x0, (%rax)
je 0x4a13
leaq 0x3d46(%rip), %rdx      # 0x8732
movq %rbx, %rdi
movq -0x30(%rbp), %rsi
callq 0x4ae8
xorl %r15d, %r15d
cmpl $-0x1, %eax
je 0x4a1c
movq %r14, %rdi
movq %rbx, %rsi
movq -0x30(%rbp), %rdx
callq 0x372a
testl %eax, %eax
je 0x4a1c
pushq $0x1
popq %r15
jmp 0x4a1c
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x44d8(%rip), %rdi      # 0x8f0d
leaq 0x38b7(%rip), %rsi      # 0x82f3
leaq 0x4493(%rip), %rcx      # 0x8ed6
movl $0x6a5, %edx            # imm = 0x6A5
callq 0x10f0
leaq 0x44d9(%rip), %rdi      # 0x8f2d
leaq 0x3898(%rip), %rsi      # 0x82f3
leaq 0x4474(%rip), %rcx      # 0x8ed6
movl $0x6a7, %edx            # imm = 0x6A7
callq 0x10f0
leaq 0x44aa(%rip), %rdi      # 0x8f1d
leaq 0x3879(%rip), %rsi      # 0x82f3
leaq 0x4455(%rip), %rcx      # 0x8ed6
movl $0x6a6, %edx            # imm = 0x6A6
callq 0x10f0
leaq 0x38af(%rip), %rdi      # 0x8341
leaq 0x385a(%rip), %rsi      # 0x82f3
leaq 0x3c52(%rip), %rcx      # 0x86f2
movl $0x6db, %edx            # imm = 0x6DB
callq 0x10f0
leaq 0x3bf4(%rip), %rdi      # 0x86a5
leaq 0x383b(%rip), %rsi      # 0x82f3
leaq 0x4417(%rip), %rcx      # 0x8ed6
movl $0x698, %edx            # imm = 0x698
callq 0x10f0
leaq 0x3bd5(%rip), %rdi      # 0x86a5
leaq 0x381c(%rip), %rsi      # 0x82f3
leaq 0x43c6(%rip), %rcx      # 0x8ea4
movl $0x4ed, %edx            # imm = 0x4ED
callq 0x10f0