// File: /workspace/github_c_makefile_star2_O3/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
cmpq $0x0, 0xd0(%rdi)
jne 0x4ea6
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
callq 0x2fe8
testb $0x1, %r12b
jne 0x4bcb
testq %rax, %rax
jne 0x4ec5
movq %rbx, %rdi
callq 0x3b57
leaq 0x4470(%rip), %rsi      # 0x8f09
movq %rbx, %rdi
movl $0x1, %edx
movq %r14, %rcx
movq %r15, %r8
callq 0x6d38
testl %eax, %eax
je 0x4e91
movl %r12d, -0x2c(%rbp)
movq %r15, -0x38(%rbp)
movq %rbx, %rdi
callq 0x3ab8
cmpl $0x0, 0x10(%rbx)
je 0x4cc3
movl %eax, %r12d
xorl %edx, %edx
movq %rbx, -0x40(%rbp)
addl $0x2, %r12d
movq 0x60(%rbx), %rax
leaq (%rdx,%rdx,2), %rcx
cmpl (%rax,%rcx,4), %r12d
jne 0x4f03
leaq (%rax,%rcx,4), %r13
movl 0x4(%r13), %eax
movl %r12d, %r15d
subl %eax, %r15d
movq -0x38(%rbp), %rbx
jbe 0x4f22
cmpl 0x8(%r13), %eax
jb 0x4f41
movq %rdx, -0x48(%rbp)
cmpl $0x80, %r15d
jae 0x4b21
movl %r15d, %eax
jmp 0x4b49
movl %r15d, %eax
orb $-0x80, %al
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4e91
movl %r15d, %eax
shrl $0x7, %eax
cmpl $0x3fff, %r15d          # imm = 0x3FFF
movl %eax, %r15d
ja 0x4b21
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4e91
movl 0x4(%r13), %r15d
subl 0x8(%r13), %r15d
cmpl $0x80, %r15d
jae 0x4b73
movl %r15d, %eax
xorl %r13d, %r13d
jmp 0x4b9e
xorl %r13d, %r13d
movl %r15d, %eax
orb $-0x80, %al
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4e94
movl %r15d, %eax
shrl $0x7, %eax
cmpl $0x3fff, %r15d          # imm = 0x3FFF
movl %eax, %r15d
ja 0x4b76
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
movq -0x40(%rbp), %rbx
je 0x4e94
movq -0x48(%rbp), %rdx
incq %rdx
movl 0x10(%rbx), %eax
cmpq %rax, %rdx
jb 0x4ad7
jmp 0x4cc3
movl %r12d, -0x2c(%rbp)
testq %rax, %rax
jne 0x4ee4
leaq 0x3c26(%rip), %rsi      # 0x8805
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %edx, %edx
movq %r14, %rcx
movq %r15, %r8
callq 0x6d38
testl %eax, %eax
je 0x4e94
movq %r15, -0x38(%rbp)
cmpl $0x0, 0x10(%rbx)
je 0x4cc3
movl $0x8, %r12d
xorl %r13d, %r13d
movq %rbx, -0x40(%rbp)
movq 0x60(%rbx), %r15
movl -0x8(%r15,%r12), %edx
movq %r14, %rdi
movq %r14, %rbx
movq -0x38(%rbp), %r14
movq %r14, %rsi
callq 0x6cda
cmpl $-0x1, %eax
je 0x4e91
movl $0x20, %edi
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4e91
movl -0x4(%r15,%r12), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6cda
cmpl $-0x1, %eax
je 0x4e91
movl $0x20, %edi
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4e91
movl (%r15,%r12), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6cda
cmpl $-0x1, %eax
je 0x4e91
movl $0xa, %edi
movq %rbx, %r15
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4e91
incq %r13
movq -0x40(%rbp), %rbx
movl 0x10(%rbx), %eax
addq $0xc, %r12
cmpq %rax, %r13
movq %r15, %r14
jb 0x4c15
movl $0x1, %r13d
testb $0x2, -0x2c(%rbp)
jne 0x4e94
movl 0x4(%rbx), %eax
testq %rax, %rax
movq -0x38(%rbp), %r15
je 0x4cfe
movq 0x28(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4ce9
movl 0xc(%rbx), %eax
testq %rax, %rax
je 0x4d25
movq 0x38(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4d10
movl 0x8(%rbx), %eax
testq %rax, %rax
je 0x4d4c
movq 0x30(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4d37
movl 0x14(%rbx), %eax
testq %rax, %rax
je 0x4d6f
movq 0x40(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4d5e
movl 0x18(%rbx), %eax
testq %rax, %rax
je 0x4d92
movq 0x48(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4d81
movl 0x1c(%rbx), %eax
testq %rax, %rax
je 0x4db5
movq 0x50(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4da4
movl 0x20(%rbx), %eax
testq %rax, %rax
je 0x4df0
movq 0x58(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4dda
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4dc7
jmp 0x4df0
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x383a
testl %eax, %eax
je 0x4e91
movq 0x68(%rbx), %rax
cmpq $0x0, (%rax)
je 0x4e94
movq %r14, %r13
movq %r15, %r14
movb $0x63, %al
xorl %r15d, %r15d
leaq 0x3922(%rip), %r12      # 0x8732
movsbl %al, %edi
movq %r13, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4e91
movb 0x1(%r15,%r12), %al
incq %r15
cmpq $0x2, %r15
jne 0x4e10
movq 0x68(%rbx), %r15
movq (%r15), %r12
testq %r12, %r12
je 0x4e89
movq %r14, %rbx
movq %r13, %r14
movb (%r12), %al
movq %r12, %r13
testb %al, %al
je 0x4e64
movq %r12, %r13
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4e91
movb 0x1(%r13), %al
incq %r13
testb %al, %al
jne 0x4e4c
subl %r12d, %r13d
cmpl $-0x1, %r13d
je 0x4e91
movl $0xa, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4e91
movq 0x8(%r15), %r12
addq $0x8, %r15
testq %r12, %r12
jne 0x4e3e
movl $0x1, %r13d
jmp 0x4e94
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3494(%rip), %rdi      # 0x8341
leaq 0x343f(%rip), %rsi      # 0x82f3
leaq 0x3837(%rip), %rcx      # 0x86f2
movl $0x6db, %edx            # imm = 0x6DB
callq 0x10f0
leaq 0x37d9(%rip), %rdi      # 0x86a5
leaq 0x3420(%rip), %rsi      # 0x82f3
leaq 0x3ffc(%rip), %rcx      # 0x8ed6
movl $0x698, %edx            # imm = 0x698
callq 0x10f0
leaq 0x37ba(%rip), %rdi      # 0x86a5
leaq 0x3401(%rip), %rsi      # 0x82f3
leaq 0x3fab(%rip), %rcx      # 0x8ea4
movl $0x4ed, %edx            # imm = 0x4ED
callq 0x10f0
leaq 0x4003(%rip), %rdi      # 0x8f0d
leaq 0x33e2(%rip), %rsi      # 0x82f3
leaq 0x3fbe(%rip), %rcx      # 0x8ed6
movl $0x6a5, %edx            # imm = 0x6A5
callq 0x10f0
leaq 0x3ff4(%rip), %rdi      # 0x8f1d
leaq 0x33c3(%rip), %rsi      # 0x82f3
leaq 0x3f9f(%rip), %rcx      # 0x8ed6
movl $0x6a6, %edx            # imm = 0x6A6
callq 0x10f0
leaq 0x3fe5(%rip), %rdi      # 0x8f2d
leaq 0x33a4(%rip), %rsi      # 0x82f3
leaq 0x3f80(%rip), %rcx      # 0x8ed6
movl $0x6a7, %edx            # imm = 0x6A7
callq 0x10f0