// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1b4a
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x189e
movl (%r14), %eax
movl %eax, 0x10(%rsp)
xorl %r15d, %r15d
movq %rbx, (%rsp)
movl 0xc(%rbx), %eax
cmpq %rax, %r15
jae 0x14c9
movq 0x38(%rbx), %rax
movq %r15, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %r12
pushq $-0x1
popq %rbp
pushq $0x18
popq %r13
movl 0x4(%r14), %eax
incq %rbp
cmpq %rax, %rbp
jae 0x18b2
movq 0x28(%r14), %rax
movq (%rax,%r13), %rdi
addq $0x20, %r13
movq %r12, %rsi
callq 0x1904
testb %al, %al
je 0x1498
incq %r15
movq (%rsp), %rbx
jmp 0x1479
xorl %ebp, %ebp
movl 0x4(%rbx), %eax
cmpq %rax, %rbp
jae 0x1560
movq 0x28(%rbx), %rax
movq %rbp, 0x8(%rsp)
shlq $0x5, %rbp
movl (%rax,%rbp), %ecx
movl %ecx, 0x14(%rsp)
movups 0x8(%rax,%rbp), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x18(%rax,%rbp), %r12
pushq $-0x1
popq %r13
xorl %ecx, %ecx
movl 0x4(%r14), %eax
incq %r13
cmpq %rax, %r13
jae 0x18c5
leaq 0x20(%rcx), %rbx
movq 0x28(%r14), %rax
movl (%rax,%rcx), %r15d
movq 0x18(%rax,%rcx), %rdi
movq %r12, %rsi
callq 0x1904
movq %rbx, %rcx
testb %al, %al
je 0x1500
movq (%rsp), %rbx
movq 0x28(%rbx), %rax
movl 0x14(%rsp), %ecx
movl %ecx, (%rax,%rbp)
movl %r15d, 0x4(%rax,%rbp)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x8(%rax,%rbp)
movq %r12, 0x18(%rax,%rbp)
movq 0x8(%rsp), %rbp
incq %rbp
jmp 0x14cb
xorl %r15d, %r15d
movq (%rsp), %rbx
movl 0x4(%r14), %eax
cmpq %rax, %r15
jae 0x15c9
movq 0x28(%r14), %rax
movq %r15, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %edx
movl %edx, 0x8(%rsp)
movq 0x18(%rax,%rcx), %r13
pushq $-0x1
popq %rbp
pushq $0x18
popq %r12
movl 0xc(%rbx), %eax
incq %rbp
cmpq %rax, %rbp
jae 0x15b3
movq 0x38(%rbx), %rax
movq (%rax,%r12), %rsi
addq $0x20, %r12
movq %r13, %rdi
callq 0x1904
testb %al, %al
je 0x158e
jmp 0x15c4
movq 0x18(%rsp), %rdi
movl 0x8(%rsp), %esi
movq %r13, %rdx
callq 0x1db6
incq %r15
jmp 0x1567
xorl %r15d, %r15d
xorl %r13d, %r13d
movq 0x18(%rsp), %rbx
movl 0x8(%r14), %eax
cmpq %rax, %r13
jae 0x1614
movq 0x30(%r14), %rax
movl (%rax,%r15), %ebp
movl 0x4(%rax,%r15), %edx
movl 0x8(%rax,%r15), %r12d
movq 0x18(%rax,%r15), %rcx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x20fb
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x2321
incq %r13
addq $0x20, %r15
jmp 0x15d4
cmpl $0x0, 0xc(%r14)
jne 0x18e5
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rsp), %rbp
movl 0x14(%r14), %eax
cmpq %rax, %r12
jae 0x1650
movq 0x40(%r14), %rax
movl (%rax,%r15), %esi
movq 0x18(%rax,%r15), %rdx
movq %rbx, %rdi
callq 0x2548
incq %r12
addq $0x20, %r15
jmp 0x1629
xorl %r15d, %r15d
xorl %r12d, %r12d
movl 0x18(%r14), %eax
cmpq %rax, %r12
jae 0x167d
movq 0x48(%r14), %rax
movl (%rax,%r15), %esi
movq 0x18(%rax,%r15), %rdx
movq %rbx, %rdi
callq 0x2653
incq %r12
addq $0x20, %r15
jmp 0x1656
pushq $0x18
popq %r15
xorl %r12d, %r12d
movl 0x1c(%r14), %eax
cmpq %rax, %r12
jae 0x16b0
movq 0x50(%r14), %rax
movl -0xc(%rax,%r15), %esi
movq -0x8(%rax,%r15), %rdx
movq (%rax,%r15), %rcx
movq %rbx, %rdi
callq 0x275e
incq %r12
addq $0x20, %r15
jmp 0x1684
xorl %r15d, %r15d
xorl %r12d, %r12d
movl 0x20(%r14), %eax
cmpq %rax, %r12
jae 0x16dd
movq 0x58(%r14), %rax
movl (%rax,%r15), %esi
movq 0x18(%rax,%r15), %rdx
movq %rbx, %rdi
callq 0x28bf
incq %r12
addq $0x20, %r15
jmp 0x16b6
pushq $0x8
popq %r15
xorl %r12d, %r12d
movl 0x10(%r14), %eax
cmpq %rax, %r12
jae 0x1710
movq 0x60(%r14), %rax
movl -0x8(%rax,%r15), %esi
movl -0x4(%rax,%r15), %edx
movl (%rax,%r15), %ecx
movq %rbx, %rdi
callq 0x29ca
incq %r12
addq $0xc, %r15
jmp 0x16e4
incl 0x10(%rsp)
xorl %r12d, %r12d
xorl %ecx, %ecx
movl 0x8(%rbp), %eax
cmpq %rax, %rcx
jae 0x1796
movq 0x30(%rbp), %rax
movl (%rax,%r12), %esi
movl 0x4(%rax,%r12), %ebp
movl 0x8(%rax,%r12), %edx
movl %edx, 0x14(%rsp)
movq 0x18(%rax,%r12), %r13
movq (%rsp), %rdi
movl 0x10(%rsp), %ebx
movl %ebx, %edx
movq %rcx, 0x8(%rsp)
callq 0x1998
movl %eax, %r15d
movq (%rsp), %rdi
movl %ebp, %esi
movq (%rsp), %rbp
movl %ebx, %edx
callq 0x1998
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movl %r15d, %esi
movl %eax, %edx
movq %r13, %rcx
callq 0x20fb
movq %rbx, %rdi
movl %r15d, %esi
movl 0x14(%rsp), %edx
callq 0x2321
movq 0x8(%rsp), %rcx
incq %rcx
addq $0x20, %r12
jmp 0x1719
pushq $0x8
popq %r13
xorl %ecx, %ecx
movl 0x10(%rsp), %ebx
movl 0x10(%rbp), %eax
cmpq %rax, %rcx
jae 0x180d
movq 0x60(%rbp), %rax
movl -0x8(%rax,%r13), %esi
movl -0x4(%rax,%r13), %ebp
movl (%rax,%r13), %r15d
movq (%rsp), %rdi
movl %ebx, %edx
movq %rcx, 0x8(%rsp)
callq 0x1998
movl %eax, %r12d
movq (%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1998
movl %eax, %ebp
movq (%rsp), %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x1998
movq 0x18(%rsp), %rdi
movl %r12d, %esi
movl %ebp, %edx
movq (%rsp), %rbp
movl %eax, %ecx
callq 0x29ca
movq 0x8(%rsp), %rcx
incq %rcx
addq $0xc, %r13
jmp 0x17a0
xorl %ecx, %ecx
movl 0x4(%r14), %eax
cmpq %rax, %rcx
jae 0x189e
movq 0x28(%r14), %rax
movq %rcx, (%rsp)
shlq $0x5, %rcx
movl (%rax,%rcx), %edx
movl %edx, 0x8(%rsp)
movq 0x18(%rax,%rcx), %r12
pushq $-0x1
popq %r13
xorl %ecx, %ecx
movq %rbp, %r15
movl 0xc(%r15), %eax
incq %r13
cmpq %rax, %r13
movq %r15, %rbp
jae 0x1892
leaq 0x20(%rcx), %rbx
movq 0x38(%rbp), %rax
movq %rbp, %r15
movl (%rax,%rcx), %ebp
movq 0x18(%rax,%rcx), %rsi
movq %r12, %rdi
callq 0x1904
movq %rbx, %rcx
testb %al, %al
je 0x183d
movq %r15, %rdi
movl %ebp, %esi
movl 0x10(%rsp), %edx
callq 0x1998
movq 0x18(%rsp), %rdi
movl 0x8(%rsp), %esi
movl %eax, %edx
pushq $0x1
popq %rcx
callq 0x29ca
movq %r15, %rbp
movq (%rsp), %rcx
incq %rcx
jmp 0x180f
movq 0x18(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xa73f(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x68b2(%rip), %rsi      # 0x8175
jmp 0x18d6
movq 0xa72c(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x68cc(%rip), %rsi      # 0x81a2
movq %r12, %rdx
xorl %eax, %eax
callq 0x1130
callq 0x1050
leaq 0x6838(%rip), %rdi      # 0x8124
leaq 0x684b(%rip), %rsi      # 0x813e
leaq 0x684e(%rip), %rcx      # 0x8148
movl $0xd1, %edx
callq 0x10f0