// File: /workspace/github_c_makefile_star2_O1/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 0x4f92
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %r12d
movq %rdi, %rbx
callq 0x30c6
testb $0x1, %r12b
jne 0x4cb0
testq %rax, %rax
jne 0x4fb1
movq %rbx, %rdi
callq 0x3c3c
leaq 0x438b(%rip), %rsi      # 0x8f09
movq %rbx, %rdi
movl $0x1, %edx
movq %r14, %rcx
movq %r15, %r8
callq 0x6e0b
testl %eax, %eax
je 0x4f7d
movl %r12d, -0x2c(%rbp)
movq %r15, -0x38(%rbp)
movq %rbx, %rdi
callq 0x3bb2
cmpl $0x0, 0x10(%rbx)
je 0x4da8
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 0x4fef
leaq (%rax,%rcx,4), %r13
movl 0x4(%r13), %eax
movl %r12d, %r15d
subl %eax, %r15d
movq -0x38(%rbp), %rbx
jbe 0x500e
cmpl 0x8(%r13), %eax
jb 0x502d
movq %rdx, -0x48(%rbp)
cmpl $0x80, %r15d
jae 0x4c06
movl %r15d, %eax
jmp 0x4c2e
movl %r15d, %eax
orb $-0x80, %al
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4f7d
movl %r15d, %eax
shrl $0x7, %eax
cmpl $0x3fff, %r15d          # imm = 0x3FFF
movl %eax, %r15d
ja 0x4c06
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4f7d
movl 0x4(%r13), %r15d
subl 0x8(%r13), %r15d
cmpl $0x80, %r15d
jae 0x4c58
movl %r15d, %eax
xorl %r13d, %r13d
jmp 0x4c83
xorl %r13d, %r13d
movl %r15d, %eax
orb $-0x80, %al
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4f80
movl %r15d, %eax
shrl $0x7, %eax
cmpl $0x3fff, %r15d          # imm = 0x3FFF
movl %eax, %r15d
ja 0x4c5b
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
movq -0x40(%rbp), %rbx
je 0x4f80
movq -0x48(%rbp), %rdx
incq %rdx
movl 0x10(%rbx), %eax
cmpq %rax, %rdx
jb 0x4bbc
jmp 0x4da8
movl %r12d, -0x2c(%rbp)
testq %rax, %rax
jne 0x4fd0
leaq 0x3b41(%rip), %rsi      # 0x8805
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %edx, %edx
movq %r14, %rcx
movq %r15, %r8
callq 0x6e0b
testl %eax, %eax
je 0x4f80
movq %r15, -0x38(%rbp)
cmpl $0x0, 0x10(%rbx)
je 0x4da8
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 0x6dad
cmpl $-0x1, %eax
je 0x4f7d
movl $0x20, %edi
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4f7d
movl -0x4(%r15,%r12), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6dad
cmpl $-0x1, %eax
je 0x4f7d
movl $0x20, %edi
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4f7d
movl (%r15,%r12), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6dad
cmpl $-0x1, %eax
je 0x4f7d
movl $0xa, %edi
movq %rbx, %r15
movq %rbx, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4f7d
incq %r13
movq -0x40(%rbp), %rbx
movl 0x10(%rbx), %eax
addq $0xc, %r12
cmpq %rax, %r13
movq %r15, %r14
jb 0x4cfa
movl $0x1, %r13d
testb $0x2, -0x2c(%rbp)
jne 0x4f80
movl 0x4(%rbx), %eax
testq %rax, %rax
movq -0x38(%rbp), %r15
je 0x4de3
movq 0x28(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4dce
movl 0xc(%rbx), %eax
testq %rax, %rax
je 0x4e0a
movq 0x38(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4df5
movl 0x8(%rbx), %eax
testq %rax, %rax
je 0x4e31
movq 0x30(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4e1c
movl 0x14(%rbx), %eax
testq %rax, %rax
je 0x4e54
movq 0x40(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4e43
movl 0x18(%rbx), %eax
testq %rax, %rax
je 0x4e77
movq 0x48(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4e66
movl 0x1c(%rbx), %eax
testq %rax, %rax
je 0x4e9a
movq 0x50(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4e89
movl 0x20(%rbx), %eax
testq %rax, %rax
je 0x4ed5
movq 0x58(%rbx), %rcx
shlq $0x5, %rax
xorl %edx, %edx
cmpq $0x0, 0x18(%rcx,%rdx)
jne 0x4ebf
addq $0x20, %rdx
cmpq %rdx, %rax
jne 0x4eac
jmp 0x4ed5
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3949
testl %eax, %eax
je 0x4f7d
movq 0x68(%rbx), %rax
cmpq $0x0, (%rax)
je 0x4f80
movq %r14, %r13
movq %r15, %r14
movb $0x63, %al
movl $0x1, %r15d
leaq 0x383a(%rip), %r12      # 0x8732
movsbl %al, %edi
movq %r13, %rsi
callq *%r14
cmpl $-0x1, %eax
je 0x4f7d
movb (%r15,%r12), %al
incq %r15
cmpq $0x3, %r15
jne 0x4ef8
testl %r15d, %r15d
je 0x4f7d
movq 0x68(%rbx), %r15
movq (%r15), %r12
testq %r12, %r12
je 0x4f75
movq %r14, %rbx
movq %r13, %r14
movb (%r12), %al
movq %r12, %r13
testb %al, %al
je 0x4f50
movq %r12, %r13
movsbl %al, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4f7d
movb 0x1(%r13), %al
incq %r13
testb %al, %al
jne 0x4f38
subl %r12d, %r13d
cmpl $-0x1, %r13d
je 0x4f7d
movl $0xa, %edi
movq %r14, %rsi
callq *%rbx
cmpl $-0x1, %eax
je 0x4f7d
movq 0x8(%r15), %r12
addq $0x8, %r15
testq %r12, %r12
jne 0x4f2a
movl $0x1, %r13d
jmp 0x4f80
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x33a8(%rip), %rdi      # 0x8341
leaq 0x3353(%rip), %rsi      # 0x82f3
leaq 0x374b(%rip), %rcx      # 0x86f2
movl $0x6db, %edx            # imm = 0x6DB
callq 0x10f0
leaq 0x36ed(%rip), %rdi      # 0x86a5
leaq 0x3334(%rip), %rsi      # 0x82f3
leaq 0x3f10(%rip), %rcx      # 0x8ed6
movl $0x698, %edx            # imm = 0x698
callq 0x10f0
leaq 0x36ce(%rip), %rdi      # 0x86a5
leaq 0x3315(%rip), %rsi      # 0x82f3
leaq 0x3ebf(%rip), %rcx      # 0x8ea4
movl $0x4ed, %edx            # imm = 0x4ED
callq 0x10f0
leaq 0x3f17(%rip), %rdi      # 0x8f0d
leaq 0x32f6(%rip), %rsi      # 0x82f3
leaq 0x3ed2(%rip), %rcx      # 0x8ed6
movl $0x6a5, %edx            # imm = 0x6A5
callq 0x10f0
leaq 0x3f08(%rip), %rdi      # 0x8f1d
leaq 0x32d7(%rip), %rsi      # 0x82f3
leaq 0x3eb3(%rip), %rcx      # 0x8ed6
movl $0x6a6, %edx            # imm = 0x6A6
callq 0x10f0
leaq 0x3ef9(%rip), %rdi      # 0x8f2d
leaq 0x32b8(%rip), %rsi      # 0x82f3
leaq 0x3e94(%rip), %rcx      # 0x8ed6
movl $0x6a7, %edx            # imm = 0x6A7
callq 0x10f0