// File: liskin[P]hybrid-screenclone/screenclone.cc
// Function: display::xinerama_screens()
display::screens_vector display::xinerama_screens() {
	int number;
	XineramaScreenInfo *screens = XineramaQueryScreens( dpy, &number );
	if ( !screens ) ERR;

	screens_vector vec;
	for ( int i = 0; i < number; ++i )
		vec.push_back( xinerama_screen( *this, screens[ i ] ) );

	XFree( screens );
	return vec;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x128(%rbp)
movq %rdi, %rax
movq %rax, -0x120(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x118(%rbp)
movq (%rax), %rdi
leaq -0x14(%rbp), %rsi
callq 0x3140
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x423e
movb $0x1, -0xed(%rbp)
movl $0x10, %edi
callq 0x30f0
movq %rax, -0x138(%rbp)
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x33e0
movq -0x130(%rbp), %rsi
leaq 0x3f41(%rip), %rdx      # 0x8004
leaq -0xc0(%rbp), %rdi
callq 0x51b0
jmp 0x40d1
leaq 0x3faf(%rip), %rdx      # 0x8087
leaq -0xa0(%rbp), %rdi
leaq -0xc0(%rbp), %rsi
callq 0x51b0
jmp 0x40ed
leaq 0x3f41(%rip), %rdx      # 0x8035
leaq -0x80(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x51b0
jmp 0x4106
leaq 0x3f66(%rip), %rdx      # 0x8073
leaq -0x60(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x51b0
jmp 0x411c
leaq 0x3f16(%rip), %rdx      # 0x8039
leaq -0x40(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x51b0
jmp 0x4132
movq -0x138(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x3490
jmp 0x4144
movq -0x138(%rbp), %rdi
movb $0x0, -0xed(%rbp)
movq 0x7e97(%rip), %rsi      # 0xbff0
movq 0x7e68(%rip), %rdx      # 0xbfc8
callq 0x34d0
jmp 0x4319
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x4216
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x420a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x41fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x41f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
jmp 0x41ec
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x3150
leaq -0x60(%rbp), %rdi
callq 0x3150
leaq -0x80(%rbp), %rdi
callq 0x3150
leaq -0xa0(%rbp), %rdi
callq 0x3150
leaq -0xc0(%rbp), %rdi
callq 0x3150
leaq -0xe0(%rbp), %rdi
callq 0x3150
testb $0x1, -0xed(%rbp)
jne 0x422d
jmp 0x4239
movq -0x138(%rbp), %rdi
callq 0x31a0
jmp 0x430d
movq -0x128(%rbp), %rdi
movb $0x0, -0xee(%rbp)
callq 0x52e0
movl $0x0, -0xf4(%rbp)
movl -0xf4(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x42d6
movq -0x118(%rbp), %rsi
movq -0x20(%rbp), %rax
movslq -0xf4(%rbp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,4), %rdx
leaq -0x110(%rbp), %rdi
callq 0x5330
jmp 0x428e
movq -0x128(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x5300
jmp 0x42a3
jmp 0x42a5
movl -0xf4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4(%rbp)
jmp 0x425b
movq -0x128(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xe8(%rbp)
movl %eax, -0xec(%rbp)
callq 0x5360
jmp 0x430d
movq -0x20(%rbp), %rdi
callq 0x33a0
jmp 0x42e1
movb $0x1, -0xee(%rbp)
testb $0x1, -0xee(%rbp)
jne 0x42fd
movq -0x128(%rbp), %rdi
callq 0x5360
movq -0x120(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0xe8(%rbp), %rdi
callq 0x3500
nopl (%rax)