// File: /workspace/github_c_makefile_star2_O3/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 0x1c5e
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x19c5
movq %rbx, %rdx
movl (%r14), %ebp
cmpl $0x0, 0xc(%rbx)
movq %rbx, 0x8(%rsp)
je 0x1583
xorl %r15d, %r15d
movq 0x38(%rdx), %rax
movq %r15, %rcx
shlq $0x5, %rcx
movq 0x18(%rax,%rcx), %r12
cmpl $0x0, 0x4(%r14)
je 0x19d9
movl $0x18, %r13d
xorl %ebx, %ebx
movq 0x28(%r14), %rax
movq (%rax,%r13), %rdi
movq %r12, %rsi
callq 0x1a08
testb %al, %al
jne 0x1573
incq %rbx
movl 0x4(%r14), %eax
addq $0x20, %r13
cmpq %rax, %rbx
jb 0x154a
jmp 0x19d9
incq %r15
movq 0x8(%rsp), %rdx
movl 0xc(%rdx), %eax
cmpq %rax, %r15
jb 0x1527
movl %ebp, 0x24(%rsp)
cmpl $0x0, 0x4(%rdx)
je 0x1630
xorl %r13d, %r13d
movq 0x28(%rdx), %rax
movq %r13, 0x10(%rsp)
shlq $0x5, %r13
movl (%rax,%r13), %ecx
movl %ecx, 0x28(%rsp)
movups 0x8(%rax,%r13), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x18(%rax,%r13), %r12
cmpl $0x0, 0x4(%r14)
je 0x19e1
xorl %ebp, %ebp
xorl %ebx, %ebx
movq 0x28(%r14), %rax
movl (%rax,%rbp), %r15d
movq 0x18(%rax,%rbp), %rdi
movq %r12, %rsi
callq 0x1a08
testb %al, %al
jne 0x15f6
incq %rbx
movl 0x4(%r14), %eax
addq $0x20, %rbp
cmpq %rax, %rbx
jb 0x15c8
jmp 0x19e1
movq 0x8(%rsp), %rdx
movq 0x28(%rdx), %rax
movl 0x28(%rsp), %ecx
movl %ecx, (%rax,%r13)
movl %r15d, 0x4(%rax,%r13)
movaps 0x30(%rsp), %xmm0
movups %xmm0, 0x8(%rax,%r13)
movq %r12, 0x18(%rax,%r13)
movq 0x10(%rsp), %r13
incq %r13
movl 0x4(%rdx), %eax
cmpq %rax, %r13
jb 0x1594
cmpl $0x0, 0x4(%r14)
je 0x16ac
xorl %r15d, %r15d
movq 0x28(%r14), %rax
movq %r15, %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %esi
movl %esi, 0x10(%rsp)
movq 0x18(%rax,%rcx), %r13
cmpl $0x0, 0xc(%rdx)
je 0x1689
movl $0x18, %ebp
xorl %ebx, %ebx
movq 0x38(%rdx), %rax
movq (%rax,%rbp), %rsi
movq %rdx, %r12
movq %r13, %rdi
callq 0x1a08
testb %al, %al
jne 0x169d
incq %rbx
movl 0xc(%r12), %eax
addq $0x20, %rbp
cmpq %rax, %rbx
movq %r12, %rdx
jb 0x165e
movq %rdx, %r12
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %esi
movq %r13, %rdx
callq 0x1fbb
incq %r15
movl 0x4(%r14), %eax
cmpq %rax, %r15
movq %r12, %rdx
jb 0x163a
cmpl $0x0, 0x8(%r14)
movq 0x18(%rsp), %rbx
je 0x16fc
xorl %r15d, %r15d
xorl %r13d, %r13d
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 0x2312
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
callq 0x253a
incq %r13
movl 0x8(%r14), %eax
addq $0x20, %r15
cmpq %rax, %r13
jb 0x16be
cmpl $0x0, 0xc(%r14)
jne 0x19e9
cmpl $0x0, 0x14(%r14)
movq 0x18(%rsp), %r13
je 0x173c
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x40(%r14), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x2766
incq %r15
movl 0x14(%r14), %eax
addq $0x20, %rbx
cmpq %rax, %r15
jb 0x1718
cmpl $0x0, 0x18(%r14)
movl 0x24(%rsp), %ebp
je 0x1770
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x48(%r14), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x2876
incq %r15
movl 0x18(%r14), %eax
addq $0x20, %rbx
cmpq %rax, %r15
jb 0x174c
cmpl $0x0, 0x1c(%r14)
je 0x17aa
movl $0x18, %r15d
xorl %r12d, %r12d
movq 0x50(%r14), %rax
movl -0xc(%rax,%r15), %esi
movq -0x8(%rax,%r15), %rdx
movq (%rax,%r15), %rcx
movq %r13, %rdi
callq 0x2986
incq %r12
movl 0x1c(%r14), %eax
addq $0x20, %r15
cmpq %rax, %r12
jb 0x1780
cmpl $0x0, 0x20(%r14)
je 0x17da
xorl %ebx, %ebx
xorl %r15d, %r15d
movq 0x58(%r14), %rax
movl (%rax,%rbx), %esi
movq 0x18(%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x2afc
incq %r15
movl 0x20(%r14), %eax
addq $0x20, %rbx
cmpq %rax, %r15
jb 0x17b6
cmpl $0x0, 0x10(%r14)
je 0x1813
movl $0x8, %r15d
xorl %ebx, %ebx
movq 0x60(%r14), %rax
movl -0x8(%rax,%r15), %esi
movl -0x4(%rax,%r15), %edx
movl (%rax,%r15), %ecx
movq %r13, %rdi
callq 0x2c0c
incq %rbx
movl 0x10(%r14), %eax
addq $0xc, %r15
cmpq %rax, %rbx
jb 0x17e9
incl %ebp
movq 0x8(%rsp), %rdx
cmpl $0x0, 0x8(%rdx)
movl %ebp, %ebx
je 0x189f
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x30(%rdx), %rax
movl (%rax,%r12), %esi
movl 0x4(%rax,%r12), %ebp
movl 0x8(%rax,%r12), %ecx
movl %ecx, 0x10(%rsp)
movq 0x18(%rax,%r12), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rdi
movl %ebx, %edx
callq 0x1aa0
movl %eax, %r15d
movq 0x8(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1aa0
movq 0x18(%rsp), %rbp
movq %rbp, %rdi
movl %r15d, %esi
movl %eax, %edx
movq 0x28(%rsp), %rcx
callq 0x2312
movq %rbp, %rdi
movl %r15d, %esi
movl 0x10(%rsp), %edx
callq 0x253a
movq 0x8(%rsp), %rdx
incq %r13
movl 0x8(%rdx), %eax
addq $0x20, %r12
cmpq %rax, %r13
jb 0x1828
cmpl $0x0, 0x10(%rdx)
je 0x1918
movl $0x8, %r13d
xorl %r15d, %r15d
movq 0x60(%rdx), %rax
movl -0x8(%rax,%r13), %esi
movl -0x4(%rax,%r13), %ebp
movl (%rax,%r13), %eax
movl %eax, 0x10(%rsp)
movq 0x8(%rsp), %rdi
movl %ebx, %edx
callq 0x1aa0
movl %eax, %r12d
movq 0x8(%rsp), %rdi
movl %ebp, %esi
movl %ebx, %edx
callq 0x1aa0
movl %eax, %ebp
movq 0x8(%rsp), %rdi
movl 0x10(%rsp), %esi
movl %ebx, %edx
callq 0x1aa0
movq 0x18(%rsp), %rdi
movl %r12d, %esi
movl %ebp, %edx
movl %eax, %ecx
callq 0x2c0c
movq 0x8(%rsp), %rdx
incq %r15
movl 0x10(%rdx), %eax
addq $0xc, %r13
cmpq %rax, %r15
jb 0x18ae
movl %ebx, 0x24(%rsp)
cmpl $0x0, 0x4(%r14)
je 0x19c5
movq $0x0, 0x8(%rsp)
cmpl $0x0, 0xc(%rdx)
je 0x19ab
movq 0x28(%r14), %rax
movq 0x8(%rsp), %rcx
shlq $0x5, %rcx
movl (%rax,%rcx), %esi
movl %esi, 0x10(%rsp)
movq 0x18(%rax,%rcx), %r13
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x38(%rdx), %rax
movl (%rax,%r12), %ebp
movq 0x18(%rax,%r12), %rsi
movq %rdx, %r15
movq %r13, %rdi
callq 0x1a08
testb %al, %al
jne 0x1985
incq %rbx
movl 0xc(%r15), %eax
addq $0x20, %r12
cmpq %rax, %rbx
movq %r15, %rdx
jb 0x1954
jmp 0x19ab
movq %r15, %rdi
movl %ebp, %esi
movl 0x24(%rsp), %edx
callq 0x1aa0
movq 0x18(%rsp), %rdi
movl 0x10(%rsp), %esi
movl %eax, %edx
movl $0x1, %ecx
callq 0x2c0c
movq %r15, %rdx
movq 0x8(%rsp), %rsi
incq %rsi
movl 0x4(%r14), %eax
movq %rsi, 0x8(%rsp)
cmpq %rax, %rsi
jb 0x1930
movq 0x18(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1266
movq %r12, %rdi
callq 0x1287
leaq 0x6734(%rip), %rdi      # 0x8124
leaq 0x6747(%rip), %rsi      # 0x813e
leaq 0x674a(%rip), %rcx      # 0x8148
movl $0xd1, %edx
callq 0x10f0