// File: /workspace/github_c_makefile_star2_O1/reactive-systems[P]aiger-ltl-model-checker/combine.c
// Function: combine
aiger* combine(const aiger* monitor, const aiger* implementation) {
    aiger* combination = aiger_init();
    if (combination == NULL) {
        return NULL;
    }
    
    const unsigned offset = monitor->maxvar + 1;
    
    check_signals_defined(monitor, implementation);
    add_inputs_from_monitor(combination, monitor, implementation);
    add_latches_from_monitor(combination, monitor, implementation);
    assert(monitor->num_outputs == 0);
    add_constraints_from_monitor(combination, monitor, implementation);
    import_ands_from_monitor(combination, monitor);
    
    add_latches_from_implementation(combination, implementation, offset);
    import_ands_from_implementation(combination, implementation, offset);
    define_outputs(combination, monitor, implementation, offset);
    return combination;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1d35
testq %rax, %rax
je 0x1a3c
movq %rax, %r15
movl (%r14), %eax
movl %eax, 0x24(%rsp)
cmpl $0x0, 0xc(%rbx)
movq %r15, 0x10(%rsp)
movq %rbx, %rcx
movq %rbx, (%rsp)
movq %r14, %rdx
movq %r14, 0x8(%rsp)
je 0x159d
xorl %ebx, %ebx
movl $0x1, %ebp
movq 0x38(%rcx), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %r12
cmpl $0x0, 0x4(%rdx)
je 0x1a51
movl $0x18, %r14d
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x28(%rdx), %rax
movq (%rax,%r14), %rdi
movq %r12, %rsi
callq 0x1a80
movq 0x8(%rsp), %rdx
movzbl %r13b, %r13d
testb %al, %al
cmovnel %ebp, %r13d
jne 0x157f
incq %r15
movl 0x4(%rdx), %eax
addq $0x20, %r14
cmpq %rax, %r15
jb 0x154f
testb $0x1, %r13b
je 0x1a51
incq %rbx
movq (%rsp), %rcx
movl 0xc(%rcx), %eax
cmpq %rax, %rbx
movq 0x10(%rsp), %r15
jb 0x1529
cmpl $0x0, 0x4(%rcx)
je 0x1661
xorl %r13d, %r13d
movq 0x28(%rcx), %rax
movq %r13, 0x28(%rsp)
shlq $0x5, %r13
movl (%rax,%r13), %ecx
movl %ecx, 0x18(%rsp)
movups 0x8(%rax,%r13), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x18(%rax,%r13), %r12
cmpl $0x0, 0x4(%rdx)
je 0x1a59
xorl %r14d, %r14d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x28(%rdx), %rax
movl (%rax,%r14), %ebp
movq 0x18(%rax,%r14), %rdi
movq %r12, %rsi
callq 0x1a80
testb %al, %al
je 0x1622
movq (%rsp), %rcx
movq 0x28(%rcx), %rcx
movl 0x18(%rsp), %edx
movl %edx, (%rcx,%r13)
movl %ebp, 0x4(%rcx,%r13)
movaps 0x30(%rsp), %xmm0
movups %xmm0, 0x8(%rcx,%r13)
movq %r12, 0x18(%rcx,%r13)
movb $0x1, %r15b
testb %al, %al
movq 0x8(%rsp), %rdx
jne 0x163a
incq %rbx
movl 0x4(%rdx), %eax
addq $0x20, %r14
cmpq %rax, %rbx
jb 0x15e1
testb $0x1, %r15b
je 0x1a59
movq 0x28(%rsp), %r13
incq %r13
movq (%rsp), %rcx
movl 0x4(%rcx), %eax
cmpq %rax, %r13
movq 0x10(%rsp), %r15
jb 0x15aa
cmpl $0x0, 0x4(%rdx)
je 0x1700
xorl %ebx, %ebx
movl $0x1, %r13d
movq 0x28(%rdx), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %esi
movq 0x18(%rax,%rcx), %r12
movq (%rsp), %rax
cmpl $0x0, 0xc(%rax)
je 0x16e1
movl %esi, 0x18(%rsp)
movl $0x18, %r14d
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%rsp), %rcx
movq 0x38(%rcx), %rax
movq (%rax,%r14), %rsi
movq %r12, %rdi
callq 0x1a80
movq (%rsp), %rcx
movzbl %bpl, %ebp
testb %al, %al
cmovnel %r13d, %ebp
jne 0x16d2
incq %r15
movl 0xc(%rcx), %eax
addq $0x20, %r14
cmpq %rax, %r15
jb 0x16a3
testb $0x1, %bpl
movq 0x10(%rsp), %r15
movl 0x18(%rsp), %esi
jne 0x16ec
movq %r15, %rdi
movq %r12, %rdx
callq 0x212c
incq %rbx
movq 0x8(%rsp), %rdx
movl 0x4(%rdx), %eax
cmpq %rax, %rbx
jb 0x1673
cmpl $0x0, 0x8(%rdx)
je 0x174b
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x30(%rdx), %rax
movl (%rax,%rbx), %ebp
movl 0x4(%rax,%rbx), %edx
movl 0x8(%rax,%rbx), %r12d
movq 0x18(%rax,%rbx), %rcx
movq %r15, %rdi
movl %ebp, %esi
callq 0x246d
movq %r15, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x2685
movq 0x8(%rsp), %rdx
incq %r14
movl 0x8(%rdx), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x170b
cmpl $0x0, 0xc(%rdx)
jne 0x1a61
cmpl $0x0, 0x14(%rdx)
movl 0x24(%rsp), %ebp
je 0x178c
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x40(%rdx), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x28a1
movq 0x8(%rsp), %rdx
incq %r14
movl 0x14(%rdx), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x1764
cmpl $0x0, 0x18(%rdx)
je 0x17bf
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x48(%rdx), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x29a1
movq 0x8(%rsp), %rdx
incq %r14
movl 0x18(%rdx), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x1797
cmpl $0x0, 0x1c(%rdx)
je 0x17fa
movl $0x18, %ebx
xorl %r14d, %r14d
movq 0x50(%rdx), %rax
movl -0xc(%rax,%rbx), %esi
movq -0x8(%rax,%rbx), %rdx
movq (%rax,%rbx), %rcx
movq %r15, %rdi
callq 0x2aa1
movq 0x8(%rsp), %rdx
incq %r14
movl 0x1c(%rdx), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x17cd
cmpl $0x0, 0x20(%rdx)
je 0x182d
xorl %ebx, %ebx
xorl %r14d, %r14d
movq 0x58(%rdx), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r15, %rdi
callq 0x2c00
movq 0x8(%rsp), %rdx
incq %r14
movl 0x20(%rdx), %eax
addq $0x20, %rbx
cmpq %rax, %r14
jb 0x1805
cmpl $0x0, 0x10(%rdx)
je 0x1866
movl $0x8, %ebx
xorl %r14d, %r14d
movq 0x60(%rdx), %rax
movl -0x8(%rax,%rbx), %esi
movl -0x4(%rax,%rbx), %edx
movl (%rax,%rbx), %ecx
movq %r15, %rdi
callq 0x2d00
movq 0x8(%rsp), %rdx
incq %r14
movl 0x10(%rdx), %eax
addq $0xc, %rbx
cmpq %rax, %r14
jb 0x183b
incl %ebp
movq (%rsp), %rdi
cmpl $0x0, 0x8(%rdi)
movl %ebp, %r15d
je 0x18e6
xorl %r14d, %r14d
xorl %r12d, %r12d
movq 0x30(%rdi), %rax
movl (%rax,%r14), %esi
movl 0x4(%rax,%r14), %ebp
movl 0x8(%rax,%r14), %ecx
movl %ecx, 0x18(%rsp)
movq 0x18(%rax,%r14), %r13
movl %r15d, %edx
callq 0x1b18
movl %eax, %ebx
movq (%rsp), %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x1b18
movq 0x10(%rsp), %rbp
movq %rbp, %rdi
movl %ebx, %esi
movl %eax, %edx
movq %r13, %rcx
callq 0x246d
movq %rbp, %rdi
movl %ebx, %esi
movl 0x18(%rsp), %edx
callq 0x2685
movl %r15d, %ebp
movq (%rsp), %rdi
incq %r12
movl 0x8(%rdi), %eax
addq $0x20, %r14
cmpq %rax, %r12
jb 0x187b
cmpl $0x0, 0x10(%rdi)
je 0x1957
movl $0x8, %r14d
xorl %r13d, %r13d
movq 0x60(%rdi), %rax
movl -0x8(%rax,%r14), %esi
movl -0x4(%rax,%r14), %ebx
movl (%rax,%r14), %ebp
movl %r15d, %edx
callq 0x1b18
movl %eax, %r12d
movq (%rsp), %rdi
movl %ebx, %esi
movl %r15d, %edx
callq 0x1b18
movl %eax, %ebx
movq (%rsp), %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x1b18
movq 0x10(%rsp), %rdi
movl %r12d, %esi
movl %ebx, %edx
movl %eax, %ecx
callq 0x2d00
movl %r15d, %ebp
movq (%rsp), %rdi
incq %r13
movl 0x10(%rdi), %eax
addq $0xc, %r14
cmpq %rax, %r13
jb 0x18f5
movq 0x10(%rsp), %r14
movl %ebp, 0x24(%rsp)
movq 0x8(%rsp), %rcx
cmpl $0x0, 0x4(%rcx)
je 0x1a3f
xorl %ebx, %ebx
movq 0x28(%rcx), %rax
movq %rbx, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %ebp
movq (%rsp), %r14
cmpl $0x0, 0xc(%r14)
setne %r13b
movl %ebp, 0x28(%rsp)
je 0x19f8
movq 0x18(%rax,%rcx), %rdi
movq 0x38(%r14), %rax
movl (%rax), %r12d
movq 0x18(%rax), %rsi
movq %rdi, 0x18(%rsp)
callq 0x1a80
testb %al, %al
jne 0x19f8
cmpl $0x2, 0xc(%r14)
setae %r13b
jb 0x19f8
movq %r14, %rbp
movl $0x1, %r14d
movl $0x38, %r15d
movq 0x38(%rbp), %rax
movl -0x18(%rax,%r15), %r12d
movq (%rax,%r15), %rsi
movq 0x18(%rsp), %rdi
callq 0x1a80
testb %al, %al
jne 0x19f8
incq %r14
movl 0xc(%rbp), %eax
addq $0x20, %r15
cmpq %rax, %r14
setb %r13b
jb 0x19ca
testb $0x1, %r13b
movq 0x10(%rsp), %r14
je 0x1a26
movq (%rsp), %rdi
movl %r12d, %esi
movl 0x24(%rsp), %edx
callq 0x1b18
movq %r14, %rdi
movl 0x28(%rsp), %esi
movl %eax, %edx
movl $0x1, %ecx
callq 0x2d00
incq %rbx
movq 0x8(%rsp), %rcx
movl 0x4(%rcx), %eax
cmpq %rax, %rbx
jb 0x1971
jmp 0x1a3f
xorl %r14d, %r14d
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1256
movq %r12, %rdi
callq 0x1277
leaq 0x66bc(%rip), %rdi      # 0x8124
leaq 0x66cf(%rip), %rsi      # 0x813e
leaq 0x66d2(%rip), %rcx      # 0x8148
movl $0xd1, %edx
callq 0x10f0